Pārlūkot izejas kodu

reactor:回访待办新增排序;

zhangchong 1 mēnesi atpakaļ
vecāks
revīzija
8e90892c58

+ 28 - 0
src/api/snapshot/statistics.ts

@@ -718,4 +718,32 @@ export const getSSPStatisticsHotSpotTypeExport = (data: object) => {
 			reduce_data_format: false,
 		}
 	);
+}/**
+ * @description 获取随手拍市民追加奖励
+ * @param {object} params
+ */
+export const getSSPStatisticsCitizenAdditionalReward = (params?: object) => {
+	return request({
+		url: '/api/v1/SnapshotOrder/citizen/reward',
+		method: 'get',
+		params,
+	}
+	)
+}
+/**
+ * @description 随手拍市民追加奖励导出
+ * @param {object} data
+ */
+export const getSSPStatisticsCitizenAdditionalRewardExport = (data: object) => {
+	return request(
+		{
+			url: '/api/v1/SnapshotOrder/citizen/reward/export_excel',
+			method: 'post',
+			data,
+			responseType: 'blob',
+		},
+		{
+			reduce_data_format: false,
+		}
+	)
 }

+ 12 - 12
src/views/snapshot/statistics/citizenAdd.vue

@@ -175,7 +175,7 @@ import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
 import type { FormInstance } from 'element-plus';
 import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
 import Other from '@/utils/other';
-import { getSSPAllBaseData, getSSPAllOrder, getSSPAllOrderExport } from '@/api/snapshot/statistics';
+import { getSSPAllBaseData, getSSPStatisticsCitizenAdditionalReward, getSSPStatisticsCitizenAdditionalRewardExport } from '@/api/snapshot/statistics';
 
 // 引入组件
 const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
@@ -262,7 +262,7 @@ const gridOptions = reactive<any>({
 		tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],
 	},
 	params: {
-		exportMethod: getSSPAllOrderExport,
+		exportMethod: getSSPStatisticsCitizenAdditionalRewardExport,
 		exportParams: requestParams,
 	},
 	customConfig: {
@@ -306,7 +306,7 @@ const gridOptions = reactive<any>({
 			},
 		},
 		{
-			field: 'startTime',
+			field: 'creationTime',
 			title: '受理时间',
 			width: 160,
 			sortable: true,
@@ -319,32 +319,32 @@ const gridOptions = reactive<any>({
 			slots: { default: 'order_detail' },
 		},
 		{ field: 'industryName', title: '行业', width: 100 },
-		{ field: 'industryName', title: '是否发放补充奖励', width: 140 },
-		{ field: 'industryName', title: '奖励金额', width: 120 },
+		{ field: 'isAwardTxt', title: '是否发放补充奖励', width: 140 },
+		{ field: 'awardAmount', title: '奖励金额(元)', width: 120 },
 		{
-			field: 'expiredTime',
+			field: 'awardTime',
 			title: '发放时间',
 			width: 160,
 			sortable: true,
 			formatter: 'formatDate',
 		},
 		{
-			field: 'bankCardNo',
+			field: 'awardBankCardNo',
 			title: '卡号',
 			width: 140,
 		},
 		{
-			field: 'openBank',
+			field: 'awardOpenBank',
 			title: '开户行',
 			width: 140,
 		},
 		{
-			field: 'creatorName',
+			field: 'awardName',
 			title: '补充发放人员',
 			width: 140,
 		},
-		{ field: 'industryName', title: '重点', width: 100 },
-		{ field: 'industryName', title: '办理时长(天)', width: 120 },
+		{ field: 'emphasis', title: '重点', width: 100 },
+		{ field: 'totalFieldDay', title: '办理时长(天)', width: 120 },
 		{ field: 'county', title: '区域', width: 150 },
 		{ field: 'contact', title: '电话', width: 140 },
 
@@ -433,7 +433,7 @@ const queryList = () => {
 		Reflect.deleteProperty(requestParams.value, 'doneTime'); // 删除无用的参数
 		state.loading = true;
 		gridOptions.loading = true;
-		getSSPAllOrder(requestParams.value)
+		getSSPStatisticsCitizenAdditionalReward(requestParams.value)
 			.then((response: any) => {
 				gridOptions.data = response?.result.items ?? [];
 				state.total = response?.result.total;