|
@@ -88,6 +88,10 @@
|
|
|
<a-button v-if="record.billState=='CANCEL'" size="small" type="link" class="button-error" @click.stop="handleDelete(record)">删除</a-button>
|
|
|
<a-button v-if="record.billState!='CANCEL'&&record.billState!='WAIT_CONFIRM'" size="small" type="link" class="button-primary" @click.stop="handlePrintSticker(record)">打印贴签</a-button>
|
|
|
</template>
|
|
|
+ <!-- 补货单号 -->
|
|
|
+ <template slot="replenishBillNo" slot-scope="text, record">
|
|
|
+ <span class="table-td-link" @click.stop="handleDetail(record)">{{ record.replenishBillNo }}</span>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
<!-- 确认 -->
|
|
|
<confirm-modal :openModal="openConfirmModal" :nowData="nowData" @ok="handleValidate" @close="handleCancel" />
|
|
@@ -105,6 +109,8 @@
|
|
|
<out-warehousing-modal :openModal="openOutWarehousingModal" :nowData="nowData" @ok="handleOutWarehousingOk" @close="handleCancel" />
|
|
|
<!-- 签收 -->
|
|
|
<put-warehousing-modal :openModal="openPutWarehousingModal" :nowData="nowData" @ok="handlePutWarehousingOk" @close="handleCancel" />
|
|
|
+ <!-- 详情 -->
|
|
|
+ <detailModal :openModal="openDetailModal" :nowData="nowData" @close="handleCancel" />
|
|
|
<!-- 生成补货单 -->
|
|
|
<creatReplenishmentOrder :openModal="openCreatRoModal" :nowData="nowData" @ok="resetSearchForm" @close="openCreatRoModal=false" />
|
|
|
</a-spin>
|
|
@@ -123,9 +129,10 @@ import stockModal from './stockModal.vue'
|
|
|
import printStickerModal from './printStickerModal.vue'
|
|
|
import outWarehousingModal from './outWarehousingModal.vue'
|
|
|
import putWarehousingModal from './putWarehousingModal.vue'
|
|
|
+import detailModal from './detailModal.vue'
|
|
|
import { shelfReplenishList, shelfReplenishDetailList, shelfReplenishCancel, shelfReplenishStateCount, shelfReplenishDetailStock, shelfReplenishConfirm, shelfReplenishDelete } from '@/api/shelfReplenish'
|
|
|
export default {
|
|
|
- components: { STable, VSelect, rangeDate, shelfSList, confirmModal, creatReplenishmentOrder, stockModal, printStickerModal, outWarehousingModal, putWarehousingModal },
|
|
|
+ components: { STable, VSelect, rangeDate, shelfSList, confirmModal, creatReplenishmentOrder, stockModal, printStickerModal, outWarehousingModal, putWarehousingModal, detailModal },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -153,7 +160,7 @@ export default {
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '补货单号', dataIndex: 'replenishBillNo', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '补货单号', dataIndex: 'replenishBillNo', scopedSlots: { customRender: 'replenishBillNo' }, width: '15%', align: 'center' },
|
|
|
{ title: '货架名称', dataIndex: 'shelfInfo.shelfName', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '状态', dataIndex: 'billStateDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '补货总量', dataIndex: 'totalConfirmQty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -211,6 +218,7 @@ export default {
|
|
|
openOutWarehousingModal: false,
|
|
|
openPutWarehousingModal: false,
|
|
|
openCreatRoModal: false,
|
|
|
+ openDetailModal: false,
|
|
|
validateType: 'confirm',
|
|
|
stockList: [],
|
|
|
paramsData: null
|
|
@@ -222,14 +230,10 @@ export default {
|
|
|
this.nowData = row
|
|
|
this.openConfirmModal = true
|
|
|
},
|
|
|
- // cancel
|
|
|
- handleCancel () {
|
|
|
- this.nowData = null
|
|
|
- this.openConfirmModal = false
|
|
|
- this.openStockModal = false
|
|
|
- this.openPrintStickerModal = false
|
|
|
- this.openOutWarehousingModal = false
|
|
|
- this.openPutWarehousingModal = false
|
|
|
+ // 补货详情
|
|
|
+ handleDetail (row) {
|
|
|
+ this.nowData = row
|
|
|
+ this.openDetailModal = true
|
|
|
},
|
|
|
// 库存不足 确认 ok
|
|
|
handleStockOk (type, params) {
|
|
@@ -252,9 +256,7 @@ export default {
|
|
|
this.openPrintStickerModal = true
|
|
|
},
|
|
|
// 打印贴签 ok
|
|
|
- handlePrintStickerOk () {
|
|
|
-
|
|
|
- },
|
|
|
+ handlePrintStickerOk () {},
|
|
|
// 出库
|
|
|
handleOutWarehousing (row) {
|
|
|
this.nowData = row
|
|
@@ -266,11 +268,21 @@ export default {
|
|
|
this.openOutWarehousingModal = false
|
|
|
this.queryByTypeSum(true)
|
|
|
},
|
|
|
+ // cancel
|
|
|
+ handleCancel () {
|
|
|
+ this.nowData = null
|
|
|
+ this.openConfirmModal = false
|
|
|
+ this.openStockModal = false
|
|
|
+ this.openPrintStickerModal = false
|
|
|
+ this.openOutWarehousingModal = false
|
|
|
+ this.openPutWarehousingModal = false
|
|
|
+ this.openDetailModal = false
|
|
|
+ },
|
|
|
handleValidate (type, params) {
|
|
|
- // this.spinning = true
|
|
|
if (type == 'confirm') { // 确认
|
|
|
this.confirmFun(params)
|
|
|
}
|
|
|
+ // this.spinning = true
|
|
|
// 校验产品库存是否足够
|
|
|
// shelfReplenishDetailStock(params).then(res => {
|
|
|
// if (res.status == 200) {
|