|
@@ -252,6 +252,7 @@ import {
|
|
|
} from "@/api/basicData/customerInquiry";
|
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
import { isDiscount, isPercentage, micrometerFormat } from "@/util/validate";
|
|
|
+import { contrastObj,contrastList } from "@/util/contrastData";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
name: "detailsPageEdit",
|
|
@@ -457,7 +458,9 @@ export default {
|
|
|
goodsList: [],
|
|
|
selectionList: [],
|
|
|
treeDeptId: null,
|
|
|
- orderFeesList: []
|
|
|
+ orderFeesList: [],
|
|
|
+ oldform: {},
|
|
|
+ olddata:[]
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
@@ -643,7 +646,9 @@ export default {
|
|
|
getDetail(id) {
|
|
|
detail(id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.oldform = res.data.data;
|
|
|
this.data = res.data.data.orderItemsList;
|
|
|
+ this.olddata= this.deepClone(res.data.data.orderFeesList);
|
|
|
this.orderFeesList = res.data.data.orderFeesList;
|
|
|
this.configuration.dicData = this.form.corpName;
|
|
|
});
|
|
@@ -673,8 +678,10 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message.success(this.form.id ? "修改成功" : "提交成功");
|
|
|
this.form = res.data.data;
|
|
|
+ this.oldform = res.data.data;
|
|
|
this.data = res.data.data.orderItemsList;
|
|
|
this.orderFeesList = res.data.data.orderFeesList;
|
|
|
+ this.olddata= this.deepClone(res.data.data.orderFeesList);
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
@@ -684,7 +691,10 @@ export default {
|
|
|
},
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
- this.$emit("goBack");
|
|
|
+ console.log(contrastObj(this.form,this.oldform))
|
|
|
+
|
|
|
+ console.log(contrastList(this.orderFeesList,this.olddata))
|
|
|
+ // this.$emit("goBack");
|
|
|
},
|
|
|
openReport() {
|
|
|
this.switchDialog = !this.switchDialog;
|