From c5380b5cb810005ebfcc1c48247dc4f603a0fd00 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期日, 28 九月 2025 10:15:21 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
---
pages/gongxuOut/form.vue | 82 +++++++++++++++++++++++++++++++++++++----
1 files changed, 74 insertions(+), 8 deletions(-)
diff --git a/pages/gongxuOut/form.vue b/pages/gongxuOut/form.vue
index 7938abf..27a3014 100644
--- a/pages/gongxuOut/form.vue
+++ b/pages/gongxuOut/form.vue
@@ -647,6 +647,13 @@
this.getEditData(e.linterid, e.HBillNo)
} else {
this.getNewData()
+ if(e.HBarCode){
+ this.hform.HBarCode=e.HBarCode
+ setTimeout(() => {
+ this.toInCode(e);
+ }, 1000)
+ }
+
}
this.getHMaterList()
this.getHProcList()
@@ -657,6 +664,7 @@
this.getHCenterList()
this.getDefValByUser()
+
},
methods: {
//閫変腑鍏ㄩ儴鏂囨湰
@@ -1753,18 +1761,22 @@
} else {
uni.showModal({
title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ content: res.data.Message + '銆傛槸鍚︾户缁柊澧炰笅涓�閬撳伐搴忥紵(鐐瑰嚮鍙栨秷杩斿洖鏂板椤甸潰)',
success: (res) => {
if (res.confirm) {
console.log('鐢ㄦ埛鐐瑰嚮纭畾');
- uni.redirectTo({
- url: '/pages/gongxuOut/form?OperationType=1'
- })
+ this.getNextProc()
+ // uni.redirectTo({
+ // url: '/pages/gongxuOut/form?OperationType=1'
+ // })
} else if (res.cancel) {
console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
- setTimeout(() => {
- uni.navigateBack();
- }, 50)
+ // setTimeout(() => {
+ // uni.navigateBack();
+ // }, 50)
+ uni.redirectTo({
+ url: '/pages/gongxuOut/form?OperationType=1'
+ })
}
}
});
@@ -1897,7 +1909,61 @@
}
}
});
- }
+ },
+ getNextProc(){
+ uni.request({
+ url: this.serverUrl + '/LEMS/MES_Sc_ProcessExchangeBillQuerySub_Json',
+ method: 'GET',
+ dataType: "json",
+ data: {
+ sWhere:this.hform.HProcExchHinteID
+ },
+ success: (res) => {
+ console.log(1, res);
+ if (res.data.count == 1) {
+ let processList = res.data.data
+
+ // 1. 鍏堣繃婊ゅ嚭 HSEQNumber === 'N' 鐨勬暟鎹�
+ processList = processList.filter(item => item.HSEQNumber === this.hform.HSEQNumber);
+
+ //褰撳墠宸ュ簭缂栧彿
+ const currentIndex = processList.findIndex(item => item["宸ュ簭鍙�"] === this.hform.HProcNo);
+ // 鑾峰彇涓嬩竴涓伐搴忥紙濡傛灉瀛樺湪锛�
+ const nextProcess = currentIndex !== -1 && currentIndex < processList.length - 1
+ ? processList[currentIndex + 1] : null;
+ if(!nextProcess){
+ uni.showToast({
+ title: '娌℃湁涓嬩竴閬撳伐搴忓嵆灏嗚烦杞柊澧為〉闈�',
+ icon: 'none'
+ })
+ uni.redirectTo({
+ url: '/pages/gongxuOut/form?OperationType=1'
+ })
+ }else{
+ this.hform.HProcNo=nextProcess["宸ュ簭鍙�"];
+ const HNextBarCode = this.hform.HBarCode+"@"+this.hform.HProcNo+"@"+this.hform.HSEQNumber
+ uni.redirectTo({
+ url: '/pages/gongxuOut/form?OperationType=1&HBarCode='+HNextBarCode
+ })
+ }
+ }else{
+ console.log(res);
+ uni.showToast({
+ title: '鑾峰彇涓嬩竴閬撳伐搴忓け璐�',
+ icon: 'none'
+ })
+ }
+
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ }
}
}
</script>
--
Gitblit v1.9.1