| 
					
				 | 
			
			
				@@ -18,51 +18,65 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sort: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        filter: [{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            label: "领域", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            index: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            showName: "tradefield", //显示字段 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            valueKey: "tradefield", //返回Key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            selectKey: "tradefield", //传参 代表选着字段 不传参返回整个选择对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            value: "", //选中值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            list: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onLoad(options) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             userrole: wx.getStorageSync('userrole') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getBrand() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getDomain(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getTradefie(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /* 获取领域 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getDomain() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getTradefie() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let content = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            nocache: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            pageNumber: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            pageSize: 9999, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            where: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                condition: "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (this.data.sys_enterpriseid) content.sys_enterpriseid = this.data.sys_enterpriseid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         _Http.basic({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "id": 20221223141802, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "content": { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                "pageNumber": 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                "pageSize": 99999, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                "where": { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    "condition": "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "id": this.data.userrole == '业务员' ? 20230418142202 : 20221223141802, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            content 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, false).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log("获取领域", this.data.userrole, res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (res.msg != '成功') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                res.data = [{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    rowindex: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    subvalues: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    sys_enterprise_tradefieldid: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    tradefield: "全部" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (res.data.length == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    res.data[0] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        rowindex: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        subvalues: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        sys_enterprise_tradefieldid: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        tradefield: "全部" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    res.data.unshift({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        rowindex: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        subvalues: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        sys_enterprise_tradefieldid: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        tradefield: "全部" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log("获取领域", res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (res.data.length) this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                "filter[0].list": res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                tradefield: "", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                tradefieList: res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* 处理筛选 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    handleFilter({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        detail 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (detail.tradefield === {}) detail.tradefield = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (detail.tradefield == this.data.content.tradefield) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /* 切换领域 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tradefieChange(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "content.tradefield": detail.tradefield 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tradefield: e.detail.item.tradefield == '全部' ? "" : e.detail.item.tradefield 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getList(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /* 切换分类 */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -141,6 +155,7 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (init) content.pageNumber = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (content.pageNumber > content.pageTotal) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         content.brandids = [this.data.brand.sa_brandid]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		content.tradefield = this.data.tradefield || ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         content.itemclassids = this.data.cType.itemclassid ? [this.data.cType.itemclassid] : []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         _Http.basic({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "id": 20220924163802, 
			 |