| | |
| | | <div class="ins_order_add"> |
| | | <div v-show="!configShow&&!equipConfigShow&&!cableConfigShow"> |
| | | <el-row class="title"> |
| | | <el-col :span="6" style="padding-left: 20px;">委托单信息 总价:<span |
| | | <el-col :span="6" style="padding-left: 20px;text-align: left;">委托单信息 总价:<span |
| | | style="color: #3A7BFA">¥{{total}}</span></el-col> |
| | | <el-col :span="18" style="text-align: right;"> |
| | | <el-select v-model="template" size="medium" placeholder="下单模板" style="margin-right: 10px;" v-show="active==1" |
| | |
| | | this.selectUserDia = false |
| | | }, |
| | | containsValue(str) { |
| | | let symbolItem = '' |
| | | this.symbolList.some(value =>{ |
| | | if(str.includes(value)){ |
| | | symbolItem = value |
| | | return true |
| | | } |
| | | }) |
| | | return symbolItem |
| | | if(str){ |
| | | let symbolItem = '' |
| | | this.symbolList.some(value =>{ |
| | | if(str.includes(value)){ |
| | | symbolItem = value |
| | | return true |
| | | } |
| | | }) |
| | | return symbolItem |
| | | } |
| | | }, |
| | | handleAsk(ask,symbolItem, value) { |
| | | try{ |
| | |
| | | let isRTS = this.totalArr.find(a => a.ask != null && this.symbolList.find(b=>a.ask.includes(b)) && a.state == 1) |
| | | if (isRTS) { |
| | | this.editTable = this.handleData(sampleList,this.containsValue, 0) |
| | | this.editTable.forEach(item => { |
| | | item.value = item.modelNum |
| | | }) |
| | | this.bsm3Dia = true; |
| | | return |
| | | } |
| | |
| | | } |
| | | }, |
| | | save0(){ |
| | | let sampleList = this.handleData(this.HaveJson(this.sampleList),this.handleAsk,1) |
| | | this.saveMethod(sampleList) |
| | | if(this.editTable.every(m=>m.value)){ |
| | | let sampleList = this.handleData(this.HaveJson(this.sampleList),this.handleAsk,1) |
| | | this.saveMethod(sampleList) |
| | | }else{ |
| | | this.$message.error('请填写识别符值') |
| | | } |
| | | }, |
| | | handleData(sampleList,calBack,type){ |
| | | let editTable = [] |
| | |
| | | model:item.model, |
| | | symbolList:[], |
| | | sampleId:item.id, |
| | | modelNum:item.modelNum, |
| | | } |
| | | if (item.insProduct && item.insProduct.length > 0) { |
| | | item.insProduct.forEach(a => { |
| | |
| | | sampleId:a.sampleId, |
| | | value:null, |
| | | inspectionItemList:b.inspectionItemList, |
| | | modelNum:a.modelNum, |
| | | } |
| | | editTableNew.push(obj) |
| | | }) |
| | |
| | | this.saveLoad = true |
| | | this.$axios.post(this.$api.insOrder.upInsOrderOfState, { |
| | | state, |
| | | id: this.currentId |
| | | id: this.currentId, |
| | | companyId:this.addObj.companyId |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | this.saveLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('提交成功') |
| | | // this.$parent.multipleSelection = [{id: this.currentId}] |
| | | // this.$parent.print() |
| | | // 如果紧急程度为紧急,需要直接下发人员 |
| | | // if (this.addObj.type == 2) { |
| | | // this.issuedDialogVisible = true; |
| | |
| | | } |
| | | }, |
| | | selectStandardTreeList() { |
| | | this.$axios.get(this.$api.standardTree.selectStandardTreeList).then(res => { |
| | | this.$axios.get(this.$api.standardTree.selectStandardTreeList2).then(res => { |
| | | this.list = res.data |
| | | this.list.forEach(a => { |
| | | this.expandedKeys.push(a.label) |