| | |
| | | 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{ |
| | |
| | | } |
| | | }, |
| | | 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 = [] |
| | |
| | | a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? |
| | | '' : ( |
| | | '-' + a.modelNum)) |
| | | a.insProduct = a.insProduct.filter(b=>b.state === 1) |
| | | return a |
| | | })), |
| | | pairing: JSON.stringify(this.bsm2Val2) |
| | |
| | | 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) |