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
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
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
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
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
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
@@ -62,6 +62,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
sort_order: values.sort_order ?? 0,
|
||||
status: values.status ?? 1,
|
||||
store_id: values.store_id ?? null,
|
||||
drug_type: values.drug_type ?? undefined,
|
||||
};
|
||||
formApi.setValues(formData);
|
||||
} else {
|
||||
@@ -77,6 +78,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
sort_order: 0,
|
||||
status: 1,
|
||||
store_id: null,
|
||||
drug_type: undefined,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -40,6 +40,8 @@ export const modalFormProps: VbenFormProps = {
|
||||
{ label: '处方药专区', value: 'prescription' },
|
||||
{ label: '保健食品专区', value: 'health_food' },
|
||||
{ label: '产品服务包专区', value: 'service_package' },
|
||||
{ label: '非药品专区', value: 'non_drug' },
|
||||
{ label: '医疗器械专区', value: 'medical_device' },
|
||||
],
|
||||
},
|
||||
fieldName: 'type',
|
||||
@@ -47,6 +49,23 @@ export const modalFormProps: VbenFormProps = {
|
||||
rules: 'required',
|
||||
defaultValue: undefined,
|
||||
},
|
||||
{
|
||||
component: 'VbenSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择映射的药品类型',
|
||||
options: [
|
||||
{ label: '西药', value: 2 },
|
||||
{ label: '保健食品', value: 3 },
|
||||
{ label: '产品服务包', value: 5 },
|
||||
{ label: '非药品', value: 6 },
|
||||
{ label: '医疗器械', value: 7 },
|
||||
],
|
||||
allowClear: true,
|
||||
},
|
||||
fieldName: 'drug_type',
|
||||
label: '药品类型',
|
||||
defaultValue: undefined,
|
||||
},
|
||||
{
|
||||
component: 'Avatar',
|
||||
fieldName: 'icon',
|
||||
|
||||
@@ -12,6 +12,8 @@ interface RowType {
|
||||
status: number;
|
||||
status_txt: string;
|
||||
store_id: number | null;
|
||||
drug_type: number | null;
|
||||
drug_type_txt: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
@@ -44,10 +46,18 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
prescription: '处方药专区',
|
||||
health_food: '保健食品专区',
|
||||
service_package: '产品服务包专区',
|
||||
non_drug: '非药品专区',
|
||||
medical_device: '医疗器械专区',
|
||||
};
|
||||
return map[cellValue] || cellValue || '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'drug_type_txt',
|
||||
align: 'left',
|
||||
title: '药品类型',
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
field: 'icon',
|
||||
align: 'left',
|
||||
|
||||
Reference in New Issue
Block a user