更新
This commit is contained in:
@@ -1656,6 +1656,7 @@ async function submitCreateOrderFromPrescription() {
|
||||
const orderNo = row?.order_no
|
||||
feedback.msgSuccess(orderNo ? `业务订单已创建,单号:${orderNo}` : '业务订单已创建')
|
||||
createOrderVisible.value = false
|
||||
getLists()
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
} finally {
|
||||
|
||||
@@ -8,6 +8,43 @@
|
||||
</div>
|
||||
</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-form class="ls-form" :model="queryParams" inline>
|
||||
<el-form-item class="w-[260px]" label="订单号">
|
||||
@@ -1587,9 +1624,33 @@ const loadServicePackageOptions = async () => {
|
||||
const queryParams = reactive({
|
||||
order_no: '',
|
||||
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>) {
|
||||
const p: Record<string, unknown> = { ...params }
|
||||
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) {
|
||||
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
|
||||
return prescriptionOrderLists(p)
|
||||
}
|
||||
@@ -1613,6 +1680,8 @@ function handleReset() {
|
||||
queryParams.order_no = ''
|
||||
queryParams.prescription_id = ''
|
||||
queryParams.fulfillment_status = ''
|
||||
queryParams.prescription_audit_status = ''
|
||||
queryParams.payment_slip_audit_status = ''
|
||||
resetParams()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user