|
@@ -87,7 +87,7 @@
|
|
|
width="160"
|
|
|
label="请选择数量">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input-number v-model="scope.row.planCntUser" :min="0" :max="Number(scope.row.undeliveredCnt)" style="width: 140px;"/>
|
|
|
+ <el-input-number v-model="scope.row.planCntUser" :min="0" :max="scope.row.minCnt" style="width: 140px;"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -153,7 +153,10 @@
|
|
|
this.dataForm = data.data
|
|
|
if (data.data.whTemplateItemPlanList) {
|
|
|
data.data.whTemplateItemPlanList.forEach((item) => {
|
|
|
- this.dataList.push(item)
|
|
|
+ this.dataList.push({
|
|
|
+ ...item,
|
|
|
+ minCnt: Math.min(item.cnt, item.undeliveredCnt)
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
}
|