|
@@ -35,9 +35,9 @@
|
|
|
v-model="record.confirmQty"
|
|
|
:precision="0"
|
|
|
:min="0"
|
|
|
- :max="record.qty"
|
|
|
+ :max="record.recallBillQty? record.qty - record.recallBillQty :record.qty"
|
|
|
placeholder="请输入"
|
|
|
- :style="{width: '100%', color: record.confirmQty==0 ? 'red': ''}" />
|
|
|
+ :style="{width: '100%', color: record.confirmQty<=0 ? 'red': ''}" />
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record, index">
|
|
@@ -87,8 +87,9 @@ export default {
|
|
|
{ title: '货位号', dataIndex: 'shelfPlaceCode', width: '16%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'productName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { 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: 'recallBillQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '当前库存', dataIndex: 'qty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '最大库容', dataIndex: 'maxQty', width: '10%', 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: 'confirmQty' }, width: '10%', align: 'center' },
|
|
|
{ title: '单位', dataIndex: 'productUnit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -149,11 +150,11 @@ export default {
|
|
|
this.nowData.list.map((item, index) => {
|
|
|
params.push(item.shelfProductSn)
|
|
|
})
|
|
|
- shelfControlList({ shelfProductSnList: params }).then(res => {
|
|
|
+ shelfControlList({ shelfProductSnList: params, shelfSn: this.nowData.shelfInfo.shelfSn }).then(res => {
|
|
|
if (res.status == 200 && res.data) {
|
|
|
res.data.map((item, index) => {
|
|
|
item.no = index + 1
|
|
|
- item.confirmQty = item.qty
|
|
|
+ item.confirmQty = item.recallBillQty ? item.qty - item.recallBillQty : item.qty
|
|
|
})
|
|
|
this.listData = res.data
|
|
|
}
|