|
@@ -607,15 +607,15 @@ export default {
|
|
|
this.pConfiguration.dicData = this.form.purchaserName
|
|
|
if(res.data.data.itemsVOList){
|
|
|
this.contactsData = res.data.data.itemsVOList
|
|
|
- this.oldContactsData = res.data.data.itemsVOList
|
|
|
+ this.oldContactsData = this.deepClone(res.data.data.itemsVOList)
|
|
|
}
|
|
|
if(res.data.data.orderFeesList){
|
|
|
this.orderFeesList = res.data.data.orderFeesList
|
|
|
- this.oldFeesList = res.data.data.orderFeesList
|
|
|
+ this.oldFeesList = this.deepClone(res.data.data.orderFeesList)
|
|
|
}
|
|
|
if( res.data.data.orderFilesList){
|
|
|
this.orderFilesList = res.data.data.orderFilesList
|
|
|
- this.oldFilesList = res.data.data.orderFilesList
|
|
|
+ this.oldFilesList = this.deepClone(res.data.data.orderFilesList)
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
@@ -688,15 +688,15 @@ export default {
|
|
|
this.pConfiguration.dicData = this.form.purchaserName
|
|
|
if(res.data.data.itemsVOList){
|
|
|
this.contactsData = res.data.data.itemsVOList
|
|
|
- this.oldContactsData = res.data.data.itemsVOList
|
|
|
+ this.oldContactsData = this.deepClone(res.data.data.itemsVOList)
|
|
|
}
|
|
|
if(res.data.data.orderFeesList){
|
|
|
this.orderFeesList = res.data.data.orderFeesList
|
|
|
- this.oldFeesList = res.data.data.orderFeesList
|
|
|
+ this.oldFeesList = this.deepClone(res.data.data.orderFeesList)
|
|
|
}
|
|
|
if( res.data.data.orderFilesList){
|
|
|
this.orderFilesList = res.data.data.orderFilesList
|
|
|
- this.oldFilesList = res.data.data.orderFilesList
|
|
|
+ this.oldFilesList = this.deepClone(res.data.data.orderFilesList)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1036,17 +1036,25 @@ export default {
|
|
|
this.$message.success('发货成功')
|
|
|
},
|
|
|
backToList() {
|
|
|
- if(contrastObj(this.form,this.oldform) || contrastList(this.orderFeesList,this.olddata)){
|
|
|
- this.$confirm("是否保存当前页面?", "提示", {
|
|
|
- confirmButtonText: "保存",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }).then(() => {
|
|
|
- this.editCustomer(true)
|
|
|
- })
|
|
|
- }else{
|
|
|
- this.$emit("goBack");
|
|
|
- }
|
|
|
+ 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");
|
|
|
+ // }
|
|
|
},
|
|
|
}
|
|
|
}
|