| | |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">工程名称:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.engineering" |
| | | <el-input size="small" :placeholder="active>1 ? '' : '请输入'" clearable v-model="addObj.engineering" |
| | | :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">工程名称EN:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.engineeringEn" |
| | | <el-input size="small" :placeholder="active>1 ? '' : '请输入'" clearable v-model="addObj.engineeringEn" |
| | | :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">OTC订单号:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.otcCode" :readonly="active>1"></el-input> |
| | | <el-input size="small" :placeholder="active>1 ? '' : '请输入'" clearable v-model="addObj.otcCode" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">委托人:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addObj.prepareUser" :readonly="active>1"></el-input> |
| | | <el-input size="small" :placeholder="active>1 ? '' : '请输入'" clearable v-model="addObj.prepareUser" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6" style="align-items: flex-start;margin: 8px 0;"> |
| | | <div class="search_label">备注:</div> |
| | | <div class="search_input"> |
| | | <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 2}" size="small" clearable |
| | | <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 2}" size="small" clearable :placeholder="active>1 ? '' : '请输入'" |
| | | v-model="addObj.remark" :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">样品型号:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="model" placeholder="请选择" filterable allow-create default-first-option size="small" |
| | | <el-select v-model="model" :placeholder="active>1 ? '' : '请输入'" filterable allow-create default-first-option size="small" |
| | | @change="changeModel"> |
| | | <el-option v-for="item in models" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">检验标准:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="standardMethodListId" placeholder="请选择" size="small" @focus="methodFocus" |
| | | <el-select v-model="standardMethodListId" :placeholder="active>1 ? '' : '请输入'" size="small" @focus="methodFocus" |
| | | :loading="methodLoad" @change="changeStandardMethodListId"> |
| | | <el-option v-for="item in methods" :key="item.id" :label="item.code" :value="item.id"> |
| | | </el-option> |
| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="温度循环要求填写" :visible.sync="circulateShow" width="800px" :show-close="false"> |
| | | <div class="search" style="display: flex;background: transparent;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">保温时间:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">循环次数:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">温度点:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | symbolList:[ |
| | | 'RTS','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'], |
| | | inspectionItem:null, |
| | | circulateShow:false, |
| | | circulateForm:{}, |
| | | isBsm2Val2:false |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$axios.post(this.$api.insOrder.upInsOrderOfState, { |
| | | state, |
| | | id: this.currentId, |
| | | companyId:this.addObj.companyId |
| | | companyId:this.addObj.companyId, |
| | | laboratory:this.addObj.laboratory |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | this.$refs.productTable.toggleRowSelection(row, true); |
| | | }, |
| | | upProductSelect(selection, row) { |
| | | console.log('danxuan', row) |
| | | this.bsm1DiaList = [] |
| | | row.state = row.state == 1 ? 0 : 1 |
| | | if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1) { |
| | |
| | | } else if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 0) { |
| | | row.bsm1 = false |
| | | } |
| | | if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && this.sampleList.length > 1 && row.state === 1) { |
| | | if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1&&!this.isBsm2Val2) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | |
| | | this.computationalPairing(this.sampleList.length) |
| | | this.bsm2Val2 = this.HaveJson(this.bsm2Val3) |
| | | } |
| | | } else if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && row.state === 1 && this.sampleList.length > 1) { |
| | | } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && row.state === 1 && this.sampleList.length > 1) { |
| | | this.bsm2 = false |
| | | } else if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && this.sampleList.length < 2) { |
| | | } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length < 2) { |
| | | this.$message.error('样品数量不足够进行配对操作') |
| | | row.state = row.state == 1 ? 0 : 1 |
| | | this.$refs.productTable.toggleRowSelection(row, false) |
| | |
| | | } |
| | | return item |
| | | }) |
| | | if (row.inspectionItem === '温度循环') { |
| | | this.circulateShow = true; |
| | | return |
| | | } |
| | | this.getProNum() |
| | | }, |
| | | permute(nums) { |
| | |
| | | } else if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 0) { |
| | | p.bsm1 = false |
| | | } |
| | | if (p.bsm === '1' && p.inspectionItem === '熔接损耗' && this.sampleList.length > 1 && p.state === 1) { |
| | | if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1&&!this.isBsm2Val2) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | |
| | | this.computationalPairing(this.sampleList.length) |
| | | this.bsm2Val2 = this.HaveJson(this.bsm2Val3) |
| | | } |
| | | } else if (p.bsm === '1' && p.inspectionItem === '熔接损耗' && p.state === 1 && this.sampleList.length > 1) { |
| | | } else if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && p.state === 1 && this.sampleList.length > 1) { |
| | | this.bsm2 = false |
| | | } else if (p.bsm === '1' && p.inspectionItem === '熔接损耗' && this.sampleList.length < 2) { |
| | | } else if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length < 2) { |
| | | this.$message.error('样品数量不足够进行配对操作') |
| | | this.$refs.productTable.clearSelection() |
| | | return |
| | |
| | | return |
| | | } |
| | | } |
| | | this.isBsm2Val2 = true; |
| | | } |
| | | // if(this.bsm3){ |
| | | // if(!this.bsm3Val){ |