From 8a5fc169c691543f60109b2b3a4e000762f247c2 Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期一, 30 六月 2025 11:46:00 +0800 Subject: [PATCH] 来料检钉钉增加流程条件、紧急放行状态 --- pages/QC/LLJ/Add.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/pages/QC/LLJ/Add.vue b/pages/QC/LLJ/Add.vue index f0497dc..f16f003 100644 --- a/pages/QC/LLJ/Add.vue +++ b/pages/QC/LLJ/Add.vue @@ -246,6 +246,7 @@ hasEmergencyPermission: false, showPopup: false, PHSY:'', + EMERGENCY: '0', }, tableData: [], @@ -427,7 +428,8 @@ staffNo: 'HMCS', // staffNo: this.$loginInfo.account, iqcStatus: this.PSTYPE, - department: this.DEPARTMENT + department: this.DEPARTMENT, + EMERGENCY: this.formData.emergencyStatus ? "1" : "0" // 纭繚绱ф�ユ斁琛岀姸鎬佹纭紶閫� }; } else{ @@ -444,11 +446,13 @@ // staffNo: 'HMCS', staffNo: this.$loginInfo.account, iqcStatus: this.PSTYPE, - department: this.DEPARTMENT + department: this.DEPARTMENT, + EMERGENCY: this.formData.emergencyStatus ? "1" : "0" // 纭繚绱ф�ユ斁琛岀姸鎬佹纭紶閫� }; } - console.log(this.QcIssueResultDetailes) + console.log("鎻愪氦鐨勭揣鎬ユ斁琛岀姸鎬侊細", this.formData.emergencyStatus ? "1" : "0"); + console.log("瀹屾暣鐨勬彁浜ゆ暟鎹細", this.QcIssueResultDetailes); const url = this.$store.state.serverInfo.serverAPI+`/QcIssueResult/GetProcessNo`; // 鍙戦�� POST 璇锋眰 @@ -563,12 +567,14 @@ if (data) { this.formData = { ...data, - emergencyStatus: data.emergency + emergencyStatus: data.emergency === 1 || data.emergency === "1" || data.emergency === true }; // 纭繚PHSY瀛楁琚纭缃� this.formData.PHSY = data.PHSY; - + + console.log("鍔犺浇鐨勭揣鎬ユ斁琛岀姸鎬�:", this.formData.emergencyStatus); + this.$post({ url: "/LLJ/getJYItem", data: { @@ -1045,6 +1051,9 @@ this.formData.emergencyStatus = true; this.originalLotNo1 = lotNo1; this.formData.lotNo1 = lotNo1; + // 鏇存柊绱ф�ユ斁琛岀姸鎬侊紝纭繚鎻愪氦鏃惰兘姝g‘浼犻�� + this.formData.EMERGENCY = "1"; + uni.showToast({ title: message || '绱ф�ユ斁琛屾垚鍔�', icon: 'success', @@ -1091,6 +1100,9 @@ if (result === "0") { this.formData.emergencyStatus = false; + // 鏇存柊绱ф�ユ斁琛岀姸鎬侊紝纭繚鎻愪氦鏃惰兘姝g‘浼犻�� + this.formData.EMERGENCY = "0"; + uni.showToast({ title: message || '鎾ゅ洖鎴愬姛', icon: 'success', -- Gitblit v1.9.3