From baddb052ccd4a91ef1881ba663e6a4e55b05f4fb Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 14 十月 2026 15:51:55 +0800
Subject: [PATCH] feat(hrm): 社保公积金方案表单加「适用部门」与默认缴费基数,修比例输入精度

---
 src/views/crm/contract/index.vue |   37 ++++++++++++++++++++++++++++++++++---
 1 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/src/views/crm/contract/index.vue b/src/views/crm/contract/index.vue
index 94b2b2a..b4f4f4b 100644
--- a/src/views/crm/contract/index.vue
+++ b/src/views/crm/contract/index.vue
@@ -5,10 +5,10 @@
 import { ref } from 'vue';
 import { useRouter } from 'vue-router';
 
-import { Page, useVbenModal } from '../../../packages/effects/common-ui/src';
-import { downloadFileFromBlobPart } from '../../../packages/utils/src';
+import { Page, useVbenModal } from '@vben/common-ui';
+import { downloadFileFromBlobPart } from '@vben/utils';
 
-import { Button, message, Modal, Select, Tabs, Tag } from 'ant-design-vue';
+import { Button, message, Modal, Select, Tabs, Tag, Tooltip } from 'ant-design-vue';
 
 import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
 import {
@@ -23,12 +23,18 @@
 
 import { useGridColumns, useGridFormSchema } from './data';
 import Form from './modules/form.vue';
+import ImportForm from './modules/import-form.vue';
 
 const { push } = useRouter();
 const sceneType = ref('1');
 
 const [FormModal, formModalApi] = useVbenModal({
   connectedComponent: Form,
+  destroyOnClose: true,
+});
+
+const [ImportModal, importModalApi] = useVbenModal({
+  connectedComponent: ImportForm,
   destroyOnClose: true,
 });
 
@@ -51,6 +57,11 @@
     ...formValues,
   });
   downloadFileFromBlobPart({ fileName: '鍚堝悓.xls', source: data });
+}
+
+/** 瀵煎叆鍚堝悓 */
+function handleImport() {
+  importModalApi.open();
 }
 
 /** 鍒涘缓鍚堝悓 */
@@ -205,6 +216,7 @@
 <template>
   <Page auto-content-height>
     <FormModal @success="handleRefresh" />
+    <ImportModal @success="handleRefresh" />
     <Grid>
       <template #toolbar-actions>
         <Tabs class="w-full" @change="handleChangeSceneType">
@@ -230,12 +242,29 @@
               auth: ['crm:contract:export'],
               onClick: handleExport,
             },
+            {
+              label: '瀵煎叆',
+              type: 'primary',
+              icon: ACTION_ICON.UPLOAD,
+              auth: ['crm:contract:import'],
+              onClick: handleImport,
+            },
           ]"
         />
       </template>
       <template #name="{ row }">
         <Button type="link" @click="handleDetail(row)">
           {{ row.name }}
+        </Button>
+      </template>
+      <template #no="{ row }">
+        <Tooltip v-if="row.auditStatus === 50" title="璇ュ悎鍚屽凡浣滃簾锛岃鍗曞凡澶辨晥">
+          <span class="text-red-500 cursor-pointer" @click="handleDetail(row)">
+            {{ row.no }}
+          </span>
+        </Tooltip>
+        <Button v-else type="link" @click="handleDetail(row)">
+          {{ row.no }}
         </Button>
       </template>
       <template #customerName="{ row }">
@@ -258,6 +287,8 @@
         <Tag v-if="row.auditStatus === 10" color="warning">瀹℃壒涓�</Tag>
         <Tag v-if="row.auditStatus === 20" color="success">瀹℃牳閫氳繃</Tag>
         <Tag v-if="row.auditStatus === 30" color="error">瀹℃牳涓嶉�氳繃</Tag>
+        <Tag v-if="row.auditStatus === 40" color="default">宸插彇娑�</Tag>
+        <Tag v-if="row.auditStatus === 50" color="error">宸蹭綔搴�</Tag>
       </template>
       <template #orderNo="{ row }">
         <Button v-if="row.orderId" type="link" @click="handleViewOrder(row)">

--
Gitblit v1.9.3