spring
2025-04-08 4f94a66bc8ad9a57295f161de9195d5528b1d181
src/views/business/productOrder/components/add.vue
@@ -20,10 +20,10 @@
          <el-button
            v-if="active == 1 && addObj.sampleType != undefined && (addObj.sampleType.indexOf('电缆') > -1 || addObj.sampleType.indexOf('综合') > -1)"
            size="small" type="primary" @click="openCableConfig">电缆配置</el-button>
          <el-button v-if="active == 1 && addObj.sampleType != undefined && addObj.sampleType.indexOf('电缆') > -1" size="small"
            type="primary" @click="openAuxiliaryCore">辅助线芯配置</el-button>
          <el-button v-show="active == 1 || (tabIndex == 4 && active == 2)" :loading="saveLoad" size="small" type="primary"
            @click="save">提交</el-button>
          <el-button v-if="active == 1 && addObj.sampleType != undefined && addObj.sampleType.indexOf('电缆') > -1"
            size="small" type="primary" @click="openAuxiliaryCore">辅助线芯配置</el-button>
          <el-button v-show="active == 1 || (tabIndex == 4 && active == 2)" :loading="saveLoad" size="small"
            type="primary" @click="save">提交</el-button>
          <!-- 审核 -->
          <el-button v-show="active == 3" :disabled="saveLoad" :loading="saveLoad" size="small"
            @click="upInsOrderOfState(2)">不通过</el-button>
@@ -144,14 +144,14 @@
            </el-col>
            <el-col :span="6">
              <el-form-item label="生产单位:" prop="production">
                <el-input v-model="addObj.production" :disabled="active > 1 && tabIndex != 4" clearable placeholder="请输入"
                  size="small"></el-input>
                <el-input v-model="addObj.production" :disabled="active > 1 && tabIndex != 4" clearable
                  placeholder="请输入" size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="生产单位EN:" prop="productionEn">
                <el-input v-model="addObj.productionEn" :disabled="active > 1 && tabIndex != 4" clearable placeholder="请输入"
                  size="small"></el-input>
                <el-input v-model="addObj.productionEn" :disabled="active > 1 && tabIndex != 4" clearable
                  placeholder="请输入" size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
@@ -365,7 +365,8 @@
            <template slot="header" slot-scope="scope">
              <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px">
                <span>试验方法</span>
                <el-input v-if="active == 1" v-model="methodS" placeholder="请输入" size="mini" @input="searchFilterList" />
                <el-input v-if="active == 1" v-model="methodS" placeholder="请输入" size="mini"
                  @input="searchFilterList" />
              </div>
            </template>
          </el-table-column>
@@ -522,8 +523,8 @@
            <div class="search_label" style="width: 80px;">要求值:</div>
            <div class="search_input">
              <el-radio-group v-model="item.bsm1Val" v-removeAriaHidden @input="upBsmAll(item)">
                <el-radio v-for="(a, ai) in JSON.parse(item.bsmRow.sectionCopy)" :key="ai"
                  :label="a">{{ JSON.parse(item.bsmRow.askCopy)[ai] }}</el-radio>
                <el-radio v-for="(a, ai) in JSON.parse(item.bsmRow.sectionCopy)" :key="ai" :label="a">{{
                  JSON.parse(item.bsmRow.askCopy)[ai] }}</el-radio>
              </el-radio-group>
            </div>
          </el-col>
@@ -776,7 +777,7 @@
      temId: '',
      sonLaboratoryList: [],
      selectiveEcho: [], // 检验下单的时候勾选检验项目,如果使用筛选提交显示检验项目为空 回显列表
      quarterItemOptions: [], // 查询季度信息
      quarterItemOptions: [], // 查询可靠性信息
      specialStandardMethod: '',
      isSpecial: false,
    }
@@ -1376,7 +1377,7 @@
    handleNodeClick(val, node, el) {
      this.selectTree = ''
      this.models = val.children
      this.selectTree = getReversedTreePath(node)
      this.selectTree = this.getReversedTreePath(node)
    },
    /**
   * 获取反向拼接的树路径字符串
@@ -1417,21 +1418,31 @@
    },
    activeStandardTree() {
      let trees = this.selectTree.split(" - ")
      if (trees.length < 3) {
      if (trees.length < 4) {
        this.$message.error('未选择对象')
        return
      }
      this.addObj.factory = trees[0]
      this.addObj.laboratory = trees[1]
      this.addObj.sampleType = trees[2]
      if (trees[3] === undefined || trees[3] === '' || trees[3] === '- ') {
        this.addObj.sample = trees[2]
      if (trees[2] == '包材' || trees[2] == '原辅材') {
        this.addObj.sampleType = trees[4]
        if (trees[5] === undefined || trees[5] === '' || trees[5] === '- ') {
          this.addObj.sample = trees[4]
        } else {
          this.addObj.sample = trees[5]
        }
        this.addObj.model = (trees[6] == undefined ? null : trees[6])
      } else {
        this.addObj.sample = trees[3]
        this.addObj.sampleType = trees[3]
        if (trees[4] === undefined || trees[4] === '' || trees[4] === '- ') {
          this.addObj.sample = trees[3]
        } else {
          this.addObj.sample = trees[4]
        }
        this.addObj.model = (trees[5] == undefined ? null : trees[5])
      }
      this.addObj.sampleView = this.addObj.sample
      this.addObj.sampleViewEn = this.sampleViewEn
      this.addObj.model = (trees[4] == undefined ? null : trees[4])
      this.selectStandardTree = false
      this.sampleList = []
      for (var i = 0; i < this.addObj.sampleNum; i++) {