|
@@ -482,7 +482,7 @@
|
|
|
</template>
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
|
|
<el-form-item label="发起会签" prop="isStartCountersign" :rules="[{ required: false, message: '请选择发起会签', trigger: 'change' }]">
|
|
|
- <el-switch v-model="state.ruleForm.isStartCountersign" inline-prompt active-text="是" inactive-text="否" :disabled="!showMainHandler" />
|
|
|
+ <el-switch v-model="state.ruleForm.isStartCountersign" inline-prompt active-text="是" inactive-text="否" :disabled="!countersignDisabled" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!-- 汇总节点需要输入 并且是工单办理 -->
|
|
@@ -703,13 +703,13 @@ const circularOrgOptions = ref<EmptyArrayType>([]); // 通知对象 部门
|
|
|
const userTables = ref<EmptyArrayType>([]); // 通知对象 个人
|
|
|
const canReject = ref<boolean>(false); // 是否可以驳回
|
|
|
const timeTypeOptions = ref<EmptyArrayType>([]); // 办理时限单位
|
|
|
-
|
|
|
+const canStartCountersign = ref<boolean>(false); // 是否可以发起会签
|
|
|
const handleResult = (res: any) => {
|
|
|
state.nextStepOptions = res.result.steps; //处理人选择内容
|
|
|
canReject.value = res.result.canReject ?? false; // 是否可以驳回
|
|
|
|
|
|
timeTypeOptions.value = res.result.timeTypeOptions ?? []; // 办理时限申请单位
|
|
|
-
|
|
|
+ canStartCountersign.value = res.result.canStartCountersign ?? false; // 是否可以发起会签
|
|
|
if (handelArr.includes(state.processType)) {
|
|
|
// 办理才有期满时间
|
|
|
state.ruleForm.expiredTime = res.result.expiredTime ?? null; // 期满时间
|
|
@@ -885,6 +885,10 @@ const selectNextStep = (val: any) => {
|
|
|
fastStepName.value = items[0].value;
|
|
|
}
|
|
|
};
|
|
|
+// 会签是否可用 (多个处理人,并且配置可以会签)
|
|
|
+const countersignDisabled = computed(() => {
|
|
|
+ return state.ruleForm.nextHandlers.length >1 && canStartCountersign.value;
|
|
|
+})
|
|
|
// 是否展示处理人 (只有结束节点不展示 next.stepType===2 表示为结束节点)
|
|
|
const showHandlers = computed(() => {
|
|
|
const next = state.nextStepOptions.find((item: any) => item.key === state.ruleForm.nextStepCode);
|
|
@@ -954,6 +958,7 @@ const selectHandlers = () => {
|
|
|
state.ruleForm.nextMainHandler = state.ruleForm.nextHandlers[0].key;
|
|
|
}
|
|
|
};
|
|
|
+// 是否展示主办
|
|
|
const showMainHandler = computed(() => {
|
|
|
return state.ruleForm.nextHandlers.length > 1;
|
|
|
});
|