From de398f47dd12b3890c9ee545422da78e82b60fa9 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 08 十二月 2025 09:22:06 +0800
Subject: [PATCH] 修改PDA出入库中出现undefined问题,修改job中因为上游调用频率过快导致job死掉,修改前端报警信息使用不同颜色

---
 新建文件夹/PDA/pages/stash/raworderboxing.vue | 1463 +++++++++++++++++++++++++++++++++------------------------
 1 files changed, 845 insertions(+), 618 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue"
index 5f5d5e2..7b118bd 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue"
@@ -1,642 +1,869 @@
 <template>
-	<view>
-		<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem">
-		</uni-segmented-control>
-		<view class="content">
-			<view v-if="current === 0" class="headerstyle">
-				<view class="itemstyle">
-					<uni-forms label-width="180">
-						<uni-forms-item :label="label">
-						</uni-forms-item>
-						<uni-forms-item :label="goods_no">
-						</uni-forms-item>
-						<uni-forms-item :label="batch_num">
-						</uni-forms-item>
-						<uni-forms-item :label="order_qty">
-						</uni-forms-item>
-						<uni-forms-item :label="order_Inqty">
-						</uni-forms-item>
-						<uni-forms-item label="搴撲綅缂栧彿:">
-							<uni-easyinput type="text" placeholder="璇锋壂鎻忓簱浣嶇紪鍙�" ref='midInput' :focus="!focus"
-								v-model="barcode" @confirm="barcodeInput" />
-						</uni-forms-item>
-						<uni-forms-item label="鍏ュ簱鏁伴噺:">
-							<uni-easyinput type="text" placeholder="璇疯緭鍏ュ叆搴撴暟閲�" ref='midInput' :focus="focus"
-								v-model="materSn" @confirm="snInput" />
-						</uni-forms-item>
+  <view>
+    <uni-segmented-control
+      :current="current"
+      :values="items"
+      @clickItem="onClickItem"
+    >
+    </uni-segmented-control>
+    <view class="content">
+      <view v-if="current === 0" class="headerstyle">
+        <view class="itemstyle">
+          <uni-forms label-width="180">
+            <uni-forms-item :label="label"> </uni-forms-item>
+            <uni-forms-item :label="goods_no"> </uni-forms-item>
+            <uni-forms-item :label="batch_num"> </uni-forms-item>
+            <uni-forms-item :label="order_qty"> </uni-forms-item>
+            <uni-forms-item :label="order_Inqty"> </uni-forms-item>
+            <uni-forms-item label="寰呮壂鐗╂枡缂栫爜:">
+              <uni-easyinput
+                type="text"
+                placeholder="璇锋壂鎻忕墿鏂欑紪鐮�"
+                ref="materialInput"
+                :focus="step === 1"
+                v-model="materialCode"
+                @confirm="materialCodeInput"
+                @blur="materialCodeInput"
+              />
+            </uni-forms-item>
+            <uni-forms-item label="搴撲綅缂栧彿:">
+              <uni-easyinput
+                type="text"
+                placeholder="璇锋壂鎻忓簱浣嶇紪鍙�"
+                ref="midInput"
+                :focus="step === 2"
+                v-model="barcode"
+                @confirm="barcodeInput"
+              />
+            </uni-forms-item>
+            <uni-forms-item label="鍏ュ簱鏁伴噺:">
+              <uni-easyinput
+                type="text"
+                placeholder="璇疯緭鍏ュ叆搴撴暟閲�"
+                ref="midInput"
+                :focus="step === 3"
+                v-model="materSn"
+                @confirm="snInput"
+              />
+            </uni-forms-item>
 
-						<uni-forms-item :label="Testlabel" v-if="Test">
-							<uni-easyinput type="text" :placeholder="Testplaceholder" ref='midInput'
-								v-model="Initiallife" />
-						</uni-forms-item>
-
-						<!-- <uni-forms-item>
+            <uni-forms-item :label="Testlabel" v-if="Test">
+              <uni-easyinput
+                type="text"
+                :placeholder="Testplaceholder"
+                ref="midInput"
+                v-model="Initiallife"
+              />
+            </uni-forms-item>
+            <!-- <uni-forms-item>
 							<checkbox checked="check">鏄惁婊$洏</checkbox>
 						</uni-forms-item> -->
-						<uni-forms-item>
-							<view style="display: flex;justify-content: space-around;margin-top: 2%;">
-								<!-- <button @click="reset" type="default" size="default"
+            <uni-forms-item>
+              <view
+                style="
+                  display: flex;
+                  justify-content: space-around;
+                  margin-top: 2%;
+                "
+              >
+                <!-- <button @click="reset" type="default" size="default"
 									style="width: 160rpx;border: 1rpx solid #007aff;color: #007aff;">閲嶇疆</button> -->
