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/erp/purchase/order/data.ts | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/views/erp/purchase/order/data.ts b/src/views/erp/purchase/order/data.ts
index ca8082b..361ba18 100644
--- a/src/views/erp/purchase/order/data.ts
+++ b/src/views/erp/purchase/order/data.ts
@@ -1,9 +1,9 @@
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 { erpPriceInputFormatter } from '@vben/utils';
import { z } from '#/adapter/form';
import { getAccountSimpleList } from '#/api/erp/finance/account';
@@ -59,6 +59,18 @@
labelField: 'name',
valueField: 'id',
},
+ rules: 'required',
+ },
+ {
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ placeholder: '璇疯緭鍏ユ敮浠樿閲�',
+ precision: 2,
+ min: 0,
+ },
+ fieldName: 'depositPrice',
+ label: '鏀粯璁㈤噾',
rules: 'required',
},
{
@@ -150,18 +162,6 @@
labelField: 'name',
valueField: 'id',
},
- },
- {
- component: 'InputNumber',
- componentProps: {
- class: '!w-full',
- placeholder: '璇疯緭鍏ユ敮浠樿閲�',
- precision: 2,
- min: 0,
- },
- fieldName: 'depositPrice',
- label: '鏀粯璁㈤噾',
- rules: z.number().min(0).optional(),
},
];
}
--
Gitblit v1.9.3