licp
2024-09-12 88810da4cf6f4c54c11fd11cbba760a7058e22b5
src/components/do/b1-ins-order/cable-config.vue
@@ -24,7 +24,7 @@
      <div class="search_thing" v-if="currentTab=='绝缘'">
        <div class="search_label">检验标准:</div>
        <el-select v-model="insulating.standardMethodListId" placeholder="请选择检验标准" size="small"
        @change="(value)=>methodChange(value)">
        @change="(value)=>methodChange(value)" multiple>
          <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id">
          </el-option>
        </el-select>
@@ -32,7 +32,7 @@
      <div class="search_thing" v-if="currentTab=='护套'">
        <div class="search_label">检验标准:</div>
        <el-select v-model="sheath.standardMethodListId" placeholder="请选择检验标准" size="small"
        @change="(value)=>methodChange(value)">
        @change="(value)=>methodChange(value)" multiple>
          <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id">
          </el-option>
        </el-select>
@@ -56,7 +56,7 @@
          <template slot-scope="scope">
            <el-input size="small" placeholder="要求值" v-model="scope.row.ask" clearable type="textarea"
              :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row)"
              v-if="active==1&&isAskOnlyRead"></el-input>
              v-if="active==1"></el-input>
            <span v-else>{{ scope.row.ask }}</span>
          </template>
        </el-table-column>
@@ -86,12 +86,12 @@
        tree: '',
        standards: [],
        insulating: {
          standardMethodListId: null,
          standardMethodListId: [],
          insProduct: [],
          num: 1
        },
        sheath: {
          standardMethodListId: null,
          standardMethodListId: [],
          insProduct: []
        },
        isAskOnlyRead: false
@@ -177,15 +177,9 @@
    },
    methodChange(val) {
      if (val === null || val === '') return
      let standard = this.standards.find(a => a.id === val)
      if(standard!=null && standard.code==='委托要求'){
        this.isAskOnlyRead = true
      }else{
        this.isAskOnlyRead = false
      }
      this.$axios.post(this.$api.standardTree.selectStandardProductList, {
        model: this.$parent.addObj.model,
        standardMethodListId: val,
        standardMethodListId: val.join(','),
        factory: this.tree + ' - '
      }, {
        headers: {