licp
2024-12-17 6b654d61f4af1cb3b8fb38344c82a6305174c67d
下单优化
已修改1个文件
10 ■■■■■ 文件已修改
src/components/do/b1-ins-order/add.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-ins-order/add.vue
@@ -489,7 +489,7 @@
          <el-table-column prop="testRequirements" label="试验标准" align="center" min-width="100">
            <template slot-scope="scope">
              <el-select v-model="scope.row.testRequirements" :disabled="scope.row.model==null||active>1"
                placeholder="试验标准" size="small" :readonly="active>1" style="width: 100%;" clearable>
                placeholder="试验标准" size="small" :readonly="active>1" style="width: 100%;" clearable @change="changeModel0(scope.row)">
                <el-option v-for="item in standard" :key="item.id" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
@@ -2960,10 +2960,18 @@
          let obj = this.sampleIds.find(b => b == a.id)
          if (obj) {
            this.$set(a,type, this.allInfo[type])
            if(type=='testRequirements'&&a.standardMethodListId&&a.standardMethodListId.length>0){
              this.methodChange(a.standardMethodListId, a)
            }
            // a[type] = this.allInfo[type]
          }
        })
      },
      changeModel0(row){
        if(row.standardMethodListId&&row.standardMethodListId.length>0){
          this.methodChange(row.standardMethodListId, row)
        }
      },
      changeStandardMethodListId() {
        this.sampleList.forEach(a => {
          let obj = this.sampleIds.find(b => b == a.id)