| | |
| | | <template> |
| | | <view> |
| | | <!-- <u-sticky> |
| | | <u-sticky> |
| | | <view style="background-color: #ffffff;"> |
| | | <uni-search-bar @confirm="search" v-model="searchValue"></uni-search-bar> |
| | | </view> |
| | | </u-sticky> --> |
| | | </u-sticky> |
| | | <uni-list :border="true"> |
| | | <uni-list-item direction="column" clickable @click="groupClick(item.batch_num)" link |
| | | :to="page+item.batch_num+'&order_qty='+item.order_qty+'&order_Inqty='+item.order_Outqty+'&goods_no='+item.goods_no" |
| | | v-for="item in allReceivingOrders" :key="item.batch_num"> |
| | | <uni-list-item direction="column" clickable @click="groupClick(item.locationCode)" link |
| | | :to="page+item.locationCode+'&stockQuantity='+item.stockQuantity+'&taskId='+item.taskId+'&materielCode='+item.materielCode+'&batchNo='+item.batchNo+'&materielName='+item.materielName" |
| | | v-for="item in allReceivingOrders" :key="item.locationCode"> |
| | | <template v-slot:body> |
| | | <uni-group margin-top="20"> |
| | | <view> åæ®ç¼å·:{{orderNo}} </view> |
| | | <view> æ¹å·:{{item.batch_num}} </view> |
| | | <view> ç©æç¼å·:{{item.goods_no}} </view> |
| | | <view> åæ®æ°é:{{item.order_qty}} </view> |
| | | <view> åºåºæ°é:{{item.order_Outqty}} </view> |
| | | <view> æ¹å·:{{item.batchNo}} </view> |
| | | <view> ç©æç¼å·:{{item.materielCode}} </view> |
| | | <!-- <view> ç©æåç§°:{{item.materielName}} </view> --> |
| | | <view> è´§ä½ç¼å·:{{item.locationCode}} </view> |
| | | <view> æ°é:{{item.stockQuantity}} </view> |
| | | </uni-group> |
| | | </template> |
| | | </uni-list-item> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | page: "/pages/stash/Outorderboxing?", |
| | | page: "/pages/stash/outFinish?", |
| | | loadVisible: false, |
| | | searchValue: "", |
| | | status: "more", |
| | |
| | | orderNo: "", |
| | | pageNo: 1, |
| | | scrollTop: 0, |
| | | outTask: false, |
| | | warehouseId: "" |
| | | } |
| | | }, |
| | | onLoad(res) { |
| | | this.warehouseId = res.warehouseId; |
| | | this.orderNo = res.orderNo; |
| | | this.allReceivingOrders=res.detail; |
| | | this.page = this.page + "orderNo=" + this.orderNo +"&warehouseId=" + this.warehouseId + "&batchNo="; |
| | | this.getData(); |
| | | this.allReceivingOrders = res.detail; |
| | | this.page = this.page + "orderNo=" + this.orderNo + "&warehouseId=" + this.warehouseId + "&locationCode="; |
| | | // this.getData(); |
| | | }, |
| | | onReachBottom() { |
| | | this.pageNo += 1; |
| | | this.getData(); |
| | | }, |
| | | onShow() { |
| | | // this.outTask = uni.getStorageSync('outTask'); |
| | | // if (this.outTask) { |
| | | // uni.removeStorageSync('outTask'); |
| | | this.pageNo = 1; |
| | | this.allReceivingOrders = []; |
| | | // ä»å
¶ä»é¡µé¢è¿åæ¶å·æ° |
| | | this.getData(); |
| | | // } |
| | | }, |
| | | onPageScroll(e) { |
| | | this.scrollTop = e.scrollTop; |
| | |
| | | groupClick() { |
| | | |
| | | }, |
| | | // getData() { |
| | | // var postData = { |
| | | // MainData: { |
| | | // warehouseId: this.warehouseId, |
| | | // locationCode: this.searchValue, |
| | | // orderNo: this.orderNo, |
| | | // pageNo: this.pageNo, |
| | | // isCheck:false, |
| | | // }, |
| | | // } |
| | | // if (this.pageNo == 1) this.allReceivingOrders = []; |
| | | // this.$u.post('/api/DeliveryOrder/GetCheckOutTasks',postData).then(( |
| | | // res) => { |
| | | // if (res.status) { |
| | | // if (res.data.length > 0) { |
| | | // if (this.searchValue == '') { |
| | | // this.allReceivingOrders = this.allReceivingOrders.concat(res.data); |
| | | // // this.allReceivingOrders = res.data; |
| | | // if (this.allReceivingOrders.length > 3) { |
| | | // this.loadVisible = true; |
| | | // } else { |
| | | // this.loadVisible = false; |
| | | // } |
| | | // } else { |
| | | // this.allReceivingOrders = res.data; |
| | | // if (this.allReceivingOrders.length > 3) { |
| | | // this.loadVisible = true; |
| | | // } else { |
| | | // this.loadVisible = false; |
| | | // } |
| | | // } |
| | | // } else { |
| | | // this.status = 'noMore'; |
| | | // //this.allReceivingOrders = []; |
| | | // this.loadVisible = true; |
| | | // } |
| | | // } |
| | | // }) |
| | | // } |
| | | getData() { |
| | | // var postData = { |
| | | // MainData: { |
| | | // warehouseId: this.warehouseId, |
| | | // orderNo: this.searchValue, |
| | | // pageNo: this.pageNo |
| | | // }, |
| | | // } |
| | | var postData = { |
| | | MainData: { |
| | | warehouseId: this.warehouseId, |
| | | locationCode: this.searchValue, |
| | | orderNo: this.orderNo, |
| | | pageNo: this.pageNo, |
| | | isCheck: false, |
| | | }, |
| | | } |
| | | if (this.pageNo == 1) this.allReceivingOrders = []; |
| | | this.$u.post('/api/DeliveryOrder/GetDeliveryOrderDetail?pageNo=' + this.warehouseId + '&orderNo=' + this.orderNo+'&isPick=false').then(( |
| | | this.$u.post('/api/DeliveryOrder/GetCheckOutTasks', postData).then(( |
| | | res) => { |
| | | if (res.status) { |
| | | if (res.data.length > 0) { |
| | | if (this.searchValue == '') { |
| | | this.allReceivingOrders = this.allReceivingOrders.concat(res.data); |
| | | // this.allReceivingOrders = res.data; |
| | | if (this.allReceivingOrders.length > 3) { |
| | | this.loadVisible = true; |
| | | } else { |
| | | this.loadVisible = false; |
| | | } |
| | | if (res.status) { |
| | | if (res.data.length > 0) { |
| | | if (this.searchValue == '') { |
| | | this.allReceivingOrders = this.allReceivingOrders.concat(res.data); |
| | | // this.allReceivingOrders = res.data; |
| | | if (this.allReceivingOrders.length > 3) { |
| | | this.loadVisible = true; |
| | | } else { |
| | | this.allReceivingOrders = res.data; |
| | | if (this.allReceivingOrders.length > 3) { |
| | | this.loadVisible = true; |
| | | } else { |
| | | this.loadVisible = false; |
| | | } |
| | | this.loadVisible = false; |
| | | } |
| | | } else { |
| | | this.status = 'noMore'; |
| | | //this.allReceivingOrders = []; |
| | | this.loadVisible = true; |
| | | this.allReceivingOrders = res.data; |
| | | if (this.allReceivingOrders.length > 3) { |
| | | this.loadVisible = true; |
| | | } else { |
| | | this.loadVisible = false; |
| | | } |
| | | } |
| | | } else { |
| | | this.status = 'noMore'; |
| | | //this.allReceivingOrders = []; |
| | | this.loadVisible = true; |
| | | if (this.allReceivingOrders.length < 1) { |
| | | // uni.showModal({ |
| | | // title: 'æç¤º', |
| | | // content: 'åºåºå·²å®æï¼æ¯å¦è¿åé¦é¡µï¼', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.getStorageSync('isout',true) |
| | | // // ç¨æ·ç¹å»ç¡®å® |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 300); |
| | | // } else { |
| | | // // ç¨æ·ç¹å»åæ¶ï¼å¯ä»¥åçå¨å½åé¡µé¢ |
| | | // // æè
æ§è¡å
¶ä»æä½ |
| | | // } |
| | | // } |
| | | // }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |