| | |
| | | data() { |
| | | return { |
| | | handlerId: null, |
| | | contract:null, |
| | | entity: { |
| | | contract: null, |
| | | sample: null, |
| | |
| | | dataType: 'action', |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: '180px', |
| | | width: '220px', |
| | | operation: [ |
| | | { |
| | | name: '提交OA', |
| | | name: (row)=>{ |
| | | return row.requestId !== null && row.operation==='退回' ? '重新提交' : '提交OA' |
| | | }, |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.openOA(row); |
| | | }, |
| | | disabled: (row, index) => { |
| | | return row.requestId !== null // 有requestId说明已经提交过OA,不可再次提交 |
| | | return row.requestId !== null && row.operation!=='退回' // 有requestId说明已经提交过OA,不可再次提交 |
| | | } |
| | | }, |
| | | { |
| | |
| | | this.deleteOA(row); |
| | | }, |
| | | disabled: (row, index) => { |
| | | return row.requestId !== null // 有requestId说明已经提交过OA,不可再次提交 |
| | | return row.requestId !== null && row.operation!=='退回' // 有requestId说明已经提交过OA,不可再次提交 |
| | | } |
| | | }, |
| | | ] |
| | |
| | | ], |
| | | page: { |
| | | total: 0, |
| | | size: 10, |
| | | size: 20, |
| | | current: 1 |
| | | }, |
| | | statusList: [], |
| | |
| | | resetForm1 () { |
| | | this.$refs.unPassDialog.$refs['unPassForm'].resetFields(); |
| | | this.unPassDialog = false |
| | | this.$nextTick(()=>{ |
| | | this.refreshTable('page') |
| | | }) |
| | | }, |
| | | // 打开删除OA确认弹框 |
| | | deleteOA (row) { |
| | |
| | | // 查看提交OA的数据 |
| | | openOA (row) { |
| | | this.handlerId = row.handlerId |
| | | this.dialogVisible = true |
| | | this.contract = row.contract |
| | | if(row && row.requestId !== null ){ |
| | | // 重新提交OA,打开编辑弹框 |
| | | this.unPassDialog = true |
| | | this.$nextTick(() => { |
| | | this.$refs.unPassDialog.getInsOrder('resubmit', row) |
| | | }) |
| | | }else{ |
| | | this.dialogVisible = true |
| | | } |
| | | }, |
| | | // 查看OA流程 |
| | | OAView (row) { |
| | |
| | | submitOA(row) { |
| | | // 提交OA |
| | | this.submitOALoading = true |
| | | pushOA({handlerId: this.handlerId,}).then(res => { |
| | | pushOA({handlerId: this.handlerId,contract:this.contract}).then(res => { |
| | | this.submitOALoading = false |
| | | if (res.code === 200) { |
| | | this.dialogVisible = false |