| | |
| | | </span> |
| | | </el-dialog> |
| | | <div style="width: 100%;height: 100%;" v-if="activeFace >0"> |
| | | <Add :active="activeFace" :currentId="currentId"/> |
| | | <Add :active="activeFace" :currentId="currentId" :examine="examine"/> |
| | | </div> |
| | | <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :sonLaboratory="componentData.entity.sonLaboratory" :state="state"/> |
| | | <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :inspectorList="inspectorList" :sonLaboratory="componentData.entity.sonLaboratory" :state="state"/> |
| | | <el-dialog title="数据查看" :visible.sync="dataDialogVisible" width="80%"> |
| | | <div style="height: 70vh;overflow-y: auto;" v-if="dataDialogVisible"> |
| | | <ValueTable ref="ValueTableDataLook" :url="$api.insOrder.selectSampleAndProductByOrderId" |
| | | <ValueTable ref="ValueTableDataLook" :rowKey="'insProductId'" :url="$api.insOrder.selectSampleAndProductByOrderId" |
| | | :componentData="componentDataDataLook"/> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | examine: null, |
| | | inspectorList: [],//检验人员列表 |
| | | alone: false, |
| | | sampleUserForm: { |
| | | entrustCode: null, |
| | |
| | | value: 0, |
| | | label: '不合格', |
| | | type: 'danger' |
| | | },{ |
| | | value: 3, |
| | | label: '不判定', |
| | | type: '' |
| | | }] |
| | | } |
| | | }, |
| | |
| | | font: '数据查看', |
| | | type: 'text', |
| | | method: 'handleDataLook', |
| | | disabFun: (row, index) => { |
| | | const user = JSON.parse(localStorage.getItem('user')) |
| | | let currentUserName = '' |
| | | if(user){ |
| | | currentUserName = user.name |
| | | } |
| | | return row.userName!=currentUserName && row.checkName!=currentUserName |
| | | } |
| | | //disabFun: (row, index) => { |
| | | //const user = JSON.parse(localStorage.getItem('user')) |
| | | // let currentUserName = '' |
| | | // if(user){ |
| | | // currentUserName = user.name |
| | | //} |
| | | //return row.userName.indexOf(currentUserName)<0 && row.checkName.indexOf(currentUserName)<0 |
| | | //} |
| | | },{ |
| | | id: '', |
| | | font: '检验', |
| | |
| | | }, |
| | | selectAllByOne(row) { |
| | | this.activeFace = 2; |
| | | this.examine = 1; |
| | | this.currentId = parseInt(row.id) |
| | | }, |
| | | playOrder(num) { |
| | |
| | | this.refreshTable('page') |
| | | }, |
| | | handleInspection(row){ |
| | | //当前检验任务的检验人列表 |
| | | let inspectorList = [] |
| | | if(row.userName){ |
| | | inspectorList = row.userName.split(',') |
| | | } |
| | | let user = JSON.parse(localStorage.getItem('user')) |
| | | if(user){ |
| | | inspectorList.push(user.name) |
| | | } |
| | | this.inspectorList = inspectorList |
| | | this.state = 1; |
| | | this.orderId = row.id |
| | | }, |