更新
This commit is contained in:
@@ -22,6 +22,23 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item class="w-[280px]" label="医助">
|
||||
<el-select
|
||||
v-model="queryParams.assistant_id"
|
||||
placeholder="全部医助"
|
||||
clearable
|
||||
filterable
|
||||
class="w-full"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in assistantOptions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="Number(item.id)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item class="w-[280px]" label="订单类型">
|
||||
<el-select v-model="queryParams.order_type" placeholder="请选择" clearable>
|
||||
<el-option label="挂号费" :value="1" />
|
||||
@@ -523,6 +540,7 @@
|
||||
<script setup lang="ts" name="orderList">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { orderLists, orderDetail, orderPay, orderCancel, orderDelete, orderRefund, orderExport, orderCreate, orderCreateForWechatWork, orderEdit, orderTodayRevenue, syncWechatWorkBills, syncWechatWorkBillsDebug, searchPatients as searchPatientsAPI, alipayPay, wechatPay } from '@/api/order'
|
||||
import { getAssistants } from '@/api/tcm'
|
||||
import { generateOrderQrcode } from '@/api/tcm'
|
||||
import { Loading } from '@element-plus/icons-vue'
|
||||
import feedback from '@/utils/feedback'
|
||||
@@ -530,6 +548,7 @@ import feedback from '@/utils/feedback'
|
||||
const queryParams = reactive({
|
||||
order_no: '',
|
||||
patient_keyword: '',
|
||||
assistant_id: undefined as number | undefined,
|
||||
order_type: '',
|
||||
status: '',
|
||||
patient_association: '' as '' | 'pending' | 'associated',
|
||||
@@ -537,6 +556,8 @@ const queryParams = reactive({
|
||||
create_time_end: ''
|
||||
})
|
||||
|
||||
const assistantOptions = ref<Array<{ id: number; name: string }>>([])
|
||||
|
||||
const patientAssociationTab = ref<'' | 'pending' | 'associated'>('')
|
||||
const todayRevenue = ref({ amount: '0.00', count: 0 })
|
||||
|
||||
@@ -1049,7 +1070,17 @@ const handleOrderQrcodeRefresh = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const loadAssistantOptions = async () => {
|
||||
try {
|
||||
const list = await getAssistants()
|
||||
assistantOptions.value = Array.isArray(list) ? list : []
|
||||
} catch {
|
||||
assistantOptions.value = []
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadAssistantOptions()
|
||||
getLists()
|
||||
fetchTodayRevenue()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user