|
|
@@ -5,7 +5,7 @@
|
|
|
<div class="flex justify-between my-4">
|
|
|
<XTTab
|
|
|
type="illness"
|
|
|
- :width="158"
|
|
|
+ :width="170"
|
|
|
:selected="activeKey"
|
|
|
:data="tabData"
|
|
|
@item-click="callTab"
|
|
|
@@ -14,9 +14,9 @@
|
|
|
</div>
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
- <template v-if="column.key === 'name'">
|
|
|
+ <template v-if="column.key === 'patientName'">
|
|
|
<span :class="['table-dot', 'table-dot--' + record.status]" />
|
|
|
- <span>{{ record.name }}</span>
|
|
|
+ <span>{{ record.patientName }}</span>
|
|
|
</template>
|
|
|
<template v-if="column.key === 'patientGender'">
|
|
|
<span
|
|
|
@@ -82,17 +82,17 @@
|
|
|
<TableAction
|
|
|
:actions="[
|
|
|
{
|
|
|
- auth: 'sys:log:query',
|
|
|
+ auth: 'bed:scheduledPerson:edit',
|
|
|
icon: 'icon-xt-details_edit_default|iconfont',
|
|
|
tooltip: '编辑',
|
|
|
onClick: handleEdit.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
- auth: 'sys:log:query',
|
|
|
+ auth: 'bed:scheduledPerson:query',
|
|
|
disabled: !record.frequency,
|
|
|
icon: 'icon-xt-bed_default|iconfont',
|
|
|
tooltip: '排班',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
+ onClick: handleDetail.bind(null, record),
|
|
|
},
|
|
|
// {
|
|
|
// auth: 'sys:log:query',
|
|
|
@@ -111,6 +111,7 @@
|
|
|
</BasicTable>
|
|
|
</div>
|
|
|
<FormModal @register="registerModal" @success="callSuccess" />
|
|
|
+ <FormModalDetail @register="registerModalDetail" @success="callSuccess" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -131,6 +132,7 @@
|
|
|
import { onMounted, reactive } from 'vue';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import FormModal from './FormModal.vue';
|
|
|
+ import FormModalDetail from './FormModalDetail.vue';
|
|
|
// import { useMessage } from '@/hooks/web/useMessage';
|
|
|
const bizDictOptions = reactive<any>({});
|
|
|
const bizDictData = ref([
|
|
|
@@ -141,6 +143,7 @@
|
|
|
const activeKey = ref(BasicTabActive);
|
|
|
const tabData = ref(BasicTab);
|
|
|
const [registerModal, { openModal }] = useModal();
|
|
|
+ const [registerModalDetail, { openModal: openModalDetail }] = useModal();
|
|
|
// const { createMessage } = useMessage();
|
|
|
|
|
|
onMounted(async () => {
|
|
|
@@ -209,7 +212,7 @@
|
|
|
function handleBeforeFetch(params) {
|
|
|
return {
|
|
|
...params,
|
|
|
- // queryType: activeKey.value == '0' ? '0' : activeKey.value,
|
|
|
+ queryType: activeKey.value == '0' ? '0' : activeKey.value,
|
|
|
patientName: formValue.patientName,
|
|
|
orders: [{ field: formValue.tableSort, direction: 'DESC' }],
|
|
|
};
|
|
|
@@ -242,6 +245,13 @@
|
|
|
record,
|
|
|
});
|
|
|
}
|
|
|
+ function handleDetail(record: Recordable) {
|
|
|
+ console.log('🚀 ~ file: index.vue:206 ~ handleView ~ record:', record);
|
|
|
+ record.gender = formatDictValue(bizDictOptions.gender, record.patientGender);
|
|
|
+ openModalDetail(true, {
|
|
|
+ record,
|
|
|
+ });
|
|
|
+ }
|
|
|
// 删除按钮事件
|
|
|
// async function handleDelete(record: Recordable) {
|
|
|
// await bedScheduledPersonRemove([record.id]);
|