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