licp
2024-03-27 2e078e11d17ac645df50117c17a8c129a65edeb2
修改结论
已修改2个文件
37 ■■■■■ 文件已修改
src/assets/api/controller.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/api/controller.js
@@ -107,6 +107,7 @@
    addDeviceParameter: "/deviceScope/addDeviceParameter", //添加设备详情参数
    delDeviceParameter: "/deviceScope/delDeviceParameter", //删除设备详情参数
    upDeviceParameter: "/deviceScope/upDeviceParameter", //修改设备详情参数
  selectDeviceByCategory: "/deviceScope/selectDeviceByCategory", //通过设备分类获取设备列表
    authorizedPerson: "/user/getDeviceManager", //获取授权人
    selectEquipmentOverview: "/deviceScope/selectEquipmentOverview", //获取设备总览
    uploadFile: "/deviceScope/uploadFile", //上传图片
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -175,6 +175,16 @@
                                        <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>
@@ -277,7 +287,8 @@
                param: {},
        currentKey:1,
        comparisonList:[],
        excelMethodList:[]
        excelMethodList:[],
        equipOptions:[],
            }
        },
        created() {
@@ -308,6 +319,7 @@
                            insValue: [],
                            comValue: [],
                            resValue: [],
              equipValue:null,
              intResult: null
                        }
                    })
@@ -327,6 +339,7 @@
                        insValue: [],
                        comValue: [],
                        resValue: [],
            equipValue:null,
            intResult: null
                    }
                })
@@ -475,6 +488,10 @@
                            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){
@@ -491,7 +508,8 @@
              }
                            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})`
                }
              })
                        }
@@ -695,7 +713,19 @@
                        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>