From 2b05362eba2f989b7857349cc9a3a1c12f8181b6 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周五, 26 9月 2025 11:35:50 +0800 Subject: [PATCH] 222 --- yiqi_pda/pages/outBound/index.vue | 55 +++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 35 insertions(+), 20 deletions(-) diff --git a/yiqi_pda/pages/outBound/index.vue b/yiqi_pda/pages/outBound/index.vue index 0601564..39e268a 100644 --- a/yiqi_pda/pages/outBound/index.vue +++ b/yiqi_pda/pages/outBound/index.vue @@ -1,5 +1,5 @@ <template> - <default-header-page-layout ref="page" title="鍑哄簱鎵ц"> + <default-header-page-layout ref="page" title="鍏ュ簱鎵ц"> <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight"> <action-user-row /> @@ -15,7 +15,7 @@ <template v-slot:footer> <view class="bottom-btns-row"> <view class="btn-frame right-btn-frame"> - <u-button :disabled="workPieceData.length<1" type="primary" text="纭鍑哄簱" + <u-button :disabled="workPieceData.length<1" type="primary" text="纭鍏ュ簱" @click="outBoundConfirm"></u-button> </view> </view> @@ -55,7 +55,7 @@ data() { return { barHeight: '', - ckNumToday: "0", //浠婂ぉ鎬诲嚭搴撴暟 + ckNumToday: "0", //浠婂ぉ鎬诲叆搴撴暟 baseTitile: '鎵弿鎴愬搧鐮�/宸ヤ欢浜岀淮鐮�', //鎵弿鎴愬搧鐮�/宸ヤ欢浜岀淮鐮� title: '', pageBodyHeight: 0, @@ -73,9 +73,12 @@ onLoad() { var _this = this; _this._getOutBoundWorkPieceInfoCount(); + //涓嶅啀寰幆璇� + /* this.myInterval = setInterval(function() { _this._getOutBoundWorkPieceInfoCount(); }, 1000 * 10); + //*/ //this.myInterval=setInterval(this.myFun(), 3000); }, methods: { @@ -91,25 +94,27 @@ }, // 鑾峰彇宸ヤ欢淇℃伅 async onSearchContainter(OP80NewCode) { - // if (OP80NewCode.length > 22) { - // this.initFocus(100); - - // uni.showToast({ - // title: '宸ヤ欢鐮佹垨鎴愬搧鐮侀暱搴︿笉姝g‘', - // icon: 'error', - // duration: 2000, - // mask: true - // }); - // return; - // } + //debugger + if (OP80NewCode.length != 21) { + this.initFocus(100); + // uni.showToast({ + // title: '宸ヤ欢鐮佹垨鎴愬搧鐮侀暱搴︿笉姝g‘', + // icon: 'error', + // duration: 2000, + // mask: true + // }); + return; + } + this.inputFocus = false const param = { OP80NewCode: OP80NewCode } try { - let { - data - } = await getWorkPieceByOP80NewCode(param) + let data={}; + data.addTime = new Date(); + data.workPieceID=OP80NewCode; + data.oP80NewCode=OP80NewCode; if (!this.workPieceData.some(item => item.workPieceID == data.workPieceID)) { data.addTime = new Date(); this.workPieceData.push(data) @@ -117,6 +122,7 @@ //椤哄簭璋冭浆锛屾帓搴� this.workPieceData.sort((a, b) => b.addTime - a.addTime); + this.OP80NewCode = ''; //姣忔鍒峰畬灏辨竻绌鸿緭鍏ユ 銆怑ditby shaocx,2024-06-12銆� this.initFocus(100); //console.log(this.workPieceData,'dsts'); // setTimeout(()=>{ @@ -129,11 +135,11 @@ //TODO handle the exception console.log(e); } - //this.msg = " 鎵爜鏁�:"+this.workPieceData.length+" 浠婃棩鍑哄簱鏁�:"; + //this.msg = " 鎵爜鏁�:"+this.workPieceData.length+" 浠婃棩鍏ュ簱鏁�:"; this.setMsg(); }, setMsg() { - this.msg = " 鎵爜鏁�:" + this.workPieceData.length + " 浠婃棩鍑哄簱鏁�:" + this.ckNumToday; + this.msg = " 鎵爜鏁�:" + this.workPieceData.length + " 浠婃棩鍏ュ簱鏁�:" + this.ckNumToday; }, initFocus(num) { setTimeout(() => { @@ -162,14 +168,21 @@ reflesh() { this.OP80NewCode = '' this.workPieceData = [] + setTimeout(() => { + this._getOutBoundWorkPieceInfoCount(); + this.setMsg(); + }, 1000) }, outBoundConfirm() { + this.$refs.pwdRef.showModal(this.workPieceData) + + /* // 瀛樺湪闈炴垚鍝� const flag = this.workPieceData.some(item => item.workPieceState != 10) if (flag) { uni.showModal({ title: '鎻愮ず', - content: '褰撳墠宸ヤ欢瀛樺湪闈炴垚鍝侊紝纭畾寮哄埗鍑哄簱鍚楋紵', + content: '褰撳墠宸ヤ欢瀛樺湪闈炴垚鍝侊紝纭畾寮哄埗鍏ュ簱鍚楋紵', success: (value) => { const { confirm, @@ -183,6 +196,8 @@ } else { this.$refs.pwdRef.showModal(this.workPieceData) } + + //*/ }, /* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */ -- Gitblit v1.9.3