|
|
@@ -11,14 +11,21 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="nav_box rx-sc" v-if='tabType == 1'>
|
|
|
- <view class="nav_item " :class="{active: pickStatus == 0}" @click="handNav(0)">未领料</view>
|
|
|
- <view class="nav_item" :class="{active: pickStatus == 1}" @click="handNav(1)">已领料</view>
|
|
|
+ <view class="nav_item " :class="{active: pickStatus == 0}" @click="handNav(0)">未领料({{navObj.unclaimedQuantity}})</view>
|
|
|
+ <view class="nav_item" :class="{active: pickStatus == 1}" @click="handNav(1)">已领料({{navObj.claimedQuantity}})</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="list_box">
|
|
|
<u-list @scrolltolower="scrolltolower" v-if="tabType == 1">
|
|
|
- <pickCard :list="dataList"> </pickCard>
|
|
|
+ <pickCard v-if='dataList.length' :list="dataList"> </pickCard>
|
|
|
+
|
|
|
+
|
|
|
+ <view v-else style='margin-top: 20vh;'>
|
|
|
+ <u-empty iconSize='150' textSize='32' text='暂无工单'>
|
|
|
+ </u-empty>
|
|
|
+ </view>
|
|
|
+
|
|
|
</u-list>
|
|
|
|
|
|
</view>
|
|
|
@@ -43,6 +50,8 @@
|
|
|
import {
|
|
|
workorderPage
|
|
|
} from '@/api/pda/workOrder.js'
|
|
|
+
|
|
|
+ import { pickStatistics } from '@/api/pda/picking.js'
|
|
|
let [isEnd] = [false]
|
|
|
|
|
|
export default {
|
|
|
@@ -54,11 +63,17 @@
|
|
|
tabType: 1,
|
|
|
pickStatus: 1,
|
|
|
|
|
|
+ navObj: {
|
|
|
+ unclaimedQuantity: 0,
|
|
|
+ claimedQuantity: 0
|
|
|
+ },
|
|
|
+
|
|
|
page: 1,
|
|
|
size: 5,
|
|
|
|
|
|
dataList: [],
|
|
|
seletedAll: false, //全选状态
|
|
|
+
|
|
|
|
|
|
}
|
|
|
},
|
|
|
@@ -74,6 +89,7 @@
|
|
|
|
|
|
onShow() {
|
|
|
this.getList()
|
|
|
+ this.getpickTics()
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
@@ -89,7 +105,7 @@
|
|
|
|
|
|
isEnd = false
|
|
|
const res = await workorderPage(params)
|
|
|
- console.log(res)
|
|
|
+
|
|
|
|
|
|
if (params.page === 1) {
|
|
|
this.dataList = []
|
|
|
@@ -106,6 +122,12 @@
|
|
|
isEnd = this.dataList.length >= res.count
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+ getpickTics() {
|
|
|
+ pickStatistics().then(res => {
|
|
|
+ this.navObj = res
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
|
|
|
handTab(type) {
|
|
|
@@ -119,6 +141,7 @@
|
|
|
this.pickStatus = type
|
|
|
|
|
|
this.page = 1
|
|
|
+ this.dataList = []
|
|
|
this.getList()
|
|
|
}
|
|
|
},
|
|
|
@@ -146,7 +169,22 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- jumpAdd() {},
|
|
|
+ jumpAdd() {
|
|
|
+ let url
|
|
|
+ url = '/pages/pda/picking/details'
|
|
|
+
|
|
|
+ let arr = []
|
|
|
+ this.dataList.forEach(e => {
|
|
|
+ if(e.checked) {
|
|
|
+ arr.push(e.id)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let _arr = JSON.stringify(arr)
|
|
|
+ url += `?arr=${encodeURIComponent(_arr)}`
|
|
|
+ uni.navigateTo({
|
|
|
+ url
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
|
|
|
// 相机扫码
|