From 7a512d442b2673662d4f642e79b0748d2f52f499 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 14 一月 2025 10:02:04 +0800
Subject: [PATCH] 收货
---
代码管理/淮安PDA/pages/stash/pickingMat.vue | 105 ++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 93 insertions(+), 12 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/pickingMat.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/pickingMat.vue"
index bcc6231..9d8df60 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/pickingMat.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/pickingMat.vue"
@@ -15,24 +15,22 @@
</uni-forms-item>
</uni-forms>
<uni-list>
- <uni-list-item direction="column" v-for="item in matInfos" :key="item.sn">
+ <uni-list-item direction="column" v-for="item in matInfos" :key="item.palletCode">
<template v-slot:body>
- <view class="uni-list-box">
<!-- <uni-icons type="trash" size="22" style="position: absolute;right: 5%;"
@click="deleteList(item.sn)">
</uni-icons> -->
<view class="uni-content">
- <view class="uni-title-sub uni-ellipsis-2">鍗曟嵁缂栧彿锛歿{item.orderNo}}</view>
- <view class="uni-note">鎵樼洏缂栧彿锛歿{item.palletCode}}</view>
- <view class="uni-note">鐗╂枡鎵规锛歿{item.batchNo}}</view>
- <view class="uni-note">鐗╂枡缂栫爜锛歿{item.materielCode}}</view>
- <view class="uni-note">鐗╂枡鍚嶇О锛歿{item.materielName}}</view>
- <view class="uni-note">鍗曟嵁鏁伴噺锛歿{item.orderQuantity}}</view>
- <view class="uni-note">鍘熷搴撳瓨锛歿{item.originalQuantity}}</view>
- <view class="uni-note">鍒嗛厤搴撳瓨锛歿{item.assignQuantity}}</view>
- <view class="uni-note">鍓╀綑搴撳瓨锛歿{item.originalQuantity-item.assignQuantity}}</view>
+ <view>鍗曟嵁缂栧彿锛歿{item.orderNo}}</view>
+ <view>鎵樼洏缂栧彿锛歿{item.palletCode}}</view>
+ <view>鐗╂枡鎵规锛歿{item.batchNo}}</view>
+ <view>鐗╂枡缂栫爜锛歿{item.materielCode}}</view>
+ <view>鐗╂枡鍚嶇О锛歿{item.materielName}}</view>
+ <view>鍗曟嵁鏁伴噺锛歿{item.orderQuantity}}</view>
+ <view>鍘熷搴撳瓨锛歿{item.originalQuantity}}</view>
+ <view>鍒嗛厤搴撳瓨锛歿{item.assignQuantity}}</view>
+ <view>鍓╀綑搴撳瓨锛歿{item.originalQuantity-item.assignQuantity}}</view>
</view>
- </view>
</template>
</uni-list-item>
</uni-list>
@@ -71,6 +69,34 @@
</uni-forms-item>
</uni-forms>
</view>
+ <view>
+ <uni-list>
+ <uni-list-item direction="column" v-if="inboundBarcode">
+ <template v-slot:body>
+ <view class="uni-list-box">
+ <view class="uni-content">
+ <view class="uni-title-sub uni-ellipsis-2">鎬绘暟閲忥細{{Summmary}}</view>
+ </view>
+ </view>
+ </template>
+ </uni-list-item>
+ <uni-list-item direction="column" v-for="(item,index) in stockInfoDetail" :key="index">
+ <template v-slot:body>
+ <view class="uni-list-box">
+ <view class="uni-content">
+ <view class="uni-title-sub uni-ellipsis-2">鐗╂枡缂栧彿锛歿{item.materielCode}}</view>
+ <view class="uni-note">鐗╂枡鍚嶇О锛歿{item.materielName}}</view>
+ <view class="uni-note">鐗╂枡鎵规锛歿{item.batchNo}}</view>
+ <view class="uni-note">搴撳瓨鏁伴噺锛歿{item.stockQuantity}}</view>
+ <view class="uni-note">鍑哄簱鏁伴噺锛歿{item.outboundQuantity}}</view>
+ <view class="uni-note">鐢熶骇鏃ユ湡锛歿{item.productionDate}}</view>
+ <view class="uni-note">鏈� 鏁� 鏈燂細{{item.effectiveDate}}</view>
+ </view>
+ </view>
+ </template>
+ </uni-list-item>
+ </uni-list>
+ </view>
</view>
</view>
<u-toast ref="uToast" />
@@ -108,12 +134,18 @@
inboundBarcode: "",
address: "",
warehouseId: 0,
+ Summmary: 0,
+ stockInfoDetail: []
}
},
onLoad(res) {
this.barcodefocus = false;
this.warehouseId = res.warehouseId;
+ if (this.warehouseId == 5) {
+ this.address = "8005"
+ }
this.istrue = false;
+ this.addressFocus = false;
},
methods: {
onClickItem(e) {
@@ -174,6 +206,34 @@
this.addressFocus = true;
}
})
+ this.$nextTick(function(x) {
+ if (this.inboundBarcode != '') {
+ var postData = {
+ MainData: {
+ "barcode": this.inboundBarcode,
+ "warehouseId": this.warehouseId,
+ }
+ };
+ this.$u.post('/api/StockInfo/StockQueryData', postData).then(res => {
+ // this.stockInfo = [];
+ this.stockInfoDetail = [];
+ if (res.status) {
+ // this.stockInfo = res.data,
+ this.stockInfoDetail = res.data.details
+ //鑾峰彇鎬绘暟閲�
+ this.stockInfoDetail.forEach(item => {
+ this.Summmary+= item.stockQuantity;
+ });
+ } else {
+ this.$refs.uToast.show({
+ // title: "鏈壘鍒版墭鐩樹俊鎭�",
+ title: res.message,
+ type: "error"
+ })
+ }
+ })
+ }
+ })
},
picking() {
if (this.barcode == "") {
@@ -185,6 +245,10 @@
}
this.$u.post('/api/OutStockLockInfo/MaterialPick?palletCode=' + this.barcode, {}).then(res => {
if (res.status) {
+ // if(this.warehouseId==5){
+ // this.Finish("8005");
+ // }
+
uni.$showMsg('鎷i�夋垚鍔�!')
this.barcode = "";
this.matInfos = [];
@@ -196,6 +260,23 @@
}
})
},
+ Finish(code) {
+ this.$u.post('http://127.0.0.1:9291/api/CTU_AGV/PutFinish?&code=' + code).then(
+ res => {
+ if (res.status) {
+ // this.$refs.uToast.show({
+ // title: "瀹屾垚鎴愬姛",
+ // type: "success"
+ // })
+ // this.barcode = "";
+ } else {
+ // this.$refs.uToast.show({
+ // title: res.message,
+ // type: "error"
+ // })
+ }
+ })
+ },
inputChange(e) {
this.$nextTick(() => {
this.istrue = false;
--
Gitblit v1.9.3