| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getList, approve, getAssignee,reassgin,manualDispatch,autoDispatch,getPrevius,batchApprove } from '@/api/flow/todolist'; |
| | | import { getList, approve, getAssignee,reassgin,manualDispatch,autoDispatch,todoChangeNotify,batchApprove } from '@/api/flow/todolist'; |
| | | import { mapGetters } from 'vuex'; |
| | | import dayjs from 'dayjs'; |
| | | import TodolistLeft from './components/TodolistLeft.vue'; |
| | | import TodolistRightTop from './components/TodolistRightTop.vue'; |
| | | import processTrace from './components/process-trace.vue'; |
| | | |
| | | //import top-todo from '../../page/index/LoadGood.vue'; |
| | | export default { |
| | | components: { |
| | | TodolistLeft, |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | // 设置审批结果的状态 |
| | | setApproveBtn (row) { |
| | | |
| | | setApproveBtn (row) { // 设置审批结果的状态 |
| | | // 1.审批界面radio文本修改,普通节点的2个radio文本 通过(approve=Y),不通过(现在的驳回)(approve=N) |
| | | |
| | | this.optionApprove.column[0].dicData = [ |
| | |
| | | } |
| | | this.$message.success('操作成功'); |
| | | this.onLoad(this.page, this.query); |
| | | |
| | | todoChangeNotify(); |
| | | }).catch(err => { |
| | | this.$message.success('操作失败'); |
| | | }) |
| | |
| | | this.reassignBox = false; |
| | | this.$refs?.reassginform?.resetForm(); |
| | | this.onLoad(this.page, this.query); |
| | | |
| | | todoChangeNotify(); |
| | | done() |
| | | |
| | | }).catch(err => { |
| | |
| | | this.reassignBox = false; |
| | | this.$refs?.reassginform?.resetForm(); |
| | | this.onLoad(this.page, this.query); |
| | | |
| | | todoChangeNotify(); |
| | | done() |
| | | |
| | | }).catch(err => { |
| | |
| | | this.reassignBox = false; |
| | | this.$refs?.reassginform?.resetForm(); |
| | | this.onLoad(this.page, this.query); |
| | | |
| | | todoChangeNotify(); |
| | | done() |
| | | |
| | | }).catch(err => { |
| | |
| | | this.$message.success('审批成功'); |
| | | this.approveBox = false; |
| | | this.onLoad(this.page, this.query); |
| | | |
| | | todoChangeNotify();//顶部待办数量刷新 |
| | | done(); |
| | | }).catch(err => { |
| | | done(); |
| | |
| | | console.log('searchChange', params); |
| | | params.createTimeBegin = params?.processCreateTime?.[0] || ''; |
| | | params.createTimeEnd = params?.processCreateTime?.[1] || ''; |
| | | console.log(params); |
| | | // data = { |
| | | // createTimeBegin: dayjs(params.createTimeBegin).isValid() ? dayjs(params.createTimeBegin).format('YYYY-MM-DD') : '', |
| | | // createTimeEnd: dayjs(params.createTimeEnd).isValid() ? dayjs(params.createTimeEnd).format('YYYY-MM-DD') : '', |
| | | // keyword: params.keyword || '' |
| | | // } |
| | | data = { |
| | | createTimeBegin: params.createTimeBegin, |
| | | createTimeEnd: params.createTimeEnd, |