-								<button @click="submit" type="primary" size="default"
-									style="width: 200rpx;">纭鍏ュ簱</button>
-							</view>
-						</uni-forms-item>
-					</uni-forms>
-				</view>
-			</view>
-			<view v-if="current === 1" class="headerstyle">
-				<view class="itemstyle">
-					<uni-forms label-width="120">
-						<uni-forms-item label="鎵樼洏鏉$爜">
-							<uni-easyinput type="text" :focus="!addressFocus" v-model="inboundBarcode"
-								placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' @confirm="inputChangebarcode" />
-						</uni-forms-item>
-						<uni-forms-item label="鍦板潃鏉$爜">
-							<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>
-			<view v-if="current === 2" class="headerstyle">
-				<view class="itemstyle">
-					<uni-list :border="true">
-						<uni-list-item direction="column" v-for="(item,index) in orderInfo" :key="index">
-							<template v-slot:body>
-								<view class="uni-list-box">
-									<view class="uni-content">
-										<view style="font-size: 18px;">鍗曟嵁鍙凤細{{orderNo}}</view>
-										<view style="font-size: 18px;">鐗╂枡缂栫爜锛歿{item.materielCode}}</view>
-										<view>鐗╂枡鍚嶇О锛歿{item.materielName}}</view>
-										<view>鐗╂枡瑙勬牸锛歿{item.materielSpec}}</view>
-										<!-- <view style="font-size: 18px;">鐗╂枡鍚嶇О锛歿{item.matName}}</view> -->
-										<view style="font-size: 18px;">鏁伴噺锛歿{item.orderQuantity+item.unit}}</view>
-										<view style="font-size: 18px;">缁勭洏鏁伴噺锛歿{item.receiptQuantity}}</view>
-									</view>
-								</view>
-							</template>
-						</uni-list-item>
-					</uni-list>
-				</view>
-			</view>
-			<view v-if="current === 3" class="headerstyle">
-				<view class="itemstyle">
-					<uni-forms label-width="180">
-						<uni-forms-item label="鍐呯鏍囩:">
-							<uni-easyinput type="text" placeholder="璇锋壂鎻忓唴绠辨爣绛�" ref='midInput' :focus="!pkfocus"
-								v-model="pkmaterSn" @confirm="pksnInput" />
-						</uni-forms-item>
+                <button
+                  @click="submit"
+                  type="primary"
+                  size="default"
+                  style="width: 250rpx"
+                >
+                  纭鍏ュ簱
+                </button>
+              </view>
+            </uni-forms-item>
+          </uni-forms>
+        </view>
+      </view>
+      <view v-if="current === 1" class="headerstyle">
+        <view class="itemstyle">
+          <uni-forms label-width="120">
+            <uni-forms-item label="鎵樼洏鏉$爜">
+              <uni-easyinput
+                type="text"
+                :focus="!addressFocus"
+                v-model="inboundBarcode"
+                placeholder="璇锋壂鎻忔墭鐩樻潯鐮�"
+                ref="midInput"
+                @confirm="inputChangebarcode"
+              />
+            </uni-forms-item>
+            <uni-forms-item label="鍦板潃鏉$爜">
+              <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>
+      <view v-if="current === 2" class="headerstyle">
+        <view class="itemstyle">
+          <uni-list :border="true">
+            <uni-list-item
+              direction="column"
+              v-for="(item, index) in orderInfo"
+              :key="index"
+            >
+              <template v-slot:body>
+                <view class="uni-list-box">
+                  <view class="uni-content">
+                    <view style="font-size: 18px">鍗曟嵁鍙凤細{{ orderNo }}</view>
+                    <view style="font-size: 18px"
+                      >鐗╂枡缂栫爜锛歿{ item.materielCode }}</view
+                    >
+                    <view>鐗╂枡鍚嶇О锛歿{ item.materielName }}</view>
+                    <view>鐗╂枡瑙勬牸锛歿{ item.materielSpec }}</view>
+                    <view style="font-size: 18px"
+                      >鐗╂枡鍚嶇О锛歿{ item.matName }}</view
+                    >
+                    <view style="font-size: 18px"
+                      >鏁伴噺锛歿{ item.orderQuantity + item.unit }}</view
+                    >
+                    <view style="font-size: 18px"
+                      >缁勭洏鏁伴噺锛歿{ item.receiptQuantity }}</view
+                    >
+                  </view>
+                </view>
+              </template>
+            </uni-list-item>
+          </uni-list>
+        </view>
+      </view>
+      <view v-if="current === 3" class="headerstyle">
+        <view class="itemstyle">
+          <uni-forms label-width="180">
+            <uni-forms-item label="鍐呯鏍囩:">
+              <uni-easyinput
+                type="text"
+                placeholder="璇锋壂鎻忓唴绠辨爣绛�"
+                ref="midInput"
+                :focus="!pkfocus"
+                v-model="pkmaterSn"
+                @confirm="pksnInput"
+              />
+            </uni-forms-item>
 
-						<uni-forms-item>
-							<view style="display: flex;justify-content: space-around;margin-top: 2%;">
-								<button @click="resetInPk" type="default" size="default"
-									style="width: 160rpx;border: 1rpx solid #007aff;color: #007aff;">閲嶇疆</button>
-								<button @click="pksubmit" type="primary" size="default"
-									style="margin-top: 2%;">鍏ュ钩搴�</button>
-							</view>
-						</uni-forms-item>
-
-					</uni-forms>
-					<uni-list>
-						<uni-list-item direction="column" v-for="(item,index) in pkmatInfos" :key="index">
-							<template v-slot:body>
-								<view class="uni-list-box">
-									<uni-icons type="trash" size="22" style="position: absolute;right: 5%;"
-										@click="pkdeleteList(index)">
-									</uni-icons>
-									<view class="uni-content">
-										<view class="uni-title-sub uni-ellipsis-2">閲囪喘鍗曞彿锛歿{item.purchaseOrderNo}}</view>
-										<view class="uni-note">鐗╂枡缂栫爜锛歿{item.materielCode}}</view>
-										<view class="uni-note">鎵规鍙凤細{{item.lotNo}}</view>
-										<view class="uni-note">鏁伴噺锛歿{item.quantity}}</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" />
-	</view>
+            <uni-forms-item>
+              <view
+                style="
+                  display: flex;
+                  justify-content: space-around;
+                  margin-top: 2%;
+                "
+              >
+                <button
+                  @click="resetInPk"
+                  type="default"
+                  size="default"
+                  style="
+                    width: 160rpx;
+                    border: 1rpx solid #007aff;
+                    color: #007aff;
+                  "
+                >
+                  閲嶇疆
+                </button>
+                <button
+                  @click="pksubmit"
+                  type="primary"
+                  size="default"
+                  style="margin-top: 2%"
+                >
+                  鍏ュ钩搴�
+                </button>
+              </view>
+            </uni-forms-item>
+          </uni-forms>
+          <uni-list>
+            <uni-list-item
+              direction="column"
+              v-for="(item, index) in pkmatInfos"
+              :key="index"
+            >
+              <template v-slot:body>
+                <view class="uni-list-box">
+                  <uni-icons
+                    type="trash"
+                    size="22"
+                    style="position: absolute; right: 5%"
+                    @click="pkdeleteList(index)"
+                  >
+                  </uni-icons>
+                  <view class="uni-content">
+                    <view class="uni-title-sub uni-ellipsis-2"
+                      >閲囪喘鍗曞彿锛歿{ item.purchaseOrderNo }}</view
+                    >
+                    <view class="uni-note"
+                      >鐗╂枡缂栫爜锛歿{ item.materielCode }}</view
+                    >
+                    <view class="uni-note">鎵规鍙凤細{{ item.lotNo }}</view>
+                    <view class="uni-note">鏁伴噺锛歿{ item.quantity }}</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" />
+  </view>
 </template>
 
 <script>
