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/erp/purchase/request/data.ts |  114 +++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 87 insertions(+), 27 deletions(-)

diff --git a/src/views/erp/purchase/request/data.ts b/src/views/erp/purchase/request/data.ts
index fb3c4ae..69c620b 100644
--- a/src/views/erp/purchase/request/data.ts
+++ b/src/views/erp/purchase/request/data.ts
@@ -1,11 +1,10 @@
 import type { VbenFormSchema } from '#/adapter/form';
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 
-import { DICT_TYPE } from '../../../../packages/constants/src';
-import { getDictOptions } from '../../../../packages/effects/hooks/src';
-import { erpPriceInputFormatter } from '../../../../packages/utils/src';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
 
-import { getSupplierSimpleList } from '#/api/erp/purchase/supplier';
+import { getSupplierSimpleList } from '#/api/srm/supplier';
 import { getSimpleUserList } from '#/api/system/user';
 import { getRangePickerDefaultProps } from '#/utils';
 
@@ -49,13 +48,13 @@
         placeholder: '閫夋嫨鐢宠鏃堕棿',
         showTime: true,
         format: 'YYYY-MM-DD HH:mm:ss',
-        valueFormat: 'x',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
         disabled: formType === 'detail',
       },
       rules: 'required',
     },
     {
-      label: '渚涘簲鍟嗭紙鍙�夛級',
+      label: '渚涘簲鍟�',
       fieldName: 'supplierId',
       component: 'ApiSelect',
       componentProps: {
@@ -67,6 +66,7 @@
         valueField: 'id',
         disabled: formType === 'detail',
       },
+      rules: 'required',
     },
     {
       fieldName: 'discountPercent',
@@ -76,6 +76,17 @@
         placeholder: '璇疯緭鍏ヤ紭鎯犵巼',
         min: 0,
         max: 100,
+        precision: 2,
+        disabled: formType === 'detail',
+      },
+    },
+    {
+      fieldName: 'depositPrice',
+      label: '瀹氶噾',
+      component: 'InputNumber',
+      componentProps: {
+        placeholder: '璇疯緭鍏ュ畾閲�',
+        min: 0,
         precision: 2,
         disabled: formType === 'detail',
       },
@@ -92,14 +103,13 @@
       formItemClass: 'col-span-2',
     },
     {
-      fieldName: 'fileUrl',
+      fieldName: 'blobIds',
       label: '闄勪欢',
       component: 'FileUpload',
       componentProps: {
-        placeholder: '璇蜂笂浼犻檮浠�',
-        maxNumber: 5,
-        maxSize: 20,
-        accept: ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'jpg', 'png'],
+        valueKey: 'id',
+        maxNumber: 10,
+        multiple: true,
         disabled: formType === 'detail',
       },
       formItemClass: 'col-span-2',
@@ -137,11 +147,6 @@
       slots: { default: 'productId' },
     },
     {
-      field: 'productBarCode',
-      title: '鏉$爜',
-      minWidth: 120,
-    },
-    {
       field: 'productUnitName',
       title: '鍗曚綅',
       minWidth: 80,
@@ -154,18 +159,18 @@
       slots: { default: 'count' },
     },
     {
+      field: 'inCount',
+      title: '鍏ュ簱鏁伴噺',
+      minWidth: 100,
+      fixed: 'right',
+      formatter: 'formatAmount3',
+    },
+    {
       field: 'productPrice',
-      title: '鍗曚环锛堝弬鑰冧环锛�',
+      title: '鍚◣鍗曚环(鍏�)',
       minWidth: 120,
       fixed: 'right',
       slots: { default: 'productPrice' },
-    },
-    {
-      field: 'totalPrice',
-      title: '棰勪及閲戦',
-      minWidth: 120,
-      fixed: 'right',
-      formatter: 'formatAmount2',
     },
     {
       field: 'taxPercent',
@@ -173,6 +178,26 @@
       minWidth: 100,
       fixed: 'right',
       slots: { default: 'taxPercent' },
+    },
+    {
+      field: 'totalPrice',
+      title: '涓嶅惈绋庨噾棰�(鍏�)',
+      minWidth: 120,
+      fixed: 'right',
+      formatter: 'formatAmount2',
+    },
+    {
+      field: 'taxPrice',
+      title: '绋庨(鍏�)',
+      minWidth: 120,
+      fixed: 'right',
+      formatter: 'formatAmount2',
+    },
+    {
+      title: '鍚◣鍚堣(鍏�)',
+      minWidth: 120,
+      fixed: 'right',
+      slots: { default: 'totalTaxInclusivePrice' },
     },
     {
       field: 'demandTime',
@@ -186,6 +211,13 @@
       title: '澶囨敞',
       minWidth: 150,
       slots: { default: 'remark' },
+    },
+    {
+      field: 'qcCheckFlag',
+      title: '鏄惁璐ㄦ',
+      minWidth: 80,
+      fixed: 'right',
+      slots: { default: 'qcCheckFlag' },
     },
     {
       title: '鎿嶄綔',
@@ -252,11 +284,25 @@
         options: [
           { label: '鏈彁浜�', value: 0 },
           { label: '瀹℃壒涓�', value: 10 },
-          { label: '瀹℃牳閫氳繃', value: 20 },
-          { label: '瀹℃牳涓嶉�氳繃', value: 30 },
+          { label: '瀹℃壒閫氳繃', value: 20 },
+          { label: '瀹℃壒涓嶉�氳繃', value: 30 },
           { label: '宸插彇娑�', value: 40 },
         ],
         placeholder: '璇烽�夋嫨鐘舵��',
+        allowClear: true,
+      },
+    },
+    {
+      fieldName: 'inStatus',
+      label: '鍏ュ簱鐘舵��',
+      component: 'Select',
+      componentProps: {
+        options: [
+          { label: '鏈叆搴�', value: 0 },
+          { label: '閮ㄥ垎鍏ュ簱', value: 1 },
+          { label: '鍏ㄩ儴鍏ュ簱', value: 2 },
+        ],
+        placeholder: '璇烽�夋嫨鍏ュ簱鐘舵��',
         allowClear: true,
       },
     },
@@ -306,7 +352,13 @@
     },
     {
       field: 'totalPrice',
-      title: '棰勪及閲戦',
+      title: '鍚◣閲戦',
+      formatter: 'formatAmount2',
+      minWidth: 120,
+    },
+    {
+      field: 'depositPrice',
+      title: '瀹氶噾',
       formatter: 'formatAmount2',
       minWidth: 120,
     },
@@ -325,9 +377,17 @@
       field: 'status',
       title: '鐘舵��',
       minWidth: 120,
+      fixed: 'right',
       slots: { default: 'status' },
     },
     {
+      field: 'inStatus',
+      title: '鍏ュ簱鐘舵��',
+      minWidth: 100,
+      fixed: 'right',
+      slots: { default: 'inStatus' },
+    },
+    {
       field: 'requestReason',
       title: '鐢宠鐞嗙敱',
       minWidth: 150,

--
Gitblit v1.9.3