From 171e6dc39bb085184c0e0989b7b37b129c59e6ac Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 16 七月 2025 22:38:10 +0800 Subject: [PATCH] 1.样本值修改 --- H5/Js/LLJ/Add.js | 107 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 99 insertions(+), 8 deletions(-) diff --git a/H5/Js/LLJ/Add.js b/H5/Js/LLJ/Add.js index 1c4521f..e329912 100644 --- a/H5/Js/LLJ/Add.js +++ b/H5/Js/LLJ/Add.js @@ -40,6 +40,8 @@ okValue: '',//OK-鏁伴噺 ngValue: '',//NG-鏁伴噺 showDialog: false,//涓嶈壇琛ㄨ堪杈撳叆妗� + ybsDialog: false,//鏍锋湰鍊艰緭鍏ユ + ybsValue: '',//鏍锋湰鏁伴噺 //鍥剧墖涓婁紶妗� fileList: [ //{ @@ -82,6 +84,11 @@ this.inputValue = value.replace(/[^\d.]/g, '') // 1. 鍘婚櫎闈炴暟瀛楀拰灏忔暟鐐� .replace(/(\..*)\./g, '$1') // 2. 绂佹澶氫釜灏忔暟鐐� .replace(/^\./g, ''); + }, + handleNumberInput4(value) { + // 鍘婚櫎闈炴暟瀛楀苟纭繚棣栦綅涓嶄负0锛堥櫎闈炴槸鍗曠嫭鐨�0锛� + this.jymxData.ybsl = value.replace(/[^\d]/g, '') // 鍘婚櫎闈炴暟瀛楀瓧绗� + .replace(/^0+(?!$)/, ''); // 鍘婚櫎寮�澶寸殑0锛岄櫎闈炴暣涓瓧绗︿覆鏄�0 }, togglePopup(index) { @@ -263,7 +270,7 @@ let data = res.data.tbBillList[0]; if (data) { that.formData = data; - that.remarks = that.formData.remarks; + that.remarks = that.formData.fngDesc; that.AxiosHttp("post", 'LLJ/getJYItem', { //id: that.formData.guid, releaseNo: that.formData.releaseNo @@ -280,7 +287,7 @@ } }); that.tableData = tableData; - + that.GetImageFileByGid(); //if (that.tableData.length === 0) { // that.isShowTable = true; //} @@ -299,13 +306,13 @@ var that = this; that.ttrre = true; that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', { - id13: that.formData.guid + guid: that.formData.guid }, true, 1).then(function (res1) { - if (res1.rtnCode == 1) { + if (res1.rtnData.outSum == 1) { that.$notify({ type: 'success', message: '鎻愪氦鎴愬姛' }); that.init(); } else { - that.$toast.fail(res1.rtnMsg); + that.$toast.fail(res1.rtnData.outMsg); } that.ttrre = false }).catch(function (error) { @@ -316,13 +323,13 @@ }, removeXJ() { const that = this; - that.isLoading = true; // 娣诲姞纭寮圭獥 that.$dialog.confirm({ message: '纭瑕侀噸鏂板姞杞芥楠岄」鐩悧锛�', confirmButtonText: '纭', cancelButtonText: '鍙栨秷' }).then(() => { // 纭鍥炶皟 + that.isLoading = true; that.AxiosHttp("post", 'MesQaItemsDetect01Manager/ReloadModel5', { guid: that.formData.guid }, true, 1).then(res1 => { @@ -340,7 +347,6 @@ }).catch(() => { // 鍙栨秷鍥炶皟 that.$toast('宸插彇娑堟搷浣�'); - that.isLoading = false; }); }, GetBack1() { @@ -352,6 +358,40 @@ updateRemarks(guid) { this.showDialog= true }, + EditYangLi(GUID) { + // 鍒囨崲鎸囧畾绱㈠紩鐨� popup 鐘舵�� + var that = this; + + if (!that.jymxData.ybsl) { + this.$toast.fail("鏍锋湰鏁颁笉鑳戒负绌�"); + that.isLoading = false; + return; + } + + var mxguid = that.tableData[that.tabActive].guid;//妫�楠岄」鐩殑guid + var input = that.jymxData.ybsl; + that.isLoading = true; + that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditYangLi', { + dt05Guid: mxguid, + fSeq: "鏍锋湰鏁�", + fVal: input, + }, true, 1).then(function (res1) { + if (res1.rtnData.outSum == 1) { + that.$notify({ + type: 'success', message: res1.rtnMsg + }); + that.okValue = null; + that.refreshJYItem();//鍒锋柊妫�楠岄」鐩� + } else { + that.$toast.fail(res1.rtnMsg); + } + that.isLoading = false; + }).catch(function (error) { + that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.isLoading = false; + }); + }, + deleteDetail13(guid13) { const that = this; @@ -405,6 +445,7 @@ async afterRead(file) { try { + //alert(APIURL_IMAGE); // 1. 鏄剧ず涓婁紶涓姸鎬� file.status = 'uploading'; file.message = '涓婁紶涓�...'; @@ -456,6 +497,56 @@ // 8. 寮哄埗鏇存柊瑙嗗浘锛圴ant 3+ 鍙兘闇�瑕侊級 this.$nextTick(); } - } + }, + //鑾峰彇鍥剧墖淇℃伅 + GetImageFileByGid() { + const that = this; + that.AxiosHttp("post", 'MesImage/getImage', { + parentId: that.formData.guid, + }, true, 0).then(res1 => { + if (res1.status === 0) { + // 鍏抽敭杞崲锛氬皢鍚庣鏁版嵁杞崲涓� van-uploader 闇�瑕佺殑鏍煎紡 + that.fileList = res1.data.tbBillList.map(item => ({ + url: `${APIURL_IMAGE}/${item.urlPath}`, // 鎷兼帴瀹屾暣璁块棶璺緞 + status: 'done', // 鏍囪涓哄凡涓婁紶鎴愬姛 + name: item.fileTitle, // 鍙�夋樉绀烘枃浠跺悕 + message: '宸蹭笂浼�', // 鍙�夌姸鎬佹枃瀛� + // 淇濈暀鍘熷鏁版嵁锛堟寜闇�锛� + id: item.guid + })); + } else { + that.$toast.fail(res1.rtnMsg); + } + }).catch(error => { + that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + }); + }, + handleDelete(file, { index }) { + var that = this; + that.$dialog.confirm({ + title: '纭鍒犻櫎', + message: '纭畾瑕佸垹闄よ繖寮犲浘鐗囧悧锛�' + }).then(() => { + // 纭鍒犻櫎閫昏緫 + console.log(file); + that.AxiosHttp("post", 'MesImage/deleteImage', { + id: file.id, + }, true, 0).then(res1 => { + if (res1.status === 0) { + that.$notify({ type: 'success', message: '鍒犻櫎鎴愬姛' }); + } else { + that.$toast.fail(res1.rtnMsg); + + } + that.init();//鍒锋柊妫�楠岄」鐩� + }).catch(error => { + that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + }); + + }).catch(() => { + // 鍙栨秷鎿嶄綔 + that.init();//鍒锋柊妫�楠岄」鐩� + }) + }, } }) \ No newline at end of file -- Gitblit v1.9.3