核心升级: - 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端点正常
131 lines
2.8 KiB
JavaScript
Executable File
131 lines
2.8 KiB
JavaScript
Executable File
import request from '@/utils/request'
|
|
|
|
// 查询盘点列表
|
|
export function getStockinventoryList(query) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/stocktaking-receipt-page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 盘点编辑页列表
|
|
export function getstocktakingDetail(busNo) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/stocktaking-receipt',
|
|
method: 'get',
|
|
params: { busNo } // 确保参数正确传递
|
|
})
|
|
}
|
|
|
|
// 添加/编辑入库单据
|
|
export function addProductStocktaking(data) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/product-stocktaking',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 查询盘点列表初始化查询区数据
|
|
export function getInit() {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/init',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 查询盘点详情初始化查询区数据
|
|
export function getDetailInit() {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/detail-init',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 生成批量盘点
|
|
export function getStocktakingReceiptBatch(params) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/stocktaking-receipt-batch',
|
|
method: 'get',
|
|
params: params
|
|
})
|
|
}
|
|
//保存批量盘点
|
|
export function addBatch(data) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/stocktaking-receipt-addBatch',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除单据
|
|
export function delProductStocktaking(param) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/product-stocktaking?supplyRequestIds=' + param,
|
|
method: 'delete',
|
|
})
|
|
}
|
|
|
|
// 提交审批
|
|
export function submitApproval(busNo) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/submit-approval',
|
|
method: 'put',
|
|
data: { busNo } // 修复:发送对象而不是字符串
|
|
})
|
|
}
|
|
|
|
// 撤回审批
|
|
export function withdrawApproval(busNo) {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/withdraw-approval',
|
|
method: 'put',
|
|
data: { busNo } // 修复:发送对象而不是字符串
|
|
})
|
|
}
|
|
|
|
// 获取药品目录
|
|
export function getMedicineList(queryParams) {
|
|
return request({
|
|
url: '/app-common/inventory-item',
|
|
method: 'get',
|
|
params: queryParams
|
|
})
|
|
}
|
|
|
|
// 获取药品目录
|
|
export function getCount(queryParams) {
|
|
return request({
|
|
url: '/inventory-manage/purchase/inventory-item-info',
|
|
method: 'get',
|
|
params: queryParams
|
|
})
|
|
}
|
|
|
|
// 获取药房列表
|
|
export function getPharmacyList() {
|
|
return request({
|
|
url: '/app-common/pharmacy-list',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 获取药库列表
|
|
export function getDispensaryList() {
|
|
return request({
|
|
url: '/app-common/cabinet-list',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function stocktakingReceiptAuto() {
|
|
return request({
|
|
url: '/inventory-manage/stocktaking/stocktaking-receipt-auto',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|