-	const innerAudioContext = uni.createInnerAudioContext();
-	export default {
-		data() {
-			return {
-				items: ['鍏ュ簱'], //, '瑙g洏''缁勭洏', , '鍗曟嵁淇℃伅'
-				current: 0,
-				matTotal: [],
-				matInfos: [],
-				orderNo: "",
-				batchNo: "",
-				materielCode: "",
-				orderqty: 0,
-				Inqty: 0,
-				goods_no: "",
-				batch_num: "",
-				order_qty: "",
-				order_Inqty: "",
-				label: "",
-				orderInfo: [],
-				focus: false,
-				pkfocus: false,
-				barcode: "",
-				materSn: "",
-				Initiallife: 1000,
-				sns: [],
-				pksns: [],
-				addressFocus: false,
-				inboundBarcode: "",
-				address: "",
-				check: true,
-				value: "",
-				matInfo: [],
-				value2: "",
-				matTotals: [],
-				id: "",
-				warehouseId: "",
-				Test: false,
-				Testlabel: "",
-				Testplaceholder: "",
-				Testcheck: false,
-				pkmaterSn: "",
-				pkmatInfos: [],
-				addressdisabled: false
-			}
-		},
-		onShow() {},
-		onLoad(res) {
-			this.focus = false;
-			this.id = res.id;
-			this.addressFocus = false;
-			this.orderNo = res.orderNo;
-			this.Inqty = res.order_Inqty;
-			this.orderqty = res.order_qty;
-			this.batchNo = res.batchNo;
-			this.materielCode = res.goods_no;
-			this.warehouseId = res.warehouseId;
-			this.label = "鍗曟嵁缂栧彿锛�" + this.orderNo;
-			this.batch_num = "鎵规鍙凤細" + res.batchNo;
-			this.order_qty = "鍗曟嵁鏁伴噺锛�" + res.order_qty;
-			this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
-			this.goods_no = "鐗╂枡缂栧彿锛�" + res.goods_no;
-			// this.getData();
-		},
-		methods: {
-			// voiceSpeech(src) {
-			// 	innerAudioContext.src = src; // '../../static/success.mp3';
-			// 	innerAudioContext.play();
-			// },
-			updateFocus() {
-				debugger
-				this.$nextTick(() => {
-					this.materSn = '';
-					if (!this.focus) {
-						this.focus = true;
-					}
-				});
-			},
-			barcodeFocus() {
-				debugger
-				this.barcode = '';
-				if (this.focus) {
-					this.focus = false;
-				}
-			},
-			getData() {
-				var postData = {
-					MainData: {
-						orderNo: this.orderNo
-					},
-				}
-				this.$u.post('/api/InboundOrderDetail/GetInboundOrderDetails', postData).then((res) => {
-					if (res.status) {
-						this.orderInfo = res.data;
-						if (this.orderInfo.length > 3) {
-							this.loadVisible = true;
-						}
-					}
-				})
-			},
-			onClickItem(e) {
-				this.focus = false;
-				this.addressFocus = false;
-				if (this.current !== e.currentIndex) {
-					this.current = e.currentIndex;
-					if (this.current == 2) {
-						this.getData();
-					}
-				}
-			},
-			barcodeInput() {
-				this.$nextTick(function(x) {
-					if (this.barcode.length > 0) {
-						// if (this.barcode.substring(0, 1) == 'A' || this.barcode.substring(0, 2) == 'TP') {
-						this.focus = true;
-						// } else {
-						// 	this.$refs.uToast.show({
-						// 		title: "鎵爜閿欒,璇锋壂鎻忔墭鐩樼爜",
-						// 		type: "error"
-						// 	})
-						// }
-					}
-				})
-			},
-			snInput() {
-				this.$nextTick(() => {
-					if (this.materSn != "") {
-						this.focus = false;
-						var matSn = this.materSn;
-						if (this.warehouseId == 11) {
-							matSn = matSn.replace(/,SC.*/, '');
-						}
-						//鏌ヨmatSn鏄惁瀛樺湪瀛楃
-						if (matSn.indexOf("POHA") > 0) {
-							this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + matSn, {}).then((res) => {
-								this.Testcheck = false;
-								if (res.status) {
-									this.sns.push(res.data.serialNumber);
+const innerAudioContext = uni.createInnerAudioContext();
+export default {
+  data() {
+    return {
+      items: ["鍏ュ簱"], //, '瑙g洏''缁勭洏', , '鍗曟嵁淇℃伅'
+      current: 0,
+      matTotal: [],
+      matInfos: [],
+      orderNo: "",
+      batchNo: "",
+      materielCode: "",
+      orderqty: 0,
+      Inqty: 0,
+      goods_no: "",
+      batch_num: "",
+      order_qty: "",
+      order_Inqty: "",
+      label: "",
+      orderInfo: [],
+      focus: false,
+      pkfocus: false,
+      barcode: "",
+      materSn: "",
+      Initiallife: 1000,
+      sns: [],
+      pksns: [],
+      addressFocus: false,
+      inboundBarcode: "",
+      address: "",
+      check: true,
+      value: "",
+      matInfo: [],
+      value2: "",
+      matTotals: [],
+      id: "",
+      warehouseId: "",
+      Test: false,
+      Testlabel: "",
+      Testplaceholder: "",
+      Testcheck: false,
+      pkmaterSn: "",
+      pkmatInfos: [],
+      addressdisabled: false,
+      materialCode: "", // 鏂板锛氭壂鎻忕殑鐗╂枡缂栫爜
+      materialCodeValid: false, // 鏂板锛氱墿鏂欑紪鐮侀獙璇佺姸鎬�
+      step: 1, // 鏂板锛�1-鐗╂枡缂栫爜锛�2-搴撲綅缂栧彿锛�3-鍏ュ簱鏁伴噺
+    };
+  },
+  onShow() {},
+  onLoad(res) {
+    this.step = 1; // 鍒濆姝ラ锛氱墿鏂欑紪鐮�
+    this.focus = false;
 
-									this.matInfos.push(res.data);
-									if (res.message) {
-										this.$refs.uToast.show({
-											title: res.message,
-											type: "error"
-										})
-										// setTimeout(() => {
-										// 	this.voiceSpeech('../../static/fail.mp3');
-										// }, 100);
-										return;
-									}
-									// setTimeout(() => {
-									// 	this.voiceSpeech('../../static/success.mp3');
-									// }, 100);
-								} else {
-									this.$refs.uToast.show({
-										title: res.message,
-										type: "error"
-									})
-									// setTimeout(() => {
-									// 	this.voiceSpeech('../../static/fail.mp3');
-									// }, 100);
-								}
-							})
-						}
-						setTimeout(() => {
-							this.materSn = "";
-						}, 100);
-					}
-				})
-			},
-			pksnInput() {
-				this.$nextTick(() => {
-					if (this.pkmaterSn != "") {
+    this.id = res.id;
+    this.addressFocus = false;
+    this.orderNo = res.orderNo;
+    this.Inqty = res.order_Inqty;
+    this.orderqty = res.order_qty;
+    this.batchNo = res.batchNo;
+    this.materielCode = res.goods_no;
+    this.warehouseId = res.warehouseId;
+    this.label = "鍗曟嵁缂栧彿锛�" + this.orderNo;
+    this.batch_num = "鎵规鍙凤細" + res.batchNo;
+    this.order_qty = "鍗曟嵁鏁伴噺锛�" + res.order_qty;
+    this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
+    this.goods_no = "鐗╂枡缂栧彿锛�" + res.goods_no;
+    // this.getData();
+  },
+  methods: {
+    // voiceSpeech(src) {
+    // 	innerAudioContext.src = src; // '../../static/success.mp3';
+    // 	innerAudioContext.play();
+    // },
 
-						var matSn = this.pkmaterSn;
+    // 鐗╂枡缂栫爜楠岃瘉
+    materialCodeInput() {
+      console.log("materialCodeInput 琚Е鍙�");
+      console.log("杈撳叆鍊�:", this.materialCode);
+      this.$nextTick(() => {
+        if (this.materialCode.trim() !== "") {
+          const scannedCode = this.materialCode.trim();
+          const expectedCode = this.materielCode;
 
-						if (matSn.indexOf("POHA") > 0) {
-							this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + matSn, {}).then((res) => {
-								if (res.status) {
-									this.pksns.push(res.data.serialNumber);
-									this.pkmatInfos.push(res.data);
-									if (!res.status) {
-										this.$refs.uToast.show({
-											title: res.message,
-											type: "error"
-										})
-										// setTimeout(() => {
-										// 	this.voiceSpeech('../../static/fail.mp3');
-										// }, 100);
-										return;
-									}
-									// setTimeout(() => {
-									// 	this.voiceSpeech('../../static/success.mp3');
-									// }, 100);
-									return;
-								} else {
-									this.$refs.uToast.show({
-										title: res.message,
-										type: "error"
-									})
-									// setTimeout(() => {
-									// 	this.voiceSpeech('../../static/fail.mp3');
-									// }, 100);
-								}
-							})
-						}
-						setTimeout(() => {
-							this.pkmaterSn = "";
-						}, 100);
-					}
-				})
-			},
-			inbound() {
-				if (this.inboundBarcode == "") {
-					this.$refs.uToast.show({
-						title: "璇锋壂鎻忔墭鐩樻潯鐮�",
-						type: "error"
-					})
-					return;
-				}
-				if (this.address == "") {
-					this.$refs.uToast.show({
-						title: "璇锋壂鎻忓湴鍧�鏉$爜",
-						type: "error"
-					})
-					return;
-				}
-				var postData = {
-					MainData: {
-						"barcode": this.inboundBarcode,
-						"startPoint": this.address,
-						"warehouseId": this.warehouseId
-					}
-				}
-				this.$u.post('/api/Task/RequestInboundTask', postData).then(res => {
-					if (res.status) {
-						this.inboundBarcode = "";
-						if (this.warehouseId != 5) this.address = "";
-						setTimeout(() => {
-							this.addressFocus = false;
-							this.$refs.uToast.show({
-								title: "鎴愬姛",
-								type: "success"
-							})
-						}, 200);
-					} else {
-						this.$refs.uToast.show({
-							title: res.message,
-							type: "error"
-						})
-					}
-				}).catch(err => {
-					this.$refs.uToast.show({
-						title: err.message,
-						type: "error"
-					})
-				})
-			},
-			inputChangebarcode() {
-				this.addressFocus = false;
-				this.$nextTick(function(x) {
-					if (this.inboundBarcode != '') {
-						this.addressFocus = true;
-					}
-				})
-			},
-			deleteList(res) {
-				this.matInfos.splice(res, 1);
-				this.sns.splice(res, 1);
-			},
-			pkdeleteList(res) {
-				this.pkmatInfos.splice(res, 1);
-				this.pksns.splice(res, 1);
-			},
-			reset() {
-				this.barcode = "";
-				this.matInfos = [];
-				this.sns = [];
-				this.materSn = "";
-				if (this.warehouseId = !6) {
-					this.Initiallife = 0;
-				}
-			},
-			resetInPk() {
-				this.pkmaterSn = "";
-				this.pkfocus = false;
-				this.pkmatInfos = [];
-				this.pksns = [];
-			},
-			pksubmit() {
-				if (this.pkmatInfos.length == 0) {
-					this.$refs.uToast.show({
-						title: "璇锋壂鎻忓唴绠辨爣绛�",
-						type: 'error'
-					})
-					return;
-				}
-				this.$u.post('/api/InboundOrder/InPinKu?warehouseId=' + this.warehouseId + "&orderNo=" + this.orderNo, this
-					.pksns).then(res => {
-					if (res.status) {
-						this.$refs.uToast.show({
-							title: "鍏ュ簱鎴愬姛",
-							type: "success"
-						})
-						this.pkfocus = false;
-						this.pkmatInfos = [];
-						this.pksns = [];
-					} else {
-						this.$refs.uToast.show({
-							title: res.message,
-							type: "error"
-						})
-					}
-				})
-			},
-			// submit() {
-			// 	if (this.barcode == "") {
-			// 		this.$refs.uToast.show({
-			// 			title: "璇锋壂鎻忚揣浣嶇紪鍙�",
-			// 			type: 'error'
-			// 		})
-			// 		return;
-			// 	}
-			// 	if (this.materSn.length == 0) {
-			// 		this.$refs.uToast.show({
-			// 			title: "璇疯緭鍏ュ叆搴撴暟閲�",
-			// 			type: 'error'
-			// 		})
-			// 		return;
-			// 	}
-			// 	uni.showLoading({
-			// 		title: '鎻愪氦涓�...'
-			// 	});
-			// 	this.$u.post('/api/CabinOrder/FeedbackIn', {
-			// 		MainData: {
-			// 			"LocationCode": this.barcode,
-			// 			"id":this.id,
-			// 			"warehouseCode": this.warehouseId,
-			// 			"orderNo": this.orderNo,
-			// 			"materielCode": this.materielCode,
-			// 			"Inqty": this.materSn,
-			// 			"batchNo": this.batchNo,
-			// 		},
-			// 		DelKeys: this.sns
-			// 	}).then(res => {
-			// 		uni.hideLoading();
-			// 		this.Testcheck = false;
-			// 		if (res.status) {
-			// 			this.$refs.uToast.show({
-			// 				title: "鍏ュ簱鎴愬姛",
-			// 				type: "success"
-			// 			})
-			// 			this.Inqty = parseInt(res.message);
-			// 			this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
-			// 			this.barcode = "";
-			// 			this.materSn = "";
-			// 			if (this.Inqty == this.orderqty) {
-			// 				uni.setStorageSync('isIn', true);
-			// 				this.handleInboundComplete();
-			// 			}
-			// 		} else {
-			// 			this.$refs.uToast.show({
-			// 				title: res.message,
-			// 				type: "error"
-			// 			})
-			// 		}
-			// 	}).catch(err => {
-			// 		uni.hideLoading();
-			// 		this.$refs.uToast.show({
-			// 			title: "缃戠粶閿欒锛岃閲嶈瘯",
-			// 			type: "error"
-			// 		})
-			// 	})
-			// },
-			// 鏂板鏂规硶澶勭悊鍏ュ簱瀹屾垚閫昏緫
-			
-			submit() {
-    if (this.barcode == "") {
-        this.$refs.uToast.show({
-            title: "璇锋壂鎻忚揣浣嶇紪鍙�",
-            type: 'error'
-        })
-        return;
-    }
-    if (this.materSn.length == 0) {
-        this.$refs.uToast.show({
-            title: "璇疯緭鍏ュ叆搴撴暟閲�",
-            type: 'error'
-        })
-        return;
-    }
+          console.log("鎵弿缂栫爜:", scannedCode);
+          console.log("鏈熸湜缂栫爜锛坢aterielCode锛�:", expectedCode);
 
-    // 鏂板浜屾纭閫昏緫
-    uni.showModal({
-        title: '纭鍏ュ簱',
-        content: '鎮ㄧ‘瀹氳鎻愪氦鍏ュ簱淇℃伅鍚楋紵',
-        success: (res) => {
-            if (res.confirm) {
-                // 鐢ㄦ埛鐐瑰嚮纭畾锛屾墽琛屽師鏈夌殑鎻愪氦閫昏緫
-                uni.showLoading({
-                    title: '鎻愪氦涓�...'
-                });
-                this.$u.post('/api/CabinOrder/FeedbackIn', {
-                    MainData: {
-                        "LocationCode": this.barcode,
-                        "id": this.id,
-                        "warehouseCode": this.warehouseId,
-                        "orderNo": this.orderNo,
-                        "materielCode": this.materielCode,
-                        "Inqty": this.materSn,
-                        "batchNo": this.batchNo,
-                    },
-                    DelKeys: this.sns
-                }).then(res => {
-                    uni.hideLoading();
-                    this.Testcheck = false;
-                    if (res.status) {
-                        this.$refs.uToast.show({
-                            title: "鍏ュ簱鎴愬姛",
-                            type: "success"
-                        })
-                        this.Inqty = parseInt(res.message);
-                        this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
-                        this.barcode = "";
-                        this.materSn = "";
-                        if (this.Inqty == this.orderqty) {
-                            uni.setStorageSync('isIn', true);
-                            this.handleInboundComplete();
-                        }
-                    } else {
-                        this.$refs.uToast.show({
-                            title: res.message,
-                            type: "error"
-                        })
-                    }
-                }).catch(err => {
-                    uni.hideLoading();
-                    this.$refs.uToast.show({
-                        title: "缃戠粶閿欒锛岃閲嶈瘯",
-                        type: "error"
-                    })
-                })
-            } else {
-                // 鐢ㄦ埛鐐瑰嚮鍙栨秷锛屼笉鍋氫换浣曟搷浣�
-            }
+          if (scannedCode === expectedCode) {
+            this.materialCodeValid = true;
+            console.log("鉁� 鐗╂枡缂栫爜楠岃瘉鎴愬姛");
+
+            // 楠岃瘉鎴愬姛鍚庝笉娓呯┖鍊硷紝鐩存帴鍒囨崲鍒颁笅涓�姝�
+            this.step = 2;
+            this.$refs.uToast.show({
+              title: "鐗╂枡缂栫爜楠岃瘉鎴愬姛",
+              type: "success",
+            });
+            // 浣跨敤 $nextTick 纭繚鐒︾偣鍒囨崲鍦� DOM 鏇存柊鍚庢墽琛�
+            this.$nextTick(() => {
+              // 璁╁簱浣嶇紪鍙疯緭鍏ユ鑾峰緱鐒︾偣
+              this.$refs.midInput.focus();
+            });
+          } else {
+            this.materialCodeValid = false;
+            console.log("鉂� 鐗╂枡缂栫爜楠岃瘉澶辫触");
+
+            this.$refs.uToast.show({
+              title: `鐗╂枡缂栫爜涓嶅尮閰峘,
+              type: "error",
+            });
+
+            // 楠岃瘉澶辫触鏃舵竻绌哄�煎苟淇濇寔鐒︾偣鍦ㄧ墿鏂欑紪鐮佽緭鍏ユ
+            setTimeout(() => {
+              this.materialCode = "";
+              this.step = 1;
+              // 纭繚鐒︾偣鍥炲埌鐗╂枡缂栫爜杈撳叆妗�
+              this.$nextTick(() => {
+                this.$refs.materialInput.focus();
+              });
+            }, 500);
+          }
         }
-    });
-},
+      });
+    },
 
-			handleInboundComplete() {
-				// 鏄剧ず瀹屾垚鎻愮ず
-				// uni.showModal({
-				// 	title: '鎻愮ず',
-				// 	content: '鍏ュ簱宸插畬鎴愶紝鏄惁杩斿洖棣栭〉锛�',
-				// 	success: (res) => {
-				// 		if (res.confirm) {
-				// 			// 鐢ㄦ埛鐐瑰嚮纭畾
-				// 			setTimeout(() => {
-				// 				// uni.redirectTo({
-				// 				// 	url: '/pages/stash/inboundorder?warehouseId='+this.warehouseId // 鏇挎崲涓轰綘鐨勭洰鏍囬〉闈㈣矾寰�
-				// 				// });
-				// 				uni.navigateBack({
-				// 					delta: 2
-				// 				});
-				// 			}, 500);
-				// 		} else {
-				// 			// 鐢ㄦ埛鐐瑰嚮鍙栨秷锛屽彲浠ュ仠鐣欏湪褰撳墠椤甸潰
-				// 			// 鎴栬�呮墽琛屽叾浠栨搷浣�
-				// 		}
-				// 	}
-				// });
+    updateFocus() {
+      debugger;
+      this.$nextTick(() => {
+        this.materSn = "";
+        if (!this.focus) {
+          this.focus = true;
+        }
+      });
+    },
+    barcodeFocus() {
+      debugger;
+      this.barcode = "";
+      if (this.focus) {
+        this.focus = false;
+      }
+    },
+    getData() {
+      var postData = {
+        MainData: {
+          orderNo: this.orderNo,
+        },
+      };
+      this.$u
+        .post("/api/InboundOrderDetail/GetInboundOrderDetails", postData)
+        .then((res) => {
+          if (res.status) {
+            this.orderInfo = res.data;
+            if (this.orderInfo.length > 3) {
+              this.loadVisible = true;
+            }
+          }
+        });
+    },
+    onClickItem(e) {
+      this.focus = false;
+      this.addressFocus = false;
+      if (this.current !== e.currentIndex) {
+        this.current = e.currentIndex;
+        if (this.current == 2) {
+          this.getData();
+        }
+      }
+    },
 
-				// 鎴栬�呯洿鎺ヨ烦杞紙涓嶈闂敤鎴凤級
-				setTimeout(() => {
-					// 鏂瑰紡2锛氳烦杞埌鎸囧畾椤甸潰
-					// uni.redirectTo({
-					//     url: '/pages/order/list' // 鏇挎崲涓轰綘鐨勭洰鏍囬〉闈㈣矾寰�
-					// });
-					// 鏂瑰紡3锛氳烦杞埌棣栭〉
-					// uni.switchTab({
-					//     url: '/pages/index/index'
-					// });
-					// 鏂瑰紡1锛氫娇鐢╱ni.navigateBack杩斿洖涓婁竴椤�
-					uni.navigateBack({
-						delta: 1
-					});
-				}, 600);
-			}
-		}
-	}
+    // barcodeInput() {
+    // this.$nextTick(function(x) {
+    // 	if (this.barcode.length > 0) {
+    // 	// 鎵弿搴撲綅缂栧彿鍚庯紝鑷姩鍒囨崲鍒板叆搴撴暟閲忚緭鍏ユ锛堟楠�3锛�
+    // 	setTimeout(() => {
+    // 		this.step = 3; // 鍒囨崲鍒板叆搴撴暟閲�
+    // 		this.$refs.uToast.show({
+    // 		title: "搴撲綅缂栧彿鎵弿鎴愬姛",
+    // 		type: "success"
+    // 		});
+    // 	}, 100);
+    // 	}
+    // })
+    // },
+    barcodeInput() {
+      this.$nextTick(() => {
+        if (this.barcode.length > 0) {
+          this.step = 3; // 鍒囨崲鍒板叆搴撴暟閲�
+          this.$refs.uToast.show({
+            title: "搴撲綅缂栧彿鎵弿鎴愬姛",
+            type: "success",
+          });
+          // 娣诲姞寤舵椂纭繚鎵爜瀹屾垚
+          setTimeout(() => {
+            this.$nextTick(() => {
+              this.$refs.midInput.focus();
+            });
+          }, 100);
+        }
+      });
+    },
+
+    snInput() {
+      this.$nextTick(() => {
+        if (this.materSn != "") {
+          this.focus = false;
+          var matSn = this.materSn;
+          if (this.warehouseId == 11) {
+            matSn = matSn.replace(/,SC.*/, "");
+          }
+          //鏌ヨmatSn鏄惁瀛樺湪瀛楃
+          if (matSn.indexOf("POHA") > 0) {
+            this.$u
+              .post("/api/MaterielInfo/CodeAnalysis?serNum=" + matSn, {})
+              .then((res) => {
+                this.Testcheck = false;
+                if (res.status) {
+                  this.sns.push(res.data.serialNumber);
+
+                  this.matInfos.push(res.data);
+                  if (res.message) {
+                    this.$refs.uToast.show({
+                      title: res.message,
+                      type: "error",
+                    });
+                    // setTimeout(() => {
+                    // 	this.voiceSpeech('../../static/fail.mp3');
+                    // }, 100);
+                    return;
+                  }
+                  // setTimeout(() => {
+                  // 	this.voiceSpeech('../../static/success.mp3');
+                  // }, 100);
+                } else {
+                  this.$refs.uToast.show({
+                    title: res.message,
+                    type: "error",
+                  });
+                  // setTimeout(() => {
+                  // 	this.voiceSpeech('../../static/fail.mp3');
+                  // }, 100);
+                }
+              });
+          }
+          setTimeout(() => {
+            this.materSn = "";
+          }, 100);
+        }
+      });
+    },
+    pksnInput() {
+      this.$nextTick(() => {
+        if (this.pkmaterSn != "") {
+          var matSn = this.pkmaterSn;
+
+          if (matSn.indexOf("POHA") > 0) {
+            this.$u
+              .post("/api/MaterielInfo/CodeAnalysis?serNum=" + matSn, {})
+              .then((res) => {
+                if (res.status) {
+                  this.pksns.push(res.data.serialNumber);
+                  this.pkmatInfos.push(res.data);
+                  if (!res.status) {
+                    this.$refs.uToast.show({
+                      title: res.message,
+                      type: "error",
+                    });
+                    // setTimeout(() => {
+                    // 	this.voiceSpeech('../../static/fail.mp3');
+                    // }, 100);
+                    return;
+                  }
+                  // setTimeout(() => {
+                  // 	this.voiceSpeech('../../static/success.mp3');
+                  // }, 100);
+                  return;
+                } else {
+                  this.$refs.uToast.show({
+                    title: res.message,
+                    type: "error",
+                  });
+                  // setTimeout(() => {
+                  // 	this.voiceSpeech('../../static/fail.mp3');
+                  // }, 100);
+                }
+              });
+          }
+          setTimeout(() => {
+            this.pkmaterSn = "";
+          }, 100);
+        }
+      });
+    },
+    inbound() {
+      if (this.inboundBarcode == "") {
+        this.$refs.uToast.show({
+          title: "璇锋壂鎻忔墭鐩樻潯鐮�",
+          type: "error",
+        });
+        return;
+      }
+      if (this.address == "") {
+        this.$refs.uToast.show({
+          title: "璇锋壂鎻忓湴鍧�鏉$爜",
+          type: "error",
+        });
+        return;
+      }
+      var postData = {
+        MainData: {
+          barcode: this.inboundBarcode,
+          startPoint: this.address,
+          warehouseId: this.warehouseId,
+        },
+      };
+      this.$u
+        .post("/api/Task/RequestInboundTask", postData)
+        .then((res) => {
+          if (res.status) {
+            this.inboundBarcode = "";
+            if (this.warehouseId != 5) this.address = "";
+            setTimeout(() => {
+              this.addressFocus = false;
+              this.$refs.uToast.show({
+                title: "鎴愬姛",
+                type: "success",
+              });
+            }, 200);
+          } else {
+            this.$refs.uToast.show({
+              title: res.message,
+              type: "error",
+            });
+          }
+        })
+        .catch((err) => {
+          this.$refs.uToast.show({
+            title: err.message,
+            type: "error",
+          });
+        });
+    },
+    inputChangebarcode() {
+      this.addressFocus = false;
+      this.$nextTick(function (x) {
+        if (this.inboundBarcode != "") {
+          this.addressFocus = true;
+        }
+      });
+    },
+    deleteList(res) {
+      this.matInfos.splice(res, 1);
+      this.sns.splice(res, 1);
+    },
+    pkdeleteList(res) {
+      this.pkmatInfos.splice(res, 1);
+      this.pksns.splice(res, 1);
+    },
+    reset() {
+      //閲嶇疆鐗╂枡缂栫爜鐩稿叧鐘舵��
+      this.materialCode = "";
+      this.materialCodeValid = false;
+      this.materialFocus = false;
+
+      this.barcode = "";
+      this.matInfos = [];
+      this.sns = [];
+      this.materSn = "";
+      if ((this.warehouseId = !6)) {
+        this.Initiallife = 0;
+      }
+    },
+    resetInPk() {
+      this.pkmaterSn = "";
+      this.pkfocus = false;
+      this.pkmatInfos = [];
+      this.pksns = [];
+    },
+    pksubmit() {
+      if (this.pkmatInfos.length == 0) {
+        this.$refs.uToast.show({
+          title: "璇锋壂鎻忓唴绠辨爣绛�",
+          type: "error",
+        });
+        return;
+      }
+      this.$u
+        .post(
+          "/api/InboundOrder/InPinKu?warehouseId=" +
+            this.warehouseId +
+            "&orderNo=" +
+            this.orderNo,
+          this.pksns
+        )
+        .then((res) => {
+          if (res.status) {
+            this.$refs.uToast.show({
+              title: "鍏ュ簱鎴愬姛",
+              type: "success",
+            });
+            this.pkfocus = false;
+            this.pkmatInfos = [];
+            this.pksns = [];
+          } else {
+            this.$refs.uToast.show({
+              title: res.message,
+              type: "error",
+            });
+          }
+        });
+    },
+    // submit() {
+    // 	if (this.barcode == "") {
+    // 		this.$refs.uToast.show({
+    // 			title: "璇锋壂鎻忚揣浣嶇紪鍙�",
+    // 			type: 'error'
+    // 		})
+    // 		return;
+    // 	}
+    // 	if (this.materSn.length == 0) {
+    // 		this.$refs.uToast.show({
+    // 			title: "璇疯緭鍏ュ叆搴撴暟閲�",
+    // 			type: 'error'
+    // 		})
+    // 		return;
+    // 	}
+    // 	uni.showLoading({
+    // 		title: '鎻愪氦涓�...'
+    // 	});
+    // 	this.$u.post('/api/CabinOrder/FeedbackIn', {
+    // 		MainData: {
+    // 			"LocationCode": this.barcode,
+    // 			"id":this.id,
+    // 			"warehouseCode": this.warehouseId,
+    // 			"orderNo": this.orderNo,
+    // 			"materielCode": this.materielCode,
+    // 			"Inqty": this.materSn,
+    // 			"batchNo": this.batchNo,
+    // 		},
+    // 		DelKeys: this.sns
+    // 	}).then(res => {
+    // 		uni.hideLoading();
+    // 		this.Testcheck = false;
+    // 		if (res.status) {
+    // 			this.$refs.uToast.show({
+    // 				title: "鍏ュ簱鎴愬姛",
+    // 				type: "success"
+    // 			})
+    // 			this.Inqty = parseInt(res.message);
+    // 			this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
+    // 			this.barcode = "";
+    // 			this.materSn = "";
+    // 			if (this.Inqty == this.orderqty) {
+    // 				uni.setStorageSync('isIn', true);
+    // 				this.handleInboundComplete();
+    // 			}
+    // 		} else {
+    // 			this.$refs.uToast.show({
+    // 				title: res.message,
+    // 				type: "error"
+    // 			})
+    // 		}
+    // 	}).catch(err => {
+    // 		uni.hideLoading();
+    // 		this.$refs.uToast.show({
+    // 			title: "缃戠粶閿欒锛岃閲嶈瘯",
+    // 			type: "error"
+    // 		})
+    // 	})
+    // },
+    // 鏂板鏂规硶澶勭悊鍏ュ簱瀹屾垚閫昏緫
+
+    submit() {
+      // 鍏堥獙璇佺墿鏂欑紪鐮�
+      if (!this.materialCodeValid) {
+        this.$refs.uToast.show({
+          title: "璇峰厛鎵弿骞堕獙璇佺墿鏂欑紪鐮�",
+          type: "error",
+        });
+        return;
+      }
+      if (this.barcode == "") {
+        this.$refs.uToast.show({
+          title: "璇锋壂鎻忚揣浣嶇紪鍙�",
+          type: "error",
+        });
+        return;
+      }
+      if (this.materSn.length == 0) {
+        this.$refs.uToast.show({
+          title: "璇疯緭鍏ュ叆搴撴暟閲�",
+          type: "error",
+        });
+        return;
+      }
+
+      // 鏂板浜屾纭閫昏緫
+      uni.showModal({
+        title: "纭鍏ュ簱",
+        content: "鎮ㄧ‘瀹氳鎻愪氦鍏ュ簱淇℃伅鍚楋紵",
+        success: (res) => {
+          if (res.confirm) {
+            // 鐢ㄦ埛鐐瑰嚮纭畾锛屾墽琛屽師鏈夌殑鎻愪氦閫昏緫
+            uni.showLoading({
+              title: "鎻愪氦涓�...",
+            });
+            this.$u
+              .post("/api/CabinOrder/FeedbackIn", {
+                MainData: {
+                  LocationCode: this.barcode,
+                  id: this.id,
+                  warehouseCode: this.warehouseId,
+                  orderNo: this.orderNo,
+                  materielCode: this.materielCode,
+                  Inqty: this.materSn,
+                  batchNo: this.batchNo,
+                },
+                DelKeys: this.sns,
+              })
+              .then((res) => {
+                uni.hideLoading();
+                this.Testcheck = false;
+                if (res.status) {
+                  this.$refs.uToast.show({
+                    title: "鍏ュ簱鎴愬姛",
+                    type: "success",
+                  });
+                  this.Inqty = parseInt(res.message);
+                  this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
+                  // 鎵嬪姩娓呯┖鎵�鏈夎緭鍏ユ暟鎹�
+                  this.materialCode = "";
+                  this.materialCodeValid = false;
+                  this.barcode = "";
+                  this.materSn = "";
+                  this.step = 1; // 閲嶇疆姝ラ鍒扮涓�姝�
+
+                  // 浣跨敤 $nextTick 纭繚鐒︾偣璁剧疆鍦� DOM 鏇存柊鍚庢墽琛�
+                  this.$nextTick(() => {
+                    // 纭繚鐗╂枡缂栫爜杈撳叆妗嗚幏寰楃劍鐐�
+                    this.$refs.materialInput.focus();
+                  });
+                  if (this.Inqty == this.orderqty) {
+                    uni.setStorageSync("isIn", true);
+                    this.handleInboundComplete();
+                  }
+                } else {
+                  this.$refs.uToast.show({
+                    title: res.message,
+                    type: "error",
+                  });
+                }
+              })
+              .catch((err) => {
+                uni.hideLoading();
+                this.$refs.uToast.show({
+                  title: "缃戠粶閿欒锛岃閲嶈瘯",
+                  type: "error",
+                });
+              });
+          } else {
+            // 鐢ㄦ埛鐐瑰嚮鍙栨秷锛屼笉鍋氫换浣曟搷浣�
+          }
+        },
+      });
+    },
+
+    handleInboundComplete() {
+      // 鏄剧ず瀹屾垚鎻愮ず
+      // uni.showModal({
+      // 	title: '鎻愮ず',
+      // 	content: '鍏ュ簱宸插畬鎴愶紝鏄惁杩斿洖棣栭〉锛�',
+      // 	success: (res) => {
+      // 		if (res.confirm) {
+      // 			// 鐢ㄦ埛鐐瑰嚮纭畾
+      // 			setTimeout(() => {
+      // 				// uni.redirectTo({
+      // 				// 	url: '/pages/stash/inboundorder?warehouseId='+this.warehouseId // 鏇挎崲涓轰綘鐨勭洰鏍囬〉闈㈣矾寰�
+      // 				// });
+      // 				uni.navigateBack({
+      // 					delta: 2
+      // 				});
+      // 			}, 500);
+      // 		} else {
+      // 			// 鐢ㄦ埛鐐瑰嚮鍙栨秷锛屽彲浠ュ仠鐣欏湪褰撳墠椤甸潰
+      // 			// 鎴栬�呮墽琛屽叾浠栨搷浣�
+      // 		}
+      // 	}
+      // });
+
+      // 鎴栬�呯洿鎺ヨ烦杞紙涓嶈闂敤鎴凤級
+      setTimeout(() => {
+        // 鏂瑰紡2锛氳烦杞埌鎸囧畾椤甸潰
+        // uni.redirectTo({
+        //     url: '/pages/order/list' // 鏇挎崲涓轰綘鐨勭洰鏍囬〉闈㈣矾寰�
+        // });
+        // 鏂瑰紡3锛氳烦杞埌棣栭〉
+        // uni.switchTab({
+        //     url: '/pages/index/index'
+        // });
+        // 鏂瑰紡1锛氫娇鐢╱ni.navigateBack杩斿洖涓婁竴椤�
+        uni.navigateBack({
+          delta: 1,
+        });
+      }, 600);
+    },
+  },
+};
 </script>
 
 <style lang="scss">
-	@import '@/common/uni-ui.scss';
+@import "@/common/uni-ui.scss";
 
-	.content {
-		display: flex;
-		height: 150px;
-	}
+.content {
+  display: flex;
+  height: 150px;
+}
 
-	.content-text {
-		font-size: 14px;
-		color: #666;
-	}
+.content-text {
+  font-size: 14px;
+  color: #666;
+}
 
-	.itemstyle {
-		margin-top: 30px;
-		margin-left: 5%;
-	}
+.itemstyle {
+  margin-top: 30px;
+  margin-left: 5%;
+}
 
-	.headerstyle {
-		width: 90%;
-	}
+.headerstyle {
+  width: 90%;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3