Commit bf168d02 authored by Facius's avatar Facius

完工页面配件组件的datavalue为空时候的处理

parent ce3dbf48
...@@ -71,7 +71,8 @@ ...@@ -71,7 +71,8 @@
}, },
methods: { methods: {
getWorkOrderParts() { getWorkOrderParts() {
this.lists = JSON.parse(this.dataValue) || [] // this.lists = JSON.parse(this.dataValue) || []
this.lists = this.dataValue ? JSON.parse(this.dataValue) : []
}, },
partsChange(val, index) { partsChange(val, index) {
this.$set(this.lists[index], 'quantity', val) this.$set(this.lists[index], 'quantity', val)
......
...@@ -688,7 +688,7 @@ ...@@ -688,7 +688,7 @@
if (innerItem.fieldsName === 'pipe' || innerItem.fieldsName === 'pipeUseLength') { // 申请费用计算 if (innerItem.fieldsName === 'pipe' || innerItem.fieldsName === 'pipeUseLength') { // 申请费用计算
this.calcMoney() this.calcMoney()
} }
console.log("this.form", this.form) // console.log("this.form", this.form)
}, },
// 申请费用计算 // 申请费用计算
......
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