Kaynağa Gözat

reactor:司法行政对接;

zhangchong 1 yıl önce
ebeveyn
işleme
4d806129ea

+ 17 - 15
src/views/judicial/statistics/detailSatisfied.vue

@@ -11,17 +11,17 @@
 				v-model:page-index="state.queryParams.PageIndex"
 				v-model:page-size="state.queryParams.PageSize"
 			>
-        <template #expiredStatus="{ row }">
-          <span :class="'overdue-status-' + row.expiredStatus" :title="row.expiredStatusText"></span>
-        </template>
-        <template #title="{ row }">
-          <order-detail :order="row" @updateList="queryList">{{ row.title }}</order-detail>
-        </template>
-        <template #employeeName="{ row }">
+				<template #expiredStatus="{ row }">
+					<span :class="'overdue-status-' + row.expiredStatus" :title="row.expiredStatusText"></span>
+				</template>
+				<template #title="{ row }">
+					<order-detail :order="row" @updateList="queryList">{{ row.title }}</order-detail>
+				</template>
+				<template #employeeName="{ row }">
 					<span
-          >{{ row.acceptorName }} <span v-if="row.acceptorStaffNo">[{{ row.acceptorStaffNo }}]</span>
+						>{{ row.acceptorName }} <span v-if="row.acceptorStaffNo">[{{ row.acceptorStaffNo }}]</span>
 					</span>
-        </template>
+				</template>
 				<!-- 表格操作 -->
 				<template #operation="{ row }">
 					<el-button link type="primary" @click="visitDetail(row)" title="查看回访详情"> 回访详情 </el-button>
@@ -39,6 +39,7 @@ import { FormInstance } from 'element-plus';
 import { departmentSatisfactionDetail } from '@/api/judicial';
 import dayjs from 'dayjs';
 import { formatDate } from '@/utils/formatTime';
+import { useRoute } from 'vue-router';
 
 // 引入组件
 const VisitDetailCom = defineAsyncComponent(() => import('@/views/business/visit/component/Visit-detail.vue')); // 回访
@@ -122,6 +123,7 @@ const handleQuery = () => {
 	queryList();
 };
 const historyParams = history.state;
+const route = useRoute();
 /** 获取列表 */
 const queryList = () => {
 	state.loading = true;
@@ -129,7 +131,7 @@ const queryList = () => {
 		StartDate: historyParams.StartDate,
 		EndDate: historyParams.EndDate,
 		TypeId: historyParams.TypeId,
-		OrgCode: historyParams.OrgCode,
+		OrgCode: route.params.OrgCode,
 		DateValue: historyParams.DateValue,
 		PageIndex: state.queryParams.PageIndex,
 		PageSize: state.queryParams.PageSize,
@@ -153,11 +155,11 @@ const resetQuery = (formEl: FormInstance | undefined) => {
 // 回访详情
 const visitDetailRef = ref<RefType>();
 const visitDetail = (row: any) => {
-  const rowData = {
-    ...row,
-    orderId: row.id,
-    id: row.visitId,
-  }
+	const rowData = {
+		...row,
+		orderId: row.id,
+		id: row.visitId,
+	};
 	if ([10, 20].includes(row.visitState)) {
 		visitDetailRef.value.openDialog(rowData, '回访');
 	} else {

+ 3 - 2
src/views/judicial/statistics/detailSatisfiedOrg.vue

@@ -90,7 +90,7 @@ import { onMounted, reactive, ref } from 'vue';
 import { FormInstance } from 'element-plus';
 import { departmentSatisfactionChildDetail } from '@/api/judicial';
 import dayjs from 'dayjs';
-import { useRouter } from 'vue-router';
+import { useRoute, useRouter } from "vue-router";
 
 // 表格配置项
 const columns = ref<any[]>([
@@ -193,6 +193,7 @@ const handleQuery = () => {
 };
 /** 获取列表 */
 const historyParams = history.state;
+const route = useRoute();
 const queryList = () => {
 	state.loading = true;
 	const request = {
@@ -200,7 +201,7 @@ const queryList = () => {
 		EndDate: historyParams.EndDate,
 		TypeId: historyParams.TypeId,
 		LineNum: historyParams.LineNum,
-		OrgCode: historyParams.OrgCode,
+    OrgCode: route.params.OrgCode,
 		DateValue: historyParams.DateValue,
 	};
 	departmentSatisfactionChildDetail(request)

+ 9 - 2
src/views/judicial/statistics/satisfaction.vue

@@ -17,6 +17,12 @@
 						:clearable="false"
 					/>
 				</el-form-item>
+				<!--				<el-form-item label="类型" prop="TypeId">
+					<el-select v-model="state.queryParams.TypeId" placeholder="类型" @change="handleQuery">
+						<el-option label="办件结果" value="1" />
+						<el-option label="办件态度" value="2" />
+					</el-select>
+				</el-form-item>-->
 				<el-form-item>
 					<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
 					<el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
@@ -205,6 +211,7 @@ const state = reactive({
 	queryParams: {
 		// 查询条件
 		crTime: [dayjs().startOf('day').format('YYYY-MM-DD'), dayjs().endOf('day').format('YYYY-MM-DD')], // 时间默认今天开始到今天结束
+		TypeId: '1',
 	},
 	tableData: [],
 	loading: false, // 加载
@@ -328,7 +335,7 @@ const onDetailOrg = (row: any) => {
 		state: {
 			StartDate,
 			EndDate,
-			OrgCode: row.orgCode,
+			TypeId: state.queryParams.TypeId,
 		},
 		params: {
 			key: row.orgCode,
@@ -352,8 +359,8 @@ const onDetail = (key: string, row, type: string) => {
 		state: {
 			StartDate,
 			EndDate,
-			OrgCode: row.orgCode,
 			DateValue: key,
+			TypeId: state.queryParams.TypeId,
 		},
 	});
 };