| | |
| | | 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'; |
| | | |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'creditCode', |
| | | label: '统一社会信用代码', |
| | | component: 'Input', |
| | | componentProps: { |
| | | placeholder: '请输入统一社会信用代码', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'taxNo', |
| | | label: '税号', |
| | | component: 'Input', |
| | | componentProps: { |
| | | placeholder: '请输入税号', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'contact', |
| | | label: '联系人', |
| | | component: 'Input', |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'mobile', |
| | | label: '手机号码', |
| | | component: 'Input', |
| | | componentProps: { |
| | | placeholder: '请输入手机号码', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'telephone', |
| | | fieldName: 'phone', |
| | | label: '联系电话', |
| | | component: 'Input', |
| | | componentProps: { |
| | |
| | | }, |
| | | { |
| | | 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', |