| 
					
				 | 
			
			
				@@ -334,7 +334,6 @@ import { getToken } from "@/util/auth"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { getPurchasePrice } from "@/api/basicData/fees" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  name: "detailsPage", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   props: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     detailData: Object 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -494,12 +493,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           const parentId = node.level === 0 ? 0 : node.data.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           getDeptLazyTree(parentId).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             resolve( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              res.data.data.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  ...item, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  leaf: !item.hasChildren 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                res.data.data.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ...item, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    leaf: !item.hasChildren 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -547,37 +546,29 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.contactsData = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  watch: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $route(to, from) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (this.detailData.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.form = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     queryData(id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.openFullScreen(false, "正在努力的加载..."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       detail(id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.form = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (this.form.corpNameList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.configuration.dicData = this.form.corpNameList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.form.corps = this.form.corps.split(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          // if (res.data.data.specialItemList) this.contactsData = res.data.data.specialItemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (res.data.data.presentItemList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.contactsDataBuyFree = res.data.data.presentItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.oldForm = Object.assign({}, this.form); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          // this.oldSpecialOffer = this.deepClone(this.contactsData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.oldBuyFree = this.deepClone(this.contactsDataBuyFree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          delete this.form.specialItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          delete this.form.presentItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.getItemdetail(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.openFullScreen(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.form = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (this.form.corpNameList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.configuration.dicData = this.form.corpNameList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.form.corps = this.form.corps.split(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // if (res.data.data.specialItemList) this.contactsData = res.data.data.specialItemList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (res.data.data.presentItemList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.contactsDataBuyFree = res.data.data.presentItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.oldForm = Object.assign({}, this.form); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.oldSpecialOffer = this.deepClone(this.contactsData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.oldBuyFree = this.deepClone(this.contactsDataBuyFree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            delete this.form.specialItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            delete this.form.presentItemList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.getItemdetail(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.openFullScreen(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getItemdetail() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.contactLoading = true; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -586,14 +577,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         size: this.contactPage.pageSize, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pid: this.form.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.contactsData = res.data.data.records; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.contactPage.total = res.data.data.total; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.customerContact.height = window.innerHeight - 240; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.contactLoading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.contactsData = res.data.data.records; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.contactPage.total = res.data.data.total; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.customerContact.height = window.innerHeight - 240; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.contactLoading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     currentChange(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.contactPage.currentPage = val; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -649,19 +640,19 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onLoad(page, params = {}) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.loading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getGoods(page.currentPage, page.pageSize, this.treeDeptId, params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          const data = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.page.total = data.total; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.goodsList = data.records; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (this.page.total) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.goodsOption.height = window.innerHeight - 400; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.goodsOption.height = window.innerHeight - 400; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const data = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.page.total = data.total; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.goodsList = data.records; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (this.page.total) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.goodsOption.height = window.innerHeight - 400; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.goodsOption.height = window.innerHeight - 400; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 确认导入商品 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     importGoods() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -919,19 +910,19 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: "warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          window.open( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            `/api/blade-mocha-item/salespolicy/export-sales-policy?${ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.website.tokenHeader 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }=${getToken()}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            type: "info", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            message: "已取消" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            window.open( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                `/api/blade-mocha-item/salespolicy/export-sales-policy?${ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.website.tokenHeader 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }=${getToken()}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          .catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type: "info", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              message: "已取消" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //文件上传时 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     uploading(event, file, fileList) { 
			 |