|
@@ -478,6 +478,7 @@ import {
|
|
|
} from "@/api/basicData/basicFeesDesc";
|
|
|
import _ from "lodash";
|
|
|
import option from "./configuration/mainList.json";
|
|
|
+import { contrastObj, contrastList } from "@/util/contrastData";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
@@ -999,6 +1000,12 @@ export default {
|
|
|
// 费用信息排序的最大值
|
|
|
maxFeeNum: 0,
|
|
|
maxGoodsNum: 0,
|
|
|
+ oldForm: {
|
|
|
+ orderStatus: "录入"
|
|
|
+ },
|
|
|
+ oldGoodsList: [],
|
|
|
+ oldFeesList: [],
|
|
|
+ oldUploadList: [],
|
|
|
}
|
|
|
},
|
|
|
//初始化查询
|
|
@@ -1099,6 +1106,10 @@ export default {
|
|
|
return b > a? b: a;
|
|
|
})
|
|
|
}
|
|
|
+ this.oldForm = Object.assign({}, this.form)
|
|
|
+ this.oldGoodsList = this.oldGoodsList.concat(this.contactsData)
|
|
|
+ this.oldFeesList = this.oldFeesList.concat(this.advantageProjectData)
|
|
|
+ this.oldUploadList = this.oldUploadList.concat(this.bankOfDepositData)
|
|
|
if (isCopy) {
|
|
|
this.$set(this.form, 'orderStatus', '录入')
|
|
|
delete this.form.id
|
|
@@ -1650,20 +1661,23 @@ export default {
|
|
|
},
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
- this.$confirm("是否保存当前页面?", "提示", {
|
|
|
- confirmButtonText: "保存",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }).then(() => {
|
|
|
- this.editCustomer(true)
|
|
|
- }).catch(() => {
|
|
|
- // this.$router.$avueRouter.closeTag();
|
|
|
- // this.$router.push({
|
|
|
- // path: '/businessManagement/salesOrder/index',
|
|
|
- // query: {}
|
|
|
- // });
|
|
|
+ if (contrastObj(this.form, this.oldForm) ||
|
|
|
+ contrastList(this.contactsData, this.oldGoodsList) ||
|
|
|
+ contrastList(this.advantageProjectData, this.oldFeesList) ||
|
|
|
+ contrastList(this.bankOfDepositData, this.oldUploadList)
|
|
|
+ ) {
|
|
|
+ this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ this.editCustomer(true)
|
|
|
+ }).catch(() => {
|
|
|
+ this.$emit("goBack");
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.$emit("goBack");
|
|
|
- })
|
|
|
+ }
|
|
|
},
|
|
|
// 保存列设置
|
|
|
async saveColumn(name) {
|