Fixiaobai
2023-09-15 3b6cea7dcb3f8bf5aa3142b8183adcf7116b1d54
	modified:   src/components/view/finishedProductInspectionAdd.vue
modified: src/components/view/finishedProductInspectionUp.vue
modified: src/components/view/rawInsDetail.vue
已修改3个文件
13 ■■■■■ 文件已修改
src/components/view/finishedProductInspectionAdd.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/finishedProductInspectionUp.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/rawInsDetail.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/finishedProductInspectionAdd.vue
@@ -123,7 +123,7 @@
                        <el-button v-if="!scope.row.isSelectDevice" type="text" @click="clickTableSelect(scope)">{{
                            scope.row.dname == null ? "请选择" : scope.row.dname
                        }}</el-button>
                        <el-select style="width: 100%;" @change="clickNodeSure(scope.row)" v-model="filterText" placeholder="请选择">
                        <el-select  v-if="scope.row.isSelectDevice" style="width: 100%;" @change="clickNodeSure(scope.row)" v-model="filterText" placeholder="请选择">
                            <el-option v-for="item in materialOptions" :key="item.id" :label="item.device" :value="item.id">
                            </el-option>
                        </el-select>
@@ -317,6 +317,7 @@
                }
            }).then(res => {
                this.materialOptions = res.data;
                this.filterText = row.did
                if(this.materialOptions.length===1){
                    this.$message({
                    message: '该项目下只有一个试验设备,无需选择!',
@@ -325,7 +326,6 @@
                    return
                }
                row.isSelectDevice = true
                this.filterText = row.did
            });
        },
        // 点击表格选择触发
src/components/view/finishedProductInspectionUp.vue
@@ -337,7 +337,7 @@
                        message: '上报成功',
                        type: 'success'
                    });
                    this.$refs.comBackMain(true)
                    this.$parent.comBackMain(true)
                } else {
                    this.$message({
                        message: res.message,
src/components/view/rawInsDetail.vue
@@ -365,7 +365,9 @@
    }
    this.getOptions();
  },
  mounted() {},
  mounted() {
  },
  computed: {
    conclusionTable() {
      const conclusion = {};
@@ -375,7 +377,7 @@
        ...new Set(this.projectTable.map(item => item.uName))
      ];
      if (
        this.projectTable.filter(item => item.testState === null).length ===
        this.projectTable.filter(item => item.testState === undefined).length ===
        this.projectTable.length
      ) {
        conclusion.testState = null;
@@ -456,6 +458,7 @@
          params: { id: this.detailId }
        })
        .then(res => {
          console.log(res);
          this.detailInfo = res.data;
          this.projectTable = res.data.children;
          this.projectTable.forEach(i => {