Merge branch 'cnas' into master
| | |
| | | "vue-axios": "^3.2.4", |
| | | "vue-canvas-poster": "^1.2.1", |
| | | "vue-qr": "^3.2.4", |
| | | "vue-qrcode-reader": "^5.5.11", |
| | | "vue-router": "^3.0.1", |
| | | "vuedraggable": "^2.24.3", |
| | | "wangeditor": "^4.7.15", |
| | |
| | | <el-button size="small" type="primary" @click="handleSubmit" v-if="state==1" |
| | | :loading="submitLoading">提交</el-button> |
| | | <!-- 复核 --> |
| | | <el-button size="small" type="primary" @click="upInsReview(1,'继续试验')" :loading="reviewLoading" |
| | | v-if="state>1&&!isLook">继续试验</el-button> |
| | | <!-- <el-button size="small" type="primary" @click="upInsReview(1,'继续试验')" :loading="reviewLoading" |
| | | v-if="state>1&&!isLook">继续测试下一个样品</el-button> |
| | | <el-button size="small" @click="upInsReview(0,'再次试验')" v-if="state>1&&!isLook" type="danger">再次试验</el-button> |
| | | <el-button size="small" @click="upInsReview(2,'结束试验')" v-if="state>1&&!isLook">结束试验</el-button> |
| | | <el-button size="small" @click="upInsReview(2,'结束试验')" v-if="state>1&&!isLook">此委托单结束</el-button> --> |
| | | <el-button size="small" type="primary" @click="upInsReviewDia=true" v-if="state>1&&!isLook">复核</el-button> |
| | | <el-button size="small" @click="handleBack" v-if="!noBack">返回</el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-button type="primary" @click="addTemplateDia" :loading="templateLoading">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="复核" :visible.sync="upInsReviewDia" width="400px"> |
| | | <el-radio-group v-model="upInsReviewType" style="display: flex;flex-direction: column"> |
| | | <el-radio :label="1" style="margin: 10px 0; ">继续测试下一个样品或其他站点任务</el-radio> |
| | | <el-radio :label="0" style="margin: 10px 0; ">再次检验该样品</el-radio> |
| | | <el-radio :label="2" style="margin: 10px 0; ">此委托单结束</el-radio> |
| | | <p style="font-size: 12px;color:red">慎重:如果还有其他样品在检,点击结束可能会中断,请确保所有样品都检验且复核完成再点击</p> |
| | | </el-radio-group> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="upInsReviewDia = false">取 消</el-button> |
| | | <el-button type="primary" @click="upInsReview" :loading="reviewLoading">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | lookFileVisible:false,//预览文件 |
| | | experimentDia:false, |
| | | experimentDia0:false, |
| | | upInsReviewDia:false, |
| | | upInsReviewType:1, |
| | | experimentInfo:{ |
| | | note:'', |
| | | term:'' |
| | |
| | | }) |
| | | }, |
| | | // 复核 |
| | | upInsReview(e,type) { |
| | | this.$confirm(type=='结束试验'?'确认结束试验?确定后此委托单停止试验,并且无法再次检验!':`是否${type}?`, "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | if (e == 1||e==2) { |
| | | upInsReview() { |
| | | if (this.upInsReviewType == 1||this.upInsReviewType==2) { |
| | | // 继续试验 |
| | | this.reviewLoading = true; |
| | | this.$axios.post(this.$api.insOrderPlan.verifyPlan, { |
| | | sampleId: this.orderId, |
| | | type: e, |
| | | type: this.upInsReviewType, |
| | | laboratory: this.sonLaboratory, |
| | | tell: null |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success("操作成功") |
| | | this.upInsReviewDia = false; |
| | | this.$emit('goback') |
| | | } |
| | | this.reviewLoading = false; |
| | |
| | | // 再次试验 |
| | | this.reviewDia = true; |
| | | } |
| | | }) |
| | | }, |
| | | handleReviewDia() { |
| | | if (this.noReason) { |
| | |
| | | } |
| | | if(!this.otherForm.humidity){ |
| | | this.$message.error('请输入湿度') |
| | | return |
| | | } |
| | | if(this.sonLaboratory === '电路试验'&&!this.$refs.CircuitParameters.saveAll()){ |
| | | return |
| | | } |
| | | this.experimentDia = true |
| | |
| | | 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" |
| | |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | <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="entrustCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-tree :data="storageList" ref="tree" :props="{ children: 'warehouseShelfList', label: 'name' }" node-key="id" |
| | | :filter-node-method="filterNode" @node-click="handleNodeClick" highlight-current @node-expand="nodeOpen" |
| | |
| | | <el-dialog title="出库" :visible.sync="exportVisible" width="400px"> |
| | | <el-row> |
| | | <el-col class="search_thing" :span="24"> |
| | | <div class="search_label" style="width: 90px"><span class="required-span">* </span>样品编号:</div> |
| | | <div class="search_label" style="width: 90px"><span class="required-span">* </span>委托编号:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="sampleCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | <el-tooltip :content="sampleCodeBtnDisabled?'手动输入':'扫码枪输入'" placement="top" slot="append"> |
| | | <el-button type="primary" icon="el-icon-edit" @click="sampleCodeBtnDisabled=!sampleCodeBtnDisabled"></el-button> |
| | | </el-tooltip> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | <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="entrustCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | |
| | | scanInsOrderState:false, |
| | | qrCodeVisible: false, |
| | | sampleCode: '', |
| | | entrustCode:'', |
| | | storageList:[], |
| | | expandedKeys: [], |
| | | selectTree: [], |
| | |
| | | if(newVal){ |
| | | // this.$message.success('扫码:打开') |
| | | this.sampleCode = null |
| | | this.entrustCode = null |
| | | let input = document.getElementById('ScanCodeInfo'); |
| | | input.focus(); |
| | | this.startTime = setInterval(()=>{ |
| | |
| | | if(newVal){ |
| | | // this.$message.success('扫码:打开') |
| | | this.sampleCode = null |
| | | this.entrustCode = null |
| | | let input = document.getElementById('ScanCodeInfo'); |
| | | input.focus(); |
| | | this.startTime = setInterval(()=>{ |
| | |
| | | if(!val){ |
| | | this.startTime&&clearInterval(this.startTime) |
| | | }else if(this.exportVisible||this.qrCodeVisible){ |
| | | this.sampleCode = null |
| | | // this.sampleCode = null |
| | | // this.entrustCode = null |
| | | let input = document.getElementById('ScanCodeInfo'); |
| | | input.focus(); |
| | | this.startTime = setInterval(()=>{ |
| | |
| | | this.$message.error('请填写样品编号') |
| | | return |
| | | } |
| | | if (!this.entrustCode) { |
| | | this.$message.error('请填写订单编号') |
| | | return |
| | | } |
| | | if (this.selectTree.length < 4) { |
| | | this.$message.error('请选择样品入库位置') |
| | | return |
| | |
| | | this.$axios.post(this.$api.insOrderPlan.scanInsOrderState, { |
| | | trees: this.selectTree.join('-'), |
| | | sampleCode:this.sampleCode, |
| | | entrustCode:this.entrustCode, |
| | | sonLaboratory: this.componentData.entity.sonLaboratory |
| | | }).then(res => { |
| | | this.upLoadStorage = false; |
| | | this.qrCodeVisible = false |
| | | this.sampleCode = ''; |
| | | this.entrustCode = ''; |
| | | this.selectTree = [] |
| | | if (res.code == 201) { |
| | | this.$message.error('添加失败') |
| | |
| | | this.$message.error('请填写样品编号') |
| | | return |
| | | } |
| | | if (!this.entrustCode) { |
| | | this.$message.error('请填写订单编号') |
| | | return |
| | | } |
| | | this.upLoadExport = true; |
| | | this.$axios.post(this.$api.insOrderPlan.outInsOrderState, { |
| | | sampleCode:this.sampleCode, |
| | | entrustCode:this.entrustCode, |
| | | sonLaboratory: this.componentData.entity.sonLaboratory |
| | | }).then(res => { |
| | | this.upLoadExport = false; |
| | | this.exportVisible = false |
| | | this.sampleCode = ''; |
| | | this.entrustCode = ''; |
| | | if (res.code == 201) { |
| | | this.$message.error('出库失败') |
| | | return |
| | |
| | | }, |
| | | // 扫码枪按下 |
| | | keyup(e){ |
| | | var code = '' |
| | | var codeInfo = null |
| | | try{ |
| | | code = this.codeInfo.substring() |
| | | if(code==null||code==undefined||code==''){ |
| | | this.$message.error('该二维码有误') |
| | | console.log(2222,this.codeInfo) |
| | | codeInfo = JSON.parse(this.codeInfo) |
| | | if(!codeInfo||codeInfo.sampleCode==undefined||codeInfo.entrustCode==undefined){ |
| | | this.$message.error('该二维码有误') |
| | | }else{ |
| | | this.sampleCode = code |
| | | this.sampleCode = codeInfo.sampleCode |
| | | this.entrustCode = codeInfo.entrustCode |
| | | } |
| | | }catch(e){ |
| | | this.$message.error('请调至英文键盘') |
| | |
| | | <el-card class="box-card" v-for="(item, i) in qrData" :key="i+'wwwww'" style="margin-bottom: 15px; font-size: 16px !important;"> |
| | | <el-checkbox :label="i" :key="i" style="position: relative;top:-10px;left:5px"><br></el-checkbox> |
| | | <div> |
| | | <p style="text-align: center;font-size: 18px;font-weight: 700;">{{ item.sample }}</p> |
| | | <barcode :value="item.sampleCode" :height="34" :width="2" :displayValue="false" style="display: flex;justify-content: center;width: 100%;"></barcode> |
| | | <div> |
| | | <div style="width: 100%;line-height: 30px;"> |
| | | <p style="text-align: center;font-size: 26px;font-weight: 700;">{{ item.sample }}({{item.model}})</p> |
| | | <p style="text-align: center;font-size: 16px;">{{ item.sampleCode }}</p> |
| | | <el-divider></el-divider> |
| | | <el-row style="font-size: 16px;"> |
| | | <el-col :span="16" style="text-align: left;line-height: 28px;"> |
| | | <p><span> 委托单号: </span>{{ item.code }}</p> |
| | | <p><span> 电机编号: </span>{{ item.motorNumber }}</p> |
| | | <p><span> 样机完成时间: </span>{{ item.issueTime }}</p> |
| | | <p><span> 样机员: </span>{{ item.issueName }}</p> |
| | | <p class="ellipsis-multiline"><span> 检测项目: </span>{{ item.item }}</p> |
| | | </el-col> |
| | | <el-col :span="8" style="text-align: left;"> |
| | | <vueQr |
| | | :text="item.str" |
| | | :size="140" |
| | | :margin="2" |
| | | ></vueQr> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <div> |
| | | <div> |
| | | <el-row style="font-size: 16px;"> |
| | | <el-col :span="16" style="text-align: left;"><span> 样品编号: </span>{{ item.sampleCode }}</el-col> |
| | | <el-col :span="8" style="text-align: left;"><span> 规格型号: </span>{{ item.model }}</el-col> |
| | |
| | | <el-col style="text-align: left;"><span> 检测项目: </span>{{ item.item }}</el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </el-card> |
| | | </el-checkbox-group> |
| | |
| | | <div id="printMOrder" class="printMOrder" ref="printMOrder"> |
| | | <el-card class="box-card" v-for="(item, i) in checkDataList" :key="i+'uuuuu'" style="font-size: 16px !important;page-break-after: always;color: #000;box-shadow: none;margin: 0 !important;padding: 0 !important;"> |
| | | <div> |
| | | <p style="text-align: center;font-size: 18px;font-weight: 500;margin-top: 10px;">{{ item.sample }}</p> |
| | | <barcode :value="item.sampleCode" :height="34" :width="2" :displayValue="false" style="display: flex;justify-content: center;width: 100%;"></barcode> |
| | | <div> |
| | | <div style="width: 100%;line-height: 30px;"> |
| | | <el-row style="font-size: 16px;"> |
| | | <el-col :span="16" style="text-align: left;"><span>样品编号: </span>{{ item.sampleCode }}</el-col> |
| | | <el-col :span="7" style="text-align: left;"><span>规格型号: </span>{{ item.model }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;"> |
| | | <el-col :span="16" style="text-align: left;"><span>委托单号: </span>{{ item.code }}</el-col> |
| | | <el-col :span="7" style="text-align: left;"><span>电机编号: </span>{{ item.motorNumber }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;"> |
| | | <el-col :span="16" style="text-align: left;"><span>样机完成时间: </span>{{ item.issueTime }}</el-col> |
| | | <el-col :span="7" style="text-align: left;"><span>样机员: </span>{{ item.issueName }}</el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 1px;font-size: 16px;" class="ellipsis-multiline"> |
| | | <el-col style="text-align: left;"><span>检测项目: </span>{{ item.item }}</el-col> |
| | | </el-row> |
| | | </div> |
| | | <p style="text-align: center;font-size: 26px;font-weight: 700;margin-top: 20px;">{{ item.sample }}({{item.model}})</p> |
| | | <p style="text-align: center;font-size: 16px;">{{ item.sampleCode }}</p> |
| | | <!-- <el-divider></el-divider> --> |
| | | <p style="width: 100%;height:1px;background-color: #333333;margin: 6px 0;"></p> |
| | | <el-row style="font-size: 16px;"> |
| | | <el-col :span="16" style="text-align: left;line-height: 28px;"> |
| | | <p><span> 委托单号: </span>{{ item.code }}</p> |
| | | <p><span> 电机编号: </span>{{ item.motorNumber }}</p> |
| | | <p><span> 样机完成时间: </span>{{ item.issueTime }}</p> |
| | | <p><span> 样机员: </span>{{ item.issueName }}</p> |
| | | <p class="ellipsis-multiline"><span> 检测项目: </span>{{ item.item }}</p> |
| | | </el-col> |
| | | <el-col :span="8" style="text-align: left;"> |
| | | <vueQr |
| | | :text="item.str" |
| | | :size="140" |
| | | :margin="2" |
| | | ></vueQr> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | |
| | | }) |
| | | a.item = [...new Set(arr1)].join(',') |
| | | }) |
| | | this.qrData = arr |
| | | this.qrData = arr.map(m=>{ |
| | | m.str = JSON.stringify({ |
| | | sampleCode:m.sampleCode, |
| | | entrustCode:m.code |
| | | }) |
| | | return m |
| | | }) |
| | | // console.log(this.qrData) |
| | | }) |
| | | }, |
| | |
| | | targetStyles: ["*"], // 使用dom的所有样式,很重要 |
| | | printable: 'printMOrder',//页面 |
| | | type: "html",//文档类型 |
| | | maxWidth:720, |
| | | header: '', |
| | | documentTitle: "二维码", |
| | | style: |
| | | `@page { |
| | | margin: 0.4cm; |
| | | margin-right: 0.4cm; |
| | | margin-top: 0.4cm; |
| | | margin-bottom: 0.4cm; |
| | | padding-bottom: 0px; |
| | | size: 800px 600px collapse; |
| | | margin: 0; |
| | | size: landscape; |
| | | } |
| | | html{ |
| | | body{ |
| | | zoom:100%; |
| | | |
| | | } |
| | | @media print{ |
| | | width: 800px; |
| | | height: 600px; |
| | | padding:30px 0; |
| | | margin:0; |
| | | }`, |
| | | font_size: '16px', |
| | | }); |
| | | }, |
| | | async print(){ |
| | |
| | | <div class="search_label">样品编号:</div> |
| | | <div class="search_input"> |
| | | <el-input placeholder="请输入样品编号" v-model="searchSampleCode" size="small" autocomplete="off" ref="organization" readonly="readonly" @focus="remove('organization')" @blur="setType('organization')"> |
| | | <el-button slot="append" icon="el-icon-search" @click="handleSearch"></el-button> |
| | | <!-- <el-button slot="append" icon="el-icon-search" @click="handleSearch"></el-button> --> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <el-button size="small" @click="handleShelf(entity.shelfId,''),searchSampleCode=''">重置</el-button> |
| | | <el-button size="small" type="primary" @click="handleShelf(entity.shelfId,searchSampleCode)">查询</el-button> |
| | | </div> |
| | | <!-- <div class="search_thing" style="padding-left: 30px;"> |
| | | <el-button size="small" @click="refresh()">重 置</el-button> |
| | |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | <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="entrustCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-tree :data="storageList" ref="tree" :props="{ children: 'warehouseShelfList', label: 'name' }" node-key="id" |
| | | :filter-node-method="filterNode" @node-click="handleNodeClick" highlight-current @node-expand="nodeOpen" |
| | |
| | | <el-tooltip :content="sampleCodeBtnDisabled?'手动输入':'扫码枪输入'" placement="top" slot="append"> |
| | | <el-button type="primary" icon="el-icon-edit" @click="sampleCodeBtnDisabled=!sampleCodeBtnDisabled"></el-button> |
| | | </el-tooltip> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | | <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="entrustCode" size="small" clearable :disabled="sampleCodeBtnDisabled"> |
| | | </el-input> |
| | | </div> |
| | | </el-col> |
| | |
| | | currentEdit:null,//当前要维护的信息 |
| | | tableLoading:false, |
| | | sampleCode:'', |
| | | entrustCode:'', |
| | | currentId:null, |
| | | searchSampleCode:null, |
| | | codeInfo:null, |
| | |
| | | storageVisible(newVal){ |
| | | if(newVal){ |
| | | this.sampleCode = null |
| | | this.entrustCode = null |
| | | // this.$message.success('扫码:打开') |
| | | let input = document.getElementById('ScanCodeInfo0'); |
| | | input.focus(); |
| | |
| | | if(newVal){ |
| | | // this.$message.success('扫码:打开') |
| | | this.sampleCode = null |
| | | this.entrustCode = null |
| | | let input = document.getElementById('ScanCodeInfo0'); |
| | | input.focus(); |
| | | this.startTime = setInterval(()=>{ |
| | |
| | | if(!val){ |
| | | this.startTime&&clearInterval(this.startTime) |
| | | }else if(this.exportVisible||this.storageVisible){ |
| | | this.sampleCode = null |
| | | let input = document.getElementById('ScanCodeInfo'); |
| | | input.focus(); |
| | | this.startTime = setInterval(()=>{ |
| | |
| | | }, |
| | | methods: { |
| | | keyup(e){ |
| | | var code = '' |
| | | var codeInfo = null |
| | | try{ |
| | | console.log(2222,this.codeInfo) |
| | | code = this.codeInfo.substring() |
| | | if(code==null||code==undefined||code==''){ |
| | | codeInfo = JSON.parse(this.codeInfo) |
| | | if(!codeInfo||codeInfo.sampleCode==undefined||codeInfo.entrustCode==undefined){ |
| | | this.$message.error('该二维码有误') |
| | | }else{ |
| | | this.sampleCode = code |
| | | this.sampleCode = codeInfo.sampleCode |
| | | this.entrustCode = codeInfo.entrustCode |
| | | } |
| | | }catch(e){ |
| | | this.$message.error('请调至英文键盘') |
| | |
| | | this.$message.error('请填写样品编号') |
| | | return |
| | | } |
| | | if (!this.entrustCode) { |
| | | this.$message.error('请填写订单编号') |
| | | return |
| | | } |
| | | if (this.selectTree.length < 4) { |
| | | this.$message.error('请选择样品入库位置') |
| | | return |
| | |
| | | this.upLoadStorage = true; |
| | | this.$axios.post(this.$api.warehouse.inWarehouse, { |
| | | trees: this.selectTree.join('-'), |
| | | sampleCode:this.sampleCode |
| | | sampleCode:this.sampleCode, |
| | | entrustCode:this.entrustCode |
| | | }).then(res => { |
| | | this.upLoadStorage = false; |
| | | this.storageVisible = false |
| | | this.sampleCode = ''; |
| | | this.entrustCode = ''; |
| | | this.selectTree = [] |
| | | if (res.code == 201) { |
| | | this.$message.error('入库失败') |
| | |
| | | this.$message.error('请填写样品编号') |
| | | return |
| | | } |
| | | if (!this.entrustCode) { |
| | | this.$message.error('请填写订单编号') |
| | | return |
| | | } |
| | | this.upLoadExport = true; |
| | | this.$axios.post(this.$api.warehouse.outWarehouse, { |
| | | sampleCode:this.sampleCode |
| | | sampleCode:this.sampleCode, |
| | | entrustCode:this.entrustCode, |
| | | }).then(res => { |
| | | this.upLoadExport = false; |
| | | this.exportVisible = false |
| | | this.sampleCode = ''; |
| | | this.entrustCode = ''; |
| | | if (res.code == 201) { |
| | | this.$message.error('出库失败') |
| | | return |
| | |
| | | this.shelf = map.warehouseShelfList; |
| | | this.entity.shelfId = ''; |
| | | }, |
| | | handleShelf(e){ |
| | | handleShelf(e,sampleCode=''){ |
| | | if(e){ |
| | | this.tableLoading = true; |
| | | this.$axios.get(this.$api.warehouse.getWarehouse+'?shelfId='+e).then(res => { |
| | | this.$axios.get(this.$api.warehouse.getWarehouse+'?shelfId='+e+'&sampleCode='+sampleCode).then(res => { |
| | | this.tableLoading = false; |
| | | let data = res.data; |
| | | let set =new Set() |
| | |
| | | <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> |
| | |
| | | //本地 |
| | | // Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | // const javaApi = 'http://127.0.0.1:8001'; |
| | | // const javaApi = 'http://172.20.10.5:8001'; |
| | | const javaApi = 'http://172.20.10.5:8001'; |
| | | |
| | | // //通信测试库 |
| | | // Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080"; |
| | |
| | | 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 |
| | | } |