| | |
| | | okValue: '',//OK-数量 |
| | | ngValue: '',//NG-数量 |
| | | showDialog: false,//不良表述输入框 |
| | | ybsDialog: false,//样本值输入框 |
| | | ybsValue: '',//样本数量 |
| | | //图片上传框 |
| | | fileList: [ |
| | | //{ |
| | |
| | | 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) { |
| | |
| | | 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; |
| | | |