gaoluyang
4 天以前 b807a12b89dc9126bac49c02a3902bec758f4f9b
src/views/business/materialOrder/customsInspectionOrder.vue
@@ -12,9 +12,13 @@
          <el-select v-show="active==1" v-model="template" placeholder="下单模板" size="small" style="margin-right: 10px;"
                     @change="selectInsOrderTemplateByIdList">
            <el-option v-for="(a, ai) in templates" :key="ai" :label="a.name" :value="a.id">
              <span style="float: left">{{ a.name }}</span>
              <i class="el-icon-delete" style="float: right; color: #66b1ff; font-size: 16px"
                 @click.stop="handleDelete(a)"></i>
              <div style="display: flex; align-items: center; justify-content: space-between;">
                <span>{{ a.name }}</span>
                <i class="el-icon-delete"
                   style="color: #66b1ff; font-size: 16px; cursor: pointer;"
                   @click.stop="handleDelete(a)">
                </i>
              </div>
            </el-option>
          </el-select>
          <el-button v-show="active==1" size="small" @click="templateDia=true">
@@ -774,9 +778,8 @@
            if (this.orderType == 1) {
              this.$set(this.addObj, 'orderType', 'Quarterly inspection')
            }
            const str = res.data.treeName.split('-')
            this.selectTreeTem = str.join(' - ')
            this.selectTree = str.join(' - ')
            this.selectTreeTem = res.data.treeName
            this.selectTree = res.data.treeName
            this.addListInfo(this.codeLevel, res.data) // 原材料样品是固定的,就默认赋值一条数据,可拆分
            this.selectInsOrderTemplate() // 原材料模板列表查询
          } else {
@@ -1452,10 +1455,10 @@
      }).then(res => {
        this.methodLoad = false
        try {
          if (res.data.standardMethodList.length == 0 && this.selectTree.split('-').length == 5) {
            let arr = this.selectTree.split('-')
          if (res.data.standardMethodList.length == 0 && this.selectTree.split(' - ').length == 5) {
            let arr = this.selectTree.split(' - ')
            let arr0 = arr.slice(0, arr.length - 1)
            let selectTree = arr0.join('-').substring(0, arr0.join('-').length - 1)
            let selectTree = arr0.join(' - ').substring(0, arr0.join(' - ').length - 1)
            selectsStandardMethodByFLSSM({
              tree: selectTree
            }).then(ress => {
@@ -1647,7 +1650,7 @@
        })
      }
      this.productList = []
      let num = this.selectTreeTem.split('-').length;
      let num = this.selectTreeTem.split(' - ').length;
      if (num != 5) {
        this.selectTree = this.selectTreeTem + ' - ' + e
      } else {