licp
2024-12-20 d975fc4756806f5b51f006c19c33571b9b8c0b3b
src/components/do/b1-ins-order/cable-config.vue
@@ -2,7 +2,7 @@
  <div class="ins_order_config">
    <div>
      <el-row class="title">
        <el-col :span="6" style="padding-left: 20px;">电缆配置</el-col>
        <el-col :span="6" style="padding-left: 20px;text-align: left;">电缆配置</el-col>
        <el-col :span="18" style="text-align: right;">
          <el-button size="medium" @click="outConfig">
            <span style="color: #3A7BFA;">返 回</span>
@@ -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: {