|
@@ -61,7 +61,7 @@
|
|
|
|
|
|
<script>
|
|
|
import carNo from '@/components/carNo.vue'
|
|
|
- import { getShelfTempBillList, shelfGetTotalWaitQty } from '@/api/shelf.js'
|
|
|
+ import { getShelfTempBillList, shelfGetTotalWaitQty, shelfTempTotalWaitQty } from '@/api/shelf.js'
|
|
|
import moment from 'moment'
|
|
|
export default {
|
|
|
components: {carNo},
|
|
@@ -123,6 +123,8 @@
|
|
|
this.total = 0
|
|
|
this.pageNo = 1
|
|
|
this.getRow()
|
|
|
+ // 获取总条数
|
|
|
+ this.getWaitTotal()
|
|
|
},
|
|
|
// tabs通知swiper切换
|
|
|
tabsChange(index) {
|
|
@@ -192,9 +194,6 @@
|
|
|
_this.list = res.data.list || []
|
|
|
}
|
|
|
_this.total = res.data.count || 0
|
|
|
- if(this.current == 0){
|
|
|
- _this.tabList[0].count = _this.total
|
|
|
- }
|
|
|
} else {
|
|
|
_this.list = []
|
|
|
_this.total = 0
|
|
@@ -209,6 +208,11 @@
|
|
|
url: "/pages/digitalShelf/tempOrderList/orderDetail?orderSn="+item.tempSn
|
|
|
})
|
|
|
},
|
|
|
+ // 获取待取货数量
|
|
|
+ async getWaitTotal(){
|
|
|
+ const ret = await shelfTempTotalWaitQty({billStateList:['WAIT_AUDIT','AUDIT_REJECT','WAIT_OUT_WAREHOUSE']}).then(res => res.data)
|
|
|
+ this.tabList[1].count = ret || 0
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|