fix(#591): 请修复 Bug #591:【住院医生站-临床医嘱】长期医嘱点击停嘱未弹出时间录入弹窗
根因: - Bug #请修复 Bug #591 存在的问题 修复: - ### 变更摘要 - 全链路数据流分析**:录取(弹窗输入)→ 保存(API传入)→ 查询(Mapper返回)→ 修改(Service记录)→ 删除/停止(状态变更)→ 关联(列表展示) - ### 后端变更(4个文件) - 1. `AdviceBatchOpParam.java`** — 停嘱参数添加 `stopTime` 字段 - 新增 `@JsonFormat Date stopTime`,支持前端传入停嘱时间 - 2. `RequestBaseDto.java`** — 查询DTO添加 `stopUserName`、`stopTime` 字段 - 新增 `String stopUserName`(停嘱医生姓名) - 新增 `Date stopTime`(停嘱时间) - 3. `AdviceManageAppServiceImpl.java`** — 停嘱Service增强 - 优先使用前端传入的 `stopTime`,兜底用当前时间 - 通过 `SecurityUtils.getNickName()` 获取当前操作用户昵称,记录到 `updateBy` - 药品和诊疗两个更新入口均已同步修改 - 4. `AdviceManageAppMapper.xml`** — 三个UNION ALL子查询添加字段 - 药品子查询:`T1.effective_dose_end AS stop_time` + `T1.update_by AS stop_user_name` - 耗材子查询:`NULL AS stop_time` + `'' AS stop_user_name` - 诊疗子查询:`T1.occurrence_end_time AS stop_time` + `T1.update_by AS stop_user_name` - ### 前端变更(1个文件) - `order/index.vue`**: - 1. **停嘱时间弹窗** — 点击「停嘱」后弹出 `el-dialog`,内含 `el-date-picker`(datetime类型,默认当前时间),确定后才调用API - 2. **表格列** — 在「皮试」列后面、「诊断」列前面新增两列: - 「停嘱医生」`prop="stopUserName"`,宽度120px - 「停嘱时间」`prop="stopTime"`,宽度170px - 3. **`handleStopAdvice`** — 保留原有校验(未保存/未签发/已停止检查),校验通过后弹出时间选择弹窗而非直接调API - 4. **`confirmStopAdvice`** — 新增确认函数,将 `stopTime` 拼入请求参数后调用 `stopAdvice` API - ### 验证结果 - ✅ 前端 Lint 检查通过(仅1个预存的 `vue/no-dupe-keys` 警告) - ✅ 后端 Maven 编译通过(BUILD SUCCESS)
This commit is contained in:
@@ -1,88 +1,262 @@
|
||||
<template>
|
||||
<div class="inHospitalDispensing-container">
|
||||
<div class="inHospitalDispensing-container-top">
|
||||
<el-space>
|
||||
<el-radio-group v-model="searchForm.status" @change="search">
|
||||
<el-radio-button label="待发药" value="1" />
|
||||
<el-radio-button label="待退药" value="2" />
|
||||
</el-radio-group>
|
||||
<el-select v-model="searchForm.window" placeholder="窗口" style="width: 240px">
|
||||
<el-option key="0" label="住院西药房" value="0"/>
|
||||
<el-option key="1" label="住院东药房" value="1"/>
|
||||
<el-option key="2" label="住院北药房" value="2"/>
|
||||
<el-option key="3" label="住院南药房" value="3"/>
|
||||
</el-select>
|
||||
<el-select v-model="searchForm.type" placeholder="医嘱类型" style="width: 240px">
|
||||
<el-option key="0" label="全部" value="0"/>
|
||||
<el-option key="1" label="长期" value="1"/>
|
||||
<el-option key="2" label="临时" value="2"/>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
v-model="searchForm.dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
/>
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
</el-space>
|
||||
|
||||
</div>
|
||||
<div class="inHospitalDispensing-container-bottom">
|
||||
<div class="inHospitalDispensing-container-bottom-left">
|
||||
<el-tree
|
||||
ref="treeRef"
|
||||
style="max-width: 600px"
|
||||
default-expand-all
|
||||
:data="treedata"
|
||||
show-checkbox
|
||||
node-key="id"
|
||||
@node-click="handleNodeClick"
|
||||
/>
|
||||
</div>
|
||||
<div class="inHospitalDispensing-container-bottom-right">
|
||||
<div class="inHospitalDispensing-container-bottom-right-top">
|
||||
<el-radio-group v-model="isAll">
|
||||
<el-radio-button label="汇总" value="1" />
|
||||
<el-radio-button label="明细" value="2" />
|
||||
<div class="inHospitalDispensing-container">
|
||||
<div class="inHospitalDispensing-container-top">
|
||||
<el-space>
|
||||
<el-radio-group
|
||||
v-model="searchForm.status"
|
||||
@change="search"
|
||||
>
|
||||
<el-radio-button
|
||||
label="待发药"
|
||||
value="1"
|
||||
/>
|
||||
<el-radio-button
|
||||
label="待退药"
|
||||
value="2"
|
||||
/>
|
||||
</el-radio-group>
|
||||
<el-button type="primary" @click="handleSearch">发药</el-button>
|
||||
<el-select
|
||||
v-model="searchForm.window"
|
||||
placeholder="窗口"
|
||||
style="width: 240px"
|
||||
>
|
||||
<el-option
|
||||
key="0"
|
||||
label="住院西药房"
|
||||
value="0"
|
||||
/>
|
||||
<el-option
|
||||
key="1"
|
||||
label="住院东药房"
|
||||
value="1"
|
||||
/>
|
||||
<el-option
|
||||
key="2"
|
||||
label="住院北药房"
|
||||
value="2"
|
||||
/>
|
||||
<el-option
|
||||
key="3"
|
||||
label="住院南药房"
|
||||
value="3"
|
||||
/>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="searchForm.type"
|
||||
placeholder="医嘱类型"
|
||||
style="width: 240px"
|
||||
>
|
||||
<el-option
|
||||
key="0"
|
||||
label="全部"
|
||||
value="0"
|
||||
/>
|
||||
<el-option
|
||||
key="1"
|
||||
label="长期"
|
||||
value="1"
|
||||
/>
|
||||
<el-option
|
||||
key="2"
|
||||
label="临时"
|
||||
value="2"
|
||||
/>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
v-model="searchForm.dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
/>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleSearch"
|
||||
>
|
||||
查询
|
||||
</el-button>
|
||||
</el-space>
|
||||
</div>
|
||||
<div class="inHospitalDispensing-container-bottom">
|
||||
<div class="inHospitalDispensing-container-bottom-left">
|
||||
<el-tree
|
||||
ref="treeRef"
|
||||
style="max-width: 600px"
|
||||
default-expand-all
|
||||
:data="treedata"
|
||||
show-checkbox
|
||||
node-key="id"
|
||||
@node-click="handleNodeClick"
|
||||
/>
|
||||
</div>
|
||||
<div class="inHospitalDispensing-container-bottom-right-bottom">
|
||||
<el-table :data="tableData" style="width: 100% " height="100%" v-if="isAll==1">
|
||||
<el-table-column prop="drugGoodsName" label="名称" width="180" />
|
||||
<el-table-column prop="drugSpec" label="规格" width="180" />
|
||||
<el-table-column prop="drugSpec" label="总量" width="180" />
|
||||
<el-table-column prop="stockPlaceName" label="位置" width="180" />
|
||||
<el-table-column prop="manufactureName" label="厂家" width="180" />
|
||||
<el-table-column prop="drugGoodsCode" label="编码" width="180" />
|
||||
<el-table-column prop="drugFormName" label="剂型" width="180" />
|
||||
<el-table-column prop="packageNum" label="包装数量" width="180" />
|
||||
<el-table-column prop="maxUnit" label="包装单位" width="180" />
|
||||
</el-table>
|
||||
<el-table :data="tableDataDetails" style="width: 100%" height="100%" v-if="isAll==2">
|
||||
<el-table-column prop="receiveOrgName" label="科室" width="180" />
|
||||
<el-table-column prop="patBed" label="床号" width="180" />
|
||||
<el-table-column prop="patName" label="姓名" width="180" />
|
||||
<el-table-column prop="drugGoodsName" label="名称" width="180" />
|
||||
<el-table-column prop="drugSpec" label="规格" width="180" />
|
||||
<el-table-column prop="applyNumStr" label="数量" width="180" />
|
||||
<el-table-column prop="manufactureName" label="厂家" width="180" />
|
||||
<el-table-column prop="dosageAndUnit" label="每次剂量" width="180" />
|
||||
<el-table-column prop="usageName" label="用法" width="180" />
|
||||
<el-table-column prop="salePrice" label="单价" width="180" />
|
||||
<el-table-column prop="salePriceAmount" label="金额" width="180" />
|
||||
<el-table-column prop="stockPlaceName" label="位置" width="180" />
|
||||
<el-table-column prop="drugGoodsCode" label="编码" width="180" />
|
||||
<el-table-column prop="drugFormName" label="剂型" width="180" />
|
||||
<el-table-column prop="packageNum" label="包装数量" width="180" />
|
||||
<el-table-column prop="maxUnit" label="包装单位" width="180" />
|
||||
<el-table-column prop="purchasePrice" label="购入价" width="180" />
|
||||
</el-table>
|
||||
<div class="inHospitalDispensing-container-bottom-right">
|
||||
<div class="inHospitalDispensing-container-bottom-right-top">
|
||||
<el-radio-group v-model="isAll">
|
||||
<el-radio-button
|
||||
label="汇总"
|
||||
value="1"
|
||||
/>
|
||||
<el-radio-button
|
||||
label="明细"
|
||||
value="2"
|
||||
/>
|
||||
</el-radio-group>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleSearch"
|
||||
>
|
||||
发药
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="inHospitalDispensing-container-bottom-right-bottom">
|
||||
<el-table
|
||||
v-if="isAll==1"
|
||||
:data="tableData"
|
||||
style="width: 100% "
|
||||
height="100%"
|
||||
>
|
||||
<el-table-column
|
||||
prop="drugGoodsName"
|
||||
label="名称"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugSpec"
|
||||
label="规格"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugSpec"
|
||||
label="总量"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="stockPlaceName"
|
||||
label="位置"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="manufactureName"
|
||||
label="厂家"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugGoodsCode"
|
||||
label="编码"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugFormName"
|
||||
label="剂型"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="packageNum"
|
||||
label="包装数量"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="maxUnit"
|
||||
label="包装单位"
|
||||
width="180"
|
||||
/>
|
||||
</el-table>
|
||||
<el-table
|
||||
v-if="isAll==2"
|
||||
:data="tableDataDetails"
|
||||
style="width: 100%"
|
||||
height="100%"
|
||||
>
|
||||
<el-table-column
|
||||
prop="receiveOrgName"
|
||||
label="科室"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="patBed"
|
||||
label="床号"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="patName"
|
||||
label="姓名"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugGoodsName"
|
||||
label="名称"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugSpec"
|
||||
label="规格"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="applyNumStr"
|
||||
label="数量"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="manufactureName"
|
||||
label="厂家"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="dosageAndUnit"
|
||||
label="每次剂量"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="usageName"
|
||||
label="用法"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="salePrice"
|
||||
label="单价"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="salePriceAmount"
|
||||
label="金额"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="stockPlaceName"
|
||||
label="位置"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugGoodsCode"
|
||||
label="编码"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="drugFormName"
|
||||
label="剂型"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="packageNum"
|
||||
label="包装数量"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="maxUnit"
|
||||
label="包装单位"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="purchasePrice"
|
||||
label="购入价"
|
||||
width="180"
|
||||
/>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang='ts'>
|
||||
import {onBeforeMount, onMounted, reactive, ref} from 'vue'
|
||||
|
||||
@@ -3,21 +3,39 @@
|
||||
class="app-container"
|
||||
style="border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1)"
|
||||
>
|
||||
<el-row :gutter="10" justify="end" align="middle" style="margin-bottom: 10px">
|
||||
<el-button type="danger" plain icon="Refresh" @click="handleSendDrug" :disabled="!encounterId"
|
||||
>发药</el-button
|
||||
<el-row
|
||||
:gutter="10"
|
||||
justify="end"
|
||||
align="middle"
|
||||
style="margin-bottom: 10px"
|
||||
>
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Refresh"
|
||||
:disabled="!encounterId"
|
||||
@click="handleSendDrug"
|
||||
>
|
||||
<el-button type="primary" plain icon="Download" @click="handleExport" :disabled="!encounterId"
|
||||
>导出</el-button
|
||||
发药
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Download"
|
||||
:disabled="!encounterId"
|
||||
@click="handleExport"
|
||||
>
|
||||
导出
|
||||
</el-button>
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Refresh"
|
||||
@click="handleDispense"
|
||||
:disabled="!encounterId"
|
||||
>退药</el-button
|
||||
@click="handleDispense"
|
||||
>
|
||||
退药
|
||||
</el-button>
|
||||
</el-row>
|
||||
<div class="tableContainer">
|
||||
<el-table
|
||||
@@ -31,76 +49,192 @@
|
||||
:cell-style="{ textAlign: 'center' }"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
/>
|
||||
<!-- 基础信息 -->
|
||||
<el-table-column prop="itemName" label="项目名称" min-width="120" />
|
||||
<el-table-column prop="totalVolume" label="规格" min-width="100" />
|
||||
<el-table-column prop="locationName" label="发放药房" min-width="100" />
|
||||
<el-table-column prop="lotNumber" label="批次号" min-width="100" />
|
||||
<el-table-column prop="departmentName" label="科室" min-width="100" />
|
||||
<el-table-column prop="doctorName" label="开单医生" min-width="100" />
|
||||
<el-table-column prop="dispenseDoctorName" label="发药医生" min-width="100" />
|
||||
<el-table-column prop="itemType_dictText" label="项目类型" min-width="100">
|
||||
<el-table-column
|
||||
prop="itemName"
|
||||
label="项目名称"
|
||||
min-width="120"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="totalVolume"
|
||||
label="规格"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="locationName"
|
||||
label="发放药房"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="lotNumber"
|
||||
label="批次号"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="departmentName"
|
||||
label="科室"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="doctorName"
|
||||
label="开单医生"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="dispenseDoctorName"
|
||||
label="发药医生"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="itemType_dictText"
|
||||
label="项目类型"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.itemType_dictText || scope.row.itemType || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="statusEnum_enumText" label="发药状态" min-width="100">
|
||||
<el-table-column
|
||||
prop="statusEnum_enumText"
|
||||
label="发药状态"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.statusEnum_enumText || scope.row.statusEnum || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="conditionName" label="诊断名称" min-width="100" />
|
||||
<el-table-column prop="prescriptionNo" label="处方号" min-width="120" />
|
||||
<el-table-column
|
||||
prop="conditionName"
|
||||
label="诊断名称"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="prescriptionNo"
|
||||
label="处方号"
|
||||
min-width="120"
|
||||
/>
|
||||
|
||||
<!-- 用药信息 -->
|
||||
<el-table-column prop="dose" label="单次剂量" min-width="100" />
|
||||
<el-table-column prop="rateCode_dictText" label="用药频次" min-width="100">
|
||||
<el-table-column
|
||||
prop="dose"
|
||||
label="单次剂量"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="rateCode_dictText"
|
||||
label="用药频次"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.rateCode_dictText || scope.row.rateCode || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="methodCode_dictText" label="用法" min-width="100">
|
||||
<el-table-column
|
||||
prop="methodCode_dictText"
|
||||
label="用法"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.methodCode_dictText || scope.row.methodCode || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="doseUnitCode_dictText" label="剂量单位" min-width="100">
|
||||
<el-table-column
|
||||
prop="doseUnitCode_dictText"
|
||||
label="剂量单位"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.doseUnitCode_dictText || scope.row.doseUnitCode || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="unitCode_dictText" label="单位" min-width="80">
|
||||
<el-table-column
|
||||
prop="unitCode_dictText"
|
||||
label="单位"
|
||||
min-width="80"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.unitCode_dictText || scope.row.unitCode || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dispensePerQuantity" label="单次发药数" min-width="100" />
|
||||
<el-table-column prop="dispensePerDuration" label="每次发药供应天数" min-width="150" />
|
||||
<el-table-column prop="quantity" label="数量" min-width="80" />
|
||||
<el-table-column prop="unitPrice" label="单价" min-width="80" />
|
||||
<el-table-column prop="totalPrice" label="金额" min-width="80" />
|
||||
<el-table-column
|
||||
prop="dispensePerQuantity"
|
||||
label="单次发药数"
|
||||
min-width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="dispensePerDuration"
|
||||
label="每次发药供应天数"
|
||||
min-width="150"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="quantity"
|
||||
label="数量"
|
||||
min-width="80"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="unitPrice"
|
||||
label="单价"
|
||||
min-width="80"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="totalPrice"
|
||||
label="金额"
|
||||
min-width="80"
|
||||
/>
|
||||
|
||||
<!-- 其他信息 -->
|
||||
<el-table-column prop="manufacturerText" label="生产厂家" min-width="150" />
|
||||
<el-table-column prop="traceNo" label="追溯码" min-width="120" />
|
||||
<el-table-column prop="encounterBusNo" label="就诊NO" min-width="120" />
|
||||
<el-table-column prop="reqAuthoredTime" label="开具日期" min-width="150">
|
||||
<el-table-column
|
||||
prop="manufacturerText"
|
||||
label="生产厂家"
|
||||
min-width="150"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="traceNo"
|
||||
label="追溯码"
|
||||
min-width="120"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="encounterBusNo"
|
||||
label="就诊NO"
|
||||
min-width="120"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="reqAuthoredTime"
|
||||
label="开具日期"
|
||||
min-width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ formatDate(scope.row.reqAuthoredTime) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="skinTestFlag" label="皮试标志" min-width="100">
|
||||
<el-table-column
|
||||
prop="skinTestFlag"
|
||||
label="皮试标志"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.skinTestFlag === 1 ? '是' : scope.row.skinTestFlag === 0 ? '否' : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="tcmFlag" label="中药标识" min-width="100">
|
||||
<el-table-column
|
||||
prop="tcmFlag"
|
||||
label="中药标识"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.tcmFlag === 1 ? '是' : scope.row.tcmFlag === 0 ? '否' : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="itemTable" label="所在表" min-width="100" />
|
||||
<el-table-column
|
||||
prop="itemTable"
|
||||
label="所在表"
|
||||
min-width="100"
|
||||
/>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,14 +3,17 @@
|
||||
<div class="left">
|
||||
<div class="form">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryRef"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
ref="queryRef"
|
||||
:model="queryParams"
|
||||
:inline="true"
|
||||
label-position="right"
|
||||
style="min-width: 500px"
|
||||
>
|
||||
<el-form-item label="患者信息" prop="condition">
|
||||
<el-form-item
|
||||
label="患者信息"
|
||||
prop="condition"
|
||||
>
|
||||
<el-input
|
||||
v-model="queryParams.condition"
|
||||
placeholder="请输入姓名/证件号"
|
||||
@@ -19,7 +22,11 @@
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="发药状态" prop="departmentId" style="margin-left: 10px">
|
||||
<el-form-item
|
||||
label="发药状态"
|
||||
prop="departmentId"
|
||||
style="margin-left: 10px"
|
||||
>
|
||||
<el-select
|
||||
v-model="queryParams.statusEnum"
|
||||
placeholder="请选择发药状态"
|
||||
@@ -47,8 +54,15 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-left: 15px">
|
||||
<el-button type="primary" @click="handleQuery">搜索</el-button>
|
||||
<el-button @click="resetQuery">重置</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleQuery"
|
||||
>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="resetQuery">
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -60,10 +74,30 @@
|
||||
highlight-current-row
|
||||
@row-click="handleCurrentChange"
|
||||
>
|
||||
<el-table-column prop="encounterNo" label="住院号" width="150" align="center" />
|
||||
<el-table-column prop="patientName" label="姓名" width="130" align="center" />
|
||||
<el-table-column prop="genderEnum_enumText" label="性别" width="80" align="center" />
|
||||
<el-table-column prop="age" label="年龄" width="80" align="center" />
|
||||
<el-table-column
|
||||
prop="encounterNo"
|
||||
label="住院号"
|
||||
width="150"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="patientName"
|
||||
label="姓名"
|
||||
width="130"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="genderEnum_enumText"
|
||||
label="性别"
|
||||
width="80"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="age"
|
||||
label="年龄"
|
||||
width="80"
|
||||
align="center"
|
||||
/>
|
||||
<!-- <el-table-column prop="receptionTime" label="就诊日期" align="center">
|
||||
<template #default="scope">
|
||||
{{ scope.row.receptionTime ? formatDate(scope.row.receptionTime) : '-' }}
|
||||
@@ -72,9 +106,9 @@
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
:total="total"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
@@ -84,7 +118,11 @@
|
||||
<span style="color: #606266; font-size: 14px; font-weight: 700; margin-right: 15px">
|
||||
调配药师
|
||||
</span>
|
||||
<el-select v-model="preparerDoctor" placeholder="调配药师" style="width: 160px">
|
||||
<el-select
|
||||
v-model="preparerDoctor"
|
||||
placeholder="调配药师"
|
||||
style="width: 160px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in preparerDoctorOptions"
|
||||
:key="item.value"
|
||||
@@ -117,13 +155,17 @@
|
||||
<el-button
|
||||
:disabled="medicineInfoList && medicineInfoList.length == 0"
|
||||
type="primary"
|
||||
@click="handleBatch()"
|
||||
style="margin-left: 30px"
|
||||
@click="handleBatch()"
|
||||
>
|
||||
批量发药
|
||||
</el-button>
|
||||
<!-- <el-button type="primary" @click="handleScan()" style="margin-left: 30px"> 扫码 </el-button> -->
|
||||
<el-button type="primary" @click="printPrescription()" style="margin-left: 30px">
|
||||
<el-button
|
||||
type="primary"
|
||||
style="margin-left: 30px"
|
||||
@click="printPrescription()"
|
||||
>
|
||||
处方打印
|
||||
</el-button>
|
||||
<div style="position: absolute; top: 30px; right: 25px">
|
||||
@@ -131,33 +173,63 @@
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
ref="tableRef"
|
||||
v-loading="loading"
|
||||
:data="medicineInfoList"
|
||||
border
|
||||
style="width: 100%; height: 65vh; margin-top: 10px"
|
||||
:span-method="spanMethod"
|
||||
@select="handleSelectionChange"
|
||||
@cell-dblclick="handleCellDbClick"
|
||||
v-loading="loading"
|
||||
ref="tableRef"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" fixed="left" />
|
||||
<el-table-column prop="prescriptionNo" label="处方号" width="120" align="center" />
|
||||
<el-table-column prop="itemName" label="项目名称" width="160" align="center" />
|
||||
<el-table-column prop="statusEnum_enumText" label="发药状态" width="100" align="center">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
fixed="left"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="prescriptionNo"
|
||||
label="处方号"
|
||||
width="120"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="itemName"
|
||||
label="项目名称"
|
||||
width="160"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="statusEnum_enumText"
|
||||
label="发药状态"
|
||||
width="100"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-tag :type="tagType(scope.row.statusEnum)">
|
||||
{{ scope.row.statusEnum_enumText }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="quantity" label="发药数量" width="130" align="center">
|
||||
<el-table-column
|
||||
prop="quantity"
|
||||
label="发药数量"
|
||||
width="130"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span> {{ scope.row.quantity }}{{ scope.row.unitCode_dictText }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="flag" label="组合" width="60" align="center" /> -->
|
||||
<!-- <el-table-column prop="quantity" label="发药数量" width="100" align="center" /> -->
|
||||
<el-table-column prop="totalVolume" label="规格" width="100" align="center" />
|
||||
<el-table-column
|
||||
prop="totalVolume"
|
||||
label="规格"
|
||||
width="100"
|
||||
align="center"
|
||||
/>
|
||||
<!-- <el-table-column prop="unitCode_dictText" label="单位" width="100" align="center" /> -->
|
||||
<!-- <el-table-column
|
||||
prop="doseUnitCode_dictText"
|
||||
@@ -192,7 +264,12 @@
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column prop="lotNumber" label="批次号" width="160" align="center">
|
||||
<el-table-column
|
||||
prop="lotNumber"
|
||||
label="批次号"
|
||||
width="160"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.lotNumber }}</span>
|
||||
</template>
|
||||
@@ -205,14 +282,49 @@
|
||||
align="right"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column prop="locationName" label="发药药房" width="90" align="center" />
|
||||
<el-table-column prop="manufacturerText" label="生产厂家" width="200" align="center" />
|
||||
<el-table-column prop="doctorName" label="开单医生" width="100" align="center" />
|
||||
<el-table-column prop="conditionName" label="诊断" width="120" align="center" />
|
||||
<el-table-column
|
||||
prop="locationName"
|
||||
label="发药药房"
|
||||
width="90"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="manufacturerText"
|
||||
label="生产厂家"
|
||||
width="200"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="doctorName"
|
||||
label="开单医生"
|
||||
width="100"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="conditionName"
|
||||
label="诊断"
|
||||
width="120"
|
||||
align="center"
|
||||
/>
|
||||
<!-- <el-table-column prop="dose" label="剂量" width="100" align="center" /> -->
|
||||
<el-table-column prop="rateCode" label="频次" width="100" align="center" />
|
||||
<el-table-column prop="methodCode_dictText" label="用法" width="100" align="center" />
|
||||
<el-table-column prop="dispensePerDuration" label="天数" width="80" align="center" />
|
||||
<el-table-column
|
||||
prop="rateCode"
|
||||
label="频次"
|
||||
width="100"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="methodCode_dictText"
|
||||
label="用法"
|
||||
width="100"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="dispensePerDuration"
|
||||
label="天数"
|
||||
width="80"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
@@ -234,8 +346,8 @@
|
||||
link
|
||||
type="primary"
|
||||
:disabled="scope.row.statusEnum != 2"
|
||||
@click="backMedicine(scope.row)"
|
||||
icon="CircleClose"
|
||||
@click="backMedicine(scope.row)"
|
||||
>
|
||||
作废
|
||||
</el-button>
|
||||
@@ -243,9 +355,16 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<el-dialog title="选择作废原因" v-model="showDialog" width="30%">
|
||||
<el-dialog
|
||||
v-model="showDialog"
|
||||
title="选择作废原因"
|
||||
width="30%"
|
||||
>
|
||||
<!-- 下拉选择框 -->
|
||||
<el-select v-model="notPerformedReasonEnum" placeholder="请选择作废原因">
|
||||
<el-select
|
||||
v-model="notPerformedReasonEnum"
|
||||
placeholder="请选择作废原因"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in backReason"
|
||||
:key="item.value"
|
||||
@@ -257,14 +376,17 @@
|
||||
<!-- 弹窗底部按钮 -->
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button type="primary" @click="handleConfirm">确 定</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleConfirm"
|
||||
>确 定</el-button>
|
||||
<el-button @click="handleCancel">取 消</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<TraceNoDialog
|
||||
:ypName="ypName"
|
||||
:openDialog="openTraceNoDialog"
|
||||
:yp-name="ypName"
|
||||
:open-dialog="openTraceNoDialog"
|
||||
@submit="submit"
|
||||
@cancel="openTraceNoDialog = false"
|
||||
/>
|
||||
|
||||
@@ -7,15 +7,22 @@
|
||||
</template>
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px">
|
||||
<div>
|
||||
<el-input style="width: 250px" v-model="queryParams.searchKey" placeholder="单据号">
|
||||
<el-input
|
||||
v-model="queryParams.searchKey"
|
||||
style="width: 250px"
|
||||
placeholder="单据号"
|
||||
>
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="getSummaryList" />
|
||||
<el-button
|
||||
icon="Search"
|
||||
@click="getSummaryList"
|
||||
/>
|
||||
</template>
|
||||
</el-input>
|
||||
<el-select
|
||||
v-model="queryParams.statusEnum"
|
||||
placeholder="发放状态"
|
||||
style="width: 250px; margin-left: 10px"
|
||||
v-model="queryParams.statusEnum"
|
||||
@change="getSummaryList"
|
||||
>
|
||||
<el-option
|
||||
@@ -38,39 +45,94 @@
|
||||
value-format="YYYY-MM-DD"
|
||||
:clearable="false"
|
||||
/>
|
||||
<el-button type="primary" @click="getSummaryList" style="margin-left: 10px">搜索</el-button>
|
||||
<el-button @click="resetQuery">重置</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
style="margin-left: 10px"
|
||||
@click="getSummaryList"
|
||||
>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="resetQuery">
|
||||
重置
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button type="primary" plain @click="handleSend">批量发药</el-button>
|
||||
<el-button type="warning" plain>批量作废</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@click="handleSend"
|
||||
>
|
||||
批量发药
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
>
|
||||
批量作废
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
ref="summaryTableRef"
|
||||
:data="summaryList"
|
||||
max-height="85vh"
|
||||
border
|
||||
ref="summaryTableRef"
|
||||
highlight-current-row
|
||||
@row-click="getDetails"
|
||||
>
|
||||
<el-table-column type="selection" align="center" width="50" />
|
||||
<el-table-column prop="busNo" label="单据号" align="center" width="150" />
|
||||
<el-table-column prop="applicantName" label="申请人" align="center" width="100" />
|
||||
<el-table-column prop="locationName" label="发药药房" align="center" />
|
||||
<el-table-column prop="statusEnum_enumText" label="状态" align="center">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
align="center"
|
||||
width="50"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="busNo"
|
||||
label="单据号"
|
||||
align="center"
|
||||
width="150"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="applicantName"
|
||||
label="申请人"
|
||||
align="center"
|
||||
width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="locationName"
|
||||
label="发药药房"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="statusEnum_enumText"
|
||||
label="状态"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ formatSummaryStatusText(scope.row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyTime" label="汇总日期" align="center" width="140">
|
||||
<el-table-column
|
||||
prop="applyTime"
|
||||
label="汇总日期"
|
||||
align="center"
|
||||
width="140"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.applyTime ? parseTime(scope.row.applyTime, '{y}-{m}-{d}') : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button type="primary" link @click="handleSend(scope.row)">发药</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="handleSend(scope.row)"
|
||||
>
|
||||
发药
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -90,34 +152,59 @@
|
||||
{{ '汇总单详情' }}
|
||||
</template>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="summaryDetailsData"
|
||||
style="width: 100%"
|
||||
border
|
||||
v-loading="loading"
|
||||
:cell-style="{ textAlign: 'center' }"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="50" />
|
||||
<el-table-column prop="itemName" label="项目名称" min-width="150">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="50"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="itemName"
|
||||
label="项目名称"
|
||||
min-width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.itemName || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="totalVolume" label="规格" min-width="120">
|
||||
<el-table-column
|
||||
prop="totalVolume"
|
||||
label="规格"
|
||||
min-width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.totalVolume || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="lotNumber" label="批次号" min-width="100">
|
||||
<el-table-column
|
||||
prop="lotNumber"
|
||||
label="批次号"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.lotNumber || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="quantity" label="数量" min-width="80" align="center">
|
||||
<el-table-column
|
||||
prop="quantity"
|
||||
label="数量"
|
||||
min-width="80"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.itemQuantity + ' ' + scope.row.minUnitCode_dictText }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="categoryCode_dictText" label="药品类型" min-width="100">
|
||||
<el-table-column
|
||||
prop="categoryCode_dictText"
|
||||
label="药品类型"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.categoryCode_dictText || '-' }}
|
||||
</template>
|
||||
|
||||
@@ -3,11 +3,28 @@
|
||||
class="app-container"
|
||||
style="border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1)"
|
||||
>
|
||||
<el-row :gutter="10" justify="end" align="middle" style="margin-bottom: 10px">
|
||||
<el-button type="danger" plain icon="Refresh" @click="handleSendDrug" :disabled="!busNo">
|
||||
<el-row
|
||||
:gutter="10"
|
||||
justify="end"
|
||||
align="middle"
|
||||
style="margin-bottom: 10px"
|
||||
>
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Refresh"
|
||||
:disabled="!busNo"
|
||||
@click="handleSendDrug"
|
||||
>
|
||||
发药
|
||||
</el-button>
|
||||
<el-button type="primary" plain icon="Download" @click="handleExport" :disabled="!busNo">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Download"
|
||||
:disabled="!busNo"
|
||||
@click="handleExport"
|
||||
>
|
||||
导出
|
||||
</el-button>
|
||||
</el-row>
|
||||
@@ -19,43 +36,83 @@
|
||||
:row-style="rowStyle"
|
||||
:cell-style="{ textAlign: 'center' }"
|
||||
>
|
||||
<el-table-column prop="currentIndex" label="序号" min-width="60" />
|
||||
<el-table-column prop="itemName" label="项目名称" min-width="150">
|
||||
<el-table-column
|
||||
prop="currentIndex"
|
||||
label="序号"
|
||||
min-width="60"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="itemName"
|
||||
label="项目名称"
|
||||
min-width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.itemName || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="totalVolume" label="规格" min-width="120">
|
||||
<el-table-column
|
||||
prop="totalVolume"
|
||||
label="规格"
|
||||
min-width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.totalVolume || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="lotNumber" label="批次号" min-width="100">
|
||||
<el-table-column
|
||||
prop="lotNumber"
|
||||
label="批次号"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.lotNumber || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="quantity" label="数量" min-width="80" align="center">
|
||||
<el-table-column
|
||||
prop="quantity"
|
||||
label="数量"
|
||||
min-width="80"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.quantity" size="mini">
|
||||
<el-tag
|
||||
v-if="scope.row.quantity"
|
||||
size="mini"
|
||||
>
|
||||
{{ scope.row.quantity }}
|
||||
</el-tag>
|
||||
<el-tag v-if="scope.row.maxUnitCode_dictText" size="mini" type="danger">
|
||||
<el-tag
|
||||
v-if="scope.row.maxUnitCode_dictText"
|
||||
size="mini"
|
||||
type="danger"
|
||||
>
|
||||
{{ scope.row.maxUnitCode_dictText }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sourceLocationName" label="发放地点" min-width="100">
|
||||
<el-table-column
|
||||
prop="sourceLocationName"
|
||||
label="发放地点"
|
||||
min-width="100"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.sourceLocationName || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="manufacturerText" label="生产厂家" min-width="120">
|
||||
<el-table-column
|
||||
prop="manufacturerText"
|
||||
label="生产厂家"
|
||||
min-width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.manufacturerText || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="busNo" label="单据号" min-width="150">
|
||||
<el-table-column
|
||||
prop="busNo"
|
||||
label="单据号"
|
||||
min-width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.busNo || '-' }}
|
||||
</template>
|
||||
|
||||
@@ -15,7 +15,10 @@
|
||||
@keyup.enter="getEncounterList"
|
||||
>
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="getEncounterList" />
|
||||
<el-button
|
||||
icon="Search"
|
||||
@click="getEncounterList"
|
||||
/>
|
||||
</template>
|
||||
</el-input>
|
||||
<el-select
|
||||
@@ -43,8 +46,8 @@
|
||||
/>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="getEncounterList"
|
||||
style="margin-bottom: 10px; margin-left: 18px"
|
||||
@click="getEncounterList"
|
||||
>
|
||||
搜索
|
||||
</el-button>
|
||||
@@ -70,7 +73,12 @@
|
||||
label="性别"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column align="center" width="140" label="就诊日期" show-overflow-tooltip>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="140"
|
||||
label="就诊日期"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="scope">
|
||||
{{
|
||||
scope.row.receptionTime ? formatDateStr(scope.row.receptionTime, 'YYYY-MM-DD') : '-'
|
||||
@@ -96,25 +104,40 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="!selectedMedicines.length"
|
||||
@click="handleReturnDrug(undefined)"
|
||||
style="margin-bottom: 10px"
|
||||
@click="handleReturnDrug(undefined)"
|
||||
>
|
||||
确认退药
|
||||
</el-button>
|
||||
<el-button type="primary" @click="handleScan()" style="margin-bottom: 10px"> 扫码 </el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
style="margin-bottom: 10px"
|
||||
@click="handleScan()"
|
||||
>
|
||||
扫码
|
||||
</el-button>
|
||||
<el-table
|
||||
ref="returnDrugRef"
|
||||
:data="returDrugList"
|
||||
style="width: 100%"
|
||||
height="calc(100vh - 300px)"
|
||||
border
|
||||
@select="handleSelection"
|
||||
@selection-change="handelSelectRows"
|
||||
:span-method="handelSpanMethod"
|
||||
class="no-hover-table"
|
||||
@select="handleSelection"
|
||||
@selection-change="handelSelectRows"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column prop="itemName" label="药品名称" show-overflow-tooltip align="center" />
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="itemName"
|
||||
label="药品名称"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="totalPrice"
|
||||
label="总价"
|
||||
@@ -126,18 +149,41 @@
|
||||
{{ scope.row.totalPrice ? scope.row.totalPrice.toFixed(2) + ' 元' : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="lotNumber" label="批号" width="180" align="center" />
|
||||
<el-table-column prop="traceNo" label="追溯码" width="180" align="center">
|
||||
<el-table-column
|
||||
prop="lotNumber"
|
||||
label="批号"
|
||||
width="180"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="traceNo"
|
||||
label="追溯码"
|
||||
width="180"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.traceNo" placeholder="请输入追溯码" />
|
||||
<el-input
|
||||
v-model="scope.row.traceNo"
|
||||
placeholder="请输入追溯码"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="reqStatus_enumText" label="退药状态" width="100" align="center">
|
||||
<el-table-column
|
||||
prop="reqStatus_enumText"
|
||||
label="退药状态"
|
||||
width="100"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.refundEnum_enumText }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="waitingQuantity" label="退药数量" width="100" align="center">
|
||||
<el-table-column
|
||||
prop="waitingQuantity"
|
||||
label="退药数量"
|
||||
width="100"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span>{{
|
||||
scope.row.quantity
|
||||
@@ -146,8 +192,18 @@
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="doctorName" label="开单医生" align="center" width="180" />
|
||||
<el-table-column label="操作" width="100" align="center" fixed="right">
|
||||
<el-table-column
|
||||
prop="doctorName"
|
||||
label="开单医生"
|
||||
align="center"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
width="100"
|
||||
align="center"
|
||||
fixed="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-popconfirm
|
||||
width="150"
|
||||
@@ -157,7 +213,11 @@
|
||||
@confirm="handleReturnDrug(scope.row)"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button type="primary" link :disabled="scope.row.refundEnum != 16">
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
:disabled="scope.row.refundEnum != 16"
|
||||
>
|
||||
退药
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -175,8 +235,8 @@
|
||||
</div>
|
||||
</el-card>
|
||||
<TraceNoDialog
|
||||
:ypName="ypName"
|
||||
:openDialog="openTraceNoDialog"
|
||||
:yp-name="ypName"
|
||||
:open-dialog="openTraceNoDialog"
|
||||
@submit="submit"
|
||||
@cancel="openTraceNoDialog = false"
|
||||
/>
|
||||
|
||||
@@ -1,13 +1,29 @@
|
||||
<template>
|
||||
<div class="app-container" style="padding-top: 0px">
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick" class="centered-tabs tabs-font">
|
||||
<el-tab-pane label="发药汇总单" name="summary">
|
||||
<div
|
||||
class="app-container"
|
||||
style="padding-top: 0px"
|
||||
>
|
||||
<el-tabs
|
||||
v-model="activeName"
|
||||
class="centered-tabs tabs-font"
|
||||
@tab-click="handleClick"
|
||||
>
|
||||
<el-tab-pane
|
||||
label="发药汇总单"
|
||||
name="summary"
|
||||
>
|
||||
<MedicationSummary />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="发药明细单" name="detail">
|
||||
<el-tab-pane
|
||||
label="发药明细单"
|
||||
name="detail"
|
||||
>
|
||||
<MedicationDetails />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="住院退药" name="return">
|
||||
<el-tab-pane
|
||||
label="住院退药"
|
||||
name="return"
|
||||
>
|
||||
<ReturnDrug />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
Reference in New Issue
Block a user