From 543433f64d491fe133b7a23363ff0ccacc3da07e Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 24 七月 2026 14:33:42 +0800
Subject: [PATCH] fix(upload): 修复文件上传时的请求头配置问题
---
src/views/erp/purchase/supplier/data.ts | 124 +++++++++++++++++++++-------------------
1 files changed, 65 insertions(+), 59 deletions(-)
diff --git a/src/views/erp/purchase/supplier/data.ts b/src/views/erp/purchase/supplier/data.ts
index 6cfefc5..490415c 100644
--- a/src/views/erp/purchase/supplier/data.ts
+++ b/src/views/erp/purchase/supplier/data.ts
@@ -1,8 +1,8 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
-import { CommonStatusEnum, DICT_TYPE } from '..\..\..\..\packages\constants\src';
-import { getDictOptions } from '..\..\..\..\packages\effects\hooks\src';
+import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
import { z } from '#/adapter/form';
@@ -27,6 +27,22 @@
},
},
{
+ fieldName: 'creditCode',
+ label: '缁熶竴绀句細淇$敤浠g爜',
+ component: 'Input',
+ componentProps: {
+ placeholder: '璇疯緭鍏ョ粺涓�绀句細淇$敤浠g爜',
+ },
+ },
+ {
+ fieldName: 'taxNo',
+ label: '绋庡彿',
+ component: 'Input',
+ componentProps: {
+ placeholder: '璇疯緭鍏ョ◣鍙�',
+ },
+ },
+ {
fieldName: 'contact',
label: '鑱旂郴浜�',
component: 'Input',
@@ -35,15 +51,7 @@
},
},
{
- fieldName: 'mobile',
- label: '鎵嬫満鍙风爜',
- component: 'Input',
- componentProps: {
- placeholder: '璇疯緭鍏ユ墜鏈哄彿鐮�',
- },
- },
- {
- fieldName: 'telephone',
+ fieldName: 'phone',
label: '鑱旂郴鐢佃瘽',
component: 'Input',
componentProps: {
@@ -52,83 +60,81 @@
},
{
fieldName: 'email',
- label: '鐢靛瓙閭',
+ label: '閭',
component: 'Input',
componentProps: {
- placeholder: '璇疯緭鍏ョ數瀛愰偖绠�',
+ placeholder: '璇疯緭鍏ラ偖绠�',
},
},
{
- fieldName: 'fax',
- label: '浼犵湡',
+ fieldName: 'bankName',
+ label: '寮�鎴烽摱琛�',
component: 'Input',
componentProps: {
- placeholder: '璇疯緭鍏ヤ紶鐪�',
+ placeholder: '璇疯緭鍏ュ紑鎴烽摱琛�',
},
+ },
+ {
+ fieldName: 'bankAccount',
+ label: '閾惰璐﹀彿',
+ component: 'Input',
+ componentProps: {
+ placeholder: '璇疯緭鍏ラ摱琛岃处鍙�',
+ },
+ },
+ {
+ fieldName: 'cooperationTime',
+ label: '鍚堜綔寮�濮嬫椂闂�',
+ component: 'DatePicker',
+ componentProps: {
+ placeholder: '璇烽�夋嫨鍚堜綔寮�濮嬫椂闂�',
+ class: '!w-full',
+ valueFormat: 'x',
+ },
+ },
+ {
+ fieldName: 'address',
+ label: '鍦板潃',
+ component: 'Input',
+ componentProps: {
+ placeholder: '璇疯緭鍏ュ湴鍧�',
+ },
+ formItemClass: 'col-span-2',
},
{
fieldName: 'status',
- label: '寮�鍚姸鎬�',
+ label: '鐘舵��',
component: 'RadioGroup',
componentProps: {
- options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
+ options: [
+ { label: '鍚敤', value: 0 },
+ { label: '绂佺敤', value: 1 },
+ ],
buttonStyle: 'solid',
optionType: 'button',
},
- rules: z.number().default(CommonStatusEnum.ENABLE),
+ rules: z.number().default(0),
},
{
fieldName: 'sort',
label: '鎺掑簭',
component: 'InputNumber',
componentProps: {
- class: '!w-full',
placeholder: '璇疯緭鍏ユ帓搴�',
- },
- rules: 'required',
- },
- {
- fieldName: 'taxNo',
- label: '绾崇◣浜鸿瘑鍒彿',
- component: 'Input',
- componentProps: {
- placeholder: '璇疯緭鍏ョ撼绋庝汉璇嗗埆鍙�',
- },
- },
- {
- fieldName: 'taxPercent',
- label: '绋庣巼(%)',
- component: 'InputNumber',
- componentProps: {
- class: '!w-full',
- placeholder: '璇疯緭鍏ョ◣鐜�',
min: 0,
- precision: 2,
+ class: '!w-full',
},
+ rules: z.number().default(0),
},
{
- fieldName: 'bankName',
- label: '寮�鎴疯',
- component: 'Input',
+ fieldName: 'qualification',
+ label: '璧勮川淇℃伅',
+ component: 'Textarea',
componentProps: {
- placeholder: '璇疯緭鍏ュ紑鎴疯',
+ placeholder: '璇疯緭鍏ヨ祫璐ㄤ俊鎭�',
+ rows: 3,
},
- },
- {
- fieldName: 'bankAccount',
- label: '寮�鎴疯处鍙�',
- component: 'Input',
- componentProps: {
- placeholder: '璇疯緭鍏ュ紑鎴疯处鍙�',
- },
- },
- {
- fieldName: 'bankAddress',
- label: '寮�鎴峰湴鍧�',
- component: 'Input',
- componentProps: {
- placeholder: '璇疯緭鍏ュ紑鎴峰湴鍧�',
- },
+ formItemClass: 'col-span-2',
},
{
fieldName: 'remark',
--
Gitblit v1.9.3