From bbb54adc8d9fd6ae6b87ac036c8b21f3ad7daef4 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 16 七月 2026 10:05:40 +0800
Subject: [PATCH] 工作台报工完善

---
 src/views/crm/contract/data.ts |   88 ++++++++++++++++++++++++++++++++++----------
 1 files changed, 68 insertions(+), 20 deletions(-)

diff --git a/src/views/crm/contract/data.ts b/src/views/crm/contract/data.ts
index 1a2ced1..cc5afc9 100644
--- a/src/views/crm/contract/data.ts
+++ b/src/views/crm/contract/data.ts
@@ -1,9 +1,8 @@
 import type { VbenFormSchema } from '#/adapter/form';
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 
-import { DICT_TYPE } from '..\..\..\packages\constants\src';
-import { useUserStore } from '..\..\..\packages\stores\src';
-import { erpPriceInputFormatter, erpPriceMultiply } from '..\..\..\packages\utils\src';
+import { useUserStore } from '@vben/stores';
+import { erpPriceInputFormatter, erpPriceMultiply } from '@vben/utils';
 
 import { z } from '#/adapter/form';
 import { getSimpleBusinessList } from '#/api/crm/business';
@@ -70,6 +69,18 @@
       },
     },
     {
+      fieldName: 'orderDate',
+      label: '涓嬪崟鏃ユ湡',
+      component: 'DatePicker',
+      rules: 'required',
+      componentProps: {
+        showTime: false,
+        format: 'YYYY-MM-DD',
+        valueFormat: 'x',
+        placeholder: '璇烽�夋嫨涓嬪崟鏃ユ湡',
+      },
+    },
+    {
       fieldName: 'businessId',
       label: '鍟嗘満鍚嶇О',
       component: 'Select',
@@ -102,18 +113,6 @@
       },
     },
     {
-      fieldName: 'orderDate',
-      label: '涓嬪崟鏃ユ湡',
-      component: 'DatePicker',
-      rules: 'required',
-      componentProps: {
-        showTime: false,
-        format: 'YYYY-MM-DD',
-        valueFormat: 'x',
-        placeholder: '璇烽�夋嫨涓嬪崟鏃ユ湡',
-      },
-    },
-    {
       fieldName: 'startTime',
       label: '鍚堝悓寮�濮嬫椂闂�',
       component: 'DatePicker',
@@ -134,6 +133,18 @@
         valueFormat: 'x',
         placeholder: '璇烽�夋嫨鍚堝悓缁撴潫鏃堕棿',
       },
+    },
+    {
+      fieldName: 'depositPrice',
+      label: '瀹氶噾閲戦锛堝厓锛�',
+      component: 'InputNumber',
+      componentProps: {
+        class: '!w-full',
+        min: 0,
+        precision: 2,
+        placeholder: '璇疯緭鍏ュ畾閲戦噾棰�',
+      },
+      rules: z.number().min(0).optional(),
     },
     {
       fieldName: 'signUserId',
@@ -278,6 +289,32 @@
         allowClear: true,
       },
     },
+    {
+      fieldName: 'auditStatus',
+      label: '鍚堝悓鐘舵��',
+      component: 'Select',
+      componentProps: {
+        options: [
+          { label: '鏈彁浜�', value: 0 },
+          { label: '瀹℃壒涓�', value: 10 },
+          { label: '瀹℃牳閫氳繃', value: 20 },
+          { label: '瀹℃牳涓嶉�氳繃', value: 30 },
+          { label: '宸插彇娑�', value: 40 },
+          { label: '宸蹭綔搴�', value: 50 },
+        ],
+        placeholder: '璇烽�夋嫨鍚堝悓鐘舵��',
+        allowClear: true,
+      },
+    },
+    {
+      fieldName: 'orderNo',
+      label: '鍏宠仈璁㈠崟',
+      component: 'Input',
+      componentProps: {
+        placeholder: '璇疯緭鍏ヨ鍗曞彿',
+        allowClear: true,
+      },
+    },
   ];
 }
 
@@ -288,6 +325,7 @@
       field: 'no',
       minWidth: 180,
       fixed: 'left',
+      slots: { default: 'no' },
     },
     {
       title: '鍚堝悓鍚嶇О',
@@ -311,6 +349,12 @@
     {
       title: '鍚堝悓閲戦锛堝厓锛�',
       field: 'totalPrice',
+      minWidth: 140,
+      formatter: 'formatAmount2',
+    },
+    {
+      title: '瀹氶噾閲戦锛堝厓锛�',
+      field: 'depositPrice',
       minWidth: 140,
       formatter: 'formatAmount2',
     },
@@ -402,16 +446,20 @@
       field: 'auditStatus',
       fixed: 'right',
       minWidth: 120,
-      cellRender: {
-        name: 'CellDict',
-        props: { type: DICT_TYPE.CRM_AUDIT_STATUS },
-      },
+      slots: { default: 'auditStatus' },
+    },
+    {
+      title: '鍏宠仈璁㈠崟',
+      field: 'orderNo',
+      fixed: 'right',
+      minWidth: 150,
+      slots: { default: 'orderNo' },
     },
     {
       title: '鎿嶄綔',
       field: 'actions',
       fixed: 'right',
-      minWidth: 130,
+      minWidth: 220,
       slots: { default: 'actions' },
     },
   ];

--
Gitblit v1.9.3