1. 推广员功能增强
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:
@@ -166,6 +166,14 @@ export async function updateClinicTypeApi(data: { id: number; clinic_type: numbe
|
||||
return requestClient.post<any>(`${prefix}update-clinic-type`, data);
|
||||
}
|
||||
|
||||
export async function updateAllowInsuranceCategoryApi(data: { id: number }) {
|
||||
return requestClient.post<any>(`${prefix}update-allow-insurance-category`, data);
|
||||
}
|
||||
|
||||
export async function toggleSalespersonSeePriceApi(data: { store_id: number }) {
|
||||
return requestClient.post<any>('salesperson-store-config/toggle-see-price', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单独更新 ERP ID 或 MES ID(列表快捷编辑)
|
||||
*/
|
||||
|
||||
@@ -61,6 +61,20 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
slots: { default: 'see_rate' },
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
field: 'allow_insurance_category',
|
||||
align: 'left',
|
||||
title: '医保可选',
|
||||
slots: { default: 'allow_insurance_category' },
|
||||
width: 110,
|
||||
},
|
||||
{
|
||||
field: 'salesperson_see_price',
|
||||
align: 'left',
|
||||
title: '推广员可见价格',
|
||||
slots: { default: 'salesperson_see_price' },
|
||||
width: 130,
|
||||
},
|
||||
{
|
||||
field: 'qr_code',
|
||||
align: 'left',
|
||||
|
||||
@@ -20,7 +20,9 @@ import {
|
||||
deleteStore,
|
||||
openPcWindowsApiByStore,
|
||||
openQrCodeApi,
|
||||
updateAllowInsuranceCategoryApi,
|
||||
updateClinicTypeApi,
|
||||
toggleSalespersonSeePriceApi,
|
||||
updateStoreShippingFree,
|
||||
updateStoreSeeRateStatus,
|
||||
updateStoreSubscribeStatus,
|
||||
@@ -215,6 +217,20 @@ const updateSeeRate = (id: number) => {
|
||||
});
|
||||
};
|
||||
|
||||
const updateAllowInsurance = (id: number) => {
|
||||
updateAllowInsuranceCategoryApi({ id }).then(() => {
|
||||
message.success('修改成功!');
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
|
||||
const updateSalespersonSeePrice = (storeId: number) => {
|
||||
toggleSalespersonSeePriceApi({ store_id: storeId }).then(() => {
|
||||
message.success('修改成功!');
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 批量同步总仓库药品
|
||||
*/
|
||||
@@ -440,6 +456,24 @@ const handleSwitchClinicType = (row: any) => {
|
||||
{{ Number(row.see_rate) === 1 ? '可查看' : '不可查看' }}
|
||||
</Tag>
|
||||
</template>
|
||||
<template #allow_insurance_category="{ row }">
|
||||
<Tag
|
||||
:color="Number(row.allow_insurance_category) === 1 ? 'success' : 'default'"
|
||||
style="cursor: pointer"
|
||||
@click="updateAllowInsurance(row.id)"
|
||||
>
|
||||
{{ Number(row.allow_insurance_category) === 1 ? '可选医保' : '仅自费' }}
|
||||
</Tag>
|
||||
</template>
|
||||
<template #salesperson_see_price="{ row }">
|
||||
<Tag
|
||||
:color="Number(row.salesperson_see_price) === 1 ? 'success' : 'default'"
|
||||
style="cursor: pointer"
|
||||
@click="updateSalespersonSeePrice(row.id)"
|
||||
>
|
||||
{{ Number(row.salesperson_see_price) === 1 ? '可见' : '不可见' }}
|
||||
</Tag>
|
||||
</template>
|
||||
<template #start-time="{ row }">
|
||||
早:<Tag color="success">{{ row.start_time }}</Tag>
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user