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