| | |
| | | type: 'text', |
| | | method: 'handleInspection', |
| | | disabFun: (row, index) => { |
| | | return row.userName == null || row.insState == 3 || row.insState == 5||(row.userName&&!row.userName.includes(JSON.parse(localStorage.getItem("user")).name)) |
| | | return row.userName == null || row.insState == 3 || row.insState == 5||row.insState == 6||(row.userName&&!row.userName.includes(JSON.parse(localStorage.getItem("user")).name)) |
| | | } |
| | | // disabFun: (row, index) => { |
| | | // return row.userId == null || row.insState == 3 || row.insState == 5 |
| | |
| | | type: 'text', |
| | | method: 'handleConnect', |
| | | disabFun: (row, index) => { |
| | | return row.userName == null || row.insState == 5 || row.insState == 3||(row.userName&&!row.userName.includes(JSON.parse(localStorage.getItem("user")).name)) |
| | | return row.userName == null || row.insState == 5 || row.insState == 3||row.insState == 6||(row.userName&&!row.userName.includes(JSON.parse(localStorage.getItem("user")).name)) |
| | | } |
| | | }, |
| | | { |
| | |
| | | this.sampleUserForm = { |
| | | entrustCode: row.entrustCode, |
| | | insSampleId: row.id, |
| | | sonLaboratory: row.sonLaboratory, |
| | | sonLaboratory: row.sonLaboratory, |
| | | } |
| | | this.claimVisible = true |
| | | } |
| | |
| | | this.$message.success("认领成功") |
| | | this.claimVisible = false |
| | | this.refreshTable('page') |
| | | } else { |
| | | this.loading = false; |
| | | } |
| | | }).catch(error => { |
| | | console.error(error) |