Browse Source

✨ feat(contract): 优化合同续签功能

- 移除合同续签页面表格中的"续签编号"列
- 修改续签记录ID类型,从字符串改为正整数格式
- 更新ID字段描述为"记录ID",示例值同步调整为数字类型
yourname 8 months ago
parent
commit
c068ccb938

+ 1 - 7
src/client/admin/pages/ContractRenews.tsx

@@ -242,13 +242,7 @@ const ContractRenews: React.FC = () => {
 
   // 表格列定义
   const columns = [
-    {
-      title: '续签编号',
-      dataIndex: '',
-      key: '',
-      width: 150,
-      sorter: true,
-    },
+    
     {
       title: '原合同编号',
       dataIndex: ['contract', 'contractNo'],

+ 4 - 4
src/server/modules/contracts/hetong-renew.entity.ts

@@ -62,10 +62,10 @@ export class HetongRenew {
 }
 
 export const HetongRenewSchema = z.object({
-  id: z.string().max(50).openapi({ 
-    description: '续签记录ID',
-    example: 'HTR20230001' 
-  }),
+  id: z.number().int().positive().openapi({ 
+  description: '记录ID',
+  example: 1 
+}),
   contractId: z.number().openapi({ 
     description: '原合同ID',
     example: 12345