fix: 常用方、患者管理
This commit is contained in:
@@ -35,8 +35,11 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
},
|
||||
// { field: 'drug.drug_store_drug.market_price', title: '供货价' },
|
||||
{ field: 'buy_price', title: '供货价' },
|
||||
{ field: 'drug.drug_store_drug.price', title: '建议售价' },
|
||||
{ field: 'price', title: '售价' },
|
||||
{
|
||||
field: 'drug.drug_store_drug.price',
|
||||
title: '售价(不可修改)',
|
||||
},
|
||||
// { field: 'price', title: '售价' },
|
||||
// { field: 'status', title: '状态', slots: { default: 'status' } },
|
||||
{ field: 'is_shop', title: '是否上架商城', slots: { default: 'is_shop' } },
|
||||
// { type: 'html', align: 'right', title: '操作', slots: { default: 'action' }, width: 300, },
|
||||
|
||||
@@ -43,7 +43,10 @@ const [Modal, modalApi] = useVbenModal({
|
||||
>
|
||||
<Descriptions.Item label="ID">{{ data.id }}</Descriptions.Item>
|
||||
<Descriptions.Item label="操作人员">
|
||||
{{ data?.admin?.nick_name || '获取失败' }}
|
||||
<span v-if="data.platform_type === 0">{{ data?.admin?.nick_name || '获取失败' }}</span>
|
||||
<span v-else-if="data.platform_type === 1">{{ data?.admin?.nick_name || '获取失败' }}</span>
|
||||
<span v-else-if="data.platform_type === 2">{{ data?.user?.nickname || '获取失败' }}</span>
|
||||
<span v-else>获取失败</span>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="URL">{{ data.url }}</Descriptions.Item>
|
||||
<Descriptions.Item label="控制器">
|
||||
@@ -60,7 +63,10 @@ const [Modal, modalApi] = useVbenModal({
|
||||
{{ data.result_code }}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="平台类型">
|
||||
{{ data.platform_type === 0 ? '平台' : '诊所' }}
|
||||
<span v-if="data.platform_type === 0">平台</span>
|
||||
<span v-else-if="data.platform_type === 1">诊所</span>
|
||||
<span v-else-if="data.platform_type === 2">小程序</span>
|
||||
<span v-else>获取失败</span>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="设备">
|
||||
<Icon :icon="getIcon(data.equipment)" :size="20" />
|
||||
@@ -70,8 +76,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
<Icon :icon="getIcon(data.browser)" :size="20" />
|
||||
{{ data.browser }}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="平台">
|
||||
{{ data.platform?.name || '获取失败' }}
|
||||
<Descriptions.Item label="所属平台">
|
||||
{{ data.platform?.name || '未绑定' }}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="访问时间">
|
||||
{{ data.created_at }}
|
||||
|
||||
@@ -46,7 +46,10 @@ const showModal = (data = {}, isUpdate = false) => {
|
||||
<Tag v-else color="red"> 访问失败 </Tag>
|
||||
</template>
|
||||
<template #admin="{ row }">
|
||||
{{ row?.admin?.nick_name || '获取失败' }}
|
||||
<span v-if="row.platform_type === 0">{{ row?.admin?.nick_name || '获取失败' }}</span>
|
||||
<span v-else-if="row.platform_type === 1">{{ row?.admin?.nick_name || '获取失败' }}</span>
|
||||
<span v-else-if="row.platform_type === 2">{{ row?.user?.nickname || '获取失败' }}</span>
|
||||
<span v-else>获取失败</span>
|
||||
</template>
|
||||
<template #toolbar-tools></template>
|
||||
<template #equipment="{ row }">
|
||||
|
||||
Reference in New Issue
Block a user