更新
This commit is contained in:
@@ -1656,6 +1656,7 @@ async function submitCreateOrderFromPrescription() {
|
|||||||
const orderNo = row?.order_no
|
const orderNo = row?.order_no
|
||||||
feedback.msgSuccess(orderNo ? `业务订单已创建,单号:${orderNo}` : '业务订单已创建')
|
feedback.msgSuccess(orderNo ? `业务订单已创建,单号:${orderNo}` : '业务订单已创建')
|
||||||
createOrderVisible.value = false
|
createOrderVisible.value = false
|
||||||
|
getLists()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -8,6 +8,43 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<el-card class="!border-none shadow-sm mb-4" shadow="never">
|
||||||
|
<div class="flex flex-col gap-3">
|
||||||
|
<div class="flex items-center gap-2 flex-wrap">
|
||||||
|
<span class="text-gray-500 text-sm font-medium w-20 shrink-0">处方审核</span>
|
||||||
|
<div
|
||||||
|
v-for="tab in rxAuditTabs"
|
||||||
|
:key="tab.value"
|
||||||
|
:class="[
|
||||||
|
'px-4 py-1.5 rounded-lg cursor-pointer transition-all duration-200 select-none text-sm',
|
||||||
|
queryParams.prescription_audit_status === tab.value
|
||||||
|
? 'bg-primary text-white shadow-md'
|
||||||
|
: 'bg-gray-50 text-gray-600 hover:bg-gray-100'
|
||||||
|
]"
|
||||||
|
@click="handleRxAuditTabClick(tab.value)"
|
||||||
|
>
|
||||||
|
<span class="font-medium">{{ tab.label }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-2 flex-wrap">
|
||||||
|
<span class="text-gray-500 text-sm font-medium w-20 shrink-0">支付单审核</span>
|
||||||
|
<div
|
||||||
|
v-for="tab in payAuditTabs"
|
||||||
|
:key="tab.value"
|
||||||
|
:class="[
|
||||||
|
'px-4 py-1.5 rounded-lg cursor-pointer transition-all duration-200 select-none text-sm',
|
||||||
|
queryParams.payment_slip_audit_status === tab.value
|
||||||
|
? 'bg-primary text-white shadow-md'
|
||||||
|
: 'bg-gray-50 text-gray-600 hover:bg-gray-100'
|
||||||
|
]"
|
||||||
|
@click="handlePayAuditTabClick(tab.value)"
|
||||||
|
>
|
||||||
|
<span class="font-medium">{{ tab.label }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
<el-card class="!border-none po-filter-card shadow-sm" shadow="never">
|
<el-card class="!border-none po-filter-card shadow-sm" shadow="never">
|
||||||
<el-form class="ls-form" :model="queryParams" inline>
|
<el-form class="ls-form" :model="queryParams" inline>
|
||||||
<el-form-item class="w-[260px]" label="订单号">
|
<el-form-item class="w-[260px]" label="订单号">
|
||||||
@@ -1587,9 +1624,33 @@ const loadServicePackageOptions = async () => {
|
|||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
order_no: '',
|
order_no: '',
|
||||||
prescription_id: '' as string | number,
|
prescription_id: '' as string | number,
|
||||||
fulfillment_status: '' as number | ''
|
fulfillment_status: '' as number | '',
|
||||||
|
prescription_audit_status: '' as number | '',
|
||||||
|
payment_slip_audit_status: '' as number | ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const rxAuditTabs = [
|
||||||
|
{ label: '全部', value: '' as number | '' },
|
||||||
|
{ label: '待审核', value: 0 },
|
||||||
|
{ label: '已通过', value: 1 },
|
||||||
|
{ label: '已驳回', value: 2 }
|
||||||
|
]
|
||||||
|
const payAuditTabs = [
|
||||||
|
{ label: '全部', value: '' as number | '' },
|
||||||
|
{ label: '待审核', value: 0 },
|
||||||
|
{ label: '已通过', value: 1 },
|
||||||
|
{ label: '已驳回', value: 2 }
|
||||||
|
]
|
||||||
|
|
||||||
|
function handleRxAuditTabClick(val: number | '') {
|
||||||
|
queryParams.prescription_audit_status = val
|
||||||
|
resetPage()
|
||||||
|
}
|
||||||
|
function handlePayAuditTabClick(val: number | '') {
|
||||||
|
queryParams.payment_slip_audit_status = val
|
||||||
|
resetPage()
|
||||||
|
}
|
||||||
|
|
||||||
async function fetchLists(params: Record<string, unknown>) {
|
async function fetchLists(params: Record<string, unknown>) {
|
||||||
const p: Record<string, unknown> = { ...params }
|
const p: Record<string, unknown> = { ...params }
|
||||||
if (p.prescription_id === '' || p.prescription_id === undefined) {
|
if (p.prescription_id === '' || p.prescription_id === undefined) {
|
||||||
@@ -1600,6 +1661,12 @@ async function fetchLists(params: Record<string, unknown>) {
|
|||||||
if (p.fulfillment_status === '' || p.fulfillment_status === undefined) {
|
if (p.fulfillment_status === '' || p.fulfillment_status === undefined) {
|
||||||
delete p.fulfillment_status
|
delete p.fulfillment_status
|
||||||
}
|
}
|
||||||
|
if (p.prescription_audit_status === '' || p.prescription_audit_status === undefined) {
|
||||||
|
delete p.prescription_audit_status
|
||||||
|
}
|
||||||
|
if (p.payment_slip_audit_status === '' || p.payment_slip_audit_status === undefined) {
|
||||||
|
delete p.payment_slip_audit_status
|
||||||
|
}
|
||||||
if (!p.order_no) delete p.order_no
|
if (!p.order_no) delete p.order_no
|
||||||
return prescriptionOrderLists(p)
|
return prescriptionOrderLists(p)
|
||||||
}
|
}
|
||||||
@@ -1613,6 +1680,8 @@ function handleReset() {
|
|||||||
queryParams.order_no = ''
|
queryParams.order_no = ''
|
||||||
queryParams.prescription_id = ''
|
queryParams.prescription_id = ''
|
||||||
queryParams.fulfillment_status = ''
|
queryParams.fulfillment_status = ''
|
||||||
|
queryParams.prescription_audit_status = ''
|
||||||
|
queryParams.payment_slip_audit_status = ''
|
||||||
resetParams()
|
resetParams()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class PrescriptionOrderLists extends BaseAdminDataLists implements ListsSearchIn
|
|||||||
public function setSearch(): array
|
public function setSearch(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'=' => ['prescription_id', 'fulfillment_status'],
|
'=' => ['prescription_id', 'fulfillment_status', 'prescription_audit_status', 'payment_slip_audit_status'],
|
||||||
'%like%' => ['order_no'],
|
'%like%' => ['order_no'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user