版本更新

This commit is contained in:
Zhang.WH
2025-09-03 15:54:41 +08:00
parent 0b93d16b64
commit 8f82322d10
3290 changed files with 154339 additions and 23829 deletions

View File

@@ -0,0 +1,143 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/openhis";
// 查询盘点列表
export function getStockinventoryList(query) {
return request({
url: '/inventory-manage/stocktaking/stocktaking-receipt-page',
method: 'get',
params: query
})
}
// 盘点编辑页列表
export function getstocktakingDetail(params) {
return request({
url: '/inventory-manage/stocktaking/stocktaking-receipt',
method: 'get',
params: params // 确保参数正确传递
})
}
// 添加/编辑入库单据
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: '/app-common/inventory-item-info',
method: 'get',
params: queryParams
})
}
// 获取药房列表
export function getPharmacyList() {
return request({
url: '/app-common/inventory-pharmacy-list',
// '/app-common/pharmacy-list',
method: 'get',
})
}
// 获取药库列表
export function getDispensaryList() {
return request({
url: '/app-common/inventory-cabinet-list',
// '/app-common/cabinet-list',
method: 'get',
})
}
/**
* 审批驳回
*/
export function reject(busNo) {
return request({
url: '/inventory-manage/receipt/reject?busNo=' + busNo,
method: 'put',
})
}
/**
* 盘点审批通过
*/
export function productStocktakingApproved(busNo) {
return request({
url: '/inventory-manage/receipt/product-stocktaking-approved?busNo=' + busNo,
method: 'put',
})
}

View File

@@ -0,0 +1,144 @@
<template>
<div>
<el-table
ref="medicineRef"
height="400"
:data="medicineList"
@cell-click="clickRow"
>
<el-table-column
label="项目名称"
align="center"
prop="name"
width="200"
:show-overflow-tooltip="true"
/>
<el-table-column
label="项目类型"
align="center"
prop="itemType_enumText"
:show-overflow-tooltip="true"
/>
<el-table-column
label="包装单位"
align="center"
prop="unitCode_dictText"
:show-overflow-tooltip="true"
/>
<el-table-column
label="最小单位"
align="center"
prop="minUnitCode_dictText"
:show-overflow-tooltip="true"
/>
<el-table-column label="规格"
align="center"
prop="volume"
:show-overflow-tooltip="true"
/>
<el-table-column
label="产品批号"
align="center"
prop="lotNumber"
/>
<el-table-column
label="包装单位"
align="center"
prop="unitCode_dictText"
:show-overflow-tooltip="true"
/>
<!-- <el-table-column label="用法" align="center" prop="methodCode_dictText" />
<el-table-column label="单次剂量" align="center" prop="dose" />
<el-table-column
label="剂量单位"
align="center"
prop="doseUnitCode_dictText"
/> -->
<el-table-column label="生产厂家" align="center" prop="manufacturer" />
<el-table-column
label="编码"
align="center"
prop="ybNo"
/>
</el-table>
<!-- <pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNo"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/> -->
</div>
</template>
<script setup>
import { getMedicineList } from "./api";
import { ref, watch } from "vue";
import { throttle } from "lodash-es";
const router = useRouter();
const route = useRoute();
const total = ref(0)
const props = defineProps({
searchKey: {
type: String,
default: "",
},
itemType: {
type: String,
default: "",
},
purposeLocationId:{
type: String,
default: "",
},
});
const emit = defineEmits(["selectRow"]);
const queryParams = ref({
// pageNum: 1,
// pageSize: 50,
itemType: props.itemType,
orgLocationId:props.purposeLocationId,
purchaseFlag:0
});
const medicineList = ref([]);
// 节流函数
const throttledGetList = throttle(
() => {
getList();
},
300,
{ leading: true, trailing: true }
);
watch(
() => props,
(newValue) => {
queryParams.value.searchKey = newValue.searchKey;
queryParams.value.itemType = newValue.itemType;
queryParams.value.orgLocationId=newValue.purposeLocationId;
queryParams.value.purchaseFlag = 0
throttledGetList();
},
{ immdiate: true, deep: true }
);
getList();
function getList() {
console.log(queryParams.value,"queryParams.value")
getMedicineList(queryParams.value).then((res) => {
medicineList.value = res.data.records?res.data.records:res.data
total.value = res.data.total?res.data.total:medicineList.value.length
console.log(medicineList.value,"medicineList.value ")
});
}
function clickRow(row) {
emit("selectRow", row);
}
</script>
<style scoped>
</style>