| | |
| | | <el-card class="dialogwarp_tab_card"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="业务数据信息" name="first"> |
| | | |
| | | <businesswork ref="businesswork":ids="ids" :templateId="templateId" :taskId="taskId" :modelKey="modelKey" :codeClassifyOid="codeClassifyOid"></businesswork> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="流程跟踪" name="second"> |
| | | <avue-crud :data="flowList" :option="option" ref="crud"> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | ids:[], |
| | | templateId:'', |
| | | taskId: '', |
| | | modelKey:'', |
| | | codeClassifyOid:'', |
| | | businessId: '', |
| | | processInstanceId: '', |
| | | src: '', |
| | |
| | | indexLabelClassName: '序号', |
| | | column: [ |
| | | { label: '任务名称', prop: 'historyActivityName', minWidth: 120 }, |
| | | { label: '执行操作', prop: 'sex', minWidth: 80 }, |
| | | { label: '执行操作', prop: 'pass', minWidth: 80 ,formatter:this.formatterPass}, |
| | | { label: '任务开始时间', prop: 'createTime', minWidth: 140 }, |
| | | { label: '审批意见', prop: 'comment', minWidth: 220, overHidden: true }, |
| | | { label: '执行人', prop: 'assigneeName', minWidth: 80 }, |
| | |
| | | }) |
| | | this.apiGetBtnTask(this.processInstanceId) |
| | | }, |
| | | formatterPass(row, value, column) { |
| | | console.log('value',value) |
| | | return value?'同意':'驳回' |
| | | }, |
| | | async apiGetBtnTask(id) { |
| | | const response = await getBtnTask({ processInstanceId: id }) |
| | | const res = response.data |
| | | this.ids=res.data.variables.ids; |
| | | this.templateId=res.data.variables.templateId; |
| | | this.modelKey=res.data.variables.modelKey; |
| | | this.codeClassifyOid=res.data.variables.codeClassifyOid; |
| | | this.taskId=res.data.variables.taskId; |
| | | if (res.success) { |
| | | console.log(res) |
| | | this.btnList = res.data.toTasks |
| | | this.btnList = res.data.toTasks; |
| | | } |
| | | }, |
| | | async apiExamineTask(param) { |
| | |
| | | }, |
| | | handelExecute(event) { |
| | | console.log(event) |
| | | if(this.$refs.businesswork.hasEditor){ |
| | | this.$refs.businesswork.HandlerSave() |
| | | } |
| | | const { toName, conditionKey, conditionValue } = event |
| | | let param = { |
| | | comment: this.opinionVal || '同意', |
| | |
| | | display: -ms-flexbox; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | height: 70vh; |
| | | height: 85vh; |
| | | |
| | | &_tab { |
| | | width: 79%; |