| | |
| | | type: 'text', |
| | | method: 'handleVerify', |
| | | disabFun: (row, index) => { |
| | | return row.state != 0 |
| | | let state0 = false |
| | | if(this.currentRole=='检测中心主任'){ |
| | | if(row.checkState1||row.checkState1User){ |
| | | state0 = true |
| | | } |
| | | }else if(this.currentRole=='研发部经理'){ |
| | | if(row.checkState2||row.checkState2User){ |
| | | state0 = true |
| | | } |
| | | }else if(this.currentRole=='技术负责人'){ |
| | | if(row.checkState3||row.checkState3User){ |
| | | state0 = true |
| | | } |
| | | } |
| | | return row.state != 0 || state0 ||(this.currentRole!='检测中心主任'&&this.currentRole!='研发部经理'&&this.currentRole!='技术负责人') |
| | | } |
| | | }, { |
| | | id: 'quash', |
| | |
| | | disabFun: (row, index) => { |
| | | return (row.state != 1 && row.state != 0)||(this.tabIndex!=1)||row.isRevocation!=1 |
| | | } |
| | | }, { |
| | | font: '分配', |
| | | type: 'text', |
| | | method: 'handleIssued', |
| | | disabFun: (row, index) => { |
| | | // return row.state != 1 || !!row.assign |
| | | return row.appointed || row.state != 1 |
| | | } |
| | | }], |
| | | }, |
| | | // { |
| | | // font: '分配', |
| | | // type: 'text', |
| | | // method: 'handleIssued', |
| | | // disabFun: (row, index) => { |
| | | // // return row.state != 1 || !!row.assign |
| | | // return row.appointed || row.state != 1 |
| | | // } |
| | | // } |
| | | ], |
| | | linkEvent: { |
| | | sampleName: { |
| | | method: 'selectAllByOne' |
| | |
| | | ], |
| | | qrData:[], |
| | | multipleSelection:[], |
| | | sonLaboratoryList:[] |
| | | sonLaboratoryList:[], |
| | | currentRole:'' |
| | | } |
| | | }, |
| | | watch:{ |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getAuthorizedPersonRole() |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | this.getPower() |
| | |
| | | methods: { |
| | | selectMethod(val){ |
| | | this.multipleSelection = val |
| | | }, |
| | | async searchPrint(selection){ |
| | | let res = await this.$axios.post(this.$api.insOrder.checkNumber,{ |
| | | ids:selection.map(m=>m.id).join(',') |
| | | }) |
| | | console.log(1111,res) |
| | | }, |
| | | getLabelPrinting(selection){ |
| | | this.loadPint = true; |
| | |
| | | font_size: '0.20cm', |
| | | }); |
| | | }, |
| | | print(){ |
| | | async print(){ |
| | | if(this.multipleSelection.length==0){ |
| | | this.$message.warning('请选择一条数据') |
| | | return |
| | | } |
| | | let selection = this.multipleSelection |
| | | await this.searchPrint(selection) |
| | | this.getLabelPrinting(selection) |
| | | this.printDialogVisible = true |
| | | }, |
| | |
| | | }) |
| | | }) |
| | | this.personList = data |
| | | }) |
| | | }, |
| | | getAuthorizedPersonRole() { |
| | | this.$axios.get(this.$api.role.getRole).then(res => { |
| | | this.currentRole = res.message |
| | | }) |
| | | }, |
| | | refreshTable(e) { |
| | |
| | | playOrder(num) { |
| | | this.active = num |
| | | this.examine = 0 |
| | | this.getAuthorizedPersonRole() |
| | | this.refreshTable('page') |
| | | }, |
| | | handleTab(m, i) { |