| | |
| | | label: '操作', |
| | | operation: [ |
| | | { |
| | | name: '编辑', |
| | | type: 'text', |
| | | icon: '', |
| | | clickFun: (row) => { |
| | | this.editOrder(row); |
| | | }, |
| | | showHide: (row) => { |
| | | return row.editable === true || row.editable === 1 |
| | | } |
| | | }, |
| | | { |
| | | name: '查看详情', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | |
| | | this.upLoad = false; |
| | | }, |
| | | // 点击样品名称 |
| | | editOrder(row) { |
| | | this.$router.push({ |
| | | path: "/productOrder/addOrder", query: { |
| | | examine: 0, |
| | | active: 1, |
| | | edit: 1, |
| | | currentId: row.id, |
| | | tabIndex: this.tabIndex, |
| | | } |
| | | }); |
| | | }, |
| | | selectAllByOne(row) { |
| | | if (this.tabIndex === 4) { |
| | | this.$router.push({ |
| | |
| | | inspectorList = row.userName.split(',') |
| | | } |
| | | inspectorList.push(this.nickName) |
| | | if (this.checkPermi(['business:inspectionView'])) { |
| | | this.$router.push({ |
| | | name: "InspectionView", |
| | | query: { |
| | | sonLaboratory: null, |
| | | state: 3, |
| | | typeSource: row.typeSource, |
| | | orderId: row.id, |
| | | inspectorList: inspectorList, |
| | | }, |
| | | }) |
| | | } else { |
| | | this.$router.push({ |
| | | path: "/inspectionTask/inspection", |
| | | query: { |
| | | sonLaboratory: null, |
| | | state: 3, |
| | | typeSource: row.typeSource, |
| | | orderId: row.id, |
| | | inspectorList: inspectorList, |
| | | }, |
| | | }) |
| | | } |
| | | this.$router.push({ |
| | | path: "/productOrder/inspectionView", |
| | | query: { |
| | | sonLaboratory: null, |
| | | state: 3, |
| | | typeSource: row.typeSource, |
| | | orderId: row.id, |
| | | inspectorList: inspectorList, |
| | | }, |
| | | }) |
| | | }, |
| | | goback() { |
| | | this.state = 0 |