发起任务
+
审批模版
mdi-help-circle-outline帮助
@@ -53,9 +53,6 @@
-
- mdi-note-edit-outline申请
-
mdi-note-edit-outline编辑
@@ -69,9 +66,6 @@
-
- 申请
-
编辑
@@ -100,54 +94,6 @@
-
-
-
-
- 创建审批
-
-
-
-
-
-
-
-
- 审批流程 - 添加审批人
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 取消
-
-
-
-
- mdi-close
-
-
@@ -207,7 +153,7 @@
headers: [
{ text: '流程ID', value: 'workflowId' },
{ text: '流程名称', value: 'workflowName' },
- {text: '操作', value: 'action', align: 'left', sortable: false, width: window.innerWidth < 500 ? 80 : 120, class: 'fixed', cellClass: 'fixed'},
+ { text: '操作', value: 'action', align: 'left', sortable: false, width: window.innerWidth < 500 ? 80 : 120, class: 'fixed', cellClass: 'fixed' },
],
searchInput: '',
isHelpPageDrawerShown: false,
@@ -230,22 +176,6 @@
await this.getTableData();
await this.parseTableData();
break;
- case 'startCreateTask':
- await this.openCreateTaskDrawer(uiActionData);
- break;
- case 'createTask':
- await this.prepareDoCreateWork();
- await this.prepareCreateValidate();
- await this.confirmCreateWorkDialog();
- await this.doCreateWork();
- await this.closeCreateDrawer();
- break;
- case 'jumpToCreateWorkflow':
- await this.jumpToCreateWorkflow();
- break;
- case 'jumpUpdateWorkflow':
- await this.jumpUpdateWorkflow(uiActionData);
- break;
case 'openWorkflowEditorDrawer':
await this.openWorkflowEditorDrawer(uiActionData);
break;
@@ -300,77 +230,6 @@
const userList = result.data.appData.resultData.rows;
this.userList = userList;
},
-
- // ---------- <<<<<<<<<< 申请项目审核 --------
- async openCreateTaskDrawer(workflow) {
- this.$refs.createTaskDrawer.doUiAction('open', workflow);
- },
- async prepareDoCreateWork() {
- this.currentWorkflowPersonList.forEach(workflowPersonItem => {
- if (!workflowPersonItem.assignValue) {
- workflowPersonItem.assignValue = [];
- }
- workflowPersonItem.assignValue = workflowPersonItem.assignValue.filter(userId => {
- return this.userList.some(user => user.userId === userId);
- });
- if (!workflowPersonItem.origin) workflowPersonItem['origin'] = {};
- if (!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {};
- workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue;
- });
- },
- async prepareCreateValidate() {
- if (!await this.$refs.createForm.validate()) {
- throw new Error("请完善表单信息")
- }
- this.currentWorkflowPersonList.forEach(workflowPersonItem => {
- if (workflowPersonItem.assignValue.length === 0) {
- window.vtoast.fail({ message: `${workflowPersonItem.label}必填!` });
- throw new Error("[prepareValidate] 审批人 false");
- }
- });
- },
- async confirmCreateWorkDialog() {
- if (await window.confirmDialog({ title: "新增", content: "确定新增吗?" }) === false) {
- throw new Error("[confirmCreateFormDialog] 否");
- }
- },
-
- async doCreateWork() {
- await window.jhMask.show();
- await window.vtoast.loading("正在申请");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'workflowManagement',
- actionId: 'insertTask',
- actionData: {
- formItemList: this.currentWorkflowForm,
- workflowId: this.currentWorkflowId,
- workflowConfigCustom: JSON.stringify({ nodeListOfUserTaskNode: this.currentWorkflowPersonList })
- }
- }
- }
- })
- await window.jhMask.hide();
- await window.vtoast.success("申请成功");
- },
- async closeCreateDrawer() {
- this.currentWorkflowForm = null;
- this.currentWorkflowId = null;
- this.isCreateDrawerShown = false;
- },
- // ---------- 申请项目审核 >>>>>>>>>> --------
-
- // ---------- <<<<<<<<<< jump --------
- jumpUpdateWorkflow(item) {
- sessionStorage.setItem('workflowEditItem', JSON.stringify(item))
- window.location.href = `/${window.appInfo.appId}/page/workflowEditor?id=${item.id}`;
- },
-
- jumpToCreateWorkflow() {
- window.location.href = '/<$ ctx.app.config.appId $>/page/workflowEditor';
- },
- // ---------- jump >>>>>>>>>> --------
openWorkflowEditorDrawer(item) {
this.$refs.workflowEditorDrawer.doUiAction('open', item);