|
@@ -1774,7 +1774,16 @@ export default {
|
|
|
);
|
|
|
this.oldExchange = this.deepClone(this.form.exchangeRate);
|
|
|
if (status == "goBack") {
|
|
|
+ if (this.form.id) {
|
|
|
+ this.unLock({
|
|
|
+ moduleName: "bj",
|
|
|
+ tableName: "business_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ billNo: this.form.orgOrderNo,
|
|
|
+ });
|
|
|
+ }
|
|
|
this.$emit("goBack");
|
|
|
+ this.leaveDetailsKey(this.$route.name);
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -1803,10 +1812,28 @@ export default {
|
|
|
this.editCustomer("goBack");
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ if (this.form.id) {
|
|
|
+ this.unLock({
|
|
|
+ moduleName: "bj",
|
|
|
+ tableName: "business_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ billNo: this.form.orgOrderNo,
|
|
|
+ });
|
|
|
+ }
|
|
|
this.$emit("goBack");
|
|
|
+ this.leaveDetailsKey(this.$route.name);
|
|
|
});
|
|
|
} else {
|
|
|
+ if (this.form.id) {
|
|
|
+ this.unLock({
|
|
|
+ moduleName: "bj",
|
|
|
+ tableName: "business_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ billNo: this.form.orgOrderNo,
|
|
|
+ });
|
|
|
+ }
|
|
|
this.$emit("goBack");
|
|
|
+ this.leaveDetailsKey(this.$route.name);
|
|
|
}
|
|
|
},
|
|
|
openReport() {
|
|
@@ -1861,22 +1888,27 @@ export default {
|
|
|
return sums;
|
|
|
},
|
|
|
openEdit() {
|
|
|
- // const data = {
|
|
|
- // // moduleName: "bj",
|
|
|
- // // tableName: "business_order",
|
|
|
- // billId: this.form.id,
|
|
|
- // no: localStorage.getItem('browserID')
|
|
|
- // };
|
|
|
- // this.saveLoading = true;
|
|
|
- // this.checkLock(data).then(res => {
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // this.onLock(data).then(response => {});
|
|
|
- // this.detailData.status = 2;
|
|
|
- // this.option = this.$options.data().option;
|
|
|
- // }
|
|
|
- // });
|
|
|
- this.detailData.status = 2;
|
|
|
+ const data = {
|
|
|
+ moduleName: "bj",
|
|
|
+ tableName: "business_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ no: localStorage.getItem("browserID"),
|
|
|
+ billNo: this.form.orgOrderNo,
|
|
|
+ };
|
|
|
+ this.inDetailsKey(this.$route.name, {
|
|
|
+ moduleName: "bj",
|
|
|
+ tableName: "business_order",
|
|
|
+ billId: this.form.id,
|
|
|
+ billNo: this.form.orgOrderNo,
|
|
|
+ });
|
|
|
+ this.saveLoading = true;
|
|
|
+ this.checkLock(data).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.onLock(data);
|
|
|
+ this.detailData.status = 2;
|
|
|
this.option = this.$options.data().option;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
async saveColumn() {
|
|
|
const inSave = await this.saveColumnData(
|