|
@@ -28,16 +28,16 @@
|
|
|
:pagination="false"
|
|
|
bordered>
|
|
|
<!-- 调回数量 -->
|
|
|
- <template slot="outQty" slot-scope="text, record">
|
|
|
+ <template slot="confirmQty" slot-scope="text, record">
|
|
|
<a-input-number
|
|
|
size="small"
|
|
|
- id="shelfMonitoring-add-outQty"
|
|
|
- v-model="record.outQty"
|
|
|
+ id="shelfMonitoring-add-confirmQty"
|
|
|
+ v-model="record.confirmQty"
|
|
|
:precision="0"
|
|
|
:min="0"
|
|
|
:max="record.qty"
|
|
|
placeholder="请输入"
|
|
|
- :style="{width: '100%', color: record.outQty==0 ? 'red': ''}" />
|
|
|
+ :style="{width: '100%', color: record.confirmQty==0 ? 'red': ''}" />
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record, index">
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
{ title: '当前库存', dataIndex: 'qty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '最大库容', dataIndex: 'maxQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '滞销天数', dataIndex: 'unsalableDays', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '调货数量', scopedSlots: { customRender: 'outQty' }, width: '10%', align: 'center' },
|
|
|
+ { title: '调货数量', scopedSlots: { customRender: 'confirmQty' }, width: '10%', align: 'center' },
|
|
|
{ title: '单位', dataIndex: 'productUnit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
|
],
|
|
@@ -103,11 +103,13 @@ export default {
|
|
|
const arr = []
|
|
|
const arrInd = []
|
|
|
this.listData.map((item, index) => {
|
|
|
- if (item.outQty) {
|
|
|
+ if (item.confirmQty) {
|
|
|
arr.push({
|
|
|
+ shelfSn: this.nowData && this.nowData.shelfInfo && this.nowData.shelfInfo.shelfSn,
|
|
|
shelfPlaceSn: item.shelfPlaceSn,
|
|
|
productSn: item.productSn,
|
|
|
- qty: item.outQty
|
|
|
+ productCode: item.productCode,
|
|
|
+ qty: item.confirmQty
|
|
|
})
|
|
|
} else {
|
|
|
arrInd.push(index + 1)
|
|
@@ -151,7 +153,7 @@ export default {
|
|
|
if (this.nowData && this.nowData.list) {
|
|
|
this.nowData.list.map((item, index) => {
|
|
|
item.no = index + 1
|
|
|
- item.outQty = item.qty
|
|
|
+ item.confirmQty = item.qty
|
|
|
})
|
|
|
}
|
|
|
this.listData = JSON.parse(JSON.stringify(this.nowData && this.nowData.list || []))
|