This commit is contained in:
bb_pan 2025-12-18 09:38:26 +08:00
parent 724c9b9008
commit a14d026b81
1 changed files with 30 additions and 4 deletions

View File

@ -230,7 +230,7 @@
:title="title"
:visible.sync="open"
v-if="open"
width="1000px"
width="60%"
append-to-body
>
<el-form
@ -333,11 +333,30 @@
show-overflow-tooltip
/>
<el-table-column
label="数量"
label="验收数量"
align="center"
prop="checkNum"
show-overflow-tooltip
/>
<el-table-column
label="入库数量"
align="center"
prop="inputNum"
show-overflow-tooltip
width="140"
>
<template slot-scope="{ row }">
<el-input-number
v-model="row.inputNum"
:controls="false"
:min="0"
:max="row.checkNum"
:precision="0"
:disabled="!showHandle"
style="width: 100%"
/>
</template>
</el-table-column>
<el-table-column
label="编号"
align="center"
@ -673,6 +692,9 @@ export default {
this.detailTableList = response.data.rows
this.dialogTotal = response.data.total
this.loading = false
this.detailTableList.forEach(item => {
item.inputNum = item.checkNum
})
}).catch(() => {
this.loading = false
})
@ -733,7 +755,8 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
// this.reset();
this.query.pageNum = 1
this.query.pageSize = 10
this.query.taskId = row.taskId
this.query.dictName = undefined
this.getDialogTable()
@ -755,7 +778,7 @@ export default {
let obj = {
taskId: this.query.taskId,
maId: row.maId,
inputNum: row.checkNum,
inputNum: row.inputNum,
maCode: row.maCode,
typeId: row.typeId,
num: row.num,
@ -888,6 +911,9 @@ export default {
},
//
handleView(row) {
this.query.pageNum = 1
this.query.pageSize = 10
this.query.dictName = null
this.query.taskId = row.taskId
this.getDialogTable()
this.open = true