Browse Source

套餐修改

master
mch 2 years ago
parent
commit
5dab0409b9
  1. 70
      package-lock.json
  2. 3
      package.json
  3. 600
      src/components/patientRegister/PatientRegisterEdit.vue
  4. 8
      src/components/patientRegister/PatientRegisterList.vue

70
package-lock.json

@ -9,12 +9,9 @@
"version": "0.1.0",
"dependencies": {
"axios": "^1.3.3",
"core-js": "^3.8.3",
"crypto-js": "^4.1.1",
"element-ui": "^2.15.13",
"moment": "^2.29.4",
"sortable": "^2.0.0",
"sortable.js": "^0.3.0",
"sortablejs": "^1.15.0",
"vue": "^2.6.14",
"vue-json-excel": "^0.3.0",
@ -3635,11 +3632,6 @@
"node": ">=8"
}
},
"node_modules/browser-split": {
"version": "0.0.0",
"resolved": "https://registry.npmjs.org/browser-split/-/browser-split-0.0.0.tgz",
"integrity": "sha512-CNXO3AXAS1H/kOGQkPjucm1161/XoF3aVkMfujqwk85XN/D/MkQMvoB81lXyX/2rerZS+hPAYYRR3mAW05awjQ=="
},
"node_modules/browserslist": {
"version": "4.21.5",
"resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.21.5.tgz",
@ -3810,14 +3802,6 @@
"integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==",
"dev": true
},
"node_modules/class-list": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/class-list/-/class-list-0.1.1.tgz",
"integrity": "sha512-zqR0uW+VsLtyQhixBhkdQ+z6B8+Y8HTh28kdSVjJ4zTTKM7Xz2asAQSya9VI6m/34F6N6Ktm0mrchKB+E5a8Xw==",
"dependencies": {
"indexof": "0.0.1"
}
},
"node_modules/clean-css": {
"version": "5.3.2",
"resolved": "https://registry.npmmirror.com/clean-css/-/clean-css-5.3.2.tgz",
@ -4195,6 +4179,7 @@
"version": "3.28.0",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.28.0.tgz",
"integrity": "sha512-GiZn9D4Z/rSYvTeg1ljAIsEqFm0LaN9gVtwDCrKL80zHtS31p9BAjmTxVqTQDMpwlMolJZOFntUG2uwyj7DAqw==",
"dev": true,
"hasInstallScript": true
},
"node_modules/core-js-compat": {
@ -4842,11 +4827,6 @@
"node": ">= 4"
}
},
"node_modules/domhelpers": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/domhelpers/-/domhelpers-0.1.0.tgz",
"integrity": "sha512-VZYqemdYgtxO3oI3L9o3Zdf9GmQAiFV9SP3Sccf7cVbEQtMrYBENyWnrW61Ejnsv4KldzzLs0UjHNbemTff8ZA=="
},
"node_modules/domutils": {
"version": "2.8.0",
"resolved": "https://registry.npmmirror.com/domutils/-/domutils-2.8.0.tgz",
@ -6452,15 +6432,6 @@
"node": ">=10.17.0"
}
},
"node_modules/hyperscript": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/hyperscript/-/hyperscript-1.0.7.tgz",
"integrity": "sha512-dyfX683lwCsXiVUnmfnO6xji30exAUtr2yWWfCDz6FXjD+qNXwGsBKgSfFTEKNg+MArVI25ZdadfqBgsA32NMw==",
"dependencies": {
"browser-split": "0.0.0",
"class-list": "~0.1.0"
}
},
"node_modules/iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
@ -6528,11 +6499,6 @@
"node": ">=0.8.19"
}
},
"node_modules/indexof": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz",
"integrity": "sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg=="
},
"node_modules/inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz",
@ -6793,11 +6759,6 @@
"@hapi/topo": "^6.0.1"
}
},
"node_modules/jquery-browserify": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/jquery-browserify/-/jquery-browserify-1.8.1.tgz",
"integrity": "sha512-IDMCKuU5padhYWP21juFL10BOySPnlihoX7R1dHKeCcwl/JdeO3trDbimKQdPXtQsWIdYMwkAyxQ3+ksEj1iMQ=="
},
"node_modules/js-message": {
"version": "1.0.7",
"resolved": "https://registry.npmmirror.com/js-message/-/js-message-1.0.7.tgz",
@ -7522,11 +7483,6 @@
"node": "*"
}
},
"node_modules/mout": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/mout/-/mout-0.11.1.tgz",
"integrity": "sha512-pK9VNiLE3QgGBrC/3ICAscwOLU7oTNeK2l32uqNAioBYtB2tQAfSsGDNChUlk7CP23126mc5lUt6+na9FlN8JA=="
},
"node_modules/mrmime": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/mrmime/-/mrmime-1.0.1.tgz",
@ -7762,11 +7718,6 @@
"node": ">= 0.4"
}
},
"node_modules/observable": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/observable/-/observable-1.3.1.tgz",
"integrity": "sha512-n1QLn+I5eo/4TJxdrC54mHPYwDPvCZQ9FwwM2VE/jVkXf7aodqb0XImZnLbAIeSbnsWm1BzGcwjxeKktD/rb9g=="
},
"node_modules/obuf": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/obuf/-/obuf-1.1.2.tgz",
@ -9564,25 +9515,6 @@
"websocket-driver": "^0.7.4"
}
},
"node_modules/sortable": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/sortable/-/sortable-2.0.0.tgz",
"integrity": "sha512-VB3IABlS7TQDd2sRE5zSqW6pPqDsuduyuJZ5vcuGpR9gPQKtFrh1Y3xUAPfxhJ6djF1HYZEfXSO9mFs2eldJ3w==",
"dependencies": {
"hyperscript": "~1.0.1",
"jquery-browserify": "~1.8.1",
"observable": "~1.3.1"
}
},
"node_modules/sortable.js": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/sortable.js/-/sortable.js-0.3.0.tgz",
"integrity": "sha512-sAtcxX/ff9L334IKcFPnssFt7xVwsLVoaTft3iTyARBfNl42yq6JSJLbgpImO9/TRN51f5QP+6lRUsFjmz1reQ==",
"dependencies": {
"domhelpers": "^0.1.0",
"mout": "^0.11.0"
}
},
"node_modules/sortablejs": {
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz",

3
package.json

@ -9,12 +9,9 @@
},
"dependencies": {
"axios": "^1.3.3",
"core-js": "^3.8.3",
"crypto-js": "^4.1.1",
"element-ui": "^2.15.13",
"moment": "^2.29.4",
"sortable": "^2.0.0",
"sortable.js": "^0.3.0",
"sortablejs": "^1.15.0",
"vue": "^2.6.14",
"vue-json-excel": "^0.3.0",

600
src/components/patientRegister/PatientRegisterEdit.vue

@ -1,15 +1,28 @@
<template>
<div>
<table>
<td style="width:60%;">
<div style="display:flex">
<el-form ref="form" :model="form" label-width="80px" :rules="rules" size="medium">
<div style="width: 60%">
<div style="display: flex">
<el-form
ref="form"
:model="form"
label-width="80px"
:rules="rules"
size="medium"
>
<el-row>
<el-col :span="6">
<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-form-item>
</el-col>
@ -28,13 +41,21 @@
<el-row>
<el-col :span="6">
<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-col>
<el-col :span="6">
<el-form-item label="性别" prop="sexId">
<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-select>
</el-form-item>
@ -54,13 +75,23 @@
</el-col>
<el-col :span="6">
<el-form-item label="出生日期" prop="birthDate">
<el-date-picker v-model="form.birthDate" type="date" placeholder="出生日期" style="width:135px;" />
<el-date-picker
v-model="form.birthDate"
type="date"
placeholder="出生日期"
style="width: 135px"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<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-option
v-for="item in dict.maritalStatus"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
@ -70,16 +101,34 @@
<el-row>
<el-col :span="6">
<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-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<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-option>
</el-select>
</el-form-item>
@ -111,7 +160,10 @@
</el-col>
<el-col :span="6">
<el-form-item label="身份证号" prop="idNo">
<el-input v-model="form.idNo" @blur="query(form.idNo)"></el-input>
<el-input
v-model="form.idNo"
@blur="query(form.idNo)"
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
@ -136,8 +188,17 @@
</el-col>
<el-col :span="6">
<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-option>
</el-select>
</el-form-item>
@ -149,8 +210,18 @@
</el-col>
<el-col :span="6">
<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-select>
</el-form-item>
@ -163,7 +234,6 @@
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="电话随访" prop="isPhoneFollow">
<el-radio v-model="form.isPhoneFollow" label="Y"></el-radio>
@ -184,48 +254,98 @@
</el-col>
<el-col :span="6">
<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-col>
<el-col :span="6">
<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-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="分组" prop="customerOrgGroupId">
<el-select v-model="form.customerOrgGroupId" placeholder="请选择" filterable clearable
: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
: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-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="套餐" prop="medicalPackageId">
<el-select v-model="form.medicalPackageId" placeholder="请选择" filterable clearable
: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
: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-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<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-select>
</el-form-item>
</el-col>
<el-col :span="24">
<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-col>
</el-row>
@ -237,7 +357,14 @@
</el-col>
<el-col :span="6">
<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-col>
<el-col :span="6">
@ -247,12 +374,23 @@
</el-col>
<el-col :span="6">
<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-col>
</el-row>
</el-form>
<el-image class="photo" :src="apiurl + '/' + form.photo" style="width:150;height:200" >
<el-image
class="photo"
:src="apiurl + '/' + form.photo"
style="width: 150; height: 200"
>
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
@ -260,7 +398,7 @@
</div>
<!-- 按钮区域 -->
<div style="margin-left: 10px;display:flex;">
<div style="margin-left: 10px; display: flex">
<div class="btn">
<el-button @click="readIdCard">读身份证</el-button>
</div>
@ -268,58 +406,90 @@
<el-button type="success" @click="Onsubmit('form')">保存</el-button>
</div>
<div class="btn">
<el-button type="primary" @click="openCamera" icon="el-icon-camera">拍照</el-button>
<el-button type="primary" @click="openCamera" icon="el-icon-camera"
>拍照</el-button
>
</div>
<div class="btn">
<el-button type="primary" @click="">申请单</el-button>
<el-button type="primary">申请单</el-button>
</div>
<div class="btn">
<el-button type="primary" @click="">打条码</el-button>
<el-button type="primary">打条码</el-button>
</div>
<div class="btn">
<el-button type="primary" @click="">打指引单</el-button>
<el-button type="primary">打指引单</el-button>
</div>
<div class="btn">
<el-button type="primary" @click="">复制新增</el-button>
<el-button type="primary">复制新增</el-button>
</div>
</div>
</td>
<td style="width:40%">
<PatientRegisterItem :patientRegisterForm="form" />
</td>
</table>
</div>
<div style="width: 40%">
<PatientRegisterItem />
</div>
<!-- 人员档案列表 -->
<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-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 prop="patientNo" label="档案号" />
<el-table-column prop="lastTime" label="末次体检" width="100">
<template slot-scope="scope">
<div v-if="scope.row.lastTime">{{ lmoment(scope.row.lastTime, 'yyyy-MM-DD') }}</div>
<div v-if="scope.row.lastTime">
{{ lmoment(scope.row.lastTime, "yyyy-MM-DD") }}
</div>
</template>
</el-table-column>
<el-table-column prop="medicalTimes" label="体检次数" />
<el-table-column prop="displayName" label="姓名" />
<el-table-column prop="sexId" label="性别">
<template slot-scope="scope">
<div>{{ ldddw(dict.sex, 'id', scope.row.sexId, 'displayName') }}</div>
<div>
{{ ldddw(dict.sex, "id", scope.row.sexId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="maritalStatusId" label="婚姻">
<template slot-scope="scope">
<div>{{ ldddw(dict.maritalStatus, 'id', scope.row.maritalStatusId, 'displayName') }}</div>
<div>
{{
ldddw(
dict.maritalStatus,
"id",
scope.row.maritalStatusId,
"displayName"
)
}}
</div>
</template>
</el-table-column>
<el-table-column prop="birthDate" label="出生日期" width="100">
<template slot-scope="scope">
<div v-if="scope.row.birthDate">{{ lmoment(scope.row.birthDate, 'yyyy-MM-DD') }}</div>
<div v-if="scope.row.birthDate">
{{ lmoment(scope.row.birthDate, "yyyy-MM-DD") }}
</div>
</template>
</el-table-column>
<el-table-column prop="nationId" label="民族">
<template slot-scope="scope">
<div>{{ ldddw(dict.nation, 'id', scope.row.nationId, 'displayName') }}</div>
<div>
{{ ldddw(dict.nation, "id", scope.row.nationId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="idNo" label="身份证号" />
@ -332,25 +502,27 @@
</span>
</el-dialog>
<!-- 拍照 -->
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false" :append-to-body="true">
<Camera :id="form.id"/>
<el-dialog
title="拍照"
:visible.sync="patientRegister.cameraVisble"
width="400"
height="800"
:show-close="false"
:append-to-body="true"
>
<Camera :id="form.id" />
</el-dialog>
</div>
</template>
<script >
import moment from 'moment';
import { mapState } from 'vuex'
import moment from "moment";
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
<<<<<<< HEAD
import * as apiurl from '../../utlis/mm'
import * as apiurl from "../../utlis/mm";
=======
import mm from '../../utlis/mm'
>>>>>>> 7b045e524b52c92a752f9af99d518ea5d08f4ead
import { objCopy,setNull,dddw } from '../../utlis/proFunc'
import Camera from './Camera.vue'
import PatientRegisterItem from './PatientRegisterItem.vue'
import { objCopy, setNull, dddw } from "../../utlis/proFunc";
import Camera from "./Camera.vue";
import PatientRegisterItem from "./PatientRegisterItem.vue";
export default {
components: {
Camera,
@ -358,61 +530,62 @@ export default {
},
data() {
return {
apiurl:mm.apiurl,
apiurl,
form: {
id: '', //id
patientId: '00000000-0000-0000-0000-000000000000', //ID 00000-0000...
patientNo:'',//
id: "", //id
patientId: "00000000-0000-0000-0000-000000000000", //ID 00000-0000...
patientNo: "", //
customerOrgId: null, //
customerOrgGroupId: null, //
medicalPackageId: null,//
patientName: '', //
birthDate: '', // 2012-01-29
sexId: 'U', // U
medicalPackageId: null, //
patientName: "", //
birthDate: "", // 2012-01-29
sexId: "U", // U
age: null, //
jobCardNo: '', //
medicalCardNo: '', //
maritalStatusId: 'U', //
jobCardNo: "", //
medicalCardNo: "", //
maritalStatusId: "U", //
medicalTypeId: null, //
personnelTypeId: null, //
jobPost: '', //
jobTitle: '', //
photo: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg', //
salesman: '', //
jobPost: "", //
jobTitle: "", //
photo:
"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //
salesman: "", //
sexHormoneTermId: null, //
isNameHide: 'N', //
isPhoneFollow: 'N', //访
isVip: 'N', //vip
remark: '', //
isLock: 'N', //
completeFlag: '1', // 0:123
isMedicalStart: 'N', //
patientRegisterNo: '', //
isNameHide: "N", //
isPhoneFollow: "N", //访
isVip: "N", //vip
remark: "", //
isLock: "N", //
completeFlag: "1", // 0:123
isMedicalStart: "N", //
patientRegisterNo: "", //
medicalTimes: 1, //
organizationUnitId: null, //
address:'', //
email:'', //email
idNo:'', //
telephone:'', //
mobileTelephone:'', //
nationId:null, //
postalCode:'', //
creatorId:null,
creationTime:'',
lastModificationTime:'',
lastModifierId:null,
address: "", //
email: "", //email
idNo: "", //
telephone: "", //
mobileTelephone: "", //
nationId: null, //
postalCode: "", //
creatorId: null,
creationTime: "",
lastModificationTime: "",
lastModifierId: null,
}, //
defaultNull:[
'customerOrgId',
'customerOrgGroupId',
'medicalPackageId',
'age',
'medicalTypeId',
'personnelTypeId',
'sexHormoneTermId',
'organizationUnitId',
'nationId',
defaultNull: [
"customerOrgId",
"customerOrgGroupId",
"medicalPackageId",
"age",
"medicalTypeId",
"personnelTypeId",
"sexHormoneTermId",
"organizationUnitId",
"nationId",
], //uuidnull
rules: {
@ -424,88 +597,82 @@ export default {
],
},
dialogVisible:false,
patientList:[],//
patientChoosed:{}, //
dialogVisible: false,
patientList: [], //
patientChoosed: {}, //
dialogCamera:false, //
dialogCamera: false, //
};
},
created() {
},
created() {},
//
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.patientRegister.patientRegisterRd, this.form);
console.log("mounted this.form", this.form);
},
computed: {
...mapState(['dict', 'patientRegister', 'customerOrg']),
...mapState(["dict", "patientRegister", "customerOrg"]),
},
methods: {
readIdCard() {
console.log('this.form1', this.form)
console.log("this.form1", this.form);
},
//
query(param){
query(param) {
//
if(this.form.id || !param) return
if (this.form.id || !param) return;
//console.log(param)
getapi(`/api/app/patient/in-filter?Filter=${param}`)
.then(
(res) => {
if(res.code == 1){
console.log('查重 ',res) //
if(res.data.items && res.data.items.length > 0){
this.patientList = res.data.items
this.dialogVisible = true
getapi(`/api/app/patient/in-filter?Filter=${param}`).then((res) => {
if (res.code == 1) {
console.log("查重 ", res); //
if (res.data.items && res.data.items.length > 0) {
this.patientList = res.data.items;
this.dialogVisible = true;
}
}
}
)
});
},
//
rowick(row){
this.patientChoosed = row
rowick(row) {
this.patientChoosed = row;
},
//
choosePatient(){
if(!this.patientChoosed){
alert("请选中人员档案信息")
return
choosePatient() {
if (!this.patientChoosed) {
alert("请选中人员档案信息");
return;
}
this.dialogVisible = false
this.form.patientId = this.patientChoosed.id
this.form.patientName = this.patientChoosed.displayName
this.form.sexId = this.patientChoosed.sexId
this.form.maritalStatusId = this.patientChoosed.maritalStatusId
this.form.birthDate = this.patientChoosed.birthDate
this.form.nationId = this.patientChoosed.nationId
this.form.idNo = this.patientChoosed.idNo
this.form.telephone = this.patientChoosed.telephone
this.form.mobileTelephone = this.patientChoosed.mobileTelephone
this.form.patientNo = this.patientChoosed.patientNo
this.form.medicalTimes = this.patientChoosed.medicalTimes + 1
this.dialogVisible = false;
this.form.patientId = this.patientChoosed.id;
this.form.patientName = this.patientChoosed.displayName;
this.form.sexId = this.patientChoosed.sexId;
this.form.maritalStatusId = this.patientChoosed.maritalStatusId;
this.form.birthDate = this.patientChoosed.birthDate;
this.form.nationId = this.patientChoosed.nationId;
this.form.idNo = this.patientChoosed.idNo;
this.form.telephone = this.patientChoosed.telephone;
this.form.mobileTelephone = this.patientChoosed.mobileTelephone;
this.form.patientNo = this.patientChoosed.patientNo;
this.form.medicalTimes = this.patientChoosed.medicalTimes + 1;
},
ldddw(arrayData, key, value, display) {
return dddw(arrayData, key, value, display)
return dddw(arrayData, key, value, display);
},
lmoment(date, forMat) {
return moment(new Date(date)).format(forMat)
return moment(new Date(date)).format(forMat);
},
//
@ -513,63 +680,63 @@ export default {
this.$refs[formName].validate((valid) => {
if (valid) {
//
let body = {...this.form}
let body = { ...this.form };
delete body.id
delete body.patientRegisterNo
delete body.medicalTimes
delete body.completeFlag
delete body.isMedicalStart
delete body.patientNo
delete body.creatorId
delete body.creationTime
delete body.lastModificationTime
delete body.lastModifierId
delete body.id;
delete body.patientRegisterNo;
delete body.medicalTimes;
delete body.completeFlag;
delete body.isMedicalStart;
delete body.patientNo;
delete body.creatorId;
delete body.creationTime;
delete body.lastModificationTime;
delete body.lastModifierId;
setNull(body,this.defaultNull)
setNull(body, this.defaultNull);
//
console.log('body.birthDate',body.birthDate)
if(body.birthDate){
body.birthDate = moment(new Date(body.birthDate)).format('yyyy-MM-DD')
console.log("body.birthDate", body.birthDate);
if (body.birthDate) {
body.birthDate = moment(new Date(body.birthDate)).format(
"yyyy-MM-DD"
);
}
console.log('this.form.id',this.form.id)
console.log('body',body)
console.log("this.form.id", this.form.id);
console.log("body", body);
if (this.form.id.length < 1) {
//id
postapi(`/api/app/patient-register/return-info`, body)
.then(
postapi(`/api/app/patient-register/return-info`, body).then(
(res) => {
if(res.code == 1){
if (res.code == 1) {
//console.log('res',res)
this.$message.success("创健 操作成功");
objCopy(res.data,this.form)
this.patientRegister.patientRegisterId = res.data.id
this.patientRegister.patientRegisterId = res.data.id
this.patientRegister.patientRegisterRd = res.data
this.patientRegister.query.times++
objCopy(res.data, this.form);
this.patientRegister.patientRegisterId = res.data.id;
this.patientRegister.patientRegisterId = res.data.id;
this.patientRegister.patientRegisterRd = res.data;
this.patientRegister.query.times++;
}
}
)
);
} else {
//id
putapi(`/api/app/patient-register?PatientRegisterId=${this.form.id}`, body).then(
(res) => {
if(res.code == 1){
putapi(
`/api/app/patient-register?PatientRegisterId=${this.form.id}`,
body
).then((res) => {
if (res.code == 1) {
this.$message.success("更新 操作成功");
this.patientRegister.query.times++
this.patientRegister.query.times++;
}
}
);
});
}
} else {
alert('未通过数据校验');
alert("未通过数据校验");
return false;
}
})
});
},
//
@ -579,54 +746,52 @@ export default {
//
del() {
deletapi(`/api/app/customer-org/${this.customerOrg.customerOrgRd.id}`).then(
(res) => {
deletapi(
`/api/app/customer-org/${this.customerOrg.customerOrgRd.id}`
).then((res) => {
this.$message.success("删除 操作成功");
this.setData({ key: 'customerOrg.customerOrgRd', value: { id: '' } })
this.getCustomerOrgTree()
}
);
this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } });
this.getCustomerOrgTree();
});
},
//
openCamera(){
if(!this.form.id){
alert("请先保存人员信息")
return
openCamera() {
if (!this.form.id) {
alert("请先保存人员信息");
return;
}
this.patientRegister.cameraVisble = true
this.patientRegister.cameraVisble = true;
},
},
//
watch: {
//
'patientRegister.addTimes'(newVal, oldVal) {
"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)
objCopy(this.patientRegister.patientRegisterRdInit, this.form);
//console.log('this.form',this.form)
}
},
//
'patientRegister.patientRegisterRd.id'(newVal, oldVal) {
"patientRegister.patientRegisterRd.id"(newVal, oldVal) {
//console.log('patientRegister.patientRegisterRd.id newVal',newVal,' oldVal',oldVal)
if (newVal != oldVal) {
//console.log('newVal',this.patientRegister.patientRegisterRd)
objCopy(this.patientRegister.patientRegisterRd, this.form)
objCopy(this.patientRegister.patientRegisterRd, this.form);
}
},
//
'patientRegister.photo'(newVal, oldVal) {
"patientRegister.photo"(newVal, oldVal) {
//console.log('patientRegister.patientRegisterRd.id newVal',newVal,' oldVal',oldVal)
if (newVal != oldVal) {
//console.log('newVal',newVal)
this.form.photo = newVal
this.form.photo = newVal;
}
},
},
@ -643,4 +808,5 @@ export default {
right: 41%;
width: 150px;
height: 180px;
}</style>
}
</style>

8
src/components/patientRegister/PatientRegisterList.vue

@ -144,16 +144,16 @@
<el-button type="primary" @click="openCamera" icon="el-icon-camera">拍照</el-button>
</div>
<div class="listBtn">
<el-button type="primary" @click="">健康档案</el-button>
<el-button type="primary" >健康档案</el-button>
</div>
<div class="listBtn">
<el-button type="primary" @click="">调整分组</el-button>
<el-button type="primary" >调整分组</el-button>
</div>
<div class="listBtn">
<el-button type="primary" @click="">调整项目</el-button>
<el-button type="primary" >调整项目</el-button>
</div>
<div class="listBtn">
<el-button type="primary" @click="">打指引单</el-button>
<el-button type="primary" >打指引单</el-button>
</div>
</div>
</div>

Loading…
Cancel
Save