|
@@ -2,66 +2,99 @@
|
|
|
<div class="layout_container">
|
|
|
<header>
|
|
|
<!-- 这里是打印病理检验申请单的 -->
|
|
|
- <print-check-table ref="printRef" v-show="false"/>
|
|
|
+ <print-check-table ref="printRef" v-show="false" />
|
|
|
检验时间:
|
|
|
<el-date-picker
|
|
|
- v-model="dateRange"
|
|
|
- :shortcuts="shortcuts"
|
|
|
- clearable
|
|
|
- end-placeholder="结束日期"
|
|
|
- placeholder="选择日期"
|
|
|
- range-separator="至"
|
|
|
- size="small"
|
|
|
- start-placeholder="开始日期"
|
|
|
- style="width: 280px"
|
|
|
- type="daterange"
|
|
|
- ></el-date-picker>
|
|
|
+ v-model="dateRange"
|
|
|
+ :shortcuts="shortcuts"
|
|
|
+ clearable
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ placeholder="选择日期"
|
|
|
+ range-separator="至"
|
|
|
+ size="small"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ style="width: 280px"
|
|
|
+ type="daterange"
|
|
|
+ />
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-button icon="Search" type="primary" @click="dianJiChaXunJianYan">查询</el-button>
|
|
|
- <el-button @click="yzMitt.emit('jySave')" icon="Check" type="success">保存</el-button>
|
|
|
- <el-button @click="yzMitt.emit('jySaveTemplate')" icon="Check" type="primary">存为模板</el-button>
|
|
|
+ <el-button icon="Search" type="primary" @click="dianJiChaXunJianYan"
|
|
|
+ >查询
|
|
|
+ </el-button>
|
|
|
+ <el-button @click="yzMitt.emit('jySave')" icon="Check" type="success"
|
|
|
+ >保存
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ @click="yzMitt.emit('jySaveTemplate')"
|
|
|
+ icon="Check"
|
|
|
+ type="primary"
|
|
|
+ >存为模板
|
|
|
+ </el-button>
|
|
|
<el-button type="info" @click="openBloodBank">血库</el-button>
|
|
|
- <el-button icon="View" type="primary" @click="dianJiChaKanHuanZheJianYan">查看患者检验</el-button>
|
|
|
+ <el-button icon="View" type="primary" @click="dianJiChaKanHuanZheJianYan"
|
|
|
+ >查看患者检验
|
|
|
+ </el-button>
|
|
|
</header>
|
|
|
<div class="layout_main">
|
|
|
- <CyTabs height="100%" width="100%" v-model="activeName" pane-id="jy" type="idea" content-padding="3">
|
|
|
+ <CyTabs
|
|
|
+ height="100%"
|
|
|
+ width="100%"
|
|
|
+ v-model="activeName"
|
|
|
+ pane-id="jy"
|
|
|
+ type="idea"
|
|
|
+ content-padding="3"
|
|
|
+ >
|
|
|
<CyTabPane :name="1" label="新增">
|
|
|
- <TianJiaJianYan/>
|
|
|
+ <TianJiaJianYan />
|
|
|
</CyTabPane>
|
|
|
<CyTabPane :name="0" label="历史记录">
|
|
|
<xc-table :local-data="jianYanShuJu">
|
|
|
- <el-table-column label="医嘱号" prop="actOrderNo"></el-table-column>
|
|
|
- <el-table-column label="项目名称" prop="groupName"></el-table-column>
|
|
|
- <el-table-column label="执行科室" prop="execDeptName"></el-table-column>
|
|
|
- <el-table-column label="标本" prop="inspectStuffName"></el-table-column>
|
|
|
- <el-table-column label="申请备注" prop="reqComment" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column label="申请时间" prop="reqDate" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column label="申请科室" prop="reqDeptName"></el-table-column>
|
|
|
- <el-table-column label="申请医生" prop="reqDoctorName"></el-table-column>
|
|
|
- <el-table-column label="接受" prop="receiveFlagName"></el-table-column>
|
|
|
+ <el-table-column label="医嘱号" prop="actOrderNo" />
|
|
|
+ <el-table-column label="项目名称" prop="groupName" />
|
|
|
+ <el-table-column label="执行科室" prop="execDeptName" />
|
|
|
+ <el-table-column label="标本" prop="inspectStuffName" />
|
|
|
+ <el-table-column
|
|
|
+ label="申请备注"
|
|
|
+ prop="reqComment"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="申请时间"
|
|
|
+ prop="reqDate"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column label="申请科室" prop="reqDeptName" />
|
|
|
+ <el-table-column label="申请医生" prop="reqDoctorName" />
|
|
|
+ <el-table-column label="接受" prop="receiveFlagName" />
|
|
|
<el-table-column label="操作" width="250" fixed="right">
|
|
|
<template #default="scope">
|
|
|
<el-button-group>
|
|
|
- <el-button @click="printClick(scope.row)" type="primary">打印</el-button>
|
|
|
- <el-popover :width="500"
|
|
|
- trigger="click"
|
|
|
- placement="left"
|
|
|
- title="费用详情">
|
|
|
+ <el-button @click="printClick(scope.row)" type="primary"
|
|
|
+ >打印
|
|
|
+ </el-button>
|
|
|
+ <el-popover
|
|
|
+ :width="500"
|
|
|
+ trigger="click"
|
|
|
+ placement="left"
|
|
|
+ title="费用详情"
|
|
|
+ >
|
|
|
<template #reference>
|
|
|
<el-button @click="viewFeeDetails(scope.row)">
|
|
|
明细
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<el-table :data="feeDetailsData">
|
|
|
- <el-table-column property="orderCode" label="检查编码"/>
|
|
|
- <el-table-column property="occCode" label="收费编码"/>
|
|
|
- <el-table-column property="name" label="名字"/>
|
|
|
- <el-table-column property="amount" label="数量"/>
|
|
|
- <el-table-column property="chargeAmount" label="金额"/>
|
|
|
- <el-table-column property="unitPrice" label="单价"/>
|
|
|
+ <el-table-column property="orderCode" label="检查编码" />
|
|
|
+ <el-table-column property="occCode" label="收费编码" />
|
|
|
+ <el-table-column property="name" label="名字" />
|
|
|
+ <el-table-column property="amount" label="数量" />
|
|
|
+ <el-table-column property="chargeAmount" label="金额" />
|
|
|
+ <el-table-column property="unitPrice" label="单价" />
|
|
|
</el-table>
|
|
|
</el-popover>
|
|
|
- <el-button type="danger" @click="dianJiShanChu(scope.row, scope.$index)">
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ @click="dianJiShanChu(scope.row, scope.$index)"
|
|
|
+ >
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-button-group>
|
|
@@ -75,105 +108,109 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import {ref} from 'vue'
|
|
|
-import {shortcuts} from '@/data/shortcuts'
|
|
|
-import {getDateRangeFormatDate, getFormatDatetime} from '@/utils/date'
|
|
|
+import { ref } from "vue";
|
|
|
+import { shortcuts } from "@/data/shortcuts";
|
|
|
+import { getDateRangeFormatDate, getFormatDatetime } from "@/utils/date";
|
|
|
import {
|
|
|
huanZheXinXi,
|
|
|
onChangePatient,
|
|
|
youWuXuanZheHuanZhe,
|
|
|
- yzMitt
|
|
|
-} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
|
|
|
+ yzMitt,
|
|
|
+} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
import {
|
|
|
- huoQuJianYan, huoQuShengQingXiangQing,
|
|
|
- shanChuJianChaJianYan, viewInspectionItemDetails
|
|
|
-} from '@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing'
|
|
|
-import router from '@/router'
|
|
|
-import {ElMessageBox} from 'element-plus'
|
|
|
-import {getServerDateApi} from '@/api/public-api'
|
|
|
+ huoQuJianYan,
|
|
|
+ huoQuShengQingXiangQing,
|
|
|
+ shanChuJianChaJianYan,
|
|
|
+ viewInspectionItemDetails,
|
|
|
+} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
|
|
|
+import router from "@/router";
|
|
|
+import { ElMessageBox } from "element-plus";
|
|
|
+import { getServerDateApi } from "@/api/public-api";
|
|
|
import TianJiaJianYan from "@/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/TianJiaJianYan.vue";
|
|
|
import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
|
|
|
import PrintCheckTable from "@/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/da-ying/PrintCheckTable.vue";
|
|
|
-import CyFlex from "@/components/cy/flex/src/CyFlex.vue";
|
|
|
import CyTabs from "@/components/cy/tabs/src/CyTabs";
|
|
|
import CyTabPane from "@/components/cy/tabs/src/CyTabPane.vue";
|
|
|
-import {useUserStore} from "@/pinia/user-store";
|
|
|
+import { useUserStore } from "@/pinia/user-store";
|
|
|
|
|
|
-const dateRange = ref(null)
|
|
|
-const jianYanShuJu = ref([])
|
|
|
+const dateRange = ref(null);
|
|
|
+const jianYanShuJu = ref([]);
|
|
|
|
|
|
-const activeName = ref(1)
|
|
|
+const activeName = ref(1);
|
|
|
|
|
|
const chaXunJianYanTiaoJian = ref({
|
|
|
- orderName: '',
|
|
|
- startTime: '',
|
|
|
- endTime: '',
|
|
|
- patNo: '',
|
|
|
- times: '',
|
|
|
-})
|
|
|
+ orderName: "",
|
|
|
+ startTime: "",
|
|
|
+ endTime: "",
|
|
|
+ patNo: "",
|
|
|
+ times: "",
|
|
|
+});
|
|
|
|
|
|
const dianJiChaXunJianYan = () => {
|
|
|
- let {startTime, endTime} = getDateRangeFormatDate(dateRange.value)
|
|
|
- chaXunJianYanTiaoJian.value.startTime = startTime
|
|
|
- chaXunJianYanTiaoJian.value.endTime = endTime
|
|
|
- chaXunJianYanTiaoJian.value.patNo = huanZheXinXi.value.inpatientNo
|
|
|
- chaXunJianYanTiaoJian.value.times = huanZheXinXi.value.admissTimes
|
|
|
- huoQuJianYan(chaXunJianYanTiaoJian.value).then((res) => {
|
|
|
- jianYanShuJu.value = res
|
|
|
- activeName.value = 0
|
|
|
- })
|
|
|
-}
|
|
|
+ let { startTime, endTime } = getDateRangeFormatDate(dateRange.value);
|
|
|
+ chaXunJianYanTiaoJian.value.startTime = startTime;
|
|
|
+ chaXunJianYanTiaoJian.value.endTime = endTime;
|
|
|
+ chaXunJianYanTiaoJian.value.patNo = huanZheXinXi.value.inpatientNo;
|
|
|
+ chaXunJianYanTiaoJian.value.times = huanZheXinXi.value.admissTimes;
|
|
|
+ huoQuJianYan(chaXunJianYanTiaoJian.value).then(res => {
|
|
|
+ jianYanShuJu.value = res;
|
|
|
+ activeName.value = 0;
|
|
|
+ });
|
|
|
+};
|
|
|
|
|
|
+const feeDetailsData = ref([]);
|
|
|
|
|
|
-const feeDetailsData = ref([])
|
|
|
-
|
|
|
-const viewFeeDetails = ({orderCode}) => {
|
|
|
- viewInspectionItemDetails(orderCode).then((res) => {
|
|
|
- feeDetailsData.value = res
|
|
|
- })
|
|
|
-}
|
|
|
+const viewFeeDetails = ({ orderCode }) => {
|
|
|
+ viewInspectionItemDetails(orderCode).then(res => {
|
|
|
+ feeDetailsData.value = res;
|
|
|
+ });
|
|
|
+};
|
|
|
|
|
|
const dianJiShanChu = (row, index) => {
|
|
|
- ElMessageBox.confirm(`您确定要删除【${row.orderName}】吗?`, '提示')
|
|
|
- .then(() => {
|
|
|
- shanChuJianChaJianYan(row.reqNo, row.inpatientNo, row.admissTimes).then((res) => {
|
|
|
- jianYanShuJu.value.splice(index, 1)
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- })
|
|
|
-}
|
|
|
+ ElMessageBox.confirm(`您确定要删除【${row.orderName}】吗?`, "提示")
|
|
|
+ .then(() => {
|
|
|
+ shanChuJianChaJianYan(row.reqNo, row.inpatientNo, row.admissTimes).then(
|
|
|
+ res => {
|
|
|
+ jianYanShuJu.value.splice(index, 1);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+};
|
|
|
|
|
|
// 点击查看患者检验
|
|
|
const dianJiChaKanHuanZheJianYan = () => {
|
|
|
- if (youWuXuanZheHuanZhe()) return
|
|
|
- let end = ''
|
|
|
- getServerDateApi().then((res) => {
|
|
|
- end = getFormatDatetime(res, 'YYYY-MM-DD')
|
|
|
+ if (youWuXuanZheHuanZhe()) return;
|
|
|
+ let end = "";
|
|
|
+ getServerDateApi().then(res => {
|
|
|
+ end = getFormatDatetime(res, "YYYY-MM-DD");
|
|
|
router.push({
|
|
|
- name: 'inspectionReportIndex',
|
|
|
+ name: "inspectionReportIndex",
|
|
|
params: {
|
|
|
passRule: true,
|
|
|
patNo: huanZheXinXi.value.inpatientNo,
|
|
|
start: huanZheXinXi.value.admissDate,
|
|
|
end: end,
|
|
|
},
|
|
|
- })
|
|
|
- })
|
|
|
-}
|
|
|
+ });
|
|
|
+ });
|
|
|
+};
|
|
|
|
|
|
function openBloodBank() {
|
|
|
- window.open(`http://172.16.32.178/apps/bloodbank/#/ssologin?staffKey=${useUserStore().userInfo.code}`, '_blank')
|
|
|
+ window.open(
|
|
|
+ `http://172.16.32.178/apps/bloodbank/#/ssologin?staffKey=${useUserStore().userInfo.code}`,
|
|
|
+ "_blank"
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
-const printRef = ref(null)
|
|
|
-const printClick = (row) => {
|
|
|
- huoQuShengQingXiangQing(row.reqNo).then(async (res) => {
|
|
|
- await printRef.value.printClick(res)
|
|
|
- })
|
|
|
-}
|
|
|
+const printRef = ref(null);
|
|
|
+const printClick = row => {
|
|
|
+ huoQuShengQingXiangQing(row.reqNo).then(async res => {
|
|
|
+ await printRef.value.printClick(res);
|
|
|
+ });
|
|
|
+};
|
|
|
|
|
|
-onChangePatient(dianJiChaXunJianYan)
|
|
|
+onChangePatient(dianJiChaXunJianYan);
|
|
|
</script>
|
|
|
|
|
|
<style scoped></style>
|