From f11f38fbd00c39c9a021807b6b585c6fb0c5aa96 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 01 四月 2024 14:44:31 +0800
Subject: [PATCH] #
---
pages/phyz/AGV/AGVPakin3.vue | 46 ++++++++++++++++++++++++++++++----------------
1 files changed, 30 insertions(+), 16 deletions(-)
diff --git a/pages/phyz/AGV/AGVPakin3.vue b/pages/phyz/AGV/AGVPakin3.vue
index 734819b..6269cb3 100644
--- a/pages/phyz/AGV/AGVPakin3.vue
+++ b/pages/phyz/AGV/AGVPakin3.vue
@@ -9,7 +9,7 @@
<input type="text" placeholder=" 鎵爜 / 杈撳叆 璐ф灦鐮�" v-model="barcode" :focus="barcodeFocus"
@input="barcodeInput()">
</view>
- <view class="item">
+ <!-- <view class="item">
<view class="dropdown" @click="toggleDropdown()">
<input type="text" style="width: 650rpx;" v-model="containerType" placeholder="璇烽�夋嫨璐ф灦绫诲瀷">
<uni-icons :type="isOpen ? 'top' : 'bottom'" color="#c1c1c1" style="margin-left: 10rpx;"></uni-icons>
@@ -17,7 +17,7 @@
<view class="dropdown-item" v-for="option in selects" @click="selected(option)">{{option}}</view>
</scroll-view>
</view>
- </view>
+ </view> -->
<view class="item">
<input type="text" placeholder=" 鎵爜 / 杈撳叆 鏆傚瓨浣�" v-model="stationCode" :focus="stationCodeFocus"
@input="stationCodeInput()">
@@ -205,6 +205,9 @@
eventChannel.on('mats', function(data) {
console.log(data);
that.orderNo = data.mats[0].orderNo
+ for (let k of data.mats) {
+ k.anfme = k.enableQty
+ }
that.dataList = data.mats
})
},
@@ -286,7 +289,7 @@
stationCodeInput() {
setTimeout(() => {
var len = this.stationCode.length
- if (len != 15) {
+ if (len != 7) {
this.stationCode = ''
this.stationCodeFocus = true
uni.showToast({
@@ -308,13 +311,19 @@
}, 200)
},
barcodeInput() {
- // 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
- if (this.barcode.split('_')[1]) {
- this.barcode = this.barcode.split('_')[1]
- }
+ let val = this.barcode.substring(0,2)
+ if (val == '10') {
+ this.containerType = 1
+ } else if(val == '20') {
+ this.containerType = 2
+ } else if (val == '21') {
+ this.containerType = 3
+ } else if (val == '30') {
+ this.containerType = 4
+ }
setTimeout(() => {
var len = this.barcode.length
- if (len != 10) {
+ if (len != 6) {
this.barcode = ''
this.barcodeFocus = true
uni.showToast({
@@ -553,6 +562,7 @@
orderNo: that.orderNo,
barcode: that.barcode,
locno: that.stationCode,
+ // containerType: this.containerType,
combMats: that.dataList
}),
method: 'POST',
@@ -567,9 +577,11 @@
that.resst();
that.messageText = "缁勬墭鎴愬姛"
that.messageToggle('success')
- uni.navigateBack({
- delta: 2
- });
+ setTimeout(()=> {
+ uni.navigateBack({
+ delta: 2
+ });
+ },700)
}
} else if (res.code == 403) {
that.messageText = res.msg
@@ -645,7 +657,7 @@
let param = {
devNo: this.stationCode,
containerCode: this.barcode,
- containerType: this.containerType,
+ // containerType: this.containerType,
}
params.push(param)
} else {
@@ -666,9 +678,11 @@
that.resst();
that.messageText = "鍚姩鎴愬姛"
that.messageToggle('success')
- uni.navigateBack({
- delta: 2
- });
+ setTimeout(()=>{
+ uni.navigateBack({
+ delta: 2
+ });
+ },700)
} else if (res.code == 403) {
that.messageText = res.msg
that.messageToggle('error')
@@ -736,7 +750,7 @@
width: 100%;
background-color: white;
position: fixed;
- margin-top: 280rpx;
+ margin-top: 210rpx;
z-index: 9;
/* border-top: 1px solid #DCDFE6; */
text-align: center;
--
Gitblit v1.9.1