From 2f1f5f0c98b8495127ec7b6823906d525bf19e4b Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期一, 02 六月 2025 16:32:17 +0800 Subject: [PATCH] 1.首检认证信息优化,多选 --- H5/Js/IPQC_SJ/Add.js | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 53 insertions(+), 3 deletions(-) diff --git a/H5/Js/IPQC_SJ/Add.js b/H5/Js/IPQC_SJ/Add.js index 914d032..d19e67d 100644 --- a/H5/Js/IPQC_SJ/Add.js +++ b/H5/Js/IPQC_SJ/Add.js @@ -29,15 +29,20 @@ ],//姘存俯閫夐」 flowOptions: [ { value: '50ml', text: '50ml' }, + { value: '100ml', text: '100ml' }, { value: '120ml', text: '120ml' }, { value: '150ml', text: '150ml' }, { value: '160ml', text: '160ml' }, + { value: '200ml', text: '200ml' }, { value: '250ml', text: '250ml' }, { value: '260ml', text: '260ml' }, + { value: '300ml', text: '300ml' }, { value: '350ml', text: '350ml' }, { value: '360ml', text: '360ml' }, { value: '450ml', text: '450ml' }, + { value: '500ml', text: '500ml' }, { value: '550ml', text: '550ml' }, + { value: '600ml', text: '600ml' }, { value: '750ml', text: '750ml' }, { value: '999ml', text: '999ml' }, { value: '涓�鍒嗛挓娴侀噺', text: '涓�鍒嗛挓娴侀噺' }, @@ -109,6 +114,8 @@ //璁よ瘉淇℃伅閫夋嫨 showRzxx: false, actions: [], + selectedRzxx: [], // 瀛樺偍澶氶�夊�� + rzxxOptions: [], // 璁よ瘉淇℃伅閫夐」 } }, mounted() { @@ -403,6 +410,30 @@ pid: mxguid, inRzxxValue: that.rzxxValue,//杈撳叆鐨勮璇佷俊鎭� }, true, 0).then(function (res) { + var json = res; + if (json.status == 0) { + that.$notify({ type: 'success', message: '杈撳叆鎴愬姛' }); + //that.refreshJYItem();//鍒锋柊妫�楠岄」鐩� + } + else { + that.$toast.fail(json.message); + } + //that.$notify({ type: 'success', message: json.message }); + that.isLoading = false; + }).catch(function (error) { + that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.inRzxxValue = null; + that.isLoading = false; + }); + }, + // 淇敼鍘焤zxxConfirm鏂规硶 + updateRzxxToServer(selectedValues) { + var that = this; + that.AxiosHttp("post", 'Ipqc/updateIpqcRzxx', { + gid: that.formData.guid, + pid: that.tableData[that.tabActive].guid, + inRzxxValue: that.jymxData.ipqcrzxx // 鏀逛负鏁扮粍鏍煎紡 + }).then(res => { var json = res; if (json.status == 0) { that.$notify({ type: 'success', message: '杈撳叆鎴愬姛' }); @@ -722,6 +753,7 @@ //鑾峰彇璁よ瘉淇℃伅鐩稿叧鍒楄〃 getRzxxList() { var that = this; + that.rzxxOptions = []; that.isLoading = true; var mxguid = that.tableData[that.tabActive].guid;//妫�楠岄」鐩殑guid that.AxiosHttp("post", 'Ipqc/GetRzxxList', { @@ -730,9 +762,13 @@ }, false) .then(function (res) { if (res.status == 0) { - that.actions = res.data.tbBillList.map(item => { - return { name: item.defect_name } // 鏍规嵁瀹為檯鏁版嵁缁撴瀯璋冩暣 - }); + // that.actions = res.data.tbBillList.map(item => { + // return { name: item.defect_name } // 鏍规嵁瀹為檯鏁版嵁缁撴瀯璋冩暣 + // }); + that.rzxxOptions = res.data.tbBillList.map(item => ({ + value: item.defect_name, // 鍋囪guid鏄敮涓�鏍囪瘑绗� + text: item.defect_name // 璁よ瘉淇℃伅鍚嶇О + })); } else { that.$toast.fail(res.message); } @@ -743,6 +779,20 @@ that.$toast.fail("鑾峰彇璁よ瘉淇℃伅澶辫触"); }); }, + // 鏂板纭澶氶�夋柟娉� + confirmMultiRzxx() { + const selectedTexts = this.rzxxOptions + .filter(item => this.selectedRzxx.includes(item.value)) + .map(item => item.text); + + // 淇敼杩欓噷锛氱敤鎹㈣绗︽浛浠i�楀彿鍒嗛殧 + this.jymxData.ipqcrzxx = selectedTexts.join('\n'); + this.showRzxx = false; + + // 鏇存柊澶氶�夊�煎埌鍚庣 + this.updateRzxxToServer(selectedTexts); + }, + //閫夋嫨璁よ瘉淇℃伅 onRzxxSelect(item) { this.showRzxx = false; -- Gitblit v1.9.3