| | |
| | | calcInbondLength(startMeterMark,endMeterMark){ |
| | | let inboundLength = null; |
| | | if((startMeterMark!=null && startMeterMark!=='') && (endMeterMark!=null&&endMeterMark!=='')){ |
| | | inboundLength = Math.abs(endMeterMark - startMeterMark) |
| | | let minus = this.$Big(endMeterMark).minus(this.$Big(startMeterMark)); |
| | | inboundLength = Math.abs(minus) |
| | | } |
| | | return inboundLength; |
| | | }, |
| | |
| | | }); |
| | | const params = { |
| | | entrustCode: this.insOrder.entrustCode, |
| | | lotBatchNo: this.insOrder.lotBatchNo, |
| | | sampleCode: this.currentSample.sampleCode, |
| | | id: this.currentSample.id, |
| | | itemIds: itemIds, |
| | |
| | | }; |
| | | let list = this.tableList[0].arr; |
| | | let maxNum = 0; |
| | | let itemNum = 0;//包含检验值批注的个数 |
| | | list.forEach((item, index) => { |
| | | let num0 = 0; |
| | | let str = ""; |
| | |
| | | n.v.ps.value.includes("检验值") |
| | | ) { |
| | | num++; |
| | | if (str0 == str) { |
| | | maxNum = num; |
| | | const matchArray = n.v.ps.value.match(/\d+/g); |
| | | if(matchArray){ |
| | | const no = Number(matchArray[0]); |
| | | itemNum = itemNum>= no ? itemNum : no; |
| | | } |
| | | } |
| | | }); |
| | | if (str0 == str) { |
| | | maxNum = num===itemNum ? num : itemNum; |
| | | } |
| | | } |
| | | // 绑定设备 |
| | | if ( |
| | |
| | | }); |
| | | }); |
| | | // 获取到最大检验值输入个数后重组数据 |
| | | console.log("最大个数:", maxNum); |
| | | let obj0 = { |
| | | name: j, |
| | | arr: data[i][j].result, |