代码优化

This commit is contained in:
BianLzhaoMin 2024-08-20 11:22:47 +08:00
parent 9ddbbacb1e
commit 2d3dae3fce
1 changed files with 8 additions and 1 deletions

View File

@ -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)
})
},
//