Files
his/backup/vxetable-migration-20260602/medicationmanagement/statisticalManagement/medicationStockOutDetails.vue
华佗 1d21661a78 feat: Spring Boot 3.5.14 全量升级 + 组件升级
核心升级:
- Spring Boot 2.7.18 → 3.5.14
- MyBatis Plus 3.5.5 → 3.5.16 (spring-boot3-starter)
- Springdoc 1.8.0 → 2.8.6 (OpenAPI 3)
- Flowable 6.8.0 → 7.1.0
- Druid 1.2.x → 1.2.28 (boot3-starter)
- kotlin-reflect 1.9.10 → 1.9.25

迁移适配:
- javax → jakarta 命名空间 (620+ 文件)
- Swagger 注解迁移到 OpenAPI 3 (@Tag/@Schema/@Operation/@Parameter)
- Spring Security 6.2 适配 (antMatchers→requestMatchers, EnableMethodSecurity)
- Druid 包名迁移 (boot→boot3)
- Redis 配置路径迁移 (spring.redis→spring.data.redis)
- Flyway 适配 (flyway-database-postgresql)
- Flowable 7.x 适配 (MULE_TASK_IMAGE 移除)

修复:
- spring-boot-maven-plugin 2.5.15→3.5.14 (SPI服务发现失效)
- mybatis-plus-boot-starter 3.5.5→3.5.16 (kotlin-reflect+fastjson2冲突)
- Flowable database-schema-update 启用自动建表

验证: 23/23 测试通过, 1374 API端点正常
2026-06-04 22:39:49 +08:00

279 lines
6.9 KiB
Vue
Executable File

