|
@@ -189,7 +189,14 @@ export default {
|
|
|
{ title: '单位', dataIndex: 'product.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
],
|
|
|
listData: [],
|
|
|
- tabPaneData: [],
|
|
|
+ tabPaneData: [
|
|
|
+ { bizName: '全部', bizType: 'ALL', countNum: 0 },
|
|
|
+ { bizName: '待确认', bizType: 'WAIT_CONFIRM', countNum: 0 },
|
|
|
+ { bizName: '待出库', bizType: 'WAIT_OUT_STOCK', countNum: 0 },
|
|
|
+ { bizName: '待签收', bizType: 'WAIT_CHECK', countNum: 0 },
|
|
|
+ { bizName: '已完成', bizType: 'FINISH', countNum: 0 },
|
|
|
+ { bizName: '已取消', bizType: 'CANCEL', countNum: 0 }
|
|
|
+ ],
|
|
|
nowData: null,
|
|
|
openConfirmModal: false,
|
|
|
openStockModal: false,
|
|
@@ -389,11 +396,9 @@ export default {
|
|
|
// 选择类型
|
|
|
handleTabChange (key) {
|
|
|
this.expandedRowKeys = []
|
|
|
- setTimeout(() => {
|
|
|
- this.queryParam.bizType = key
|
|
|
- this.$refs.table.refresh(true)
|
|
|
- this.curBizType = key
|
|
|
- }, 100)
|
|
|
+ this.queryParam.bizType = key
|
|
|
+ this.curBizType = key
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 客户 change
|
|
|
custChange (obj) {
|
|
@@ -405,20 +410,12 @@ export default {
|
|
|
delete params.bizType
|
|
|
shelfReplenishStateCount(params).then(res => {
|
|
|
if (res.data && res.status == 200) {
|
|
|
- this.tabPaneData = [
|
|
|
- { bizName: '全部', bizType: 'ALL', countNum: 0 },
|
|
|
- { bizName: '待确认', bizType: 'WAIT_CONFIRM', countNum: 0 },
|
|
|
- { bizName: '待出库', bizType: 'WAIT_OUT_STOCK', countNum: 0 },
|
|
|
- { bizName: '待签收', bizType: 'WAIT_CHECK', countNum: 0 },
|
|
|
- { bizName: '已完成', bizType: 'FINISH', countNum: 0 },
|
|
|
- { bizName: '已取消', bizType: 'CANCEL', countNum: 0 }
|
|
|
- ]
|
|
|
- this.queryParam.bizType = 'ALL'
|
|
|
this.tabPaneData[1].countNum = res.data.WAIT_CONFIRM || 0
|
|
|
this.tabPaneData[2].countNum = res.data.WAIT_OUT_STOCK || 0
|
|
|
this.tabPaneData[3].countNum = res.data.WAIT_CHECK || 0
|
|
|
this.tabPaneData[4].countNum = res.data.FINISH || 0
|
|
|
this.tabPaneData[5].countNum = res.data.CANCEL || 0
|
|
|
+ this.queryParam.bizType = this.curBizType
|
|
|
this.$refs.table.refresh(true)
|
|
|
}
|
|
|
})
|