From 91c82965b2d987452ca276e3a03b48c8dcda2ae9 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 19 八月 2026 11:47:26 +0800
Subject: [PATCH] config(env): 更新生产环境配置和公司名称
---
src/views/erp/purchase/request/data.ts | 75 ++++++++++++++++++++++++++++++-------
1 files changed, 61 insertions(+), 14 deletions(-)
diff --git a/src/views/erp/purchase/request/data.ts b/src/views/erp/purchase/request/data.ts
index 78201dd..cc4745b 100644
--- a/src/views/erp/purchase/request/data.ts
+++ b/src/views/erp/purchase/request/data.ts
@@ -3,9 +3,8 @@
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
-import { erpPriceInputFormatter } from '@vben/utils';
-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,
@@ -152,6 +157,13 @@
minWidth: 120,
fixed: 'right',
slots: { default: 'count' },
+ },
+ {
+ field: 'inCount',
+ title: '鍏ュ簱鏁伴噺',
+ minWidth: 100,
+ fixed: 'right',
+ formatter: 'formatAmount3',
},
{
field: 'productPrice',
@@ -186,6 +198,13 @@
title: '澶囨敞',
minWidth: 150,
slots: { default: 'remark' },
+ },
+ {
+ field: 'qcCheckFlag',
+ title: '鏄惁璐ㄦ',
+ minWidth: 80,
+ fixed: 'right',
+ slots: { default: 'qcCheckFlag' },
},
{
title: '鎿嶄綔',
@@ -260,6 +279,20 @@
allowClear: true,
},
},
+ {
+ fieldName: 'inStatus',
+ label: '鍏ュ簱鐘舵��',
+ component: 'Select',
+ componentProps: {
+ options: [
+ { label: '鏈叆搴�', value: 0 },
+ { label: '閮ㄥ垎鍏ュ簱', value: 1 },
+ { label: '鍏ㄩ儴鍏ュ簱', value: 2 },
+ ],
+ placeholder: '璇烽�夋嫨鍏ュ簱鐘舵��',
+ allowClear: true,
+ },
+ },
];
}
@@ -311,6 +344,12 @@
minWidth: 120,
},
{
+ field: 'depositPrice',
+ title: '瀹氶噾',
+ formatter: 'formatAmount2',
+ minWidth: 120,
+ },
+ {
field: 'productNames',
title: '鐢宠浜у搧',
minWidth: 150,
@@ -325,9 +364,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