style(flowable): 优化流程相关代码的import顺序和代码结构

This commit is contained in:
2025-12-30 15:34:43 +08:00
parent d1670b79a0
commit b567747901
6 changed files with 25 additions and 29 deletions

View File

@@ -198,8 +198,9 @@
============================================ */ ============================================ */
.pagination-container { .pagination-container {
margin-top: 16px; margin-top: 16px;
padding: 0 8px; padding: 0;
text-align: right; text-align: right;
background-color: transparent;
.el-pagination { .el-pagination {
.el-pager li { .el-pager li {

View File

@@ -96,8 +96,8 @@ function handleCurrentChange(val) {
<style scoped> <style scoped>
.pagination-container { .pagination-container {
background: #fff; background: transparent;
padding: 32px 16px; padding: 0;
} }
.pagination-container.hidden { .pagination-container.hidden {
display: none; display: none;

View File

@@ -802,7 +802,7 @@ export function getTestResult(queryParams) {
*/ */
export function getInspectionApplicationList(queryParams) { export function getInspectionApplicationList(queryParams) {
return request({ return request({
url: '/doctor-station/inspection/application-list', url: '/reg-doctorstation/request-form/get-inspection',
method: 'get', method: 'get',
params: queryParams, params: queryParams,
}); });

View File

@@ -587,18 +587,21 @@ function initData() {
formData.departmentName = props.patientInfo.departmentName || '' formData.departmentName = props.patientInfo.departmentName || ''
formData.doctorName = props.patientInfo.doctorName || '' formData.doctorName = props.patientInfo.doctorName || ''
} }
getInspectionList() // 只有在存在 encounterId 时才调用接口
if (queryParams.encounterId) {
getInspectionList()
}
} }
// 获取检验申请单列表 // 获取检验申请单列表
function getInspectionList() { function getInspectionList() {
loading.value = true loading.value = true
// 调用真实的API // 调用真实的API,只传递 encounterId 参数
getInspectionApplicationList(queryParams.value).then((res) => { getInspectionApplicationList({ encounterId: queryParams.encounterId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
inspectionList.value = res.data.records || [] inspectionList.value = res.data || []
total.value = res.data.total || 0 total.value = res.data?.length || 0
} else { } else {
inspectionList.value = [] inspectionList.value = []
total.value = 0 total.value = 0

View File

@@ -1106,7 +1106,7 @@ onMounted(() => {
document.addEventListener('keydown', escKeyListener); document.addEventListener('keydown', escKeyListener);
// 初始化时自动创建第一个西药处方 // 初始化时自动创建第一个西药处方
if (westernPrescriptions.value.length === 0) { if (westernPrescriptions.value.length === 0) {
handleAddWesternPrescription(); handleAddPrescription();
} }
}); });

View File

@@ -129,17 +129,17 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<!-- 分页 --> <!-- 分页 -->
<div class="pagination-container"> <div class="pagination-container">
<pagination <pagination
v-show="total > 0" v-show="total > 0"
:total="total" :total="total"
v-model:page="queryParams.pageNum" v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize" v-model:limit="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
</div>
</div> </div>
<!-- 添加或修改公告对话框 --> <!-- 添加或修改公告对话框 -->
@@ -192,15 +192,7 @@
</template> </template>
<script setup name="Notice"> <script setup name="Notice">
import { import { listNotice, getNotice, delNotice, addNotice, updateNotice, publishNotice, unpublishNotice } from "@/api/system/notice";
addNotice,
delNotice,
getNotice,
listNotice,
publishNotice,
unpublishNotice,
updateNotice
} from "@/api/system/notice";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const { sys_notice_status, sys_notice_type } = proxy.useDict("sys_notice_status", "sys_notice_type"); const { sys_notice_status, sys_notice_type } = proxy.useDict("sys_notice_status", "sys_notice_type");