licp
2024-06-19 0f8aca36a23b098e40d94c5f0207b1cb5e409fa9
src/components/do/b1-ins-order/fiberoptic-config.vue
@@ -104,11 +104,11 @@
        </el-col>
      </el-row>
      <el-row :gutter="10">
        <el-col :span="12">
        <el-col :span="12" v-if="packageInfo.ismiers">
          <div class="grid-content">
            <h5>光纤带
              <el-button size="mini" type="primary" class="btns" @click="addFibers"
                :disabled="packageInfo.ismiers===false||miresModel===null||miresStandard===null" v-if="active==1">生成光纤带</el-button>
                :disabled="miresModel===null||miresStandard===null" v-if="active==1">生成光纤带</el-button>
              <el-button size="mini" class="btns" @click="clearFibers" :disabled="selectBushing.length === 0" v-if="active==1">清除</el-button>
            </h5>
            <div
@@ -150,7 +150,7 @@
            </el-table>
          </div>
        </el-col>
        <el-col :span="12">
        <el-col :span="!packageInfo.ismiers?24:12">
          <div class="grid-content">
            <h5>光纤<el-button size="mini" type="primary" class="btns" @click="addFiber"
                :disabled="mireModel===null||mireStandard===null" v-if="active==1">光纤配色</el-button></h5>
@@ -269,15 +269,25 @@
            </el-col>
          </el-col>
        </el-row>
        <el-row v-if="bsm3">
        <!-- <el-row v-if="bsm3">
          <el-col class="search_thing" :span="22" style="display: flex;align-items: center;">
            <div class="search_label"><span class="required-span">* </span>RTS:</div>
            <div class="search_input">
              <el-input size="small" placeholder="请输入" clearable v-model="bsm3Val"></el-input>
            </div>
          </el-col>
        </el-row>
        </el-row> -->
      </div>
    </el-dialog>
    <el-dialog title="RTS填写" :visible.sync="bsm3Dia" width="500px" :show-close="false" :before-close="beforeClose0">
      <el-row>
        <el-col class="search_thing" :span="22" style="display: flex;align-items: center;">
          <div class="search_label"><span class="required-span">* </span>RTS:</div>
          <div class="search_input">
            <el-input size="small" placeholder="请输入" clearable v-model="bsm3Val"></el-input>
          </div>
        </el-col>
      </el-row>
    </el-dialog>
  </div>
</template>
@@ -340,9 +350,9 @@
        bsm2Val2: [],
        bsm2Val3: [],
        sampleIds:[],
        bsm3: false,
        bsm3Val: null,
        bsmRow3: null,
        bsm3Dia: false,
      }
    },
    computed: {
@@ -491,8 +501,8 @@
          this.miresModels = []
          res.data.forEach(a => {
            this.miresModels.push({
              label: a.sample,
              value: a.sample
              label: a.model,
              value: a.model
            })
          })
        })
@@ -755,15 +765,12 @@
              this.bsm2 = false
            }
          }
          if (p.ask.includes('RTS')&&p.state === 1) {
            p.rts = ''
            this.bsm3Val = ''
            this.bsm3 = true
            this.bsm1Dia = true
            this.bsmRow3.push(p)
          }else{
            this.bsm3 = false
          }
          // if (p.ask.includes('RTS')&&p.state === 1) {
          //   p.rts = ''
          //   this.bsm3Val = ''
          //   this.bsm3Dia = true
          //   this.bsmRow3.push(p)
          // }
        })
        if (e.length > 0) {
@@ -835,16 +842,15 @@
        }else{
          this.bsm1Dia = false
        }
        if (row.ask.includes('RTS')&&row.state === 1) {
          this.bsmRow3 = null;
          row.rts = ''
          this.bsm3Val = ''
          this.bsm3 = true
          this.bsm1Dia = true
          this.bsmRow3 = row
        }else{
          this.bsm3 = false
        }
        // if (row.ask.includes('RTS')&&row.state === 1) {
        //   this.bsmRow3 = null;
        //   row.rts = ''
        //   this.bsm3Val = ''
        //   this.bsm3Dia = true
        //   this.bsmRow3 = row
        // }else{
        //   this.bsm3Dia = false
        // }
      },
      computationalPairing(n){
        const nums = [];
@@ -916,18 +922,19 @@
            }
          }
        }
        if(this.bsm3){
          if(!this.bsm3Val){
            this.$message.error('RST必须填写')
            return
        done()
      },
      beforeClose0(done){
        if(!this.bsm3Val){
          this.$message.error('RST必须填写')
          return
        }else{
          if(Array.isArray(this.bsmRow3)){
            this.bsmRow3.forEach(item=>{
              item.rts = this.bsm3Val
            })
          }else{
            if(Array.isArray(this.bsmRow3)){
              this.bsmRow3.forEach(item=>{
                item.rts = this.bsm3Val
              })
            }else{
              this.bsmRow3.rts = this.bsm3Val
            }
            this.bsmRow3.rts = this.bsm3Val
          }
        }
        done()