| | |
| | | font: '数据查看', |
| | | type: 'text', |
| | | method: 'handleDataLook', |
| | | disabFun: (row, index) => { |
| | | /* disabFun: (row, index) => { |
| | | const user = JSON.parse(localStorage.getItem('user')) |
| | | let currentUserName = '' |
| | | if(user){ |
| | | currentUserName = user.name |
| | | } |
| | | return row.userName!=currentUserName && row.checkName!=currentUserName |
| | | } |
| | | } */ |
| | | },{ |
| | | id: '', |
| | | font: '检验', |
| | |
| | | type: 'text', |
| | | method: 'claimFun', |
| | | disabFun: (row, index) => { |
| | | return row.userName != null||(row.userName&&!row.userName.includes(JSON.parse(localStorage.getItem("user")).name)) |
| | | return row.userName != null || row.checkName!=null |
| | | } |
| | | } |
| | | ], |
| | |
| | | } |
| | | }, |
| | | changeCheckBox(val) { |
| | | console.log(111,val) |
| | | this.componentData.entity.userId = val?0:null |
| | | this.refreshTable() |
| | | }, |
| | |
| | | this.sampleUserForm = { |
| | | entrustCode: row.entrustCode, |
| | | insSampleId: row.id, |
| | | sonLaboratory: row.sonLaboratory, |
| | | sonLaboratory: this.componentData.entity.sonLaboratory, |
| | | } |
| | | this.claimVisible = true |
| | | } |