浏览代码

reactor:工单受理调整;

zhangchong 1 年之前
父节点
当前提交
7c05214593
共有 1 个文件被更改,包括 14 次插入3 次删除
  1. 14 3
      src/views/todo/seats/accept/index.vue

+ 14 - 3
src/views/todo/seats/accept/index.vue

@@ -89,7 +89,7 @@
 									<!-- 来电弹单 -->
 									<template v-if="state.createBy === 'tel'">
 										<el-form-item label="来电号码" prop="fromPhone">
-											<el-input v-model="state.ruleForm.fromPhone" placeholder="请填写来电号码" disabled> </el-input>
+											<el-input v-model="state.ruleForm.fromPhone" placeholder="请填写来电号码"> </el-input>
 										</el-form-item>
 									</template>
 									<!-- 互联网来信 -->
@@ -428,7 +428,7 @@
 								</el-col>
 								<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
 									<el-form-item label="工单标题" prop="title" :rules="[{ required: true, message: '请填写工单标题', trigger: 'blur' }]">
-										<el-input v-model="state.ruleForm.title" placeholder="请填写工单标题" clearable> </el-input>
+										<el-input v-model="state.ruleForm.title" placeholder="请填写工单标题" clearable @input="inputTitle"> </el-input>
 									</el-form-item>
 								</el-col>
 								<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
@@ -557,8 +557,8 @@ const state = reactive<any>({
 		ageRange: null, // 年龄段
 		ageRangeCode: null, // 年龄段code
 		contact: null, // 联系电话
-		acceptSms: false, // 是否接收短信 默认false
 		isSecret: false, // 是否保密 默认false
+		acceptSms: false, // 是否接收短信 默认false
 		enterpriseName: null, // 企业名称
 		zhuanBanMingCheng: null, // 专班名称
 		no: null, // 工单编码
@@ -805,6 +805,17 @@ const searchHistory = () => {
 	citizenPortraitRef.value.getCitizen();
 	rightBottomActive.value = 'draw';
 };
+// 填写标题时根据填写内容自动选择受理类型
+const inputTitle = (val: string) => {
+	if (!state.ruleForm.acceptType) {
+		const item = state.acceptTypeOptions.find((item: any) => item.dicDataName === val);
+		if (item) {
+			state.ruleForm.acceptTypeObj = item;
+			state.ruleForm.acceptType = item.dicDataName;
+			state.ruleForm.acceptTypeCode = item.dicDataValue;
+		}
+	}
+};
 const rightActive = ref<string>('history'); // 右侧顶部Tab
 const handleRight = (val: string) => {};
 const rightBottomActive = ref<string>('voice'); // 右侧底部Tab