From 9a886d711d8b21adc335fdf8c39350584c7ba6fd Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 14 十月 2025 02:12:14 +0800
Subject: [PATCH] 更新代码,取消MES出库单号同步标识,平库转立库功能,寄售周期判断取消,精品标识等
---
代码管理/淮安PDA/pages/stash/pickingMat.vue | 65 +++++++++++++++++++++++++++++++-
1 files changed, 63 insertions(+), 2 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 6b4767c..5de35a0 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"
@@ -61,13 +61,41 @@
placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' @input="inputChangebarcode3" />
</uni-forms-item>
<uni-forms-item label="鍦板潃鏉$爜">
- <uni-easyinput type="text" v-model="address" placeholder="璇锋壂鎻忓湴鍧�鏉$爜" ref='midInput'
+ <uni-easyinput type="text" v-model="address" :disabled = "addressdisabled" placeholder="璇锋壂鎻忓湴鍧�鏉$爜" ref='midInput'
:focus="addressFocus" />
</uni-forms-item>
<uni-forms-item>
<button @click="inbound" type="primary" size="default" style="margin-top: 2%;">鍏ュ簱纭</button>
</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>
@@ -106,6 +134,9 @@
inboundBarcode: "",
address: "",
warehouseId: 0,
+ Summmary: 0,
+ stockInfoDetail: [],
+ addressdisabled: false
}
},
onLoad(res) {
@@ -113,6 +144,9 @@
this.warehouseId = res.warehouseId;
if (this.warehouseId == 5) {
this.address = "8005"
+ }else if (this.warehouseId == 3) {
+ this.address = "1011";
+ this.addressdisabled = true;
}
this.istrue = false;
this.addressFocus = false;
@@ -152,7 +186,6 @@
if (res.status) {
uni.$showMsg(res.message);
this.inboundBarcode = "";
- this.address = "";
setTimeout(() => {
this.addressFocus = false;
}, 200);
@@ -176,6 +209,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 == "") {
--
Gitblit v1.9.3