代码优化
This commit is contained in:
parent
9ddbbacb1e
commit
2d3dae3fce
|
|
@ -323,7 +323,7 @@
|
||||||
>
|
>
|
||||||
<span>供应商:</span
|
<span>供应商:</span
|
||||||
><span v-if="printTableData.length > 0">{{
|
><span v-if="printTableData.length > 0">{{
|
||||||
printTableData[0].supplier
|
supplierStr
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -493,6 +493,8 @@ export default {
|
||||||
openPrint: false,
|
openPrint: false,
|
||||||
printData: {},
|
printData: {},
|
||||||
printTableData: [],
|
printTableData: [],
|
||||||
|
// 供应商
|
||||||
|
supplierStr: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -604,6 +606,11 @@ export default {
|
||||||
getAcceptanceForm({ taskId: taskId }).then((response) => {
|
getAcceptanceForm({ taskId: taskId }).then((response) => {
|
||||||
this.printData = response.data
|
this.printData = response.data
|
||||||
this.printTableData = response.data.checkDetailsList
|
this.printTableData = response.data.checkDetailsList
|
||||||
|
let supplierStr = ''
|
||||||
|
this.printTableData.forEach((e) => {
|
||||||
|
supplierStr += e.supplier + ','
|
||||||
|
})
|
||||||
|
this.supplierStr = supplierStr.slice(0, -1)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查看验收单
|
//查看验收单
|
||||||
|
|
|
||||||
Reference in New Issue