licp
2024-10-23 a078c593d7f059fa2d1db2f73100d14e52592ff1
src/components/view/b1-inspect-order-plan.vue
@@ -166,8 +166,8 @@
                  </el-col>
                  <el-col :span="6">
                     <div class="center-title">
                <el-button size="small" type="primary" @click="qrCodeVisible=true">扫码报检</el-button>
                <el-button size="small" type="primary" @click="exportVisible=true" style="margin-right: 16px;">出库</el-button>
                <el-button size="small" type="primary" @click="qrCodeVisible=true" v-if="selectWarehouse">扫码报检</el-button>
                <el-button size="small" type="primary" @click="exportVisible=true" style="margin-right: 16px;" v-if="selectWarehouse">出库</el-button>
                        <span>总计任务数量:</span>
                        <span>{{total}}</span>
                     </div>
@@ -335,32 +335,32 @@
          <el-table-column
            prop="submitTime"
            label="提交日期"
            width="150">
            min-width="150">
          </el-table-column>
          <el-table-column
            prop="submitUserName"
            label="提交人"
            width="90">
            min-width="90">
          </el-table-column>
          <el-table-column
            prop="term"
            label="实验阶段"
            width="120">
            min-width="120">
          </el-table-column>
          <el-table-column
            prop="note"
            label="实验操作"
            width="120">
            min-width="120">
          </el-table-column>
          <el-table-column
            prop="tell"
            label="再次检验原因"
            width="120">
            min-width="120">
          </el-table-column>
          <el-table-column
            fixed="right"
            label="操作"
            width="100">
            min-width="100">
            <template slot-scope="scope">
              <el-button @click="lookHistory(scope.row)" type="text" size="small">查看</el-button>
            </template>
@@ -373,7 +373,7 @@
        <el-col class="search_thing" :span="24">
          <div class="search_label" style="width: 90px"><span class="required-span">* </span>样品编号:</div>
          <div class="search_input">
            <el-input v-model="sampleCode" size="small"></el-input>
            <el-input v-model="sampleCode" size="small" clearable></el-input>
          </div>
        </el-col>
      </el-row>
@@ -660,6 +660,7 @@
        upLoadStorage: false,
        exportVisible: false,
        upLoadExport: false,
        selectWarehouse:false
         }
      },
      created() {
@@ -667,7 +668,6 @@
         this.getTypeDicts()
         this.getInsStateDicts()
      this.getAuthorizedPerson()
      this.selectList()
      this.currentTime = getYearAndMonthAndDays()
      },
      mounted() {
@@ -803,14 +803,16 @@
      keyup(e){
        var code = ''
        try{
          code = JSON.parse(this.codeInfo)
          // console.log(2222,this.codeInfo)
          code = this.codeInfo.substring()
          if(code==null||code==undefined||code==''){
            this.$message.error('该二维码有误')
          }else{
            this.sampleCode = code
          }
        }catch(e){
          this.$message.error('该二维码有误')
          this.$message.error('请调至英文键盘')
          console.log(e)
        }
        this.codeInfo = null
      },
@@ -890,6 +892,10 @@
          if (power[i].menuMethod == 'scanInsOrderState') {
                  this.scanInsOrderState = true
               }
          if (power[i].menuMethod == 'scanInsOrderState') {
                  this.selectWarehouse = true
            this.selectList()
               }
            }
        // if (!getInsProduct2) {
            //    this.componentData.do.splice(5, 1)