|
|
|
@ -9,6 +9,8 @@ import { setTypes, selectModes, selectRanges } from '@/utils/workflow/const' |
|
|
|
import { useStore } from '@/store/workflow/index' |
|
|
|
import { getAllParentNode,judgeOptionalNode,analysisForm,setFlowFormKeyPower } from '@/api/workflowapi/index' |
|
|
|
|
|
|
|
import { govthree } from '@/api/opk/opk/api' |
|
|
|
|
|
|
|
import PositionDialog from '@/components/workflow/dialog/positionDialog.vue' |
|
|
|
import FormWord from '@/components/workflow/dialog/formWord.vue' |
|
|
|
import MatrixPage from '@/components/workflow/dialog/matrix.vue' |
|
|
|
@ -44,10 +46,17 @@ let props = defineProps({ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
const flowOrgTree = ref() |
|
|
|
const isExecutor = ref(false) |
|
|
|
const nodeTitle = ref<string>("审批人设置") |
|
|
|
const nodeOptional = ref<any[]>() //审批线已经存在得节点 |
|
|
|
const nodeAllVerify = ref<any[]>() |
|
|
|
const orgList = ref<any[]>() //行政组织 |
|
|
|
const orgProps = { |
|
|
|
value: 'id', |
|
|
|
label: 'name', |
|
|
|
children: 'child', |
|
|
|
} |
|
|
|
|
|
|
|
const isLookAll = ref(false) |
|
|
|
const isEditAll = ref(false) |
|
|
|
@ -385,6 +394,48 @@ const oneEditSet = (val: any) => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//监听审批人设置选项 |
|
|
|
watch(()=>approverConfig.value.settype,(val:any)=>{ |
|
|
|
console.log("监听审批人设置选项",approverConfig.value) |
|
|
|
switch (val) { |
|
|
|
case 10: |
|
|
|
let sendOrg = { |
|
|
|
id: 313, |
|
|
|
idstr: "313", |
|
|
|
level: 4, |
|
|
|
all: 1 |
|
|
|
} |
|
|
|
govthree(sendOrg) |
|
|
|
.then(({data})=>{ |
|
|
|
console.log("监听审批人设置选项",data) |
|
|
|
orgList.value = data |
|
|
|
}) |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
},{ |
|
|
|
deep:true |
|
|
|
}) |
|
|
|
/** |
|
|
|
@ 作者: 秦东 |
|
|
|
@ 时间: 2024-08-08 15:54:07 |
|
|
|
@ 功能: 选中的哪个行政组织 |
|
|
|
*/ |
|
|
|
const handleNodeClickOrg = (val:any) => { |
|
|
|
console.log(val) |
|
|
|
} |
|
|
|
/** |
|
|
|
@ 作者: 秦东 |
|
|
|
@ 时间: 2024-08-08 16:07:49 |
|
|
|
@ 功能: 设置选项 |
|
|
|
*/ |
|
|
|
const setOrgTree = (val:any) => { |
|
|
|
console.log("设置选项",val) |
|
|
|
flowOrgTree.value!.setCheckedKeys([val], true) |
|
|
|
} |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
|
|
|
|
@ -528,6 +579,24 @@ const oneEditSet = (val: any) => { |
|
|
|
<option value="2">执行人</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<el-divider v-if="approverConfig.settype==10" content-position="left">指定部门负责人</el-divider> |
|
|
|
<div v-if="approverConfig.settype==10" class="approver_manager"> |
|
|
|
<el-button type="primary" @click="setOrgTree(102)">设置行政组织</el-button> |
|
|
|
<el-tree-v2 |
|
|
|
ref="flowOrgTree" |
|
|
|
style="border: 1px solid #ccc;" |
|
|
|
:data="orgList" |
|
|
|
:props="orgProps" |
|
|
|
:height="300" |
|
|
|
node-key="id" |
|
|
|
:check-strictly="true" |
|
|
|
:highlight-current="true" |
|
|
|
:expand-on-click-node="false" |
|
|
|
:check-on-click-node="true" |
|
|
|
:default-checked-keys="defaultCheckedKeys" |
|
|
|
@node-click="handleNodeClickOrg" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<MatrixPage |
|
|
|
v-if="approverConfig.settype==9" |
|
|
|
v-model:isshow="matrixIsShow" |
|
|
|
@ -535,16 +604,16 @@ const oneEditSet = (val: any) => { |
|
|
|
@change="updateMatrix" |
|
|
|
/> |
|
|
|
<!--补充审批信息--> |
|
|
|
<el-divider v-if="(approverConfig.settype==1&&approverConfig.nodeUserList.length>1)||approverConfig.settype==2||approverConfig.settype==6||(approverConfig.settype==4&&approverConfig.selectMode==2)||approverConfig.settype==8||approverConfig.settype==9" content-position="left">多人审批时采用的审批方式</el-divider> |
|
|
|
<div v-if="(approverConfig.settype==1&&approverConfig.nodeUserList.length>1)||approverConfig.settype==2||approverConfig.settype==6||(approverConfig.settype==4&&approverConfig.selectMode==2)||approverConfig.settype==8||approverConfig.settype==9" class="approver_some"> |
|
|
|
<el-divider v-if="(approverConfig.settype==1&&approverConfig.nodeUserList.length>1)||approverConfig.settype==2||approverConfig.settype==6||(approverConfig.settype==4&&approverConfig.selectMode==2)||approverConfig.settype==8||approverConfig.settype==9||approverConfig.settype==10" content-position="left">多人审批时采用的审批方式</el-divider> |
|
|
|
<div v-if="(approverConfig.settype==1&&approverConfig.nodeUserList.length>1)||approverConfig.settype==2||approverConfig.settype==6||(approverConfig.settype==4&&approverConfig.selectMode==2)||approverConfig.settype==8||approverConfig.settype==9||approverConfig.settype==10" class="approver_some"> |
|
|
|
<el-radio-group v-model="approverConfig.examineMode" class="clear"> |
|
|
|
<el-radio :label="1">依次审批</el-radio> |
|
|
|
<el-radio v-if="approverConfig.settype!=2" :label="2">会签(须所有审批人同意)</el-radio> |
|
|
|
<el-radio v-if="approverConfig.settype!=2" :label="3">或签(有一位审批人同意即可)</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
<el-divider v-if="approverConfig.settype==2||approverConfig.settype==6||approverConfig.settype==9" content-position="left">审批人为空时</el-divider> |
|
|
|
<div v-if="approverConfig.settype==2||approverConfig.settype==6||approverConfig.settype==9" class="approver_some"> |
|
|
|
<el-divider v-if="approverConfig.settype==2||approverConfig.settype==6||approverConfig.settype==9||approverConfig.settype==10" content-position="left">审批人为空时</el-divider> |
|
|
|
<div v-if="approverConfig.settype==2||approverConfig.settype==6||approverConfig.settype==9||approverConfig.settype==10" class="approver_some"> |
|
|
|
<el-radio-group v-model="approverConfig.noHanderAction" class="clear"> |
|
|
|
<el-radio :label="1">自动审批通过/不允许发起</el-radio> |
|
|
|
<br/> |
|
|
|
|