Commit 37f90a83 by LJM

js

parent f840a710
......@@ -75,7 +75,7 @@
background: #fff;
border-bottom: 1px solid #cad9e0;
text {
flex: 0 0 25%;
flex: 0 0 20%;
font-size: 22rpx;
color: #6e767a;
border-right: 1px solid #cad9e0;
......
......@@ -23,12 +23,12 @@
<text class="row verCenter rowCenter">出库</text>
</view>
<template v-if="total > 0">
<view class="uni-tr row verCenter" v-for="(item, index) in rePackageList" :key="index">
<text class="row verCenter rowCenter color">{{ item.tray_name }}</text>
<text class="row verCenter rowCenter" :class="{ color: item.scan_status_cn == '全部已经扫描' }">{{ item.have_load_box_num }}</text>
<text class="row verCenter rowCenter" :class="{ color: item.scan_status_cn != '全部已经扫描' }">{{ item.scan_status_cn }}</text>
<text class="row verCenter rowCenter">{{ item.audit_status_cn || '' }}</text>
<text class="row verCenter rowCenter">{{ item.audit_status_cn || '' }}</text>
<view class="uni-tr row verCenter" v-for="(item, index) in list" :key="index">
<text class="row verCenter rowCenter">{{ item.entrustNo || '-' }}</text>
<text class="row verCenter rowCenter">{{ item.carOrder || '-' }}</text>
<text class="row verCenter rowCenter">{{ item.boxesNum || '-' }}</text>
<text class="row verCenter rowCenter">{{ item.inWoreStatus || '-' }}</text>
<text class="row verCenter rowCenter">{{ item.outWoreStatus || '-' }}</text>
</view>
</template>
<template v-else>
......@@ -51,11 +51,7 @@ export default {
textArr: ['全部', '未入库', '未出库'],
today: currentDate,
total: 1,
page: 1,
limit: 1000,
is_loading: false,
loading: false,
rePackageList: []
list: []
};
},
computed: {
......@@ -66,12 +62,6 @@ export default {
return this.getDate('end');
}
},
onReachBottom() {
if (this.is_loading) return;
this.page++;
this.loading = true;
this.getData();
},
onShow() {
this.getData();
},
......@@ -97,20 +87,19 @@ export default {
bindDateChange(e) {
this.today = e.detail.value;
this.total = 0;
this.page = 1;
this.rePackageList = [];
this.list = [];
this.getData();
},
getData() {
this.request(API.rePackageList, 'POST', { page: this.page, limit: this.limit, today: this.today }, this.loading).then(res => {
this.request(API.szScanOutInList, 'POST', { today: this.today }, true).then(res => {
if (res.err_code === 0) {
if (res.data.data.length > 0) {
if (res.data.length > 0) {
this.is_loading = false;
this.rePackageList = this.rePackageList.concat(res.data.data);
this.total = res.data.total;
this.list = res.data;
this.total = 100;
} else {
this.total = 0;
this.is_loading = true;
this.list = [];
}
} else {
uni.showToast({
......
......@@ -116,7 +116,11 @@ const API = {
/**
* 扫描出库
*/
szScanOut: API_BASE + '/supplywechatwms/szScanOut'
szScanOut: API_BASE + '/supplywechatwms/szScanOut',
/**
* 扫描出入库列表
*/
szScanOutInList: API_BASE + '/supplywechatwms/szScanOutInList'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment