版本更新

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,18 @@
import request from '@/utils/request'
export function getPrescriptionPageInfo(queryParams) {
return request({
url: '/doctor-station/main/prescription-page-info',
method: 'get',
params: queryParams
})
}
/**
* 获取患者本次就诊处方
*/
export function getPrescriptionDetail(prescriptionNo) {
return request({
url: '/doctor-station/main/prescription-detail-info?prescriptionNo=' + prescriptionNo,
method: 'get',
})
}

View File

@@ -0,0 +1,290 @@
<template>
<div class="app-container">
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!-- v-hasPermi="['system:user:import']" -->
<el-button
type="primary"
plain
icon="Back"
@click="handleBack"
>返回列表</el-button
>
</el-col>
<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">
<el-button
type="warning"
plain
icon="CircleClose"
@click="handleClear"
>重置</el-button
>
</el-col> -->
</el-row>
<el-table
v-loading="loading"
:data="purchaseinventoryList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" align="center" />
<!-- <el-table-column label="组" align="center" width="60">
<template #default="scope">
<div v-if="groupMarkers[scope.$index] === '┏'"></div>
<div v-if="groupMarkers[scope.$index] === '┗'"></div>
<div v-if="groupMarkers[scope.$index] === '┃'"></div>
</template>
</el-table-column> -->
<el-table-column
label="处方号"
align="center"
key="prescriptionNo"
prop="prescriptionNo"
:show-overflow-tooltip="true"
/>
<el-table-column
label="请求人"
align="center"
key="requesterId_dictText"
prop="requesterId_dictText"
:show-overflow-tooltip="true"
/>
<el-table-column
label="请求时间"
align="center"
key="requestTime"
prop="requestTime"
:show-overflow-tooltip="true"
width="160px"
>
<template #default="scope">
<span>{{ parseTime(scope.row.requestTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="医嘱名称"
align="center"
key="adviceName"
prop="adviceName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="规格"
align="center"
key="volume"
prop="volume"
:show-overflow-tooltip="true"
/>
<el-table-column
label="产品批号"
align="center"
key="lotNumber"
prop="lotNumber"
:show-overflow-tooltip="true"
/>
<el-table-column label="请求数量" align="center" prop="">
<template #default="scope">
<span>
{{ scope.row.quantity ? scope.row.quantity + ' ' + scope.row.unitCode_dictText : '' }}
</span>
</template>
</el-table-column>
<!-- <el-table-column
label="请求单位"
align="center"
key="unitCode_dictText"
prop="unitCode_dictText"
:show-overflow-tooltip="true"
/> -->
<el-table-column label="请求状态" align="center" prop="" width="80">
<template #default="scope">
<el-tag v-if="scope.row.statusEnum == 2" type="success">已签发</el-tag>
<el-tag v-else-if="!scope.row.requestId && scope.row.statusEnum == 1" type="warning"
>待保存</el-tag
>
<el-tag v-else-if="scope.row.statusEnum == 1" type="primary">待签发</el-tag>
</template>
</el-table-column>
<el-table-column
label="用法"
align="center"
key="methodCode_dictText"
prop="methodCode_dictText"
:show-overflow-tooltip="true"
/>
<el-table-column
label="使用频次"
align="center"
key="rateCode_dictText"
prop="rateCode_dictText"
:show-overflow-tooltip="true"
/>
<el-table-column label="单次剂量" align="center" prop="">
<template #default="scope">
<span>
{{ scope.row.dose ? scope.row.dose + ' ' + scope.row.doseUnitCode_dictText : '' }}
</span>
</template>
</el-table-column>
<el-table-column label="总价" align="center" prop="" header-align="center" width="99">
<template #default="scope">
<span style="text-align: center">
{{ scope.row.totalPrice ? Number(scope.row.totalPrice).toFixed(2) + ' 元' : '-' }}
</span>
</template>
</el-table-column>
<el-table-column
label="收费状态"
align="center"
key="chargeStatus_enumText"
prop="chargeStatus_enumText"
:show-overflow-tooltip="true"
/>
<el-table-column label="收费状态" align="center" prop="" width="80">
<template #default="scope">
<el-tag v-if="scope.row.chargeStatus == 2" type="success">{{scope.row.chargeStatus_enumText}}</el-tag>
<el-tag v-else-if="!scope.row.requestId && scope.row.chargeStatus == 1" type="warning"
>{{scope.row.chargeStatus_enumText}}</el-tag>
<el-tag v-else-if="scope.row.statusEnum == 1" type="primary">{{scope.row.chargeStatus_enumText}}</el-tag>
</template>
</el-table-column>
<el-table-column label="发药药房/耗材房/执行科室" align="center" prop="" width="179">
<template #default="scope">
<span v-if="!scope.row.isEdit">
{{ scope.row.positionName }}
</span>
</template>
</el-table-column>
<el-table-column
label="用药天数"
align="center"
key="dispensePerDuration"
prop="dispensePerDuration"
:show-overflow-tooltip="true"
/>
<el-table-column
label="诊断定义名称"
align="center"
key="conditionDefinitionName"
prop="conditionDefinitionName"
:show-overflow-tooltip="true"
/>
</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 name="historicalPrescriptionDetail">
import {
getPrescriptionDetail
} from "./api";
const { proxy } = getCurrentInstance();
const props = defineProps({
typeDetail: {
type: String,
required: false,
},
prescriptionNo:{
type: String,
required: false,
}
});
const prescriptionNo = ref('')
const typeDetail = ref('2')
const purchaseinventoryList = ref([]);
const loading = ref(false);
const occurrenceTime = ref([])
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const supplyTypeOptions = ref(undefined);
const supplyStatusOptions = ref(undefined);
const groupMarkers = ref([]);
const data = reactive({
form: {},
queryParams: {
pageNo: 1,
pageSize: 10,
},
rules: {},
});
watch(
() => props,
(newValue) => {
typeDetail.value = newValue.typeDetail;
getList();
},
{ immdiate: true, deep: true }
);
const emits = defineEmits(['handleBack']);
const { queryParams, form, rules } = toRefs(data);
function handleBack(){
typeDetail.value = '1'
emits("handleBack", typeDetail.value);
}
/** 查询调拨管理项目列表 */
function getList() {
loading.value = true;
// props.prescriptionNo = ""
getPrescriptionDetail(props.prescriptionNo).then((res) => {
loading.value = false;
if(res.data&&res.data.length>0){
purchaseinventoryList.value = res.data
}
});
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.value.pageNo = 1;
getList();
}
/** 选择条数 */
function handleSelectionChange(selection) {
ids.value = selection.map((item) => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
}
getList()
</script>
<style scoped>
.custom-tree-node {
display: flex;
align-items: center;
}
</style>

View File

@@ -0,0 +1,238 @@
<template>
<div class="app-container">
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!-- v-hasPermi="['system:user:import']" -->
<el-button type="primary" plain icon="Back" @click="handleBack">返回列表</el-button>
</el-col>
<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">
<el-button
type="warning"
plain
icon="CircleClose"
@click="handleClear"
>重置</el-button
>
</el-col> -->
</el-row>
<div>
<div class="prescription-container">
<div>
<span>处方号</span>
<span>CF0000000001</span>
</div>
<div style="text-align: center">
<h2>长春大学医院</h2>
</div>
<div style="text-align: center">
<h3>处方单</h3>
</div>
<div style="display: flex; justify-content: space-between">
<div>
<span class="item-label">姓名</span>
<span class="item-value">张先生</span>
</div>
<div>
<span class="item-label">年龄</span>
<span class="item-value">20</span>
</div>
<div>
<span class="item-label">性别</span>
<span class="item-value"></span>
</div>
</div>
<div class="divider"></div>
<div style="display: flex; justify-content: space-between">
<div>
<span class="item-label">科室</span>
<span class="item-value">门诊内科</span>
</div>
<div>
<span class="item-label">费用性质</span>
<span class="item-value">自费</span>
</div>
<div>
<span class="item-label">日期</span>
<span class="item-value">2025-01-01</span>
</div>
</div>
<div class="divider"></div>
<div style="display: flex; justify-content: space-between">
<div>
<span class="item-label">门诊号</span>
<span class="item-value">M0000000001</span>
</div>
<div>
<span class="item-label">开单医生</span>
<span class="item-value">徐丹</span>
</div>
</div>
<div class="divider"></div>
<div style="display: flex; justify-content: space-between">
<div>
<span class="item-label">诊断</span>
<span class="item-value">感冒</span>
</div>
</div>
<div class="divider"></div>
<div style="font-size: 16px; font-weight: 700">Rp</div>
<div class="medicen-list">
<div>
<span>1.</span>
<span>罗红霉素分散片</span>
<span>1mg</span>
<span>1</span>
<span>批次号 202500000001</span>
</div>
<div>
<span>用法</span>
<span>口服一次1片一天</span>
</div>
</div>
<div class="divider"></div>
<div style="display: flex; justify-content: space-between">
<div>
<span class="item-label">医师</span>
<span class="item-value">徐丹</span>
</div>
<div>
<span class="item-label">收费</span>
<span class="item-value"></span>
</div>
<div>
<span class="item-label">合计</span>
<span class="item-value">徐丹</span>
</div>
</div>
<div style="display: flex; justify-content: space-between">
<div>
<span class="item-label">调配</span>
<span class="item-value">徐丹</span>
</div>
<div>
<span class="item-label">核对</span>
<span class="item-value"></span>
</div>
<div>
<span class="item-label">发药</span>
<span class="item-value">徐丹</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup name="historicalPrescriptionDetail">
import { getPrescriptionDetail } from './api';
const { proxy } = getCurrentInstance();
const props = defineProps({
typeDetail: {
type: String,
required: false,
},
prescriptionNo: {
type: String,
required: false,
},
});
const prescriptionNo = ref('');
const typeDetail = ref('2');
const purchaseinventoryList = ref([]);
const loading = ref(false);
const occurrenceTime = ref([]);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const supplyTypeOptions = ref(undefined);
const supplyStatusOptions = ref(undefined);
const groupMarkers = ref([]);
const data = reactive({
form: {},
queryParams: {
pageNo: 1,
pageSize: 10,
},
rules: {},
});
watch(
() => props,
(newValue) => {
typeDetail.value = newValue.typeDetail;
getList();
},
{ immdiate: true, deep: true }
);
const emits = defineEmits(['handleBack']);
const { queryParams, form, rules } = toRefs(data);
function handleBack() {
typeDetail.value = '1';
emits('handleBack', typeDetail.value);
}
/** 查询调拨管理项目列表 */
function getList() {
loading.value = true;
// props.prescriptionNo = ""
getPrescriptionDetail(props.prescriptionNo).then((res) => {
loading.value = false;
if (res.data && res.data.length > 0) {
purchaseinventoryList.value = res.data;
}
});
}
/** 搜索按钮操作 */
function handleQuery() {
queryParams.value.pageNo = 1;
getList();
}
/** 选择条数 */
function handleSelectionChange(selection) {
ids.value = selection.map((item) => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
}
getList();
</script>
<style scoped>
.prescription-container {
height: 650px;
width: 500px;
border: solid 2px #757575;
font-size: 13px;
padding: 10px;
}
.divider {
height: 2px;
background-color: #757575;
margin: 5px 0 5px 0;
}
.medicen-list {
height: 330px;
}
.item-label {
width: 70px;
text-align: left;
font-weight: 700;
color: #000000;
display: inline-block;
}
.item-value {
color: #393a3b;
font-weight: 500;
width: 80px;
display: inline-block;
}
</style>

View File

@@ -0,0 +1,304 @@
<template>
<div class="app-container" v-loading="loadingcontainer" v-if="typeDetail == '1'">
<el-form
:model="queryParams"
ref="earlyWarningRef"
:inline="true"
:rules="rules"
label-width="200px"
>
<el-form-item label="处方号/病人名称/开方医生:" prop="searchKey">
<el-input
v-model="queryParams.searchKey"
placeholder="可按处方号/病人名称/开方医生查询"
clearable
style="width: 260px"
/>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<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-row>
<el-table
v-loading="loading"
:data="purchaseinventoryList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" align="center" />
<el-table-column
label="处方号"
align="center"
key="prescriptionNo"
prop="prescriptionNo"
:show-overflow-tooltip="true"
/>
<el-table-column
label="患者"
align="center"
key="patientName"
prop="patientName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="疾病诊断"
align="center"
key="conditionDefinitionName"
prop="conditionDefinitionName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="修改时间"
align="center"
key="requestTime"
prop="requestTime"
:show-overflow-tooltip="true"
>
<template #default="scope">
<span>{{ parseTime(scope.row.requestTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="开方医生"
align="center"
key="practitionerName"
prop="practitionerName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="操作"
align="center"
fixed="right"
class-name="small-padding fixed-width"
>
<template #default="scope">
<el-button link type="primary" icon="View" @click="viewDetails(scope.row)"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
v-model:page="queryParams.pageNo"
v-model:limit="queryParams.pageSize"
@pagination="getList"
/>
</div>
<!-- <historicalPrescriptionDetail
v-loading="loadingcontainer"
v-else
@handleBack="handleBack"
:typeDetail="typeDetail"
:prescriptionNo="prescriptionNo"
/> -->
<Prescription v-else />
</template>
<script setup name="historicalPrescription">
import { ref } from 'vue';
import { getPrescriptionPageInfo } from './component/api';
import historicalPrescriptionDetail from './component/details.vue';
import Prescription from './component/prescription.vue';
const { proxy } = getCurrentInstance();
const { item_type } = proxy.useDict('item_type');
const prescriptionNo = ref('');
const typeDetail = ref('1');
const purchaseinventoryList = ref([]);
const loading = ref(false);
const loadingcontainer = ref(false);
const occurrenceTime = ref([]);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const supplyTypeOptions = ref(undefined);
const supplyStatusOptions = ref(undefined);
const data = reactive({
form: {},
queryParams: {
pageNo: 1,
pageSize: 10,
searchKey: undefined,
categoryCode: undefined,
remainingMonth: undefined,
expirationDateSTime: undefined,
expirationDateETime: undefined,
},
rules: {},
});
const { queryParams, form, rules } = toRefs(data);
function handleBack(val) {
loadingcontainer.value = true;
typeDetail.value = val;
setTimeout(() => {
loadingcontainer.value = false;
}, 800);
}
function viewDetails(row) {
loadingcontainer.value = true;
prescriptionNo.value = row.prescriptionNo;
console.log(row.prescriptionNo, prescriptionNo.value, '详情');
typeDetail.value = '2';
setTimeout(() => {
loadingcontainer.value = false;
}, 700);
}
/** 查询调拨管理项目列表 */
function getList() {
loading.value = true;
getPrescriptionPageInfo(queryParams.value).then((res) => {
loading.value = false;
// res = {
// "code": 200,
// "msg": "操作成功",
// "data": {
// "records": [
// {
// "prescriptionNo": "PCN00000029",
// "encounterId": "1937393559205539842",
// "patientId": "1937393514477481986",
// "patientName": "龙傲天",
// "conditionDefinitionName": "感冒",
// "requestTime": "2025-06-24 17:05:36",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000028",
// "encounterId": "1937393559205539842",
// "patientId": "1937393514477481986",
// "patientName": "龙傲天",
// "conditionDefinitionName": "感冒",
// "requestTime": "2025-06-24 17:02:18",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000027",
// "encounterId": "1937393559205539842",
// "patientId": "1937393514477481986",
// "patientName": "龙傲天",
// "conditionDefinitionName": "感冒",
// "requestTime": "2025-06-24 14:25:21",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000023",
// "encounterId": "1937393559205539842",
// "patientId": "1937393514477481986",
// "patientName": "龙傲天",
// "conditionDefinitionName": "感冒",
// "requestTime": "2025-06-24 14:14:26",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000022",
// "encounterId": "1937113899091587074",
// "patientId": "1937066626118815745",
// "patientName": "就诊卡",
// "conditionDefinitionName": "肾痨",
// "requestTime": "2025-06-24 14:05:18",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000004",
// "encounterId": "1935570184300519426",
// "patientId": "1935541163105837058",
// "patientName": "孙嘉琦",
// "conditionDefinitionName": "眼科杂病",
// "requestTime": "2025-06-19 16:24:47",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000003",
// "encounterId": "1935570184300519426",
// "patientId": "1935541163105837058",
// "patientName": "孙嘉琦",
// "conditionDefinitionName": "眼科杂病",
// "requestTime": "2025-06-19 16:24:47",
// "practitionerName": "李辉"
// },
// {
// "prescriptionNo": "PCN00000002",
// "encounterId": "1935570184300519426",
// "patientId": "1935541163105837058",
// "patientName": "孙嘉琦",
// "conditionDefinitionName": "眼科杂病",
// "requestTime": "2025-06-19 14:40:05",
// "practitionerName": "李辉"
// }
// ],
// "total": 8,
// "size": 10,
// "current": 1,
// "orders": [],
// "optimizeCountSql": true,
// "searchCount": true,
// "maxLimit": null,
// "countId": null,
// "pages": 1
// }
// }
purchaseinventoryList.value = res.data.records;
total.value = res.data.total;
});
}
/** 搜索按钮操作 */
function handleQuery() {
// proxy.$refs['earlyWarningRef'].validate((valid) => {
// if (valid) {
queryParams.value.expirationDateSTime =
occurrenceTime.value && occurrenceTime.value.length == 2
? occurrenceTime.value[0] + ' 00:00:00'
: '';
queryParams.value.expirationDateETime =
occurrenceTime.value && occurrenceTime.value.length == 2
? occurrenceTime.value[1] + ' 23:59:59'
: '';
queryParams.value.pageNo = 1;
getList();
// }
// })
}
/** 清空条件按钮操作 */
function handleClear() {
// 清空查询条件
queryParams.value.expirationDateSTime = '';
queryParams.value.expirationDateETime = '';
occurrenceTime.value = '';
proxy.resetForm('earlyWarningRef');
getList();
}
/** 选择条数 */
function handleSelectionChange(selection) {
ids.value = selection.map((item) => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
}
getList();
</script>
<style scoped>
.custom-tree-node {
display: flex;
align-items: center;
}
</style>