From e0dfde82cb2a33b3058ceaa225c82614b22075cd Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 05 9月 2024 10:13:09 +0800
Subject: [PATCH] 优化
---
yiqi_pda/pages/outBound/index.vue | 43 +++++++++++++++++++++++++++++--------------
1 files changed, 29 insertions(+), 14 deletions(-)
diff --git a/yiqi_pda/pages/outBound/index.vue b/yiqi_pda/pages/outBound/index.vue
index 0601564..f9fa1dc 100644
--- a/yiqi_pda/pages/outBound/index.vue
+++ b/yiqi_pda/pages/outBound/index.vue
@@ -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(()=>{
@@ -162,8 +168,15 @@
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) {
@@ -183,6 +196,8 @@
} else {
this.$refs.pwdRef.showModal(this.workPieceData)
}
+
+ //*/
},
/* 椤甸潰鍒濆鍖栬幏鍙栭〉闈ody楂樺害鐨勫畾鏃跺櫒 */
--
Gitblit v1.9.3