Quellcode durchsuchen

reactor:286 回访列表等页面新增“工单标签”字段和查询条件

zhangchong vor 2 Monaten
Ursprung
Commit
7b5e45e211

+ 58 - 50
src/views/business/visit/index.vue

@@ -1,25 +1,25 @@
 <template>
 	<div class="business-visit-container layout-padding">
 		<div class="layout-padding-auto layout-padding-view pd20">
-			<vxe-grid v-bind="gridOptions"  ref="gridRef">
+			<vxe-grid v-bind="gridOptions" ref="gridRef">
 				<template #form>
 					<el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline :disabled="gridOptions.loading">
 						<el-form-item label="数据范围" prop="IsProvince">
 							<el-segmented
 								:options="[
-							{
-								value: 'all',
-								label: '全部',
-							},
-							{
-								value: 'city',
-								label: '市工单',
-							},
-							{
-								value: 'province',
-								label: '省工单',
-							},
-						]"
+									{
+										value: 'all',
+										label: '全部',
+									},
+									{
+										value: 'city',
+										label: '市工单',
+									},
+									{
+										value: 'province',
+										label: '省工单',
+									},
+								]"
 								v-model="fastSearch"
 								@change="fastSearchChange"
 								:disabled="state.loading"
@@ -40,10 +40,10 @@
 				<template #order_detail="{ row }">
 					<order-detail :order="row.order" @updateList="refreshList">{{ row.order?.title }}</order-detail>
 				</template>
-				<template #actionYB="{row}">
+				<template #actionYB="{ row }">
 					<el-button link type="primary" @click="visitDetail(row)" title="查看回访详情"> 回访详情 </el-button>
 				</template>
-				<template #action="{row}">
+				<template #action="{ row }">
 					<el-button link type="primary" @click="visitDetail(row)" title="查看回访详情"> 回访详情 </el-button>
 					<el-button
 						link
@@ -69,7 +69,7 @@
 		</div>
 		<!--	更多查询	-->
 		<el-drawer v-model="drawer" title="更多查询" size="500px">
-			<el-form :model="state.queryParams" ref="drawerRuleFormRef" @submit.native.prevent label-width="100px" :disabled="state.loading" >
+			<el-form :model="state.queryParams" ref="drawerRuleFormRef" @submit.native.prevent label-width="100px" :disabled="state.loading">
 				<el-form-item label="归档类型" prop="FiledType">
 					<el-select v-model="state.queryParams.FiledType" placeholder="请选择归档类型" @change="handleQuery" clearable>
 						<el-option label="中心归档" value="10" />
@@ -138,19 +138,19 @@
 						:default-time="defaultTimeStartEnd"
 					/>
 				</el-form-item>
-<!--        <el-form-item label="工单标签" prop="OrderTagCode" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
-          <el-cascader
-              :options="orderTagOptions"
-              filterable
-              :props="{ value: 'dicDataValue', label: 'dicDataName', emitPath: false, checkStrictly: true }"
-              placeholder="请选择工单标签"
-              class="w100"
-              v-model="state.queryParams.OrderTagCode"
-              @change="handleQuery"
-              clearable
-          >
-          </el-cascader>
-        </el-form-item>-->
+				<el-form-item label="工单标签" prop="OrderTagCode" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
+					<el-cascader
+						:options="orderTagOptions"
+						filterable
+						:props="{ value: 'dicDataValue', label: 'dicDataName', emitPath: false, checkStrictly: true }"
+						placeholder="请选择工单标签"
+						class="w100"
+						v-model="state.queryParams.OrderTagCode"
+						@change="handleQuery"
+						clearable
+					>
+					</el-cascader>
+				</el-form-item>
 				<el-form-item label="语音评价" prop="VoiceEvaluate">
 					<el-select v-model="state.queryParams.VoiceEvaluate" placeholder="请选择语音评价" clearable multiple>
 						<el-option v-for="items in voiceEvaluate" :key="items.key" :label="items.value" :value="items.key" />
