Browse Source

doctor

master
pengjun 2 years ago
parent
commit
04ed7ceb05
  1. 69
      src/components/doctorCheck/ButtonList.vue
  2. 4
      src/components/doctorCheck/CheckItemList.vue
  3. 2
      src/components/doctorCheck/CheckPicture.vue
  4. 14
      src/components/doctorCheck/CheckSumSug.vue
  5. 2
      src/components/doctorCheck/RegisterCheckList.vue
  6. 2
      src/components/patientRegister/PatientRegisterItem.vue
  7. 470
      src/components/patientRegister/PatientRegisterList.vue
  8. 26
      src/components/patientRegister/customerOrgTreeAll.vue
  9. 4
      src/components/patientRegister/patientRegisterAsbItem.vue
  10. 2
      src/components/patientRegister/patientRegisterQuery.vue
  11. 27
      src/views/customerOrg/patientRegister.vue
  12. 26
      src/views/doctorCheck/doctorCheck.vue

69
src/components/doctorCheck/ButtonList.vue

@ -1,54 +1,54 @@
<template>
<div style="margin-left: 10px;">
<div v-show="checkPagePriv(pagePriv.privs,'人员列表')">
<el-button type="primary" class="btnClass" @click="prList">人员列表</el-button>
<div style="margin-left: 5px;">
<div v-show="checkPagePriv(pagePriv.privs,'人员列表')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="prList">人员列表</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'体检日期')">
<el-button type="primary" class="btnClass" @click="dialogVisibleSetStartDate = true">体检日期</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'体检日期')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="dialogVisibleSetStartDate = true">体检日期</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'增加人员')">
<el-button type="primary" class="btnClass" @click="btnAddPr">增加人员</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'增加人员')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnAddPr">增加人员</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'编辑人员')">
<el-button type="primary" class="btnClass" @click="btnEditPr">编辑人员</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'编辑人员')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnEditPr">编辑人员</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'删除人员')">
<el-button type="primary" class="btnClass" @click="btnDelPr">删除人员</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'删除人员')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnDelPr">删除人员</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'上一人')">
<el-button type="primary" class="btnClass" @click="btnStep(-1)">上一人</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'上一人')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnStep(-1)">上一人</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'下一人')">
<el-button type="primary" class="btnClass" @click="btnStep(1)">下一人</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'下一人')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnStep(1)">下一人</el-button>
</div>
<!--
<div>
<el-button type="primary" class="btnClass" @click="save">保存结果</el-button>
</div>
-->
<div v-show="checkPagePriv(pagePriv.privs,'修改结果')">
<el-button type="primary" class="btnClass" @click="btnEdit">修改结果</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'修改结果')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnEdit">修改结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'删除结果')">
<el-button type="primary" class="btnClass" @click="btnDel">删除结果</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'删除结果')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnDel">删除结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'放弃明细项目检查')">
<el-button type="primary" class="btnClass" @click="refuseItem" style="font-size:11px;">放弃明细项目检查</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'放弃明细项目检查')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="refuseItem" style="font-size:11px;">放弃明细项目检查</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'删除明细项目')">
<el-button type="primary" class="btnClass" @click="delItem">删除明细项目</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'删除明细项目')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="delItem">删除明细项目</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'取消审核')">
<el-button type="primary" class="btnClass" @click="unAudit">取消审核</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'取消审核')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="unAudit">取消审核</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'历次结果')">
<el-button type="primary" class="btnClass" @click="btnCheckHistory">历次结果</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'历次结果')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnCheckHistory">历次结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'体检报告')">
<el-button type="primary" class="btnClass" @click="report">体检报告</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'体检报告')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="report">体检报告</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'总检')">
<el-button type="primary" class="btnClass" @click="toSumDoctorCheck">总检</el-button>
<div v-show="checkPagePriv(pagePriv.privs,'总检')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="toSumDoctorCheck">总检</el-button>
</div>
<!--
@ -616,10 +616,7 @@ export default {
<style scoped>
@import '../../assets/css/global_button.css';
.btnClass {
margin-top: 1px;
width: 100px;
height: 26px;
padding: 5px 5px; /*原始 默认值 10px 10px */
.divBtnClass {
margin-top: 5px;
}
</style>

4
src/components/doctorCheck/CheckItemList.vue

@ -5,8 +5,8 @@
style="width: 100%"
:height="
window.pageHeight < 600
? Math.floor(((420 - 40 - (isCheckPicture ? 110:0)) * 3) / 5)
: Math.floor(((window.pageHeight - 260 - 40 - (isCheckPicture ? 110:0)) * 3) / 5)
? Math.floor(((420 - (isCheckPicture ? 110:0)) * 3) / 5)
: Math.floor(((window.pageHeight - 260 - (isCheckPicture ? 110:0)) * 3) / 5)
"
border highlight-current-row
@row-click="rowClick" size="small"

2
src/components/doctorCheck/CheckPicture.vue

@ -30,7 +30,7 @@
</div>
</div>
<!-- -->
<div :style="`overflow-x: scroll;width:${Math.floor((window.pageWidth - 200 - 110 - 45 - 4))}px;`">
<div :style="`overflow-x: scroll;width:${Math.floor((window.pageWidth - 200 - 110 - 15 - 4))}px;`">
<div style="display: flex;">
<div
class="demo-image__preview"

14
src/components/doctorCheck/CheckSumSug.vue

@ -3,7 +3,7 @@
<div :style="`width:${sumWidth}px;`">
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll"
:height="sumHeight"
width="100%" border @row-click="rowClick">
width="100%" border>
<el-table-column type="index" width="25" align="center"/>
<el-table-column prop="summary" label="小结">
<template slot="header">
@ -44,7 +44,7 @@
<div :style="`margin-left:2px;width:${sumWidth}px;`">
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll"
:height="sumHeight"
width="100%" border @row-click="rowClick">
width="100%" border>
<el-table-column type="index" width="25" align="center"/>
<el-table-column prop="suggestion" label="建议" >
<template slot-scope="scope">
@ -62,7 +62,7 @@
</div>
</div>
</template>
<script lang="ts">
<script>
import { mapState } from 'vuex';
import Sortable from "sortablejs";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
@ -96,12 +96,12 @@ export default {
//
sumWidth(){
return Math.floor((this.window.pageWidth - 200 - 110 - 45 - 4)/2);
return Math.floor((this.window.pageWidth - 200 - 110 - 15 - 4)/2);
},
//
sumHeight(){
return this.window.pageHeight < 600 ? Math.floor((395 - (this.isCheckPicture ? 110:0))*2/5):Math.floor((this.window.pageHeight - 205 - (this.isCheckPicture ? 110:0))*2/5);
return this.window.pageHeight < 600 ? Math.floor((480 - (this.isCheckPicture ? 110:0))*2/5):Math.floor((this.window.pageHeight - 120 - (this.isCheckPicture ? 110:0))*2/5);
}
},
@ -145,10 +145,6 @@ export default {
});
},
//
rowClick(row) {
},
//
rowDrop() {

2
src/components/doctorCheck/RegisterCheckList.vue

@ -2,7 +2,7 @@
<div>
<!-- :row-class-name="tableRowClassName" -->
<el-table :data="doctorCheck.RegisterCheckList" style="width: 100%"
:height="window.pageHeight < 600 ? 340:window.pageHeight-260"
:height="window.pageHeight < 600 ? 400:window.pageHeight-200"
border highlight-current-row ref='doctorCheck_RegisterCheckList'
@row-click="rowClick">
<el-table-column prop="asbitemName" label="组合项目" width="198">

2
src/components/patientRegister/PatientRegisterItem.vue

@ -79,7 +79,7 @@
filterable :filter-method="filterMethod" :disabled="isComplete"
clearable @clear="quickAsb = deepCopy(asbItemQuick)"
@change="quickChoosedAsb" default-first-option ref="quickAsbOCX"
style="width:150px;text-align: left;padding-right: 15px;">
style="width:240px;text-align: left;padding-right: 15px;">
<el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" />
</el-select>
</div>

470
src/components/patientRegister/PatientRegisterList.vue

@ -1,84 +1,66 @@
<template>
<div style="display: flex">
<div
:style="
'margin-left:5px;width:' + (window.pageWidth - 200 - 110 - 35) + 'px;'
"
@contextmenu.prevent="onContextmenu"
>
<div :style="'margin-left:5px;width:' + (window.pageWidth - 200 - 110 - 10) + 'px;'" @contextmenu.prevent="onContextmenu">
<div>
<el-table @body-scrolling="load"
:data="patientRegister.prList"
border :height="window.pageHeight < 600 ? 226 : Math.floor(((window.pageHeight - 261) * 2) / 3)"
highlight-current-row
@row-click="rowClick"
size="small" row-key="id"
@selection-change="handleSelectionChange"
@cell-contextmenu="onCellRightClick"
ref="info" id="info"
:row-class-name="handleRowClassName"
>
<el-table @body-scrolling="load" :data="patientRegister.prList" border
:height="window.pageHeight < 600 ? 248 : Math.floor(((window.pageHeight - 228) * 2) / 3)" highlight-current-row
@row-click="rowClick" size="small" row-key="id" @selection-change="handleSelectionChange"
@cell-contextmenu="onCellRightClick" ref="info" id="info" :row-class-name="handleRowClassName">
<!-- 取消勾选改为选中
<el-table-column type="selection" width="40" show-overflow-tooltip/>
:height="window.pageHeight < 600 ? 202 : Math.floor(((window.pageHeight - 302) * 2) / 3)"
-->
<el-table-column
v-for="(item, index) in headerCols"
:key="`col_${index}`"
:min-width="dropCol[index].minWidth"
:align="dropCol[index].align"
:label="item.label"
:prop="dropCol[index].prop"
:sortable="dropCol[index].prop == 'sn' ? false:true"
>
<el-table-column v-for="(item, index) in headerCols" :key="`col_${index}`" :min-width="dropCol[index].minWidth"
:align="dropCol[index].align" :label="item.label" :prop="dropCol[index].prop"
:sortable="dropCol[index].prop == 'sn' ? false : true">
<template slot-scope="scope">
<div v-if="dropCol[index].prop == 'sn'" >
<div v-if="dropCol[index].prop == 'sn'">
{{ scope.$index + 1 }}
</div>
<div v-else-if="dropCol[index].prop == 'completeFlag'" >
<div v-else-if="dropCol[index].prop == 'completeFlag'">
{{ dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}
</div>
<div v-else-if="dropCol[index].prop == 'guidePrintTimes'" >
<i class="el-icon-printer"
v-if="scope.row.guidePrintTimes > 0"
style="font-size: 20px; color: green" />
<div v-else-if="dropCol[index].prop == 'guidePrintTimes'">
<i class="el-icon-printer" v-if="scope.row.guidePrintTimes > 0" style="font-size: 20px; color: green" />
</div>
<div v-else-if ="dropCol[index].prop == 'isLock'
<div v-else-if="dropCol[index].prop == 'isLock'
|| dropCol[index].prop == 'isVip'
|| dropCol[index].prop == 'isUpload'
" >
">
{{ scope.row[dropCol[index].prop] == "Y" ? "是" : "否" }}
</div>
<div v-else-if="dropCol[index].prop == 'customerOrgParentName'" >
<div v-else-if="dropCol[index].prop == 'customerOrgParentName'">
{{ scope.row.customerOrgParentName
? scope.row.customerOrgParentName
: scope.row.customerOrgName }}
</div>
<div v-else-if="dropCol[index].prop == 'sexId'" >
<div v-else-if="dropCol[index].prop == 'sexId'">
{{ dddw(dict.sex, "id", scope.row[dropCol[index].prop], "displayName") }}
</div>
<div v-else-if="dropCol[index].prop == 'groupPack'" >
<div v-if=" scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId">
{{ dddw(dict.medicalPackage,"id",scope.row.medicalPackageId,"displayName")}}
<div v-else-if="dropCol[index].prop == 'groupPack'">
<div
v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId">
{{ dddw(dict.medicalPackage, "id", scope.row.medicalPackageId, "displayName") }}
</div>
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId">
{{ dddw( dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName" ) }}
<div
v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId">
{{ dddw(dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName") }}
</div>
</div>
<div v-else-if="dropCol[index].prop == 'nationId'" >
<div v-else-if="dropCol[index].prop == 'nationId'">
{{ dddw(dict.nation, "id", scope.row[dropCol[index].prop], "displayName") }}
</div>
<div v-else-if ="dropCol[index].prop == 'birthDate'
|| dropCol[index].prop == 'creationTime'" >
{{ scope.row[dropCol[index].prop] ? moment(scope.row[dropCol[index].prop]).format('yyyy-MM-DD'):'' }}
<div v-else-if="dropCol[index].prop == 'birthDate'
|| dropCol[index].prop == 'creationTime'">
{{ scope.row[dropCol[index].prop] ? moment(scope.row[dropCol[index].prop]).format('yyyy-MM-DD') : '' }}
</div>
<div v-else-if="dropCol[index].prop == 'maritalStatusId'" >
<div v-else-if="dropCol[index].prop == 'maritalStatusId'">
{{ dddw(dict.maritalStatus, "id", scope.row[dropCol[index].prop], "displayName") }}
</div>
<div v-else-if="dropCol[index].prop == 'medicalTypeId'" >
<div v-else-if="dropCol[index].prop == 'medicalTypeId'">
{{ dddw(dict.medicalType, "id", scope.row[dropCol[index].prop], "displayName") }}
</div>
<div v-else-if="dropCol[index].prop == 'personnelTypeId'" >
<div v-else-if="dropCol[index].prop == 'personnelTypeId'">
{{ dddw(dict.personnelType, "id", scope.row[dropCol[index].prop], "displayName") }}
</div>
<div v-else>
@ -116,7 +98,7 @@
<div style="display: flex;justify-content:space-between;">
<div></div>
<div>
<span style="font-size:12px;">{{loadOpts.totalCount}} 条记录当前显示{{patientRegister.prList.length}} </span>
<span style="font-size:12px;">{{ loadOpts.totalCount }} 条记录当前显示{{ patientRegister.prList.length }} </span>
</div>
</div>
</div>
@ -129,23 +111,17 @@
</el-tabs>
</div>
<div style="margin-left: 10px;">
<div v-show="checkPagePriv(pagePriv.privs,'人员登记')" class="listBtn">
<el-button type="success" class="commonbutton" @click="btnAdd">人员登记</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '人员登记')" class="listBtn">
<el-button type="success" class="commonbutton" @click="btnAdd">人员登记</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'批量正式登记')" class="listBtn">
<el-button type="success" class="commonbutton" @click="btnAddBatch">批量正式登记</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '批量正式登记')" class="listBtn">
<el-button type="success" class="commonbutton" @click="btnAddBatch">批量正式登记</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'编辑')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnEdit"
>编辑</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '编辑')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnEdit">编辑</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'删除')" class="listBtn">
<el-button type="danger" class="commonbutton" @click="btnDel"
>删除</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '删除')" class="listBtn">
<el-button type="danger" class="commonbutton" @click="btnDel">删除</el-button>
</div>
<!--
<div class="listBtn">
@ -161,39 +137,20 @@
<el-button type="" class="btnClass commonbutton">健康档案</el-button>
</div>
-->
<div v-show="checkPagePriv(pagePriv.privs,'批量调整分组')" class="listBtn">
<el-button type="" class="commonbutton" @click="btnGroupBatch"
>批量调整分组</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '批量调整分组')" class="listBtn">
<el-button type="" class="commonbutton" @click="btnGroupBatch">批量调整分组</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'批量调整项目')" class="listBtn">
<el-button type="" class="commonbutton" @click="btnAsbBatch"
>批量调整项目</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '批量调整项目')" class="listBtn">
<el-button type="" class="commonbutton" @click="btnAsbBatch">批量调整项目</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'指引单打印')" class="listBtn">
<el-button
type=""
class="commonbutton"
@click="guidePrint('0001', false)"
>指引单打印</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '指引单打印')" class="listBtn">
<el-button type="" class="commonbutton" @click="guidePrint('0001', false)">指引单打印</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'指引单预览')" class="listBtn">
<el-button
type=""
class="commonbutton"
@click="guidePrint('0001', true)"
>指引单预览</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '指引单预览')" class="listBtn">
<el-button type="" class="commonbutton" @click="guidePrint('0001', true)">指引单预览</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs,'人员信息导出')" class="listBtn">
<el-button
type=""
class="commonbutton"
@click="btnExport('info')"
>人员信息导出</el-button
>
<div v-show="checkPagePriv(pagePriv.privs, '人员信息导出')" class="listBtn">
<el-button type="" class="commonbutton" @click="btnExport('info')">人员信息导出</el-button>
</div>
<!--
<div class="listBtn">
@ -203,81 +160,41 @@
</div>
<!-- 体检人员登记 :title="patientRegister.patientRegisterRd.id ? '体检人员--编辑' : '体检人员--新增'" -->
<el-dialog
:title="dataTransOpts.tableS.patient_register.id ? '体检人员--编辑' : '体检人员--新增'"
:visible.sync="dialogVisible"
:close-on-click-modal="false"
fullscreen @close="closeDialogPR"
>
<el-dialog :title="dataTransOpts.tableS.patient_register.id ? '体检人员--编辑' : '体检人员--新增'" :visible.sync="dialogVisible"
:close-on-click-modal="false" fullscreen @close="closeDialogPR">
<!-- :formInitData="patientRegister.patientRegisterRd" -->
<PatientRegisterEdit
:isDoctor="'0'"
:patientRegisterId = "patientRegister.patientRegisterRd.id"
:editTimes="editTimes"
:refreshRegister="refreshRegister"
/>
<PatientRegisterEdit :isDoctor="'0'" :patientRegisterId="patientRegister.patientRegisterRd.id"
:editTimes="editTimes" :refreshRegister="refreshRegister" />
</el-dialog>
<!-- 拍照 -->
<el-dialog
title="拍照"
:visible.sync="patientRegister.cameraVisble"
width="400"
height="800"
:show-close="false"
:append-to-body="true"
:close-on-click-modal="false"
>
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false"
:append-to-body="true" :close-on-click-modal="false">
<Camera :id="patientRegister.patientRegisterId" />
</el-dialog>
<!-- 指引单 -->
<el-dialog
title="指引单"
:visible.sync="dialogGuide"
width="400"
height="800"
:append-to-body="true"
:close-on-click-modal="false"
>
<el-dialog title="指引单" :visible.sync="dialogGuide" width="400" height="800" :append-to-body="true"
:close-on-click-modal="false">
<div>{{ guideMsg }}</div>
</el-dialog>
<!-- 批量调整分组 -->
<el-dialog
title="批量调整分组"
:visible.sync="dialogWin.PatientRegisterEditGroupBatch"
width="600px"
height="800px"
:append-to-body="true"
:close-on-click-modal="false"
>
<el-dialog title="批量调整分组" :visible.sync="dialogWin.PatientRegisterEditGroupBatch" width="600px" height="800px"
:append-to-body="true" :close-on-click-modal="false">
<PatientRegisterEditGroupBatch :multipleSelection="multipleSelection" />
</el-dialog>
<!-- 批量调整项目 -->
<el-dialog
title="批量调整项目"
:visible.sync="dialogWin.PatientRegisterEditItemBatch"
width="610px"
height="800px"
:append-to-body="true"
:close-on-click-modal="false"
>
<el-dialog title="批量调整项目" :visible.sync="dialogWin.PatientRegisterEditItemBatch" width="610px" height="800px"
:append-to-body="true" :close-on-click-modal="false">
<PatientRegisterEditItemBatch :multipleSelection="multipleSelection" />
</el-dialog>
<!-- 通用进度条 -->
<el-dialog
title="数据处理中……"
:visible.sync="elProgress.display"
width="600px"
height="400"
:show-close="false"
:close-on-click-modal="false"
:append-to-body="true"
>
<el-dialog title="数据处理中……" :visible.sync="elProgress.display" width="600px" height="400" :show-close="false"
:close-on-click-modal="false" :append-to-body="true">
<ElProgressOCX />
</el-dialog>
</div>
@ -291,7 +208,7 @@ import FileSaver from 'file-saver';
import html2canvas from 'html2canvas';
import {
getPagePriv,checkPagePriv,
getPagePriv, checkPagePriv,
dddw,
objCopy,
arrayReduce,
@ -318,11 +235,11 @@ export default {
},
data() {
return {
pagePriv:{
routeUrlorPageName:'patientRegister', //
privs:[] //
pagePriv: {
routeUrlorPageName: 'patientRegister', //
privs: [] //
},
peisid:null,
peisid: null,
startPoint: -1, // -1
endPoint: -1, // -1
@ -342,48 +259,48 @@ export default {
headerCols: [],
//
dropCol: [
{ label: "序号",prop: "sn",minWidth: 40,align:"center"},
{ label: "体检进度",prop: "completeFlag",minWidth: 80,align:"center"},
{ label: "打印", prop: "guidePrintTimes", minWidth: 55,align:"center" },
{ label: "锁住", prop: "isLock", minWidth: 55, align:"center"},
{ label: "单位", prop: "customerOrgParentName", minWidth: 180, align:"center"},
{ label: "部门", prop: "customerOrgName", minWidth: 120, align:"center"},
{ label: "姓名", prop: "patientName", minWidth: 80, align:"center"},
{ label: "性别", prop: "sexId", minWidth: 55, align:"center"},
{ label: "年龄", prop: "age", minWidth: 55, align:"center"},
{ label: "条码号", prop: "patientRegisterNo", minWidth: 150, align:"center"},
{ label: "档案号", prop: "patientNo", minWidth: 100, align:"center"},
{ label: "体检次数", prop: "medicalTimes", minWidth: 80, align:"center"},
{ label: "分组/套餐", prop: "groupPack", minWidth: 150, align:"center"},
{ label: "民族", prop: "nationId", minWidth: 55, align:"center"},
{ label: "身份证", prop: "idNo", minWidth: 150, align:"center"},
{ label: "出生日期", prop: "birthDate", minWidth: 80, align:"center"},
{ label: "邮箱", prop: "email", minWidth: 150, align:"center"},
{ label: "手机", prop: "mobileTelephone", minWidth: 100, align:"center"},
{ label: "电话", prop: "telephone", minWidth: 100, align:"center"},
{ label: "地址", prop: "address", minWidth: 300, align:""},
{ label: "体检卡号", prop: "medicalCardNo", minWidth: 80, align:"center"},
{ label: "工卡号", prop: "jobCardNo", minWidth: 80, align:"center"},
{ label: "婚姻状况", prop: "maritalStatusId", minWidth: 80, align:"center"},
{ label: "体检类别", prop: "medicalTypeId", minWidth: 80, align:"center"},
{ label: "人员类别", prop: "personnelTypeId", minWidth: 80, align:"center"},
{ label: "职务", prop: "jobPost", minWidth: 80, align:"center"},
{ label: "职称", prop: "jobTitle", minWidth: 80, align:"center"},
{ label: "介绍人", prop: "salesman", minWidth: 80, align:"center"},
{ label: "是否VIP", prop: "isVip", minWidth: 80, align:"center"},
{ label: "登记人", prop: "creatorName", minWidth: 80, align:"center"},
{ label: "登记日期", prop: "creationTime", minWidth: 80, align:"center"},
{ label: "是否上传", prop: "isUpload", minWidth: 80, align:"center"},
{ label: "序号", prop: "sn", minWidth: 40, align: "center" },
{ label: "体检进度", prop: "completeFlag", minWidth: 80, align: "center" },
{ label: "打印", prop: "guidePrintTimes", minWidth: 55, align: "center" },
{ label: "锁住", prop: "isLock", minWidth: 55, align: "center" },
{ label: "单位", prop: "customerOrgParentName", minWidth: 180, align: "center" },
{ label: "部门", prop: "customerOrgName", minWidth: 120, align: "center" },
{ label: "姓名", prop: "patientName", minWidth: 80, align: "center" },
{ label: "性别", prop: "sexId", minWidth: 55, align: "center" },
{ label: "年龄", prop: "age", minWidth: 55, align: "center" },
{ label: "条码号", prop: "patientRegisterNo", minWidth: 150, align: "center" },
{ label: "档案号", prop: "patientNo", minWidth: 100, align: "center" },
{ label: "体检次数", prop: "medicalTimes", minWidth: 80, align: "center" },
{ label: "分组/套餐", prop: "groupPack", minWidth: 150, align: "center" },
{ label: "民族", prop: "nationId", minWidth: 55, align: "center" },
{ label: "身份证", prop: "idNo", minWidth: 150, align: "center" },
{ label: "出生日期", prop: "birthDate", minWidth: 80, align: "center" },
{ label: "邮箱", prop: "email", minWidth: 150, align: "center" },
{ label: "手机", prop: "mobileTelephone", minWidth: 100, align: "center" },
{ label: "电话", prop: "telephone", minWidth: 100, align: "center" },
{ label: "地址", prop: "address", minWidth: 300, align: "" },
{ label: "体检卡号", prop: "medicalCardNo", minWidth: 80, align: "center" },
{ label: "工卡号", prop: "jobCardNo", minWidth: 80, align: "center" },
{ label: "婚姻状况", prop: "maritalStatusId", minWidth: 80, align: "center" },
{ label: "体检类别", prop: "medicalTypeId", minWidth: 80, align: "center" },
{ label: "人员类别", prop: "personnelTypeId", minWidth: 80, align: "center" },
{ label: "职务", prop: "jobPost", minWidth: 80, align: "center" },
{ label: "职称", prop: "jobTitle", minWidth: 80, align: "center" },
{ label: "介绍人", prop: "salesman", minWidth: 80, align: "center" },
{ label: "是否VIP", prop: "isVip", minWidth: 80, align: "center" },
{ label: "登记人", prop: "creatorName", minWidth: 80, align: "center" },
{ label: "登记日期", prop: "creationTime", minWidth: 80, align: "center" },
{ label: "是否上传", prop: "isUpload", minWidth: 80, align: "center" },
],
dom:null, //
lazyLoading:false, //
loadOpts:{
totalCount:0,
skipCount:0,
maxResultCount:100,
dom: null, //
lazyLoading: false, //
loadOpts: {
totalCount: 0,
skipCount: 0,
maxResultCount: 100,
},
loadOptsInit:{},
loadOptsInit: {},
};
},
@ -391,10 +308,10 @@ export default {
created() {
//
let userPriv = window.sessionStorage.getItem('userPriv')
if(userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
this.headerCols = deepCopy(this.dropCol)
this.loadOptsInit = Object.assign({},this.loadOpts)
this.loadOptsInit = Object.assign({}, this.loadOpts)
},
//
@ -423,7 +340,7 @@ export default {
},
methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),
moment,dddw,deepCopy,checkPagePriv,
moment, dddw, deepCopy, checkPagePriv,
//
handleRowClassName({ row, rowIndex }) {
@ -464,8 +381,8 @@ export default {
//start -------------------------
this.multipleSelection = []
this.patientRegister.prList.forEach(e =>{
if(e.choosed){
this.patientRegister.prList.forEach(e => {
if (e.choosed) {
this.multipleSelection.push(deepCopy(e))
}
})
@ -493,9 +410,9 @@ export default {
return this.$peisAPI.printPre(JSON.stringify(toOutShell));
}
})
.then(res =>{
console.log('this.$peisAPI.printPre',res)
if(JSON.parse(res).code < 0){
.then(res => {
console.log('this.$peisAPI.printPre', res)
if (JSON.parse(res).code < 0) {
this.$message.warning(JSON.parse(res).message);
}
})
@ -507,18 +424,18 @@ export default {
this.elProgress.display = true;
this.elProgress.percentage = 0;
let resPrintData,resPeisAPI,resPrintTimes;
let resPrintData, resPeisAPI, resPrintTimes;
for(let i=0;i<this.multipleSelection.length;i++){
for (let i = 0; i < this.multipleSelection.length; i++) {
try {
resPrintData = await postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.multipleSelection[i].id}`)
if(resPrintData.code == -1) continue
if (resPrintData.code == -1) continue
toOutShell.ReportTable = resPrintData.data
resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell));
if (JSON.parse(resPeisAPI).code < 0) continue
resPrintTimes = postapi("api/app/patientregister/updatepatientregisterguideprinttimesmany",[this.multipleSelection[i].id]);
if(resPrintTimes.code == -1) continue
lfind = arrayExistObj(this.patientRegister.prList,"id",this.multipleSelection[i].id);
resPrintTimes = postapi("api/app/patientregister/updatepatientregisterguideprinttimesmany", [this.multipleSelection[i].id]);
if (resPrintTimes.code == -1) continue
lfind = arrayExistObj(this.patientRegister.prList, "id", this.multipleSelection[i].id);
if (lfind > -1) {
if (this.patientRegister.prList[lfind].guidePrintTimes) {
this.patientRegister.prList[lfind].guidePrintTimes =
@ -557,9 +474,9 @@ export default {
},
///form
setForm(formData){
setForm(formData) {
this.patientRegister.patientRegisterRd = deepCopy(formData)
if(!this.patientRegister.patientRegisterRd.id){
if (!this.patientRegister.patientRegisterRd.id) {
this.patientRegister.patientRegisterRd.customerOrgId = this.patientRegister.query.customerOrgId
}
},
@ -571,7 +488,7 @@ export default {
// shift
if (this.window.shift) {
//
this.patientRegister.prList.forEach((e,index) => {
this.patientRegister.prList.forEach((e, index) => {
e.choosed = false;
e.index = index;
});
@ -579,7 +496,7 @@ export default {
if (this.startPoint == -1) {
this.patientRegister.prList[row.index].choosed = true;
this.startPoint = row.index;
}else{
} else {
if (this.startPoint > row.index) {
for (let i = row.index; i <= this.startPoint; i++) {
this.patientRegister.prList[i].choosed = true;
@ -590,20 +507,20 @@ export default {
}
}
}
}else if (this.window.ctrl) { // ctrl
} else if (this.window.ctrl) { // ctrl
this.patientRegister.prList[row.index].choosed = true;
if (this.startPoint == -1){
if (this.startPoint == -1) {
this.startPoint = row.index;
}
}else{
} else {
// ctrl shift
//
console.log("清除所有选择");
this.patientRegister.prList.forEach((e,index) => {
this.patientRegister.prList.forEach((e, index) => {
e.choosed = false;
e.index = index;
});
console.log(this.patientRegister.prList,row.index);
console.log(this.patientRegister.prList, row.index);
console.log(this.patientRegister.prList[row.index].choosed);
this.patientRegister.prList[row.index].choosed = true;
@ -611,16 +528,16 @@ export default {
}
//
console.log('row.index <= this.startPoint',row.index,this.startPoint)
console.log('row.index <= this.startPoint', row.index, this.startPoint)
let lfind = -1
for(let i=0;i<this.patientRegister.prList.length;i++){
if(this.patientRegister.prList[i].choosed){
for (let i = 0; i < this.patientRegister.prList.length; i++) {
if (this.patientRegister.prList[i].choosed) {
lfind = i
break
}
}
if(lfind > -1){
if (lfind > -1) {
//
this.dataTransOpts.tableS.patient_register.id = this.patientRegister.prList[lfind].id
// this.getCustomerOrgGroup(this.patientRegister.prList[lfind].customerOrgParentId);
@ -644,7 +561,7 @@ export default {
//
btnAdd() {
if(!this.peisid || this.peisid == 'null'){
if (!this.peisid || this.peisid == 'null') {
this.$message.warning("该用户未选归属体检中心,不能执行此操作!");
return
}
@ -676,17 +593,17 @@ export default {
//
refreshRegister(patientRegister){
console.log('编辑/新增的 form :',patientRegister)
refreshRegister(patientRegister) {
console.log('编辑/新增的 form :', patientRegister)
},
//
btnAddBatch(){
btnAddBatch() {
let patientRegisterIds = []
// start
this.multipleSelection = [];
this.patientRegister.prList.forEach((e) => {
if (e.choosed && e.completeFlag == '0'){
if (e.choosed && e.completeFlag == '0') {
this.multipleSelection.push(e);
patientRegisterIds.push(e.id)
}
@ -699,17 +616,17 @@ export default {
}
let completeFlag = '1'
let body = { completeFlag, patientRegisterIds }
postapi('/api/app/patientregister/updatepatientregistercompleteflagormedicalstartdate',body)
.then(res =>{
if(res.code != -1){
postapi('/api/app/patientregister/updatepatientregistercompleteflagormedicalstartdate', body)
.then(res => {
if (res.code != -1) {
console.log('操作成功!')
patientRegisterIds.forEach(e => {
let lfind = arrayExistObj(this.patientRegister.prList,'id',e)
if(lfind > -1) this.patientRegister.prList[lfind].completeFlag = completeFlag
let lfind = arrayExistObj(this.patientRegister.prList, 'id', e)
if (lfind > -1) this.patientRegister.prList[lfind].completeFlag = completeFlag
});
}
})
.catch(err =>{
.catch(err => {
this.$message.error(`操作失败 ${err}`);
});
},
@ -717,7 +634,7 @@ export default {
//
btnEdit() {
// if (!this.patientRegister.patientRegisterRd.id) {
if (!this.dataTransOpts.tableS.patient_register.id ) {
if (!this.dataTransOpts.tableS.patient_register.id) {
this.$message.warning("请选择要操作的记录");
return;
}
@ -730,25 +647,25 @@ export default {
},
//
async closeDialogPR(){
async closeDialogPR() {
// dataTransOpts.tableS.patient_register.id ()
if(!this.dataTransOpts.tableS.patient_register.id) return
if (!this.dataTransOpts.tableS.patient_register.id) return
//
this.patientRegister.prList.forEach(e =>{
this.patientRegister.prList.forEach(e => {
e.choosed = false
})
let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
if(res.code != 1) return
if (res.code != 1) return
this.patientRegister.prList.forEach(e => {
e.choosed = false
});
let lfind = arrayExistObj(this.patientRegister.prList,'id',this.dataTransOpts.tableS.patient_register.id)
if(lfind > -1){
objCopy(res.data,this.patientRegister.prList[lfind])
let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.dataTransOpts.tableS.patient_register.id)
if (lfind > -1) {
objCopy(res.data, this.patientRegister.prList[lfind])
this.patientRegister.prList[lfind].choosed = true
}else{
} else {
lfind = this.patientRegister.prList.length
this.patientRegister.prList.push(res.data)
this.patientRegister.prList[lfind].index = lfind
@ -756,7 +673,7 @@ export default {
}
// register_asbitem
if(lfind > -1){
if (lfind > -1) {
this.dataTransOpts.refresh.register_asbitem.M++
// setTimeout(() => {
// this.$refs['info'].setCurrentRow(currentRow)
@ -786,8 +703,8 @@ export default {
//start -------------------------
this.multipleSelection = []
this.patientRegister.prList.forEach(e =>{
if(e.choosed){
this.patientRegister.prList.forEach(e => {
if (e.choosed) {
this.multipleSelection.push(deepCopy(e))
}
})
@ -815,9 +732,9 @@ export default {
});
})
.then((res) => {
if(res.code != -1){
if (res.code != -1) {
console.log("操作成功");
arrayReduce(this.patientRegister.prList,this.multipleSelection,'id=id')
arrayReduce(this.patientRegister.prList, this.multipleSelection, 'id=id')
this.setForm(this.patientRegister.patientRegisterRdInit)
this.getPatientRegisterAbs();
}
@ -832,25 +749,25 @@ export default {
//
async Query() {
this.loadOpts = Object.assign(this.loadOpts,this.loadOptsInit)
this.loadOpts = Object.assign(this.loadOpts, this.loadOptsInit)
await this.getPrList()
},
//
async load(){
async load() {
this.loadOpts.skipCount++
await this.getPrList()
},
//
async getPrList(){
async getPrList() {
if(this.loadOpts.skipCount != 0 && this.loadOpts.skipCount*this.loadOpts.maxResultCount >= this.loadOpts.totalCount) return
console.log('getPrList',this.loadOpts)
if (this.loadOpts.skipCount != 0 && this.loadOpts.skipCount * this.loadOpts.maxResultCount >= this.loadOpts.totalCount) return
console.log('getPrList', this.loadOpts)
let body = {
skipCount:this.loadOpts.skipCount,
maxResultCount:this.loadOpts.maxResultCount
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount
};
console.log(`this.patientRegister.query`, this.patientRegister.query);
@ -862,9 +779,9 @@ export default {
// body.customerOrgId = this.patientRegister.query.customerOrgId;
// }
if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId;
if(this.patientRegister.query.customerOrgId
if (this.patientRegister.query.customerOrgId
&& this.patientRegister.query.customerOrgId != this.dict.personOrgId
&& this.patientRegister.query.customerOrgRegister.id){
&& this.patientRegister.query.customerOrgRegister.id) {
body.customerOrgRegisterId = this.patientRegister.query.customerOrgRegister.id
}
@ -919,24 +836,24 @@ export default {
});
let res = await postapi("/api/app/patientregister/getlistinfilter", body)
if(res.code != -1){
if (res.code != -1) {
//
this.loadOpts.totalCount = res.data.totalCount
let curLoad = res.data.items
let oldCount = 0
if(body.skipCount == 0){ //
if (body.skipCount == 0) { //
this.patientRegister.prList = [];
}else{
} else {
// ,
oldCount = this.patientRegister.prList.length
}
curLoad.forEach((e,index) =>{
this.patientRegister.prList.push(Object.assign({index:Number(oldCount)+Number(index),choosed:false},e))
curLoad.forEach((e, index) => {
this.patientRegister.prList.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e))
})
//
if(this.dataTransOpts.tableS.patient_register.id){
if (this.dataTransOpts.tableS.patient_register.id) {
this.dataTransOpts.refresh.register_asbitem.M++
}
}
@ -944,18 +861,18 @@ export default {
},
//
scrollFull(){
scrollFull() {
this.dom = this.$refs['info'].bodyWrapper
console.log('this.dom',this.dom)
console.log('this.dom', this.dom)
this.dom.addEventListener('scroll',async () => {
this.dom.addEventListener('scroll', async () => {
// console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight);
if(this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading){
if (this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading) {
//
console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight);
if((Number(this.loadOpts.skipCount) + 1)*Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)){
console.log('scrollTop', this.dom.scrollTop, 'clientHeight', this.dom.clientHeight, 'scrollHeight', this.dom.scrollHeight);
if ((Number(this.loadOpts.skipCount) + 1) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) {
this.lazyLoading = false
}else{
} else {
this.lazyLoading = true
await this.load()
this.lazyLoading = false
@ -978,35 +895,35 @@ export default {
let row = { ...this.rClickRow };
let items = [] //
if(checkPagePriv(this.pagePriv.privs,'发送检验申请'))
if (checkPagePriv(this.pagePriv.privs, '发送检验申请'))
items.push({
label: "发送检验申请",
onClick: () => {
this.lisRequest(row.id);
},
})
if(checkPagePriv(this.pagePriv.privs,'预览检验条码'))
if (checkPagePriv(this.pagePriv.privs, '预览检验条码'))
items.push({
label: "预览检验条码",
onClick: () => {
this.lisPrint(row.id, "0002", true);
},
})
if(checkPagePriv(this.pagePriv.privs,'打印检验条码'))
if (checkPagePriv(this.pagePriv.privs, '打印检验条码'))
items.push({
label: "打印检验条码",
onClick: () => {
this.lisPrint(row.id, "0002", false);
},
})
if(checkPagePriv(this.pagePriv.privs,'预览Pacs条码'))
if (checkPagePriv(this.pagePriv.privs, '预览Pacs条码'))
items.push({
label: "预览Pacs条码",
onClick: () => {
this.pacsPrint(row.id, "0004", true);
},
})
if(checkPagePriv(this.pagePriv.privs,'打印Pacs条码'))
if (checkPagePriv(this.pagePriv.privs, '打印Pacs条码'))
items.push({
label: "打印Pacs条码",
onClick: () => {
@ -1065,7 +982,7 @@ export default {
});
// end
if(this.multipleSelection.length < 1){
if (this.multipleSelection.length < 1) {
this.$message.warning("请选择要操作的记录")
return
}
@ -1302,17 +1219,17 @@ export default {
},
//
btnExport(elId){
btnExport(elId) {
// HTML
// let table = document.getElementById(elId); //.cloneNode(true)
this.$nextTick(() => {
let refsTable = this.$refs[elId] //.cloneNode(true) true
let table = document.getElementById(elId)
console.log('table,refsTable',table,refsTable)
console.log('table,refsTable', table, refsTable)
let tableData = table.innerHTML
let fileName = moment(new Date()).format('yyyyMMDDHHmmss')
let blob = new Blob([tableData],{type:"text/plain;charset=utf-8"});
let blob = new Blob([tableData], { type: "text/plain;charset=utf-8" });
FileSaver.saveAs(blob, fileName + '.xls');
@ -1345,13 +1262,13 @@ export default {
//
watch: {
"patientRegister.query.customerOrgId":{
"patientRegister.query.customerOrgId": {
// immediate: true, //
// deep: true, //
handler(newVal,oldVal){
handler(newVal, oldVal) {
//console.log('watch:patientRegister.query.customerOrgId:',newVal,oldVal)
//
if(newVal && newVal != oldVal){
if (newVal && newVal != oldVal) {
this.patientRegister.prList = []
this.dataTransOpts.tableM.register_asbitem = []
}
@ -1394,5 +1311,4 @@ export default {
.btnClass {
width: 100px;
}
</style>

26
src/components/patientRegister/customerOrgTreeAll.vue

@ -3,10 +3,10 @@
<div style="margin:2px 2px 2px 2px;">
<el-input placeholder="输入关键字进行过滤" v-model="filterText" size="small" />
</div>
<div :style="'overflow: scroll;height:' +(window.pageHeight < 600 ? 430 : window.pageHeight - 170) + 'px;'">
<el-tree :data="patientRegister.customerOrgTreeAll" :props="customerOrg.treeprops"
node-key="id" :filter-node-method="filterNode"
@node-click="treeclick" highlight-current ref="customerOrgTree">
<div>
<el-tree :style="'overflow: scroll;height:' + (window.pageHeight < 600 ? 465 : window.pageHeight - 135) + 'px;'"
:data="patientRegister.customerOrgTreeAll" :props="customerOrg.treeprops" node-key="id"
:filter-node-method="filterNode" @node-click="treeclick" highlight-current ref="customerOrgTree">
<span class="custom-tree-node" slot-scope="{ node, data }">
<div>
<span class="treeicons">
@ -14,11 +14,10 @@
class="el-icon-document-remove"
v-if="data.parentId == null"
></i> -->
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" v-if="data.parentId == null"/>
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png"
v-if="data.parentId == null" />
</span>
<span
:class="data.parentId == null ? 'maxtitle' : 'mintitle'"
>{{ node.label }}
<span :class="data.parentId == null ? 'maxtitle' : 'mintitle'">{{ node.label }}
</span>
</div>
</span>
@ -34,15 +33,15 @@ export default {
components: {},
data() {
return {
filterText:'',
filterText: '',
};
},
//<el-tree :data="$store.state.customerOrg.customerOrgTree" :props="$store.state.customerOrg.treeprops" @node-click="treeclick"></el-tree>
computed: {
...mapState(["window","dict", "customerOrg", "patientRegister"]),
...mapState(["window", "dict", "customerOrg", "patientRegister"]),
},
//
created() {},
created() { },
//
mounted() {
@ -55,7 +54,7 @@ export default {
getCustomerOrgTree() {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
// console.log("res.data", res.data);
if(res.code != -1) this.patientRegister.customerOrgTreeAll = res.data;
if (res.code != -1) this.patientRegister.customerOrgTreeAll = res.data;
//tcdate(this.patientRegister.customerOrgTreeAll)
});
},
@ -92,7 +91,7 @@ export default {
},
},
watch: {
"filterText"(newVal,oldVal){
"filterText"(newVal, oldVal) {
this.$refs['customerOrgTree'].filter(newVal);
}
},
@ -100,6 +99,7 @@ export default {
</script>
<style scoped>
@import "../../assets/css/global_tree.css";
.treeicons {
font-size: 20px;
margin-right: 5px;

4
src/components/patientRegister/patientRegisterAsbItem.vue

@ -1,8 +1,7 @@
<template>
<div>
<div style="display: flex">
<el-table :data="dataTransOpts.tableM.register_asbitem" border
:height="window.pageHeight < 600 ? 113 : Math.floor((window.pageHeight - 261) / 3)" size="small"
:height="window.pageHeight < 600 ? 124 : Math.floor((window.pageHeight - 228) / 3)" size="small"
highlight-current-row :summary-method="getSummaries" show-summary
ref="patientRegister.patientRegisterAbs">
<el-table-column label="序号" width="50" align="center">
@ -52,7 +51,6 @@
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
import moment from "moment";

2
src/components/patientRegister/patientRegisterQuery.vue

@ -2,7 +2,7 @@
<div style="display: flex;">
<div :style="'margin-left: 5px;display: flex; flex-wrap: wrap; height:100px;width:' + (window.pageWidth - (orgEnable=='Y' ? 0:200) - 110 - 30) + 'px;'">
<div :style="'margin-left: 5px;display: flex; flex-wrap: wrap; height:100px;width:' + (window.pageWidth - (orgEnable=='Y' ? 0:200) - 110 - 10) + 'px;'">
<div class="query">
<span class="spanClass">登记日期</span>
<el-date-picker v-model="patientRegister.query.startDate" type="date" placeholder="起始日期" size="small" style="width:90px;"/>

27
src/views/customerOrg/patientRegister.vue

@ -1,30 +1,15 @@
<template>
<div>
<el-card>
<div slot="header">
体检人员登记
<div>
<div class="contenttitle">
体检登记 /<span class="contenttitleBold">体检人员登记</span>
</div>
<div style="display: flex;">
<!-- 单位树组件 -->
<div
:style="
'border: 0px solid #888;width:200px; height:' +
(window.pageHeight < 600 ? 470 : window.pageHeight - 130) +
'px;'
"
>
<div>
<CustomerOrgTreeAll />
</div>
<div
:style="
'display:block;width:' +
(window.pageWidth - 200 - 30) +
'px;height:' +
(window.pageHeight < 600 ? 470 : window.pageHeight - 130) +
'px;' +
(window.pageHeight < 600 ? 'overflow-y: scroll;' : '')
"
>
<div style="margin-left: 5px;">
<!-- 查询条件 -->
<PatientRegisterQuery />
@ -32,7 +17,7 @@
<PatientRegisterList />
</div>
</div>
</el-card>
</div>
</div>
</template>
<script>

26
src/views/doctorCheck/doctorCheck.vue

@ -1,12 +1,13 @@
<template>
<div>
<el-card style="display: block; ">
<div slot="header" style="height:24px;">
<div style="display: flex;justify-content:space-between;">
<div>体检医生诊台 </div>
<div>
<div style="display: flex;justify-content:space-between;">
<div class="contenttitle">
体检登记 /<span class="contenttitleBold">体检人员登记</span>
</div>
<div style="position: absolute;top:50px;right:10px;z-index: 2000;">
<el-image
style="margin-top:-5px; margin-right:115px; width: 112px; height: 120px;"
style="margin-right:115px; width: 112px; height: 120px;"
:src="peoplePhoto"
>
<div slot="placeholder" class="image-slot">
@ -15,9 +16,8 @@
</el-image>
</div>
</div>
</div>
<div style="display: flex;">
<div :style="'width:' + (window.pageWidth - 110 - 45) + 'px;'">
<div :style="`width:${window.pageWidth - 120}px;`">
<div style="display: flex;justify-content:space-between;z-index:-1;" >
<div>
<PatientRegisterBase />
@ -40,21 +40,21 @@
<RegisterCheckList />
</el-tab-pane>
<el-tab-pane label="叫号" name="call">
<div :style="`height:${window.pageHeight < 600 ? 340:window.pageHeight-260}px;`">叫号</div>
<div :style="`height:${window.pageHeight < 600 ? 400:window.pageHeight-200}px;`">叫号</div>
</el-tab-pane>
</el-tabs>
<div>
<div :style="'margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 45 - 2) + 'px;'" >
<div :style="'width:' + (window.pageWidth - 200 - 110 - 15) + 'px;'" >
<div :style="'margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'" >
<CheckItemList :isCheckPicture="isCheckPicture" :registerCheckId="dataTransOpts.tableS.register_check.id"/>
</div>
<div v-if="isCheckPicture" class="demo-image__preview" :style="'margin-top: 2px;margin-left: 2px;height:110px;width:' + (window.pageWidth - 200 - 110 - 45 - 2) + 'px;'">
<CheckPicture />
</div>
<div :style="'margin-top: 2px;margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 45 - 2) + 'px;'">
<div :style="'margin-top: 2px;margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'">
<CheckSumSug :registerCheckId="dataTransOpts.tableS.register_check.id" :isCheckPicture="isCheckPicture" :optGrant="optGrant" :addSummary="addSummary" :btnMakeDiagnosis="btnMakeDiagnosis" :save="save" :audit="audit" :unAudit="unAudit" :btnLineUp="btnLineUp"/>
</div>
<div :style="'margin-top: 2px;width:' + (window.pageWidth - 200 - 110 - 45 - 2) + 'px;'">
<div :style="'margin-top: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'">
<RegisterCheckEdit :registerCheckId="dataTransOpts.tableS.register_check.id"/>
</div>
</div>
@ -64,7 +64,7 @@
<ButtonList :optGrant="optGrant" :addSummary="addSummary" :btnMakeDiagnosis="btnMakeDiagnosis" :save="save" :audit="audit" :unAudit="unAudit"/>
</div>
</div>
</el-card>
</div>
</div>
</template>
<script>

Loading…
Cancel
Save