<template>
<div class="app-container">
<el-form
ref="queryRef"
:model="queryParams"
:inline="true"
label-width="100px"
>
<el-form-item
label="源仓库:"
prop="sourceLocationId"
label-width="80px"
>
<el-select
v-model="queryParams.sourceLocationId"
placeholder="请选择源仓库"
clearable
style="width: 150px"
>
<el-option
v-for="supplyStatus in locationIdList"
:key="supplyStatus.value"
:label="supplyStatus.name"
:value="supplyStatus.id"
/>
</el-select>
</el-form-item>
<el-form-item
label="目的仓库:"
prop="purposeLocationId"
label-width="100px"
>
<el-select
v-model="queryParams.purposeLocationId"
placeholder="请选择目的仓库"
clearable
style="width: 150px"
>
<el-option
v-for="supplyStatus in locationIdList"
:key="supplyStatus.value"
:label="supplyStatus.name"
:value="supplyStatus.id"
/>
</el-select>
</el-form-item>
<el-form-item label="制单日期:">
<el-date-picker
v-model="occurrenceTime"
type="daterange"
start-placeholder="开始日期"
end-placeholder="结束日期"
style="width: 300px"
value-format="YYYY-MM-DD"
/>
</el-form-item>
</el-form>
<el-row
:gutter="10"
style="margin-left: 20px; margin-right: 0px; margin-bottom: 5px"
>
<el-col :span="1.5">
<!-- v-hasPermi="['system:user:import']" -->
<el-button
type="primary"
plain
icon="Search"
@click="handleQuery"
>
查询
</el-button>
</el-col>
<el-col :span="1.5">
<!-- v-hasPermi="['system:user:export']" -->
<el-button
type="warning"
plain
icon="CircleClose"
@click="handleClear"
>
重置
</el-button>
</el-col>
<el-col :span="1.5">
<!-- v-hasPermi="['system:user:export']" -->
<el-button
type="warning"
plain
icon="Download"
@click="handleExport"
>
导出
</el-button>
</el-col>
</el-row>
<el-table
v-loading="loading"
:data="medicationStockOutDetailsList"
height="calc(100vh - 300px)"
@selection-change="handleSelectionChange"
>
<el-table-column
type="selection"
width="50"
align="center"
/>
<el-table-column
key="medinsCode"
label="医疗机构代码"
align="center"
prop="medinsCode"
width="220"
:show-overflow-tooltip="true"
/>
<!-- itemTable -->
<el-table-column
key="orgCode"
label="组织机构名称"
align="center"
prop="orgCode"
width="220"
:show-overflow-tooltip="true"
/>
<el-table-column
key="nationalMedicineCode"
label="国家药品编码(YPID)"
align="center"
prop="nationalMedicineCode"
width="220"
:show-overflow-tooltip="true"
/>
<el-table-column
key="busNo"
label="院内药品唯一码"
align="center"
prop="busNo"
width="220"
:show-overflow-tooltip="true"
/>
<el-table-column
key="provincialMedicineConcentratedCode"
label="省级药品集中采购平台药品编码"
align="center"
prop="provincialMedicineConcentratedCode"
width="220"
:show-overflow-tooltip="true"
/>
<el-table-column
key="productName"
label="产品名称"
align="center"
prop="productName"
width="220"
:show-overflow-tooltip="true"
/>
<el-table-column
key="totalQuantity"
label="出库数量"
align="center"
prop="totalQuantity"
:show-overflow-tooltip="true"
width="220"
/>
<el-table-column
key="minUnit"
label="单位"
align="center"
prop="minUnit"
:show-overflow-tooltip="true"
width="220"
/>
</el-table>
<pagination
v-show="total > 0"
v-model:page="queryParams.pageNo"
v-model:limit="queryParams.pageSize"
:total="total"
@pagination="getList"
/>
</div>
</template>
<script setup name="medicationStockOutDetails">
import {getPharmacyCabinetList, getReportMedicationStockOutDetails,} from './statisticalManagent';
import {ElMessage} from 'element-plus';
const { proxy } = getCurrentInstance();
const medicationStockOutDetailsList = ref([]);
const loading = ref(false);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const approvalTime = ref([]);
const supplierListOptions = ref([]);
const locationIdList = ref([]);
const occurrenceTime = ref([]);
const data = reactive({
form: {},
queryParams: {
pageNo: 1,
pageSize: 10,
searchKey: undefined,
sourceLocationId:undefined,
purposeLocationId:undefined,
occurrenceTimeSTime: undefined,
occurrenceTimeETime: undefined,
},
rules: {},
});
const { queryParams, form, rules } = toRefs(data);
function getList() {
if(queryParams.value.sourceLocationId==null||
queryParams.value.purposeLocationId==null||
queryParams.value.occurrenceTimeSTime==null||
queryParams.value.occurrenceTimeETime==null){
ElMessage.warning("请构建完整的查询条件");
}else{
loading.value = true;
getReportMedicationStockOutDetails(queryParams.value).then((res) => {
loading.value = false;
medicationStockOutDetailsList.value = res.data.records;
total.value = res.data.total;
});}
}
function getPharmacyCabinetLists() {
getPharmacyCabinetList().then((response) => {
locationIdList.value = response.data
});
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.value.occurrenceTimeSTime =
occurrenceTime.value && occurrenceTime.value.length == 2
? occurrenceTime.value[0]
: "";
queryParams.value.occurrenceTimeETime =
occurrenceTime.value && occurrenceTime.value.length == 2
? occurrenceTime.value[1]
: "";
getList();
}
function handleClear() {
// 清空查询条件
occurrenceTime.value = '';
proxy.resetForm('queryRef');
medicationStockOutDetailsList.value = [];
total.value = 0;
}
// 导出
function handleExport() {
proxy.downloadGet(
'/report-manage/report/excel-out/2',
{
...queryParams.value,
},
`药品调拨详情_${proxy.formatDateStr(new Date(), 'YYYY-MM-DD')}.xlsx`
);
}
// getList();
getPharmacyCabinetLists();
</script>
<style scoped>
.custom-tree-node {
display: flex;
align-items: center;
}
.title {
font-weight: bold;
font-size: large;
margin-bottom: 10px;
}
</style>