@@ -253,14 +253,14 @@ const state = reactive<any>({
 		SeatEvaluate: [],
 		OrgProcessingResults: [],
 		OrgHandledAttitude: [],
-		IdentityType:null,
-		FromPhone:null,
-		OrgLevelOneName:null,
-		ActualHandleOrgName:null,
-		slTime:[], // 受理时间
-		CreationTimeStart:null,
-		CreationTimeEnd:null,
-    OrderTagCode:null,
+		IdentityType: null,
+		FromPhone: null,
+		OrgLevelOneName: null,
+		ActualHandleOrgName: null,
+		slTime: [], // 受理时间
+		CreationTimeStart: null,
+		CreationTimeEnd: null,
+		OrderTagCode: null,
 	},
 	tableData: [], //表单
 	loading: false, // 加载
@@ -296,7 +296,7 @@ const gridOptions = reactive<any>({
 	id: 'businessVisit',
 	rowConfig: { isHover: true, height: 30, isCurrent: true, useKey: true },
 	height: 'auto',
-	columns:[
+	columns: [
 		{
 			field: 'order.expiredStatusText',
 			title: '状态',
@@ -317,14 +317,14 @@ const gridOptions = reactive<any>({
 			slots: { default: 'order_detail' },
 		},
 		{ field: 'order.sourceChannel', title: '来源渠道', width: 110 },
-    // { field: 'order.orderTag', title: '工单标签', width: 100,visible:['ZiGong','LuZhou'].includes(themeConfig.value.appScope) },
+		{ field: 'order.orderTag', title: '工单标签', width: 100, visible: ['ZiGong', 'LuZhou'].includes(themeConfig.value.appScope) },
 		{ field: 'visitStateText', title: '回访状态', width: 100 },
 		{ field: 'visitTypeText', title: '回访方式', width: 100 },
 		{ field: 'isEffectiveAiVisitText', title: '有效智能回访', width: 120 },
 		{ field: 'order.acceptType', title: '受理类型', width: 110 },
 		{ field: 'order.acceptorName', title: '受理人', width: 120 },
 		{ field: 'order.hotspotName', title: '热点分类', width: 150 },
-    { field: 'order.fromPhone', title: '来电号码', width: 150 },
+		{ field: 'order.fromPhone', title: '来电号码', width: 150 },
 		{ field: 'order.orgLevelOneName', title: '一级部门', width: 150 },
 		{ field: 'order.actualHandleOrgName', title: '接办部门', width: 140 },
 		{
@@ -369,15 +369,23 @@ const gridOptions = reactive<any>({
 		remote: true,
 	},
 });
-if(['YiBin'].includes(themeConfig.value.appScope)){
+if (['YiBin'].includes(themeConfig.value.appScope)) {
 	gridOptions.columns.push({
-		title: '操作', width: 100, fixed: 'right', align: 'center', slots: { default: 'actionYB' }
-	})
-}else if(['ZiGong','LuZhou'].includes(themeConfig.value.appScope)){
-	gridOptions.columns = gridOptions.columns.filter((item:any) => item.field !== 'isEffectiveAiVisitText');
+		title: '操作',
+		width: 100,
+		fixed: 'right',
+		align: 'center',
+		slots: { default: 'actionYB' },
+	});
+} else if (['ZiGong', 'LuZhou'].includes(themeConfig.value.appScope)) {
+	gridOptions.columns = gridOptions.columns.filter((item: any) => item.field !== 'isEffectiveAiVisitText');
 	gridOptions.columns.push({
-		title: '操作', width: 200, fixed: 'right', align: 'center', slots: { default: 'action' }
-	})
+		title: '操作',
+		width: 200,
+		fixed: 'right',
+		align: 'center',
+		slots: { default: 'action' },
+	});
 }
 // 获取基础数据
 const seatEvaluate = ref<EmptyArrayType>([]); // 话务员评价
@@ -396,7 +404,7 @@ const getBaseData = () => {
 		visitSatisfaction.value = result?.visitSatisfaction ?? [];
 		visitStateQuery.value = result?.visitStateQuery ?? [];
 		channelOptions.value = result?.sourceChannel ?? [];
-    orderTagOptions.value = result?.orderTag ?? [];
+		orderTagOptions.value = result?.orderTags ?? [];
 	});
 };
 // 手动查询,将页码设置为1
@@ -406,7 +414,7 @@ const handleQuery = () => {
 };
 // 刷新列表  停留当前页 重新查询数据和总数
 const refreshList = () => {
-  queryList();
+	queryList();
 };
 /** 获取列表 */
 const queryList = () => {

+ 43 - 43
src/views/statistics/department/detailSatisfiedList.vue

@@ -70,19 +70,19 @@
 					:params="{ exportMethod: departmentSatisfactionListExport, exportParams: requestParams }"
 				>
 					<vxe-column type="checkbox" width="60" align="center"></vxe-column>
-          <vxe-column field="isProvinceText" title="省/市工单" width="90"></vxe-column>
-          <vxe-column field="visitTime" title="回访时间" sortable width="160">
-            <template #default="{ row }">
-              {{ formatDate(row.visitTime, 'YYYY-mm-dd HH:MM:SS') }}
-            </template>
-          </vxe-column>
-          <vxe-column field="visitOrgName" title="回访部门" width="140"></vxe-column>
+					<vxe-column field="isProvinceText" title="省/市工单" width="90"></vxe-column>
+					<vxe-column field="visitTime" title="回访时间" sortable width="160">
+						<template #default="{ row }">
+							{{ formatDate(row.visitTime, 'YYYY-mm-dd HH:MM:SS') }}
+						</template>
+					</vxe-column>
+					<vxe-column field="visitOrgName" title="回访部门" width="140"></vxe-column>
 					<vxe-column field="no" title="工单编码" width="140"></vxe-column>
-          <vxe-column field="title" title="工单标题" width="200">
-            <template #default="{ row }">
-              <order-detail :order="{ ...row, id: row.orderId }" @updateList="queryList">{{ row.title }}</order-detail>
-            </template>
-          </vxe-column>
+					<vxe-column field="title" title="工单标题" width="200">
+						<template #default="{ row }">
+							<order-detail :order="{ ...row, id: row.orderId }" @updateList="queryList">{{ row.title }}</order-detail>
+						</template>
+					</vxe-column>
 					<vxe-column field="reTransactNum" title="重办次数" width="90"></vxe-column>
 					<vxe-column field="orderScreenStatusText" title="甄别" width="90" sortable></vxe-column>
 					<vxe-column field="visitContent" title="回访信息" width="150"></vxe-column>
@@ -94,7 +94,7 @@
 							{{ formatDate(row.creationTime, 'YYYY-mm-dd HH:MM:SS') }}
 						</template>
 					</vxe-column>
-					<!--					<vxe-column field="order.orderTag" title="工单标签" width="120" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)"></vxe-column>-->
+					<vxe-column field="orderTag" title="工单标签" width="120" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)"></vxe-column>
 					<vxe-column field="visitUser" title="回访人" width="120"></vxe-column>
 					<vxe-column field="visitTypeText" title="回访方式" width="110"></vxe-column>
 					<vxe-column field="orgProcessingResults" title="满意度" width="120"></vxe-column>
@@ -108,7 +108,7 @@
 					<vxe-column title="操作" fixed="right" width="160" align="center">
 						<template #default="{ row }">
 							<el-button link type="primary" @click="visitDetail(row)" title="查看回访详情"> 回访详情 </el-button>
-              <el-button link type="primary" @click="onDetail(row)" title="查看甄别详情" v-if="row.orderScreenStatus"> 甄别详情 </el-button>
+							<el-button link type="primary" @click="onDetail(row)" title="查看甄别详情" v-if="row.orderScreenStatus"> 甄别详情 </el-button>
 						</template>
 					</vxe-column>
 				</vxe-table>
@@ -172,9 +172,9 @@
 				<el-form-item label="热点分类" prop="Hotspot">
 					<el-input v-model="state.queryParams.Hotspot" placeholder="热点分类名称" clearable @keyup.enter="handleQuery" />
 				</el-form-item>
-        <el-form-item label="接办部门" prop="ActualHandleOrgName">
-          <el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="接办部门" clearable @keyup.enter="handleQuery" />
-        </el-form-item>
+				<el-form-item label="接办部门" prop="ActualHandleOrgName">
+					<el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="接办部门" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
 				<el-form-item label="回访部门" prop="OrgId">
 					<el-cascader
 						:options="state.orgsOptions"
@@ -219,33 +219,33 @@
 				<el-form-item label="回访内容" prop="ContentRetrieval">
 					<el-input v-model="state.queryParams.ContentRetrieval" placeholder="回访内容" clearable @keyup.enter="handleQuery" />
 				</el-form-item>
-        <el-form-item label="是否甄别" prop="IsScreen">
-          <el-select v-model="state.queryParams.IsScreen" placeholder="请选择是否甄别" @change="handleQuery" clearable>
-            <el-option label="是" :value="true" />
-            <el-option label="否" :value="false" />
-          </el-select>
-        </el-form-item>
-				<!--        <el-form-item label="工单标签" prop="OrderTagCode" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
-        <el-cascader
-            :options="state.orderTagOptions"
-            filterable
-            :props="{ value: 'dicDataValue', label: 'dicDataName', emitPath: false, checkStrictly: true }"
-            placeholder="请选择工单标签"
-            class="w100"
-            v-model="state.queryParams.OrderTagCode"
-            @change="handleQuery"
-            clearable
-        >
-        </el-cascader>
-      </el-form-item>-->
+				<el-form-item label="是否甄别" prop="IsScreen">
+					<el-select v-model="state.queryParams.IsScreen" placeholder="请选择是否甄别" @change="handleQuery" clearable>
+						<el-option label="是" :value="true" />
+						<el-option label="否" :value="false" />
+					</el-select>
+				</el-form-item>
+				<el-form-item label="工单标签" prop="OrderTagCode" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
+					<el-cascader
+						:options="state.orderTagOptions"
+						filterable
+						:props="{ value: 'dicDataValue', label: 'dicDataName', emitPath: false, checkStrictly: true }"
+						placeholder="请选择工单标签"
+						class="w100"
+						v-model="state.queryParams.OrderTagCode"
+						@change="handleQuery"
+						clearable
+					>
+					</el-cascader>
+				</el-form-item>
 			</el-form>
 			<template #footer>
 				<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
 				<el-button @click="resetQuery(drawerRuleFormRef)" class="default-button"> <SvgIcon name="ele-Refresh" class="mr5" />重置 </el-button>
 			</template>
 		</el-drawer>
-    <!-- 甄别详情 -->
-    <discern-detail ref="discernDetailRef" @updateList="refreshList" />
+		<!-- 甄别详情 -->
+		<discern-detail ref="discernDetailRef" @updateList="refreshList" />
 	</div>
 </template>
 <script setup lang="tsx" name="statisticsDepartmentSatisfiedDetailList">
@@ -296,8 +296,8 @@ const state = reactive<any>({
 		IsProvinceOrder: null,
 		ContentRetrieval: null,
 		OrderTagCode: null,
-    ActualHandleOrgName:null,
-    IsScreen:null, // 是否甄别
+		ActualHandleOrgName: null,
+		IsScreen: null, // 是否甄别
 	},
 	tableData: [], //表单
 	loading: false, // 加载
@@ -320,7 +320,7 @@ const handleQuery = () => {
 };
 // 刷新列表
 const refreshList = () => {
-  queryList();
+	queryList();
 };
 /** 获取列表 */
 const requestParams = ref<EmptyObjectType>({});
@@ -366,7 +366,7 @@ const visitDetail = (row: any) => {
 // 查看甄别详情
 const discernDetailRef = ref<RefType>(); // 甄别详情ref
 const onDetail = async (row: any) => {
-  discernDetailRef.value.openDialog(row,true);
+	discernDetailRef.value.openDialog(row, true);
 };
 // 获取查询条件基础信息
 const getBaseData = async () => {
@@ -378,7 +378,7 @@ const getBaseData = async () => {
 			attitudeType: 'attitudeType',
 			channelOptions: 'channelOptions',
 			visitType: 'visitType',
-			orderTagOptions: 'orderTag',
+			orderTagOptions: 'orderTags',
 		};
 		for (const key in mappings) {
 			state[key] = result?.[mappings[key]] ?? [];

+ 15 - 15
src/views/statistics/department/dpSatisfied.vue

@@ -88,7 +88,7 @@
 							<order-detail :order="{ ...row, id: row.orderId }" @updateList="queryList">{{ row.title }}</order-detail>
 						</template>
 					</vxe-column>
-					<!--					<vxe-column field="order.orderTag" title="工单标签" width="120" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)"></vxe-column>-->
+					<vxe-column field="orderTag" title="工单标签" width="120" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)"></vxe-column>
 					<vxe-column field="visitUser" title="回访人" width="120"></vxe-column>
 					<vxe-column field="visitOrgName" title="回访部门" width="140"></vxe-column>
 					<vxe-column field="visitTypeText" title="回访方式" width="110"></vxe-column>
@@ -235,19 +235,19 @@
 						<el-option label="否" :value="false" />
 					</el-select>
 				</el-form-item>
-				<!--        <el-form-item label="工单标签" prop="OrderTagCode" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
-          <el-cascader
-              :options="state.orderTagOptions"
-              filterable
-              :props="{ value: 'dicDataValue', label: 'dicDataName', emitPath: false, checkStrictly: true }"
-              placeholder="请选择工单标签"
-              class="w100"
-              v-model="state.queryParams.OrderTagCode"
-              @change="handleQuery"
-              clearable
-          >
-          </el-cascader>
-        </el-form-item>-->
+				<el-form-item label="工单标签" prop="OrderTagCode" v-if="['ZiGong', 'LuZhou'].includes(themeConfig.appScope)">
+					<el-cascader
+						:options="state.orderTagOptions"
+						filterable
+						:props="{ value: 'dicDataValue', label: 'dicDataName', emitPath: false, checkStrictly: true }"
+						placeholder="请选择工单标签"
+						class="w100"
+						v-model="state.queryParams.OrderTagCode"
+						@change="handleQuery"
+						clearable
+					>
+					</el-cascader>
+				</el-form-item>
 			</el-form>
 			<template #footer>
 				<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
@@ -394,7 +394,7 @@ const getBaseData = async () => {
 			attitudeType: 'attitudeType',
 			channelOptions: 'channelOptions',
 			visitMananer: 'visitMananer',
-			orderTagOptions: 'orderTag',
+			orderTagOptions: 'orderTags',
 			visitType: 'visitType',
 		};
 		for (const key in mappings) {

+ 61 - 0
src/views/todo/seats/accept/lzAccept.vue

@@ -1107,8 +1107,69 @@ const loadBaseData = async () => {
 		console.log(error);
 	}
 };
+// 重置表单内容
+const resetForm = () => {
+  state.ruleForm = {
+    sourceChannel: null, // 来源频道
+    sourceChannelCode: null, //来源频道code
+    transferPhone: null, // 转接来源
+    fromPhone: null, // 来电号码
+    acceptorName: null, // 员工姓名
+    acceptorStaffNo: null, // 员工工号
+    fromName: null, // 来电人姓名
+    fromGender: 1, // 来电人性别 默认先生
+    identityType: 1, // 来电/信人身份 默认市民
+    licenceType: null, // 证件类型
+    licenceTypeCode: null, // 证件类型code
+    licenceNo: null, // 证件号码
+    ageRange: null, // 年龄段
+    ageRangeCode: null, // 年龄段code
+    contact: null, // 联系电话
+    isSecret: false, // 是否保密 默认false
+    acceptSms: false, // 是否接收短信 默认false
+    no: null, // 工单编码
+    title: null, // 工单标题
+    hotspotId: null, // 热点分类
+    eventCategoryId: null, // 事件分类
+    incidentTime: null, // 事发时间
+    incidentPurpose: null, // 事件目的
+    areaCode: themeConfig.value.cityCode, // 区域编码
+    city: themeConfig.value.cityName, // 市
+    street: null, // 街道
+    isRepeat: 'false', // 是否重复工单 默认否
+    pushType: null, // 推送类型
+    pushTypeCode: null, // 推送类型code
+    content: '', // 工单内容
+    duplicateIds: [], //重复工单id
+    duplicateTitle: null, // 重复工单标题
+    callAddress: null, // 来电归属地
+    repeatableEventDetails: [], //重复性事件
+    orderExtension: null, // 拓展信息
+    transpond: false, // 是否市州互转
+    isEnforcementOrder: false, // 是否行政执法工单
+    focusOnEventsArr: [], // 重点关注事项
+    focusOnEvents: null, // 重点关注事项 字符串
+    isFormalistWorkOrder: false, // 是否形式主义工单
+    isSensitiveWorkOrders: false, // 是否敏感类工单
+    isUrgent: false, // 是否紧急工单
+    isThreePartyConference: false, // 是否三方同v话
+    is24HoursComplete: false, // 24小时紧急工单
+    company: null, // 工作单位
+    orderPushTypes: [], // 推送分类多选
+    acceptType: '咨询', // 受理类型
+    acceptTypeCode: '10', // 受理类型code
+    acceptTypeObj: {
+      // 默认咨询
+      dicDataValue: '10',
+      dicDataName: '咨询',
+    },
+    tags: [], // 工单标签
+  }
+}
 // 电话进来的来信
 const loadCreatedBy = () => {
+  // 先重置一下表单内容以免数据污染
+  resetForm();
   if (route.query.createBy) {
     //  route.query.createBy  createBy 代表来源  tel:来电弹单  letter:互联网来信 默认表示手动创建
     state.createBy = route.query.createBy;

+ 60 - 0
src/views/todo/seats/accept/ybAccept.vue

@@ -1185,8 +1185,68 @@ const loadBaseData = async () => {
 const isProvinceOrder = ref(true); // 是否需要排除掉人社热点 默认是
 // 如果是修改加载表单内容
 const sourceDisabled = ref<Boolean>(false);
+// 重置表单内容
+const resetForm = () => {
+	state.ruleForm = {
+    sourceChannel: null, // 来源频道
+    sourceChannelCode: null, //来源频道code
+    transferPhone: null, // 转接来源
+    fromPhone: null, // 来电号码
+    acceptorName: null, // 员工姓名
+    acceptorStaffNo: null, // 员工工号
+    fromName: null, // 来电人姓名
+    fromGender: 1, // 来电人性别 默认先生
+    identityType: 1, // 来电/信人身份 默认市民
+    licenceType: null, // 证件类型
+    licenceTypeCode: null, // 证件类型code
+    licenceNo: null, // 证件号码
+    ageRange: null, // 年龄段
+    ageRangeCode: null, // 年龄段code
+    contact: null, // 联系电话
+    isSecret: false, // 是否保密 默认false
+    acceptSms: false, // 是否接收短信 默认false
+    enterpriseName: null, // 企业名称
+    zhuanBanMingCheng: null, // 专班名称
+    no: null, // 工单编码
+    title: null, // 工单标题
+    hotspotId: null, // 热点分类
+    eventCategoryId: null, // 事件分类
+    incidentTime: null, // 事发时间
+    incidentPurpose: null, // 事件目的
+    areaCode: themeConfig.value.cityCode, // 区域编码
+    city: themeConfig.value.cityName, // 市
+    street: null, // 街道
+    isRepeat: 'false', // 是否重复工单 默认否
+    pushType: null, // 推送类型
+    pushTypeCode: null, // 推送类型code
+    content: '', // 工单内容
+    duplicateIds: [], //重复工单id
+    duplicateTitle: null, // 重复工单标题
+    callAddress: null, // 来电归属地
+    repeatableEventDetails: [], //重复性事件
+    orderExtension: null, // 拓展信息
+    transpond: false, // 是否市州互转
+    isEnforcementOrder: false, // 是否行政执法工单
+    focusOnEventsArr: [], // 重点关注事项
+    focusOnEvents: null, // 重点关注事项 字符串
+    isFormalistWorkOrder: false, // 是否形式主义工单
+    isSensitiveWorkOrders: false, // 是否敏感类工单
+    isUrgent: false, // 是否紧急工单
+    id: null,
+    orderPushTypes: [], // 推送分类多选
+    acceptType: '咨询', // 受理类型
+    acceptTypeCode: '10', // 受理类型code
+    acceptTypeObj: {
+      // 默认咨询
+      dicDataValue: '10',
+      dicDataName: '咨询',
+    },
+  }
+}
 // 电话进来的来信
 const loadCreatedBy = () => {
+  // 先重置一下表单内容以免数据污染
+  resetForm();
   if (route.query.createBy) {
     //  route.query.createBy  createBy 代表来源  tel:来电弹单  letter:互联网来信 默认表示手动创建
     state.createBy = route.query.createBy;

+ 64 - 0
src/views/todo/seats/accept/zgAccept.vue

@@ -1167,8 +1167,72 @@ const loadBaseData = async () => {
 		console.log(error);
 	}
 };
+// 重置表单内容
+const resetForm = () => {
+  state.ruleForm = {
+    sourceChannel: null, // 来源频道
+    sourceChannelCode: null, //来源频道code
+    transferPhone: null, // 转接来源
+    fromPhone: null, // 来电号码
+    acceptorName: null, // 员工姓名
+    acceptorStaffNo: null, // 员工工号
+    fromName: null, // 来电人姓名
+    fromGender: 1, // 来电人性别 默认先生
+    identityType: 1, // 来电/信人身份 默认市民
+    licenceType: null, // 证件类型
+    licenceTypeCode: null, // 证件类型code
+    licenceNo: null, // 证件号码
+    ageRange: null, // 年龄段
+    ageRangeCode: null, // 年龄段code
+    contact: null, // 联系电话
+    isSecret: false, // 是否保密 默认false
+    acceptSms: false, // 是否接收短信 默认false
+    no: null, // 工单编码
+    title: null, // 工单标题
+    hotspotId: null, // 热点分类
+    eventCategoryId: null, // 事件分类
+    incidentTime: null, // 事发时间
+    incidentPurpose: null, // 事件目的
+    areaCode: themeConfig.value.cityCode, // 区域编码
+    city: themeConfig.value.cityName, // 市
+    street: null, // 街道
+    isRepeat: 'false', // 是否重复工单 默认否
+    pushType: null, // 推送类型
+    pushTypeCode: null, // 推送类型code
+    content: '', // 工单内容
+    duplicateIds: [], //重复工单id
+    duplicateTitle: null, // 重复工单标题
+    callAddress: null, // 来电归属地
+    repeatableEventDetails: [], //重复性事件
+    orderExtension: null, // 拓展信息
+    transpond: false, // 是否市州互转
+    isEnforcementOrder: false, // 是否行政执法工单
+    focusOnEventsArr: [], // 重点关注事项
+    focusOnEvents: null, // 重点关注事项 字符串
+    isFormalistWorkOrder: false, // 是否形式主义工单
+    isSensitiveWorkOrders: false, // 是否敏感类工单
+    isUrgent: false, // 是否紧急工单
+    isThreePartyConference: false, // 是否三方同v话
+    is24HoursComplete: false, // 24小时紧急工单
+    company: null, // 工作单位
+    orderPushTypes: [], // 推送分类多选
+    acceptType: '咨询', // 受理类型
+    acceptTypeCode: '10', // 受理类型code
+    acceptTypeObj: {
+      // 默认咨询
+      dicDataValue: '10',
+      dicDataName: '咨询',
+    },
+    industryId: null, // 行业分类
+    industryName: null, // 行业分类名称
+    knowledgeQuote: [], // 知识库引用
+    tags: [], // 工单标签
+  }
+}
 // 电话进来的来信
 const loadCreatedBy = () => {
+  // 先重置一下表单内容以免数据污染
+  resetForm();
 	if (route.query.createBy) {
 		//  route.query.createBy  createBy 代表来源  tel:来电弹单  letter:互联网来信 默认表示手动创建
 		state.createBy = route.query.createBy;