pengjun 2 years ago
parent
commit
eb01ce23d3
  1. 334
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 65
      src/components/patientRegister/PatientRegisterList.vue
  3. 3
      src/store/index.js
  4. 3
      src/views/customerOrg/customerOrg.vue
  5. 8
      src/views/customerOrg/patientRegister.vue

334
src/components/patientRegister/PatientRegisterEdit.vue

@ -3,36 +3,21 @@
<table> <table>
<td style="width: 60%"> <td style="width: 60%">
<div style="display: flex"> <div style="display: flex">
<el-form
ref="form"
:model="form"
label-width="80px"
:rules="rules"
size="medium"
>
<el-form ref="form" :model="form" label-width="80px" :rules="rules" size="medium">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="单位名称" prop="customerOrgId"> <el-form-item label="单位名称" prop="customerOrgId">
<el-cascader
v-model="form.customerOrgId"
:options="patientRegister.customerOrgTreeAll"
:props="{
checkStrictly: true,
expandTrigger: 'hover',
...customerOrg.treeprops,
}"
:show-all-levels="false"
disabled
>
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" :props="{
checkStrictly: true,
expandTrigger: 'hover',
...customerOrg.treeprops,
}" :show-all-levels="false" disabled>
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="条码号" prop="patientRegisterNo"> <el-form-item label="条码号" prop="patientRegisterNo">
<el-input
v-model="form.patientRegisterNo"
disabled
></el-input>
<el-input v-model="form.patientRegisterNo" disabled></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -45,21 +30,13 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="姓名" prop="patientName"> <el-form-item label="姓名" prop="patientName">
<el-input
v-model="form.patientName"
@blur="query(form.patientName)"
></el-input>
<el-input v-model="form.patientName" @blur="query(form.patientName)"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="性别" prop="sexId"> <el-form-item label="性别" prop="sexId">
<el-select v-model="form.sexId" placeholder="请选择"> <el-select v-model="form.sexId" placeholder="请选择">
<el-option
v-for="item in dict.sex"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
<el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -79,27 +56,15 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="出生日期" prop="birthDate"> <el-form-item label="出生日期" prop="birthDate">
<el-date-picker
v-model="form.birthDate"
type="date" value-format="yyyy-MM-dd"
placeholder="出生日期"
style="width: 135px"
@change="changeBirthDate"
/>
<el-date-picker v-model="form.birthDate" type="date" value-format="yyyy-MM-dd" placeholder="出生日期"
style="width: 135px" @change="changeBirthDate" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="婚姻状况" prop="maritalStatusId"> <el-form-item label="婚姻状况" prop="maritalStatusId">
<el-select
v-model="form.maritalStatusId"
placeholder="请选择"
>
<el-option
v-for="item in dict.maritalStatus"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
<el-select v-model="form.maritalStatusId" placeholder="请选择">
<el-option v-for="item in dict.maritalStatus" :key="item.id" :label="item.displayName"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -109,33 +74,17 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="体检类别" prop="medicalTypeId"> <el-form-item label="体检类别" prop="medicalTypeId">
<el-select
v-model="form.medicalTypeId"
placeholder="请选择"
filterable
>
<el-option
v-for="item in dict.medicalType"
:key="item.id"
:label="item.displayName"
:value="item.id"
/>
<el-select v-model="form.medicalTypeId" placeholder="请选择" filterable>
<el-option v-for="item in dict.medicalType" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="人员类别" prop="personnelTypeId"> <el-form-item label="人员类别" prop="personnelTypeId">
<el-select
v-model="form.personnelTypeId"
placeholder="请选择"
filterable
>
<el-option
v-for="item in dict.personnelType"
:key="item.id"
:label="item.displayName"
:value="item.id"
/>
<el-select v-model="form.personnelTypeId" placeholder="请选择" filterable>
<el-option v-for="item in dict.personnelType" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -166,11 +115,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="身份证号" prop="idNo"> <el-form-item label="身份证号" prop="idNo">
<el-input
v-model="form.idNo"
@change="changeIdNo"
@blur="query(form.idNo)"
></el-input>
<el-input v-model="form.idNo" @change="changeIdNo" @blur="query(form.idNo)"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -195,17 +140,8 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="民族" prop="nationId"> <el-form-item label="民族" prop="nationId">
<el-select
v-model="form.nationId"
placeholder="请选择"
filterable
>
<el-option
v-for="item in dict.nation"
:key="item.id"
:label="item.displayName"
:value="item.id"
/>
<el-select v-model="form.nationId" placeholder="请选择" filterable>
<el-option v-for="item in dict.nation" :key="item.id" :label="item.displayName" :value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -216,18 +152,9 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="性激素期" prop="sexHormoneTermId"> <el-form-item label="性激素期" prop="sexHormoneTermId">
<el-select
v-model="form.sexHormoneTermId"
placeholder="请选择"
filterable
clearable
>
<el-option
v-for="item in dict.sexHormoneTerm"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
<el-select v-model="form.sexHormoneTermId" placeholder="请选择" filterable clearable>
<el-option v-for="item in dict.sexHormoneTerm" :key="item.id" :label="item.displayName"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -261,98 +188,51 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="体检开始" prop="isMedicalStart"> <el-form-item label="体检开始" prop="isMedicalStart">
<el-radio v-model="form.isMedicalStart" label="Y" disabled
></el-radio
>
<el-radio v-model="form.isMedicalStart" label="N" disabled
></el-radio
>
<el-radio v-model="form.isMedicalStart" label="Y" disabled></el-radio>
<el-radio v-model="form.isMedicalStart" label="N" disabled></el-radio>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="体检中心" prop="organizationUnitId"> <el-form-item label="体检中心" prop="organizationUnitId">
<el-select
v-model="form.organizationUnitId"
placeholder="请选择"
filterable
>
<el-option
v-for="item in dict.organization"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
<el-select v-model="form.organizationUnitId" placeholder="请选择" filterable>
<el-option v-for="item in dict.organization" :key="item.id" :label="item.displayName"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="分组" prop="customerOrgGroupId"> <el-form-item label="分组" prop="customerOrgGroupId">
<el-select
v-model="form.customerOrgGroupId"
placeholder="请选择"
filterable
clearable
@change="changeCustomerOrgGroupId"
:disabled="
form.customerOrgId === dict.personOrgId ? true : false
"
>
<el-option
v-for="item in patientRegister.customerOrgGroup"
:key="item.id"
:label="item.displayName"
:value="item.id"
/>
<el-select v-model="form.customerOrgGroupId" placeholder="请选择" filterable clearable
@change="changeCustomerOrgGroupId" :disabled="form.customerOrgId === dict.personOrgId ? true : false
">
<el-option v-for="item in patientRegister.customerOrgGroup" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="套餐" prop="medicalPackageId"> <el-form-item label="套餐" prop="medicalPackageId">
<el-select
v-model="form.medicalPackageId"
placeholder="请选择"
filterable
clearable
@change="changeMedicalPackageId"
:disabled="
form.customerOrgId === dict.personOrgId ? false : true
"
>
<el-option
v-for="item in dict.medicalPackage"
:key="item.id"
:label="item.displayName"
:value="item.id"
/>
<el-select v-model="form.medicalPackageId" placeholder="请选择" filterable clearable
@change="changeMedicalPackageId" :disabled="form.customerOrgId === dict.personOrgId ? false : true
">
<el-option v-for="item in dict.medicalPackage" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="完成标志" prop="completeFlag"> <el-form-item label="完成标志" prop="completeFlag">
<el-select
v-model="form.completeFlag"
placeholder="请选择"
disabled
>
<el-option
v-for="item in dict.completeFlag"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
<el-select v-model="form.completeFlag" placeholder="请选择" disabled>
<el-option v-for="item in dict.completeFlag" :key="item.id" :label="item.displayName"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input
v-model="form.remark"
type="textarea"
:rows="2"
placeholder="请输入备注"
></el-input>
<el-input v-model="form.remark" type="textarea" :rows="2" placeholder="请输入备注"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -364,14 +244,10 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="创建时间"> <el-form-item label="创建时间">
<el-input
:value="
form.creationTime
? lmoment(form.creationTime, 'yyyy-MM-DD')
: ''
"
disabled
></el-input>
<el-input :value="form.creationTime
? lmoment(form.creationTime, 'yyyy-MM-DD')
: ''
" disabled></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -381,23 +257,16 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="修改时间"> <el-form-item label="修改时间">
<el-input
:value="
form.lastModificationTime
? lmoment(form.lastModificationTime, 'yyyy-MM-DD')
: ''
"
disabled
></el-input>
<el-input :value="form.lastModificationTime
? lmoment(form.lastModificationTime, 'yyyy-MM-DD')
: ''
" disabled></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-image
class="photo"
:src="apiurl + '/' + patientRegister.patientRegisterRd.photo"
style="width: 150; height: 200"
>
<el-image class="photo" :src="form.photo? (apiurl + '/' + form.photo):''"
style="width: 150; height: 200">
<div slot="placeholder" class="image-slot"> <div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span> 加载中<span class="dot">...</span>
</div> </div>
@ -413,8 +282,7 @@
<el-button type="success" class="btnClass" @click="Onsubmit('form')">保存</el-button> <el-button type="success" class="btnClass" @click="Onsubmit('form')">保存</el-button>
</div> </div>
<div class="btn"> <div class="btn">
<el-button type="primary" class="btnClass" @click="openCamera" icon="el-icon-camera"
>拍照</el-button>
<el-button type="primary" class="btnClass" @click="openCamera" icon="el-icon-camera">拍照</el-button>
</div> </div>
<div class="btn"> <div class="btn">
<el-button type="primary" class="btnClass">申请单</el-button> <el-button type="primary" class="btnClass">申请单</el-button>
@ -423,7 +291,7 @@
<el-button type="primary" class="btnClass">打条码</el-button> <el-button type="primary" class="btnClass">打条码</el-button>
</div> </div>
<div class="btn"> <div class="btn">
<el-button type="primary" class="btnClass" >打指引单</el-button>
<el-button type="primary" class="btnClass">打指引单</el-button>
</div> </div>
<div class="btn"> <div class="btn">
<el-button type="primary" class="btnClass">复制新增</el-button> <el-button type="primary" class="btnClass">复制新增</el-button>
@ -435,24 +303,9 @@
</td> </td>
</table> </table>
<!-- 人员档案列表 --> <!-- 人员档案列表 -->
<el-dialog
title="人员档案列表"
:visible.sync="dialogVisible"
width="800"
:append-to-body="true"
>
<el-table
:data="patientList"
border
width="800"
height="480"
row-key="id"
size="small"
class="el-table__body-wrapper tbody"
highlight-current-row
@row-click="rowick"
ref="patientList"
>
<el-dialog title="人员档案列表" :visible.sync="dialogVisible" width="800" :append-to-body="true">
<el-table :data="patientList" border width="800" height="480" row-key="id" size="small"
class="el-table__body-wrapper tbody" highlight-current-row @row-click="rowick" ref="patientList">
<el-table-column type="index" width="30" /> <el-table-column type="index" width="30" />
<el-table-column prop="patientNo" label="档案号" /> <el-table-column prop="patientNo" label="档案号" />
<el-table-column prop="lastTime" label="末次体检" width="100"> <el-table-column prop="lastTime" label="末次体检" width="100">
@ -474,7 +327,7 @@
<el-table-column prop="maritalStatusId" label="婚姻"> <el-table-column prop="maritalStatusId" label="婚姻">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{ ldddw(dict.maritalStatus,"id",scope.row.maritalStatusId,"displayName") }}
{{ ldddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -502,14 +355,8 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 拍照 --> <!-- 拍照 -->
<el-dialog
title="拍照"
:visible.sync="patientRegister.cameraVisble"
width="400"
height="800"
:show-close="false"
:append-to-body="true"
>
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false"
:close-on-click-modal="false" :append-to-body="true">
<Camera :id="form.id" /> <Camera :id="form.id" />
</el-dialog> </el-dialog>
</div> </div>
@ -520,7 +367,7 @@ import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import mm from "../../utlis/mm"; import mm from "../../utlis/mm";
import { objCopy, setNull, dddw,parseID,birthdayToAge } from "../../utlis/proFunc";
import { objCopy, setNull, dddw, parseID, birthdayToAge } from "../../utlis/proFunc";
import Camera from "./Camera.vue"; import Camera from "./Camera.vue";
import PatientRegisterItem from "./PatientRegisterItem.vue"; import PatientRegisterItem from "./PatientRegisterItem.vue";
export default { export default {
@ -528,6 +375,7 @@ export default {
Camera, Camera,
PatientRegisterItem, PatientRegisterItem,
}, },
props:['formInitData','editTimes'],
data() { data() {
return { return {
apiurl: mm.apiurl, apiurl: mm.apiurl,
@ -540,7 +388,7 @@ export default {
medicalPackageId: null, // medicalPackageId: null, //
patientName: "", // patientName: "", //
birthDate: "", // 2012-01-29 birthDate: "", // 2012-01-29
sexId: "9", // U
sexId: "U", // U
age: null, // age: null, //
jobCardNo: "", // jobCardNo: "", //
medicalCardNo: "", // medicalCardNo: "", //
@ -549,8 +397,7 @@ export default {
personnelTypeId: null, // personnelTypeId: null, //
jobPost: "", // jobPost: "", //
jobTitle: "", // jobTitle: "", //
photo:
"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //
photo:"", //
salesman: "", // salesman: "", //
sexHormoneTermId: null, // sexHormoneTermId: null, //
isNameHide: "N", // isNameHide: "N", //
@ -605,14 +452,11 @@ export default {
}; };
}, },
created() {},
created() { },
// //
mounted() { mounted() {
//
//console.log('mounted this.patientRegister.patientRegisterRd',this.patientRegister.patientRegisterRd)
objCopy(this.patientRegister.patientRegisterRd, this.form);
console.log("mounted this.form", this.form);
objCopy(this.formInitData, this.form);
}, },
computed: { computed: {
@ -624,14 +468,14 @@ export default {
}, },
// //
changeBirthDate(){
changeBirthDate() {
this.form.age = birthdayToAge(this.form.birthDate) this.form.age = birthdayToAge(this.form.birthDate)
}, },
// //
changeIdNo(){
changeIdNo() {
let ret = parseID(this.form.idNo) let ret = parseID(this.form.idNo)
if(ret.age != -1){
if (ret.age != -1) {
this.form.birthDate = ret.birthday this.form.birthDate = ret.birthday
this.form.age = ret.age this.form.age = ret.age
this.form.sexId = ret.sex this.form.sexId = ret.sex
@ -796,28 +640,15 @@ export default {
}, },
// //
watch: {
//
"patientRegister.addTimes"(newVal, oldVal) {
//console.log('patientRegister.addTimes newVal',newVal,' oldVal',oldVal)
if (newVal != oldVal) {
//console.log('this.patientRegister.patientRegisterRdInit',this.patientRegister.patientRegisterRdInit)
objCopy(this.patientRegister.patientRegisterRdInit, this.form);
//console.log('this.form',this.form)
}
},
watch: {
//
"patientRegister.patientRegisterRd.id"(newVal, oldVal) {
console.log(
"patientRegister.patientRegisterRd.id newVal:",
newVal,
" oldVal:",
oldVal
);
//
"editTimes"(newVal, oldVal) {
//console.log('editTimes newVal',newVal,' oldVal',oldVal)
if (newVal != oldVal) { if (newVal != oldVal) {
console.log("newVal:", this.patientRegister.patientRegisterRd);
objCopy(this.patientRegister.patientRegisterRd, this.form);
console.log('this.editTimes',this.editTimes)
objCopy(this.formInitData, this.form);
//console.log('this.form',this.form)
} }
}, },
@ -836,11 +667,13 @@ export default {
::v-deep .el-form-item { ::v-deep .el-form-item {
margin-bottom: -15px; margin-bottom: -15px;
} }
.btn { .btn {
margin-left: 10px; margin-left: 10px;
} }
.btnClass{
width:110px;
.btnClass {
width: 110px;
} }
.photo { .photo {
@ -852,6 +685,7 @@ export default {
width: 150px; width: 150px;
height: 160px; height: 160px;
} }
::v-deep .el-table--small .el-table__cell { ::v-deep .el-table--small .el-table__cell {
padding: 0px 0; padding: 0px 0;
} }

65
src/components/patientRegister/PatientRegisterList.vue

@ -1,9 +1,8 @@
<template> <template>
<div style="display: flex"> <div style="display: flex">
<div :style="'width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'"> <div :style="'width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'">
<el-table :data="dataList" border :height="patientRegister.prListHeight"
highlight-current-row @row-click="rowick" ref="dataList" size="small"
@selection-change="handleSelectionChange">
<el-table :data="patientRegister.prList" border :height="patientRegister.prListHeight" highlight-current-row @row-click="rowick"
size="small" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40"> <el-table-column type="selection" width="40">
</el-table-column> </el-table-column>
@ -142,7 +141,7 @@
<el-tab-pane label="已选组合项目" name="1"> <el-tab-pane label="已选组合项目" name="1">
<PatientRegisterAsbItem /> <PatientRegisterAsbItem />
</el-tab-pane> </el-tab-pane>
</el-tabs>
</el-tabs>
</div> </div>
<div style="margin-left: 10px;width:110px;"> <div style="margin-left: 10px;width:110px;">
<div class="listBtn"> <div class="listBtn">
@ -158,27 +157,28 @@
<el-button type="primary" class="btnClass" @click="openCamera" icon="el-icon-camera">拍照</el-button> <el-button type="primary" class="btnClass" @click="openCamera" icon="el-icon-camera">拍照</el-button>
</div> </div>
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="btnClass" >健康档案</el-button>
<el-button type="primary" class="btnClass">健康档案</el-button>
</div> </div>
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="btnClass" >调整分组</el-button>
<el-button type="primary" class="btnClass">调整分组</el-button>
</div> </div>
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="btnClass" >调整项目</el-button>
<el-button type="primary" class="btnClass">调整项目</el-button>
</div> </div>
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="btnClass" >打指引单</el-button>
<el-button type="primary" class="btnClass">打指引单</el-button>
</div> </div>
</div> </div>
<!-- 体检人员登记 --> <!-- 体检人员登记 -->
<el-dialog :title="patientRegister.patientRegisterId ? '编辑' : '新增'" :visible.sync="dialogVisible" width="100%">
<PatientRegisterEdit />
<el-dialog :title="patientRegister.patientRegisterId ? '编辑' : '新增'" :visible.sync="dialogVisible"
:close-on-click-modal="false" width="100%">
<PatientRegisterEdit :formInitData="formInitData" :editTimes="editTimes"/>
</el-dialog> </el-dialog>
<!-- 拍照 --> <!-- 拍照 -->
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false" <el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false"
:append-to-body="true">
:append-to-body="true" :close-on-click-modal="false">
<Camera :id="patientRegister.patientRegisterId" /> <Camera :id="patientRegister.patientRegisterId" />
</el-dialog> </el-dialog>
</div> </div>
@ -200,12 +200,13 @@ export default {
PatientRegisterAsbItem, PatientRegisterAsbItem,
}, },
data() { data() {
return {
dataList: [], //
return {
multipleSelection: [], // multipleSelection: [], //
dialogVisible: false, dialogVisible: false,
dialogCamera: false, dialogCamera: false,
tabChoosed: "1", tabChoosed: "1",
formInitData: {}, //
editTimes:0,
}; };
}, },
@ -214,7 +215,7 @@ export default {
// //
mounted() { }, mounted() { },
computed: { computed: {
...mapState(["window","dict", "patientRegister", "customerOrg"]),
...mapState(["window", "dict", "patientRegister", "customerOrg"]),
}, },
methods: { methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),
@ -238,6 +239,7 @@ export default {
// //
rowick(row) { rowick(row) {
this.patientRegister.photo = ""; // this.patientRegister.photo = ""; //
this.patientRegister.patientRegisterId = row.id; this.patientRegister.patientRegisterId = row.id;
this.patientRegister.patientRegisterRd = row; this.patientRegister.patientRegisterRd = row;
this.patientRegister.query.customerOrgParentId = row.customerOrgParentId; this.patientRegister.query.customerOrgParentId = row.customerOrgParentId;
@ -256,23 +258,29 @@ export default {
return; return;
} }
//console.log('customerOrgId',customerOrgId) //console.log('customerOrgId',customerOrgId)
this.patientRegister.patientRegisterId = "";
this.patientRegister.patientRegisterRd.photo = '';
this.patientRegister.patientRegisterRdInit.id = "";
// this.patientRegister.patientRegisterId = "";
// this.patientRegister.patientRegisterRd.photo = '';
// this.patientRegister.patientRegisterRdInit.id = "";
// this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId;
// this.patientRegister.addTimes++;
// this.patientRegister.patientRegisterTimes++;
this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId; this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId;
this.patientRegister.addTimes++;
this.patientRegister.patientRegisterTimes++;
this.formInitData = { ...this.patientRegister.patientRegisterRdInit };
this.patientRegister.patientRegisterAbs = []; this.patientRegister.patientRegisterAbs = [];
this.dialogVisible = true;
this.dialogVisible = true;
this.editTimes++; //
}, },
edit() { edit() {
if (!this.patientRegister.patientRegisterId) {
if (!this.patientRegister.patientRegisterRd.id) {
alert("请选择要操作的记录"); alert("请选择要操作的记录");
return; return;
} }
this.patientRegister.patientRegisterTimes++;
//this.patientRegister.patientRegisterTimes++;
this.getPatientRegisterAbs(this.patientRegister.patientRegisterRd.id);
this.formInitData = { ...this.patientRegister.patientRegisterRd };
this.dialogVisible = true; this.dialogVisible = true;
this.editTimes++; //
}, },
// //
@ -357,14 +365,14 @@ export default {
// //
query() { query() {
let body = {} let body = {}
console.log(`this.patientRegister.query`, this.patientRegister.query) console.log(`this.patientRegister.query`, this.patientRegister.query)
if (this.patientRegister.query.customerOrgFlag) { if (this.patientRegister.query.customerOrgFlag) {
if (this.patientRegister.query.CustomerOrgParentId) { if (this.patientRegister.query.CustomerOrgParentId) {
body.customerOrgId = this.patientRegister.query.CustomerOrgParentId body.customerOrgId = this.patientRegister.query.CustomerOrgParentId
} else{
} else {
if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId
}
}
} }
if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex
@ -390,7 +398,7 @@ export default {
console.log('/api/app/patientregister/getlistinfilter', body) console.log('/api/app/patientregister/getlistinfilter', body)
postapi('/api/app/patientregister/getlistinfilter', body) postapi('/api/app/patientregister/getlistinfilter', body)
.then((res) => { .then((res) => {
this.dataList = res.data;
this.patientRegister.prList = res.data;
}); });
}, },
}, },
@ -424,7 +432,8 @@ export default {
margin-top: 5px; margin-top: 5px;
text-align: center; text-align: center;
} }
.btnClass{
width:110px;
.btnClass {
width: 110px;
} }
</style> </style>

3
src/store/index.js

@ -48,7 +48,7 @@ export default new Vuex.Store({
patientRegisterTimes: 0, //体检人员登记窗口显示次数(弃用) patientRegisterTimes: 0, //体检人员登记窗口显示次数(弃用)
addTimes: 0, //用于触发新增时初始化赋值 addTimes: 0, //用于触发新增时初始化赋值
saveTimes:0, //用于体检登记时,触发分组调整保存 saveTimes:0, //用于体检登记时,触发分组调整保存
photo:"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //单独抽出,拍照时会更新
photo:"", //单独抽出,拍照时会更新
cameraVisble: false, //拍照控件显示 cameraVisble: false, //拍照控件显示
patientRegisterRdInit: { patientRegisterRdInit: {
id: "", //id id: "", //id
@ -107,6 +107,7 @@ export default new Vuex.Store({
patientRegisterAbs: [], //人员已选组合项目 patientRegisterAbs: [], //人员已选组合项目
prListHeight:312, //人员列表高度 prListHeight:312, //人员列表高度
prAsbItemHeight:156, //组合项目高度 prAsbItemHeight:156, //组合项目高度
prList:[], //体检登记记录
}, },
//体检医生诊台 //体检医生诊台

3
src/views/customerOrg/customerOrg.vue

@ -87,8 +87,7 @@ export default {
} else { } else {
this.customerOrg.orgEditStyle += "overflow-y: scroll;height:" + editHeight + "px;"; this.customerOrg.orgEditStyle += "overflow-y: scroll;height:" + editHeight + "px;";
this.customerOrg.orgDetailStyle += "overflow-y: scroll;height:" + this.customerOrg.orgDetailHeight + "px;"; this.customerOrg.orgDetailStyle += "overflow-y: scroll;height:" + this.customerOrg.orgDetailHeight + "px;";
}
}
} }
} }

8
src/views/customerOrg/patientRegister.vue

@ -170,7 +170,7 @@ export default {
}, },
resize() { resize() {
console.log(this.window.pageHeight,this.window.pageWidth)
//console.log(this.window.pageHeight,this.window.pageWidth)
let headerHeight = Number(150); let headerHeight = Number(150);
let orgDetailHeight = Number(100); let orgDetailHeight = Number(100);
let editHeight = Number(200); let editHeight = Number(200);
@ -182,13 +182,11 @@ export default {
if (this.window.pageHeight < 600) { if (this.window.pageHeight < 600) {
this.patientRegister.prListHeight = editHeight; this.patientRegister.prListHeight = editHeight;
this.patientRegister.prAsbItemHeight = orgDetailHeight; this.patientRegister.prAsbItemHeight = orgDetailHeight;
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (600 - headerHeight) + "px;";
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (600 - headerHeight) + "px;";
} else { } else {
this.patientRegister.prListHeight = Math.floor((this.window.pageHeight - 300) * 2 / 3); this.patientRegister.prListHeight = Math.floor((this.window.pageHeight - 300) * 2 / 3);
this.patientRegister.prAsbItemHeight = Math.floor((this.window.pageHeight - 300) * 1 / 3); this.patientRegister.prAsbItemHeight = Math.floor((this.window.pageHeight - 300) * 1 / 3);
console.log(this.patientRegister.prListHeight,this.patientRegister.prAsbItemHeight)
//console.log(this.patientRegister.prListHeight,this.patientRegister.prAsbItemHeight)
} }
} }
}, },

Loading…
Cancel
Save