|
@@ -1930,6 +1930,14 @@ export default {
|
|
|
this.oldExchange = this.deepClone(this.form.exchangeRate);
|
|
|
if (status == "goBack") {
|
|
|
this.$emit("goBack");
|
|
|
+ this.leaveDetailsKey(this.$route.name);
|
|
|
+ }
|
|
|
+ if (this.form.id) {
|
|
|
+ this.unLock({
|
|
|
+ moduleName: "xs",
|
|
|
+ tableName: "business_order",
|
|
|
+ billId: this.form.id
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|
|
@@ -2008,9 +2016,11 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$emit("goBack");
|
|
|
+ this.leaveDetailsKey(this.$route.name);
|
|
|
});
|
|
|
} else {
|
|
|
this.$emit("goBack");
|
|
|
+ this.leaveDetailsKey(this.$route.name);
|
|
|
}
|
|
|
},
|
|
|
openReport() {
|
|
@@ -2079,8 +2089,20 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
openEdit() {
|
|
|
- this.detailData.status = 2;
|
|
|
- this.option = this.$options.data().option;
|
|
|
+ const data = {
|
|
|
+ moduleName: "xs",
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
async saveColumn() {
|
|
|
const inSave = await this.saveColumnData(
|