| | |
| | | addDeviceParameter: "/deviceScope/addDeviceParameter", //添加设备详情参数 |
| | | delDeviceParameter: "/deviceScope/delDeviceParameter", //删除设备详情参数 |
| | | upDeviceParameter: "/deviceScope/upDeviceParameter", //修改设备详情参数 |
| | | selectDeviceByCategory: "/deviceScope/selectDeviceByCategory", //通过设备分类获取设备列表 |
| | | authorizedPerson: "/user/getDeviceManager", //获取授权人 |
| | | selectEquipmentOverview: "/deviceScope/selectEquipmentOverview", //获取设备总览 |
| | | uploadFile: "/deviceScope/uploadFile", //上传图片 |
| | |
| | | <span v-else-if="n.v.v===0" :style="`font-family:${n.v.ff} !important;color: red;`">不合格</span> |
| | | <span v-else :style="`font-family:${n.v.ff} !important;`">待定</span> |
| | | </template> |
| | | <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='设备'"> |
| | | <el-select v-model="n.v.v" placeholder="请选择" @visible-change="e=>getEquipOptions(e,n.i)"> |
| | | <el-option |
| | | v-for="item in equipOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | <span v-else :style="`font-family:${n.v.ff} !important;`">{{n.v.v}}</span> |
| | | </div> |
| | | </td> |
| | |
| | | param: {}, |
| | | currentKey:1, |
| | | comparisonList:[], |
| | | excelMethodList:[] |
| | | excelMethodList:[], |
| | | equipOptions:[], |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | insValue: [], |
| | | comValue: [], |
| | | resValue: [], |
| | | equipValue:null, |
| | | intResult: null |
| | | } |
| | | }) |
| | |
| | | insValue: [], |
| | | comValue: [], |
| | | resValue: [], |
| | | equipValue:null, |
| | | intResult: null |
| | | } |
| | | }) |
| | |
| | | b.v.v = '' |
| | | this.param[b.i].comValue.push(b) |
| | | } |
| | | if (b.v.ps!=undefined&&b.v.ps.value==='设备'){ |
| | | b.v.v = '' |
| | | this.param[b.i].equipValue = b |
| | | } |
| | | if (b.v.ps!=undefined&&b.v.ps.value==='最终值'){ |
| | | b.v.v = '' |
| | | if(b.i===undefined){ |
| | |
| | | } |
| | | conclusionList.forEach((n,i)=>{ |
| | | if(n.r==b.r&&n.c==b.c){ |
| | | b.v.f = `(${this.comparisonList.find(j=>j.value==(finalList[i].r)).label}${finalList[i].r+1})` |
| | | console.log(b.r,b.c,) |
| | | b.v.f = `(${this.comparisonList.find(j=>j.value==(finalList[i].c)).label}${finalList[i].r+1})` |
| | | } |
| | | }) |
| | | } |
| | |
| | | this.currentSample.insProduct[a].inspectionItemType = 0 |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | getEquipOptions(e,id){ |
| | | if(e){ |
| | | let category = this.tableList.find(m=>m.id==id).deviceGroup |
| | | this.$axios.post(this.$api.deviceScope.selectDeviceByCategory, {category}).then(res => { |
| | | if (res.code === 200 && res.data) { |
| | | console.log(1111111,res.data) |
| | | } |
| | | }).catch(error => { |
| | | console.error(error) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |