This commit is contained in:
bb_pan 2025-12-18 15:12:23 +08:00
parent 34af59a297
commit 4cff4fadce
1 changed files with 10 additions and 5 deletions

View File

@ -347,14 +347,15 @@
>
<template slot-scope="{ row }">
<el-input-number
v-if="row.status == 0 || row.status == 3"
v-model="row.inputNum"
:controls="false"
:min="0"
:min="1"
:max="row.checkNum"
:precision="0"
:disabled="!showHandle || row.status == 1"
style="width: 100%"
/>
<span v-else>{{ row.inputNum }}</span>
</template>
</el-table-column>
<el-table-column
@ -699,7 +700,11 @@ export default {
this.loading = false
if (this.showHandle) {
this.detailTableList.forEach(item => {
item.inputNum = item.inputNum ? item.inputNum : item.checkNum
if (item.status == 2) {
item.inputNum = 0
} else {
item.inputNum = item.inputNum ? item.inputNum : item.checkNum
}
})
}
}).catch(() => {
@ -875,7 +880,7 @@ export default {
taskId: this.query.taskId,
maId: row.maId,
maCode: row.maCode,
inputNum: row.inputNum,
inputNum: 0,
typeId: row.typeId,
}
@ -921,7 +926,7 @@ export default {
item.taskId = this.query.taskId
item.typeId = item.typeId
item.maId = item.maId
item.inputNum = item.inputNum
item.inputNum = 0
item.maCode = item.maCode
})
let param = {