| | |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;" :class="{noShow:noBack}">检验单详情 |
| | | </el-col> |
| | | <el-col :span="12" style="text-align: right;display: flex;align-items: center;justify-content: end;margin-top: 16px;"> |
| | | <el-col :span="12" style="text-align: right;display: flex;align-items: center;justify-content: end;margin-top: 0px;"> |
| | | <el-button size="small" type="primary" @click="versionDialogVisible=true" v-if="state==1&&tableLists.find(m=>m.templateId==currentTable)&&tableLists.find(m=>m.templateId==currentTable).templateName.includes('电路试验')">电调/非电调模板切换</el-button> |
| | | <el-select v-model="template" size="medium" placeholder="电路预设模板" style="margin-right: 10px;margin-left: 10px;" v-if="state==1&&tableLists.find(m=>m.templateId==currentTable)&&tableLists.find(m=>m.templateId==currentTable).templateName.includes('电路试验')" |
| | | @change="selectInsProductTemplateById"> |
| | |
| | | this.$message.error('请输入湿度') |
| | | return |
| | | } |
| | | if(this.sonLaboratory === '电路试验'&&!this.$refs.CircuitParameters.saveAll()){ |
| | | return |
| | | } |
| | | this.experimentDia = true |
| | | this.newUserInfo = [] |
| | | this.userInfo.name.forEach((item,index)=>{ |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$emit('goback') |
| | | if(this.$refs.CircuitParameters.saveAll()){ |
| | | this.$emit('goback') |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$emit('goback') |
| | |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | saveAll(){ |
| | | if(this.allBandList.find(m=>!m.band)){ |
| | | this.$message.error('请先填写频段') |
| | | return false |
| | | }else{ |
| | | this.allBandList.forEach((h,j)=>{ |
| | | this.save(h,j) |
| | | }) |
| | | return true |
| | | } |
| | | }, |
| | | // 更新模板 |
| | | upTemplate(obj){ |
| | | this.upTemplateState = true; |
| | |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | saveAll(){ |
| | | if(this.allBandList.find(m=>!m.band)){ |
| | | this.$message.error('请先填写频段') |
| | | return false |
| | | }else{ |
| | | this.allBandList.forEach((h,j)=>{ |
| | | this.save(h,j) |
| | | }) |
| | | return true |
| | | } |
| | | }, |
| | | // 更新模板 |
| | | upTemplate(obj){ |
| | | this.upTemplateState = true; |
| | |
| | | <div style="width: 100%;height: 100%;" v-if="activeFace >0"> |
| | | <Add :active="activeFace" :currentId="currentId" :examine="examine"/> |
| | | </div> |
| | | <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :inspectorList="inspectorList" :sonLaboratory="componentData.entity.sonLaboratory" :state="state" :orderStateId="orderStateId" :version="version" :isLook="isLook" :num1="num1" :orderId0="orderId0" :userInfo="userInfo" /> |
| | | <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :inspectorList="inspectorList" :sonLaboratory="componentData.entity.sonLaboratory" :state="state" :orderStateId="orderStateId" :version="version" :isLook="isLook" :num1="num1" :orderId0="orderId0" :userInfo="userInfo" ref="Inspection" /> |
| | | <el-dialog title="数据查看" :visible.sync="dataDialogVisible" width="80%"> |
| | | <div style="height: 70vh;overflow-y: auto;" v-if="dataDialogVisible"> |
| | | <ValueTable ref="ValueTableDataLook" :rowKey="'insProductId'" :url="$api.insOrder.selectSampleAndProductByOrderId" |
| | |
| | | <div> |
| | | <span style="font-size: 12px;margin-bottom: 8px;">{{ m.text }}</span> |
| | | <div class="tags" style="display: flex;align-items: end;flex-wrap: wrap;margin-bottom: 8px;"> |
| | | <el-tag |
| | | v-for="(item,index) in m.sample.split(',')" |
| | | :key="index" |
| | | :color="m.type==0?'#70A090':(m.type==1?'#EBD476':'#FF3838')" |
| | | effect="dark" size="mini" style="margin: 2px;"> |
| | | {{ item }} |
| | | </el-tag> |
| | | <el-tooltip class="item" effect="dark" :content="item" placement="top" v-for="(item,index) in m.sample?m.sample.split(','):[]" |
| | | :key="index"> |
| | | <el-tag |
| | | :color="m.type==0?'#70A090':(m.type==1?'#EBD476':'#FF3838')" |
| | | effect="dark" size="mini" style="margin: 2px;" class="single-line-ellipsis"> |
| | | {{ item }} |
| | | </el-tag> |
| | | </el-tooltip> |
| | | </div> |
| | | <span style="display: inline-block;height: 22px;width: 70px;border-radius: 10px;line-height: 22px;text-align: center;background: #C0C4CC;color: #fff;font-size: 14px;">{{ m.name }}</span> |
| | | </div> |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.tabs.splice(index, 1); |
| | | let data = this.tabs[this.tabs.length - 1] |
| | | this.upTabActive(data.k) |
| | | if(obj.$refs.Inspection.$refs.CircuitParameters.saveAll()){ |
| | | this.tabs.splice(index, 1); |
| | | let data = this.tabs[this.tabs.length - 1] |
| | | this.upTabActive(data.k) |
| | | } |
| | | }) |
| | | return |
| | | } |