From f4711865a8ea9566910bfcc6daa31795b89272a7 Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期三, 09 七月 2025 10:11:57 +0800 Subject: [PATCH] 来料检优化 --- pages/QC/LLJ/Add.vue | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/pages/QC/LLJ/Add.vue b/pages/QC/LLJ/Add.vue index f16f003..3f4ffb0 100644 --- a/pages/QC/LLJ/Add.vue +++ b/pages/QC/LLJ/Add.vue @@ -455,7 +455,7 @@ console.log("瀹屾暣鐨勬彁浜ゆ暟鎹細", this.QcIssueResultDetailes); const url = this.$store.state.serverInfo.serverAPI+`/QcIssueResult/GetProcessNo`; - // 鍙戦�� POST 璇锋眰 + if (this.PSTYPE === '鐗归噰/璁╂浣跨敤') {// 鍙戦�� POST 璇锋眰 uni.request({ url: url, // 璇锋眰鍦板潃 method: 'POST', // 璇锋眰鏂规硶 @@ -472,7 +472,7 @@ // 濡傛灉鏈夐〉闈㈣烦杞紝闇�瑕佺敤瀹氭椂鍣ㄥ欢杩� setTimeout(() => { - uni.navigateTo({ + uni.redirectTo({ url: 'List' }); }, 2000); // 淇濇寔涓� duration 鐩稿悓鐨勬椂闀� @@ -487,7 +487,7 @@ }); } }); - + } uni.showToast({ title: res.message.toString(), icon: 'success', @@ -525,12 +525,7 @@ duration: 2000 }) // 濡傛灉鏈夐〉闈㈣烦杞紝闇�瑕佺敤瀹氭椂鍣ㄥ欢杩� - setTimeout(() => { - uni.navigateTo({ - url: 'List' - }); - }, 2000); // 淇濇寔涓� duration 鐩稿悓鐨勬椂闀� - + setTimeout(() => {uni.navigateBack();}, 2000); // 淇濇寔涓� duration 鐩稿悓鐨勬椂闀� } else { uni.showModal({ title: "鎻愮ず", @@ -1184,10 +1179,7 @@ this.destructionPopup = false; this.$showMessage("淇濆瓨鎴愬姛"); setTimeout(() => { - // 璺宠浆鍒板垪琛ㄩ〉闈� - uni.navigateTo({ - url: 'List' - }); + this.init(); }, 2000); } }) @@ -1208,10 +1200,7 @@ this.destructionPopup = false; this.$showMessage("娓呴櫎鎴愬姛"); setTimeout(() => { - // 璺宠浆鍒板垪琛ㄩ〉闈� - uni.navigateTo({ - url: 'List' - }); + this.init(); }, 2000); } }) -- Gitblit v1.9.3