feat: 需求调整
1. 电子处方笺 签章调整 2. 门店医保处方支持打印 3. 药品详情支持同步his功能
This commit is contained in:
parent
59c184476c
commit
5b316c61b0
@ -350,6 +350,14 @@ export async function importHlwDrugInfo(data) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 将互联网医院药品信息同步至 HIS
|
||||||
|
export async function updateHisDrugInfo(data) {
|
||||||
|
return await useHlw({
|
||||||
|
type: "updateHisDrugInfo",
|
||||||
|
...data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 配送/线上购药药品库:使用 online-drug-info 集合的独立接口
|
// 配送/线上购药药品库:使用 online-drug-info 集合的独立接口
|
||||||
export async function getOnlineDrugInfo(data) {
|
export async function getOnlineDrugInfo(data) {
|
||||||
return await useHlw({
|
return await useHlw({
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 113 KiB |
@ -47,10 +47,10 @@
|
|||||||
<div class="w-3 border-t border-gray-500 border-dashed"></div>
|
<div class="w-3 border-t border-gray-500 border-dashed"></div>
|
||||||
<div class="rp-symbol mx-2">Rp</div>
|
<div class="rp-symbol mx-2">Rp</div>
|
||||||
<div class="flex-grow border-t border-gray-500 border-dashed"></div>
|
<div class="flex-grow border-t border-gray-500 border-dashed"></div>
|
||||||
<div class="absolute right-0 -top-2">
|
<!-- <div class="absolute right-0 -top-2">
|
||||||
<div class="border-2 border-red-500 px-2 py-1 text-red-500 transform rotate-15">处方外购专用章</div>
|
<div class="border-2 border-red-500 px-2 py-1 text-red-500 transform rotate-15">处方外购专用章</div>
|
||||||
<img class="w-30 h-30 mt-3" :src="stampPng" alt="">
|
<img class="w-30 h-30 mt-3" :src="stampPng" alt="">
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="medicine-list">
|
<div class="medicine-list">
|
||||||
<div v-for="(i, idx) in drugList" :key="i.insurance_code" class="medicine-item">
|
<div v-for="(i, idx) in drugList" :key="i.insurance_code" class="medicine-item">
|
||||||
@ -416,10 +416,10 @@ defineExpose({ print: openPrintDialog });
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 40px;
|
width: 32px;
|
||||||
}
|
}
|
||||||
.write_line + .write_line{
|
.write_line + .write_line{
|
||||||
width: 80px;
|
width: 52px;
|
||||||
}
|
}
|
||||||
.write_line::after{
|
.write_line::after{
|
||||||
content: '';
|
content: '';
|
||||||
@ -460,8 +460,9 @@ defineExpose({ print: openPrintDialog });
|
|||||||
box-sizing: border-box !important;
|
box-sizing: border-box !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
font-size: 12px !important;
|
/* 打印时提高可读性,同时收紧行距,避免放大字体后版面变松散。 */
|
||||||
line-height: 1.4 !important;
|
font-size: 15px !important;
|
||||||
|
line-height: 1.28 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root--a5 .rx-print-area {
|
body.printing-rx>.rx-print-root--a5 .rx-print-area {
|
||||||
@ -469,8 +470,8 @@ defineExpose({ print: openPrintDialog });
|
|||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .header {
|
body.printing-rx>.rx-print-root .header {
|
||||||
padding-bottom: 6px !important;
|
padding-bottom: 4px !important;
|
||||||
margin-bottom: 7px !important;
|
margin-bottom: 5px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .row {
|
body.printing-rx>.rx-print-root .row {
|
||||||
@ -479,17 +480,17 @@ defineExpose({ print: openPrintDialog });
|
|||||||
|
|
||||||
body.printing-rx>.rx-print-root .hospital {
|
body.printing-rx>.rx-print-root .hospital {
|
||||||
margin: 3px 0 !important;
|
margin: 3px 0 !important;
|
||||||
font-size: 14px !important;
|
font-size: 18px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .patient-info,
|
body.printing-rx>.rx-print-root .patient-info,
|
||||||
body.printing-rx>.rx-print-root .diagnosis-section,
|
body.printing-rx>.rx-print-root .diagnosis-section,
|
||||||
body.printing-rx>.rx-print-root .medicine-section {
|
body.printing-rx>.rx-print-root .medicine-section {
|
||||||
margin-top: 8px !important;
|
margin-top: 5px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .info-row {
|
body.printing-rx>.rx-print-root .info-row {
|
||||||
padding: 3px 2px !important;
|
padding: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .diagnosis-header {
|
body.printing-rx>.rx-print-root .diagnosis-header {
|
||||||
@ -497,15 +498,15 @@ defineExpose({ print: openPrintDialog });
|
|||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .rp-symbol {
|
body.printing-rx>.rx-print-root .rp-symbol {
|
||||||
font-size: 17px !important;
|
font-size: 21px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .medicine-item {
|
body.printing-rx>.rx-print-root .medicine-item {
|
||||||
margin-bottom: 9px !important;
|
margin-bottom: 6px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .medicine-spec {
|
body.printing-rx>.rx-print-root .medicine-spec {
|
||||||
margin: 2px 0 !important;
|
margin: 1px 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .medicine-section img {
|
body.printing-rx>.rx-print-root .medicine-section img {
|
||||||
@ -516,11 +517,11 @@ defineExpose({ print: openPrintDialog });
|
|||||||
|
|
||||||
body.printing-rx>.rx-print-root .footer {
|
body.printing-rx>.rx-print-root .footer {
|
||||||
margin-top: auto !important;
|
margin-top: auto !important;
|
||||||
padding-top: 7px !important;
|
padding-top: 5px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .footer .pt-3 {
|
body.printing-rx>.rx-print-root .footer .pt-3 {
|
||||||
padding-top: 6px !important;
|
padding-top: 4px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .signImage {
|
body.printing-rx>.rx-print-root .signImage {
|
||||||
@ -529,17 +530,17 @@ defineExpose({ print: openPrintDialog });
|
|||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root .notice {
|
body.printing-rx>.rx-print-root .notice {
|
||||||
margin-top: 7px !important;
|
margin-top: 5px !important;
|
||||||
font-size: 10px !important;
|
font-size: 12px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root--dense .rx-print-area {
|
body.printing-rx>.rx-print-root--dense .rx-print-area {
|
||||||
font-size: 11px !important;
|
font-size: 13px !important;
|
||||||
line-height: 1.3 !important;
|
line-height: 1.22 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root--dense .medicine-item {
|
body.printing-rx>.rx-print-root--dense .medicine-item {
|
||||||
margin-bottom: 6px !important;
|
margin-bottom: 4px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.printing-rx>.rx-print-root--a5 .medicine-section img,
|
body.printing-rx>.rx-print-root--a5 .medicine-section img,
|
||||||
|
|||||||
@ -49,6 +49,9 @@
|
|||||||
<el-button :type="data.onSale ? 'info' : 'success'" class="w-100px" @click="setOnSale()">
|
<el-button :type="data.onSale ? 'info' : 'success'" class="w-100px" @click="setOnSale()">
|
||||||
{{ data.onSale ? '下架' : '上架' }}
|
{{ data.onSale ? '下架' : '上架' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button v-if="libType === 'hlw'" type="warning" class="w-100px" :loading="syncingHis" @click="syncHis">
|
||||||
|
同步 HIS
|
||||||
|
</el-button>
|
||||||
<el-button type="primary" class="w-100px" @click="edit()">编辑</el-button>
|
<el-button type="primary" class="w-100px" @click="edit()">编辑</el-button>
|
||||||
|
|
||||||
<!-- <el-button class="w-100px" :loading="loading" type="primary" @click="save()">保存</el-button> -->
|
<!-- <el-button class="w-100px" :loading="loading" type="primary" @click="save()">保存</el-button> -->
|
||||||
@ -62,7 +65,7 @@ import { computed, ref, watch } from 'vue';
|
|||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { setHlwDrugOnSale, setOnlineDrugOnSale, getHlwDiagnosisList } from "@/api/hlw";
|
import { setHlwDrugOnSale, setOnlineDrugOnSale, getHlwDiagnosisList, updateHisDrugInfo } from "@/api/hlw";
|
||||||
import { getDrugFieldDict } from './drug-dict.js'
|
import { getDrugFieldDict } from './drug-dict.js'
|
||||||
import { memberStore } from "@/store/member";
|
import { memberStore } from "@/store/member";
|
||||||
|
|
||||||
@ -171,6 +174,7 @@ const showForm = computed(() => {
|
|||||||
})
|
})
|
||||||
const form = computed(() => ({ ...props.data, ...showForm.value }))
|
const form = computed(() => ({ ...props.data, ...showForm.value }))
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
const syncingHis = ref(false)
|
||||||
const diagnosisLoading = ref(false)
|
const diagnosisLoading = ref(false)
|
||||||
const diagnosisList = ref([])
|
const diagnosisList = ref([])
|
||||||
let diagnosisRequestId = 0
|
let diagnosisRequestId = 0
|
||||||
@ -240,6 +244,23 @@ async function setOnSale() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function syncHis() {
|
||||||
|
if (!props.data._id || syncingHis.value) return;
|
||||||
|
syncingHis.value = true;
|
||||||
|
try {
|
||||||
|
const { success, message } = await updateHisDrugInfo({ id: props.data._id });
|
||||||
|
if (success) {
|
||||||
|
ElMessage.success(message || '同步 HIS 成功');
|
||||||
|
} else {
|
||||||
|
ElMessage.error(message || '同步 HIS 失败');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
ElMessage.error(error?.message || '同步 HIS 失败');
|
||||||
|
} finally {
|
||||||
|
syncingHis.value = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
watch(() => props.visible, (visible) => {
|
watch(() => props.visible, (visible) => {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
loadDiagnoses();
|
loadDiagnoses();
|
||||||
|
|||||||
@ -35,10 +35,10 @@
|
|||||||
<el-table-column fixed="right" label="操作" :width="180">
|
<el-table-column fixed="right" label="操作" :width="180">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-text type="primary" class="cursor-pointer" @click="viewDetails(row)">详情</el-text>
|
<el-text type="primary" class="cursor-pointer" @click="viewDetails(row)">详情</el-text>
|
||||||
<template v-if="row.feeType === 'ZF'">
|
<!-- <template v-if="row.feeType === 'ZF'"> -->
|
||||||
<el-text type="primary" class="cursor-pointer ml-10px" @click="printRx(row)">打印</el-text>
|
<el-text type="primary" class="cursor-pointer ml-10px" @click="printRx(row)">打印</el-text>
|
||||||
<el-text v-if="row.printCount > 0" type="info" class="ml-5px">(已打印)</el-text>
|
<el-text v-if="row.printCount > 0" type="info" class="ml-5px">(已打印)</el-text>
|
||||||
</template>
|
<!-- </template> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user