Commit 2611d0c0 authored by jingnan's avatar jingnan 👀

第三联背面计算时清除数据为联动修改bug处理

parent bc4abd3a
...@@ -257,20 +257,20 @@ export default { ...@@ -257,20 +257,20 @@ export default {
}, },
lossValue: { lossValue: {
handler(v) { handler(v) {
if (v) { // if (v) {
this.form.lossValue = v this.form.lossValue = v
if (this.form.subMaterialLossValue) { // if (this.form.subMaterialLossValue) {
this.form.totalLossValue = Number(v) + Number(this.form.subMaterialLossValue) this.form.totalLossValue = Number(v) + Number(this.form.subMaterialLossValue)
} // }
} // }
}, },
deep: true deep: true
}, },
'form.subMaterialLossValue': { 'form.subMaterialLossValue': {
handler(v) { handler(v) {
if (v && this.lossValue) { // if (v && this.lossValue) {
this.form.totalLossValue = Number(v) + Number(this.lossValue) this.form.totalLossValue = Number(v) + Number(this.lossValue)
} // }
}, },
deep: true deep: true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment