From 80dd2bebbe3d204cc7833a4793aba67bba356b1d Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 24 三月 2025 19:19:20 +0800
Subject: [PATCH] feat: 页面
---
src/views/Home/components/InsureOrderInfoView.vue | 80 +++++++++++++++++++++++----------------
1 files changed, 47 insertions(+), 33 deletions(-)
diff --git a/src/views/Home/components/InsureOrderInfoView.vue b/src/views/Home/components/InsureOrderInfoView.vue
index 57ab2cf..a8cf6e4 100644
--- a/src/views/Home/components/InsureOrderInfoView.vue
+++ b/src/views/Home/components/InsureOrderInfoView.vue
@@ -34,13 +34,16 @@
</ProFormCol>
<ProFormCol>
<ProFormColItem :span="8">
- <ProFormItemV2 label="鍙備繚鏈烘瀯:" prop="applyTime">
- <ProFormText v-model.trim="detail.orderNo" />
+ <ProFormItemV2 label="鍙備繚鏈烘瀯:" prop="insuredInstitution">
+ <ProFormRadio
+ v-model="detail.insuredInstitution"
+ :value-enum="InsuredInstitutionEnum"
+ />
</ProFormItemV2>
</ProFormColItem>
<ProFormColItem :span="8">
- <ProFormItemV2 label="鎶曚繚鏂规:" prop="applyTime">
- <ProFormText v-model.trim="detail.orderNo" />
+ <ProFormItemV2 label="鎶曚繚鏂规:" prop="insuranceScheme">
+ <ProFormRadio v-model="detail.insuranceScheme" :value-enum="InsuranceSchemeEnum" />
</ProFormItemV2>
</ProFormColItem>
<ProFormColItem :span="8">
@@ -73,24 +76,18 @@
<SearchInput
v-model="extraParamState.keyWord"
style="width: 300px"
- placeholder="浜哄憳濮撳悕/韬唤璇佸彿/鎵嬫満鍙�"
+ placeholder="濮撳悕/韬唤璇佸彿/鎵嬫満鍙�"
@on-click-search="getBatchRefundInfoDetail"
>
</SearchInput>
</QueryFilterItem>
</template>
<template #btn>
- <el-button @click="handleTemplateDownload()" icon="Download" type="primary"
- >妯℃澘涓嬭浇</el-button
- >
- <el-button @click="handleImport()" icon="Download" type="primary">瀵煎叆</el-button>
- <el-button @click="handleClear()" icon="Download" type="primary">娓呯┖鏁版嵁</el-button>
- <el-button @click="handleDownloadPerson()" icon="Download" type="primary"
- >浜哄憳娓呭崟涓嬭浇</el-button
- >
- <el-button @click="handleDownloadOrder()" icon="Download" type="primary"
- >淇濆崟涓嬭浇</el-button
- >
+ <el-button @click="handleTemplateDownload()" link type="primary">妯℃澘涓嬭浇</el-button>
+ <el-button @click="handleImport()" type="primary">瀵煎叆</el-button>
+ <el-button @click="handleClear()" type="primary">娓呯┖鏁版嵁</el-button>
+ <el-button @click="handleDownloadPerson()" type="primary">浜哄憳娓呭崟涓嬭浇</el-button>
+ <el-button @click="handleDownloadOrder()" type="primary">淇濆崟涓嬭浇</el-button>
</template>
</ProTableQueryFilterBar>
<ProTableV2
@@ -131,11 +128,16 @@
defineOperationBtns,
useFormDialog,
} from '@bole-core/components';
-import { insuranceTypeText } from '@/constants';
+import {
+ InsuranceOrderTempPath,
+ insuranceTypeText,
+ InsuredInstitutionEnum,
+ InsuranceSchemeEnum,
+} from '@/constants';
import ChangePersonInfoDialog from './ChangePersonInfoDialog.vue';
import * as insuranceOrderServices from '@/services/api/InsuranceOrder';
import { useQuery, useQueryClient } from '@tanstack/vue-query';
-import { OrderInputType } from '@bole-core/core';
+import { downloadFileByUrl, OrderInputType } from '@bole-core/core';
defineOptions({
name: 'InsureOrderInfoView',
@@ -208,9 +210,9 @@
emits: {
onClick: (role) => handleChangeInfo(role),
},
- extraProps: {
- hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
- },
+ // extraProps: {
+ // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+ // },
},
{
data: {
@@ -218,11 +220,11 @@
name: '鐞嗚禂璇︽儏',
},
emits: {
- onClick: (role) => handleInsureClaimDetail(),
+ onClick: (role) => handleInsureClaimDetail(role),
},
- extraProps: {
- hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
- },
+ // extraProps: {
+ // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+ // },
},
]);
@@ -292,19 +294,21 @@
}
);
-function handleTemplateDownload() {}
+function handleTemplateDownload() {
+ downloadFileByUrl(InsuranceOrderTempPath, '浜哄憳淇℃伅妯℃澘');
+}
function handleClear() {}
function handleImport() {}
function handleDownloadPerson() {}
function handleDownloadOrder() {}
function handleBatchChange() {
- // router.push({
- // name: 'BatchChange',
- // params: {
- // id: id,
- // },
- // });
+ router.push({
+ name: 'BatchChange',
+ params: {
+ id: id,
+ },
+ });
}
const { dialogProps, handleEdit, editForm } = useFormDialog({
@@ -322,7 +326,17 @@
async function changeInfo() {}
-function handleInsureClaimDetail() {}
+function handleInsureClaimDetail(row: API.InsuranceOrderListOutput) {
+ router.push({
+ name: 'InsuranceClaimDetail',
+ params: {
+ id: row.id,
+ },
+ query: {
+ fromRoute: 'InsuranceOrderDetail',
+ },
+ });
+}
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.1