fix: 诊所和药店分开管理
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

This commit is contained in:
2025-12-17 13:29:54 +08:00
parent 84930d8170
commit 64a3b45b6e
9 changed files with 901 additions and 27 deletions

View File

@@ -2,6 +2,8 @@ import type { VbenFormProps } from '#/adapter/form';
import { addressOption } from '#/util/address.ts';
// 诊所管理表单配置
// 注意:已移除类型选择字段,固定为type=0(诊所类型)
export const modalFormProps: VbenFormProps = {
wrapperClass: 'grid-cols-12', // 24栅格,
commonConfig: {
@@ -80,19 +82,15 @@ export const modalFormProps: VbenFormProps = {
rules: 'required',
},
{
component: 'Select',
formItemClass: 'col-span-6',
componentProps: {
options: [
{ label: '诊所', value: 0 },
{ label: '药店', value: 1 },
],
placeholder: '请选择门店类型',
},
component: 'Input',
fieldName: 'type',
label: '门店类型',
rules: 'required',
dependencies: {
show: false,
triggerFields: ['id'],
},
defaultValue: 0,
},
// 注意:已移除门店类型选择字段,因为诊所管理固定为type=0
{
component: 'Select',
formItemClass: 'col-span-6',

View File

@@ -1,12 +1,13 @@
import type { VbenFormProps } from '#/adapter/form';
// import dayjs from 'dayjs';
// 诊所管理搜索表单配置
// 注意:已移除类型筛选字段,因为诊所管理页面只显示type=0的数据
export const formOptions: VbenFormProps = {
// 默认展开
// 默认展开搜索表单
collapsed: false,
schema: [
{
// 诊所名称搜索字段
component: 'VbenInput',
componentProps: {
placeholder: '输入名称',
@@ -16,6 +17,7 @@ export const formOptions: VbenFormProps = {
label: '诊所名称',
},
{
// 诊所首字母搜索字段
component: 'VbenInput',
componentProps: {
placeholder: '输入名称',
@@ -25,6 +27,7 @@ export const formOptions: VbenFormProps = {
label: '诊所首字母',
},
{
// 联系人手机号搜索字段
component: 'VbenInput',
componentProps: {
placeholder: '输入联系人手机号',
@@ -33,19 +36,7 @@ export const formOptions: VbenFormProps = {
fieldName: 'mobile',
label: '联系人手机号',
},
{
component: 'Select',
componentProps: {
placeholder: '请选择类型',
options: [
{ label: '诊所', value: 0 },
{ label: '药店', value: 1 },
],
},
defaultValue: undefined,
fieldName: 'type',
label: '类型',
},
// 注意:已移除类型筛选字段,因为诊所管理页面固定显示type=0的数据
// {
// component: 'RangePicker',
// componentProps: {

View File

@@ -70,10 +70,12 @@ export const gridOptions: VxeGridProps<RowType> = {
proxyConfig: {
ajax: {
// 请求后端接口方法
// 注意:会自动添加type=0参数,只查询诊所类型的数据
query: async ({ page }, formValues) => {
return await getStoreList({
page: page.currentPage,
pageSize: page.pageSize,
type: 0, // 固定为诊所类型
...formValues,
});
},