Browse Source

reactor:增加“跨级派单”功能;

zhangchong 5 months ago
parent
commit
5397086211
1 changed files with 12 additions and 5 deletions
  1. 12 5
      src/components/ProcessAudit/index.vue

+ 12 - 5
src/components/ProcessAudit/index.vue

@@ -18,6 +18,9 @@
 			<el-step title="业务表单" />
 			<el-step title="流程表单" />
 		</el-steps>
+		{{ seatTopaidan ? '话务部到派单组' : '' }}
+		{{ seatToOrgOne ? '话务部到一级部门' : '' }}
+		{{ paidanToOrgOne ? '派单组到一级部门' : '' }}
 		<div v-show="activeStep === 0" v-loading="state.loading">
 			<el-form :model="state.delayForm" label-width="110px" ref="delayFormRef" v-if="state.processType === '延期申请'">
 				<el-row :gutter="10">
@@ -804,9 +807,13 @@ const isOverdueTips = computed(() => {
 const seatTopaidan = computed(() => {
 	return currentParams.value.currentStepBusinessType === 0 && selectNext.value.businessType === 1;
 });
-// 派单组到部门
-const paidanToOrg = computed(() => {
-	return currentParams.value.currentStepBusinessType === 1 && selectNext.value.businessType === 2;
+// 话务部到一级部门
+const seatToOrgOne = computed(() => {
+	return currentParams.value.currentStepBusinessType === 0 && selectNext.value.businessType === 2 && selectNext.value.orgLevel === 1;
+});
+// 派单组到一级部门
+const paidanToOrgOne = computed(() => {
+	return currentParams.value.currentStepBusinessType === 1 && selectNext.value.businessType === 2 && selectNext.value.orgLevel === 1;
 });
 // 是否展示短信通知选择
 const isSmsSelectShow = ref(false);
@@ -844,8 +851,8 @@ const selectNextStep = (val: any) => {
 	// nextHandlersRequired.value = ![0].includes(next.handlerType) && !showStepsArr.includes(state.processType);
 	nextHandlersRequired.value = ![0].includes(next.handlerType);
 
-	// 以下是默认需要吧短信勾上的场景 派单组到部门
-	state.ruleForm.isSms = paidanToOrg.value;
+	// 以下是默认需要吧短信勾上的场景 话务部到一级部门 派单组到一级部门
+	state.ruleForm.isSms = seatToOrgOne.value || paidanToOrgOne.value;
 	// 是否展示短信通知 (取消坐席流转至“派单组”时的短信通知选项框  )
 	isSmsSelectShow.value = !seatTopaidan.value;
 };