|
@@ -402,6 +402,11 @@ export default {
|
|
|
span: 8
|
|
|
},
|
|
|
{
|
|
|
+ label: "采购订单号",
|
|
|
+ prop: "orderNo",
|
|
|
+ span: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "币别",
|
|
|
prop: "currency",
|
|
|
span: 8,
|
|
@@ -420,6 +425,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
label: "汇率",
|
|
|
prop: "exchangeRate",
|
|
@@ -522,7 +528,13 @@ export default {
|
|
|
orderItemIds: [],
|
|
|
itemtypeList: [],
|
|
|
goodsSelections: [],
|
|
|
- reData: null
|
|
|
+ reData: null,
|
|
|
+ oldform: {
|
|
|
+ orderStatus: "录入"
|
|
|
+ },
|
|
|
+ olddata: [],
|
|
|
+ oldorderFeesList: [],
|
|
|
+ oldorderFilesList: []
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
@@ -572,11 +584,6 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
- if (this.detailData.pageType == "new") {
|
|
|
- getSysNo().then(res => {
|
|
|
- this.form.sysNo = res.data.data;
|
|
|
- });
|
|
|
- }
|
|
|
this.getWorkDicts("product_properties").then(res => {
|
|
|
this.findObject(this.tableOption.column, "itemProp").dicData =
|
|
|
res.data.data;
|
|
@@ -762,10 +769,20 @@ export default {
|
|
|
? res.data.data.orderFilesList
|
|
|
: [];
|
|
|
this.configuration.dicData = this.form.corpsName;
|
|
|
+ this.oldform = res.data.data;
|
|
|
+ this.olddata = this.deepClone(
|
|
|
+ res.data.data.itemsVOList ? res.data.data.itemsVOList : []
|
|
|
+ );
|
|
|
+ this.oldorderFeesList = this.deepClone(
|
|
|
+ res.data.data.orderFeesList ? res.data.data.orderFeesList : []
|
|
|
+ );
|
|
|
+ this.oldorderFilesList = this.deepClone(
|
|
|
+ res.data.data.orderFilesList ? res.data.data.orderFilesList : []
|
|
|
+ );
|
|
|
});
|
|
|
},
|
|
|
//修改提交触发
|
|
|
- editCustomer() {
|
|
|
+ editCustomer(status) {
|
|
|
this.$refs["form"].validate((valid, done) => {
|
|
|
done();
|
|
|
if (valid) {
|
|
@@ -792,6 +809,9 @@ export default {
|
|
|
}).then(res => {
|
|
|
this.$message.success(this.form.id ? "修改成功" : "提交成功");
|
|
|
this.getDetail(res.data.data);
|
|
|
+ if (status == "goBack") {
|
|
|
+ this.$emit("goBack");
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
return false;
|
|
@@ -800,7 +820,28 @@ export default {
|
|
|
},
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
- this.$emit("goBack");
|
|
|
+ let orderFeesList = this.$refs.feeInfo.submitData();
|
|
|
+ let orderFilesList = this.$refs.uploadFile.submitData();
|
|
|
+ if (
|
|
|
+ contrastObj(this.form, this.oldform) ||
|
|
|
+ contrastList(this.data, this.olddata) ||
|
|
|
+ contrastList(orderFeesList, this.oldorderFeesList) ||
|
|
|
+ contrastList(orderFilesList, this.oldorderFilesList)
|
|
|
+ ) {
|
|
|
+ this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.editCustomer("goBack");
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$emit("goBack");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$emit("goBack");
|
|
|
+ }
|
|
|
},
|
|
|
openReport() {
|
|
|
this.switchDialog = !this.switchDialog;
|