|
@@ -18,6 +18,7 @@
|
|
|
@keyup.enter="querySearch" />
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<el-button icon="Search" type="primary" @click="querySearch">检索</el-button>
|
|
|
+ <el-button icon="Document" type="primary" @click="openEmr">电子病历</el-button>
|
|
|
<span v-if="auditInquiryRequest.state === 'INITIAL'" style="margin: 0 12px">
|
|
|
<el-button icon="DataLine" type="primary" @click="basicControl">基础质控</el-button>
|
|
|
<el-button icon="Check" type="success" @click="approveAudit">审核通过</el-button>
|
|
@@ -75,7 +76,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
- <div class="rightside-btn" @click="showMessageDrawer = !showMessageDrawer">首页基础质控结果</div>
|
|
|
+ <div class="btn_right-side" @click="showMessageDrawer = !showMessageDrawer">首页基础质控结果</div>
|
|
|
</CyFlex>
|
|
|
|
|
|
</template>
|
|
@@ -90,7 +91,7 @@ import {
|
|
|
executePrintVerify,
|
|
|
fetchQualityVerifications,
|
|
|
getAllDictionary,
|
|
|
- getSheetInfo
|
|
|
+ getSheetInfo,
|
|
|
} from '@/api/case-front-sheet'
|
|
|
import maleIcon from '@/assets/male-icon.png'
|
|
|
import femaleIcon from '@/assets/female-icon.png'
|
|
@@ -103,6 +104,11 @@ import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
import RejectAudit from "@/components/inpatient/frontsheet-printpage/RejectAudit.vue";
|
|
|
import AuditHistory from "@/components/inpatient/frontsheet-printpage/AuditHistory.vue";
|
|
|
import useDialogToJs from "@/components/js-dialog-comp/useDialogToJs";
|
|
|
+import {
|
|
|
+ emrStateEnum,
|
|
|
+ getEmrUrl
|
|
|
+} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
|
+import {magicApi} from "@/utils/database/magic-api-request";
|
|
|
|
|
|
const windowSize = store.state.app.windowSize
|
|
|
const userName = store.state.user.info.name
|
|
@@ -154,12 +160,11 @@ const fetchSheetInfo = (patNo, times) => {
|
|
|
forceVerifies.value = []
|
|
|
adviceVerifies.value = []
|
|
|
}
|
|
|
- const params = {
|
|
|
+ getSheetInfo({
|
|
|
bah: patNo,
|
|
|
times: times,
|
|
|
inOutFlag: 2
|
|
|
- }
|
|
|
- getSheetInfo(params).then((res) => {
|
|
|
+ }).then((res) => {
|
|
|
sheet.value = res
|
|
|
})
|
|
|
}
|
|
@@ -172,6 +177,18 @@ const nullPatient = () => {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
+function openEmr() {
|
|
|
+ if (nullPatient()) return
|
|
|
+ magicApi({
|
|
|
+ url: '/intergration/patientInfo/getActCount',
|
|
|
+ method: 'get',
|
|
|
+ params: { patNo: sheet.value.bah, times: sheet.value.admissTimes}
|
|
|
+ }).then(res => {
|
|
|
+ const emrState = res.count === 0 ? emrStateEnum.出院只读 : emrStateEnum.在院只读
|
|
|
+ window.open(getEmrUrl(sheet.value.bah, sheet.value.admissTimes, emrState), '_blank')
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
const showMessageDrawer = ref(false)
|
|
|
const basicControl = () => {
|
|
|
if (nullPatient()) return
|
|
@@ -246,22 +263,10 @@ onMounted(() => {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-:deep(.el-dialog__body) {
|
|
|
- padding-top: 0;
|
|
|
-}
|
|
|
-
|
|
|
:deep(.el-drawer__header) {
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
|
|
|
-:deep(.el-checkbox) {
|
|
|
- margin-right: 15px;
|
|
|
-}
|
|
|
-
|
|
|
-:deep(.el-checkbox__label) {
|
|
|
- padding-left: 4px;
|
|
|
-}
|
|
|
-
|
|
|
.page-inner {
|
|
|
padding: 0 20px 10px 26px;
|
|
|
border-radius: 12px;
|
|
@@ -278,7 +283,7 @@ onMounted(() => {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
-.rightside-btn {
|
|
|
+.btn_right-side {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
text-align: center;
|
|
@@ -300,9 +305,4 @@ onMounted(() => {
|
|
|
font-size: 18px;
|
|
|
color: gray;
|
|
|
}
|
|
|
-
|
|
|
-.img-state:hover {
|
|
|
- scale: 1.08;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
</style>
|