| | |
| | | <el-button v-if="insOrder.ifsOrderType && insOrder.ifsOrderType==='02wg'" size="small" type="primary" @click="showMaterialPropsDialog">IFS物料属性更新</el-button> |
| | | <el-button size="small" type="primary" @click="refreshView">刷新</el-button> |
| | | <el-button v-if="typeSource == 1" size="small" type="primary" @click="openPurchase">进货验证</el-button> |
| | | <el-button v-if="state == 1 && [0,1].includes(typeSource)" size="small" type="primary" |
| | | <el-button v-if="state == 1 && [0,1].includes(Number(typeSource))" size="small" type="primary" |
| | | @click="openUnPassDialog('add')">不合格处理</el-button> |
| | | <el-button size="small" type="primary" @click="sampleVisible = true; uploadSample();">样品切换</el-button> |
| | | <!-- <el-button v-if="state == 1" size="small" type="primary" @click="taskVisible = true">任务切换</el-button>--> |
| | |
| | | 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; |
| | | }, |
| | |
| | | laboratory: this.sonLaboratory, |
| | | }).then(async (res) => { |
| | | this.insOrder = res.data.insOrder; |
| | | if(res.data.insOrder.ifsOrderType){ |
| | | if(res.data.insOrder.ifsOrderType==='02wg'){ |
| | | //查询零件属性 |
| | | this.getPartProps(res.data.insOrder.ifsInventoryId) |
| | | } |
| | |
| | | }); |
| | | 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, |