| 
					
				 | 
			
			
				@@ -602,7 +602,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let id = this.detailData.id.replace(/\"/g, "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       detailListData(id).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.oldForm = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.oldForm = Object.assign({},res.data.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.configuration.dicData = this.form.corpsName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.pConfiguration.dicData = this.form.purchaserName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(res.data.data.itemsVOList){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -683,7 +683,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message.success("操作成功!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               detailListData(this.form.id).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.form = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.oldForm = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.oldForm = Object.assign({},res.data.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.configuration.dicData = this.form.corpsName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.pConfiguration.dicData = this.form.purchaserName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(res.data.data.itemsVOList){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -726,25 +726,51 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.editCustomer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           list.push(this.selectContact[item].$index) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        id:this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        orderItemIds:list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(type){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$router.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          path: "/financialManagement/payment", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          query: {params: params}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$router.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          path: "/importTrade/receipt/index", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          query: {params: params}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          id:this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          orderItemIds:list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(type){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //进入付款管理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if(this.$store.getters.goStatus){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$alert("付款页面已存在,请保存付款页面再进行操作", "温馨提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type: 'warning', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              callback: action => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.log(action) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$router.$avueRouter.closeTag('/financialManagement/payment'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$router.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              path: "/financialManagement/payment", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              query: {params: params}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //进入收货单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if(this.$store.getters.goStatus){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$alert("收货单页面已存在,请保存收货单再进行操作", "温馨提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type: 'warning', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              callback: action => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.log(action) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //关闭一下存在的列表页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$router.$avueRouter.closeTag('/importTrade/receipt/index'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$router.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              path: "/importTrade/receipt/index", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              query: {params: params}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //选择货物品种 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1031,30 +1057,20 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.dialogCost = !this.dialogCost 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.choiceData = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 发货 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    sendHandle() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$message.success('发货成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     backToList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(this.form) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(this.oldForm) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(contrastObj(this.form,this.oldForm)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // console.log(contrastList(this.contactsData,this.oldContactsData)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // console.log(contrastList(this.orderFeesList,this.oldFeesList)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // console.log(contrastList(this.orderFilesList,this.oldFilesList)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // if(contrastObj(this.form,this.oldForm) || contrastList(this.contactsData,this.oldContactsData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // || contrastList(this.orderFeesList,this.oldFeesList) || contrastList(this.orderFilesList,this.oldFilesList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   this.$confirm("是否保存当前页面?", "提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     confirmButtonText: "保存", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     type: "warning", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //     this.editCustomer(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   this.$emit("goBack"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(contrastObj(this.form,this.oldForm) || contrastList(this.contactsData,this.oldContactsData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      || contrastList(this.orderFeesList,this.oldFeesList) || contrastList(this.orderFilesList,this.oldFilesList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$confirm("是否保存当前页面?", "提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          confirmButtonText: "保存", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type: "warning", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.editCustomer(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$emit("goBack"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |