|
@@ -620,11 +620,11 @@
|
|
|
}
|
|
|
|
|
|
// 如果有id解锁,没有跳过
|
|
|
- this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
|
|
|
+ // this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
|
|
|
saveOrEdit(params).then(res=>{
|
|
|
this.$message.success("操作成功!")
|
|
|
- this.detailData.disabled = true
|
|
|
- this.editDisable = true
|
|
|
+ // this.detailData.disabled = true
|
|
|
+ // this.editDisable = true
|
|
|
this.afterEcho(res.data.data)
|
|
|
}).finally(()=>{
|
|
|
this.buttonLoading = false
|
|
@@ -699,12 +699,12 @@
|
|
|
}).then(() => {
|
|
|
this.saveSettlement()
|
|
|
}).catch(()=>{
|
|
|
- this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
|
|
|
+ !this.editDisable && this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
|
|
|
this.$emit("goBack");
|
|
|
this.leaveDetailsKey(this.$route.name)
|
|
|
})
|
|
|
}else{
|
|
|
- this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
|
|
|
+ !this.editDisable && this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
|
|
|
this.$emit("goBack");
|
|
|
this.leaveDetailsKey(this.$route.name)
|
|
|
}
|
|
@@ -739,6 +739,11 @@
|
|
|
if (res.data.code == 200) {
|
|
|
this.onLock(data).then(response => {
|
|
|
})
|
|
|
+ this.inDetailsKey(this.$route.name, {
|
|
|
+ moduleName: 'sf',
|
|
|
+ tableName: 'finance_settlement',
|
|
|
+ billId: this.form.id,
|
|
|
+ })
|
|
|
this.detailData.disabled = false;
|
|
|
this.editDisable = false;
|
|
|
this.buttonLoading = true
|