|
@@ -20,7 +20,7 @@
|
|
|
clearable
|
|
|
value-key="dicDataValue"
|
|
|
@change="
|
|
|
- (val) => {
|
|
|
+ (val:any) => {
|
|
|
state.ruleForm.fromPhone = null;
|
|
|
state.ruleForm.sourceChannel = val?.dicDataName ?? null;
|
|
|
state.ruleForm.sourceChannelCode = val?.dicDataValue ?? null;
|
|
@@ -187,7 +187,7 @@
|
|
|
value-key="dicDataValue"
|
|
|
clearable
|
|
|
@change="
|
|
|
- (val) => {
|
|
|
+ (val:any) => {
|
|
|
state.ruleForm.acceptType = val?.dicDataName ?? null;
|
|
|
state.ruleForm.acceptTypeCode = val?.dicDataValue ?? null;
|
|
|
}
|
|
@@ -491,7 +491,6 @@ import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
-import { useTelStatus } from '@/stores/telStatus';
|
|
|
import { useAppConfig } from '@/stores/appConfig';
|
|
|
import { throttle, transformFile } from '@/utils/tools';
|
|
|
import { commonEnum } from '@/utils/constants';
|
|
@@ -599,8 +598,6 @@ const state = reactive<any>({
|
|
|
orderId: null, // 工单id
|
|
|
tagsViewList: [],
|
|
|
});
|
|
|
-const useTelStatusStore = useTelStatus(); // 来电弹屏
|
|
|
-const { telStatusInfo } = storeToRefs(useTelStatusStore); // 来电弹屏信息
|
|
|
const storesUserInfo = useUserInfo(); // 用户信息
|
|
|
const { userInfos } = storeToRefs(storesUserInfo); // 用户信息
|
|
|
const appConfigStore = useAppConfig();
|
|
@@ -608,15 +605,6 @@ const { AppConfigInfo } = storeToRefs(appConfigStore); // 系统配置信息
|
|
|
state.ruleForm.acceptorName = userInfos.value.name; // 员工姓名
|
|
|
state.ruleForm.acceptorStaffNo = userInfos.value.staffNo; // 员工工号
|
|
|
const route = useRoute(); // 路由
|
|
|
-// 证件号码验证
|
|
|
-const licenceNoPattern = computed(() => {
|
|
|
- switch (state.ruleForm.licenceTypeCode) {
|
|
|
- case '10': // 身份证
|
|
|
- return /^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/;
|
|
|
- default: //默认只允许数字字母
|
|
|
- return /^[A-Za-z0-9]+$/;
|
|
|
- }
|
|
|
-});
|
|
|
// 选择热点分类
|
|
|
const knowledgeRef = ref<RefType>();
|
|
|
const chooseHotSpot = (val: any, node: any, externalArr: any) => {
|
|
@@ -1228,9 +1216,8 @@ const getCurrentData = (val: any) => {
|
|
|
loadBaseData();
|
|
|
loadAddress();
|
|
|
loadExtra();
|
|
|
-const handleBeforeUnload = (event) => {
|
|
|
+const handleBeforeUnload = (event:Event) => {
|
|
|
event.preventDefault();
|
|
|
- event.returnValue = ''; // 对于某些浏览器,设置 returnValue
|
|
|
};
|
|
|
onMounted(async () => {
|
|
|
await loadForm();
|