|
|
|
@ -79,7 +79,12 @@ |
|
|
|
</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"> |
|
|
|
@ -103,15 +108,33 @@ |
|
|
|
<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-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-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -170,8 +193,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-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -207,7 +239,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="6" style="margin-bottom: -15px; line-height: 40px"> |
|
|
|
<el-form-item label="电话随访" prop="isPhoneFollow"> |
|
|
|
<el-radio v-model="form.isPhoneFollow" label="Y">是</el-radio> |
|
|
|
<el-radio v-model="form.isPhoneFollow" label="N">否</el-radio> |
|
|
|
@ -254,19 +286,43 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="分组" prop="customerOrgGroupId"> |
|
|
|
<el-select v-model="form.customerOrgGroupId" placeholder="请选择" filterable clearable |
|
|
|
<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" /> |
|
|
|
: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-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="套餐" prop="medicalPackageId"> |
|
|
|
<el-select v-model="form.medicalPackageId" placeholder="请选择" filterable clearable |
|
|
|
<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" /> |
|
|
|
: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-form-item> |
|
|
|
</el-col> |
|
|
|
@ -306,7 +362,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"> |
|
|
|
@ -316,7 +379,14 @@ |
|
|
|
</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> |
|
|
|
@ -333,7 +403,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 按钮区域 --> |
|
|
|
<div style="margin-left: 10px; display: flex;margin-top:10px"> |
|
|
|
<div style="margin-left: 10px; display: flex; margin-top: 10px"> |
|
|
|
<div class="btn"> |
|
|
|
<el-button @click="readIdCard">读身份证</el-button> |
|
|
|
</div> |
|
|
|
@ -403,7 +473,14 @@ |
|
|
|
<el-table-column prop="maritalStatusId" label="婚姻"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ ldddw(dict.maritalStatus,"id",scope.row.maritalStatusId,"displayName") }} |
|
|
|
{{ |
|
|
|
ldddw( |
|
|
|
dict.maritalStatus, |
|
|
|
"id", |
|
|
|
scope.row.maritalStatusId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -459,7 +536,7 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
apiurl:mm.apiurl, |
|
|
|
apiurl: mm.apiurl, |
|
|
|
form: { |
|
|
|
id: "", //id |
|
|
|
patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000... |
|
|
|
@ -478,7 +555,8 @@ export default { |
|
|
|
personnelTypeId: null, //人员类别 |
|
|
|
jobPost: "", //职务 |
|
|
|
jobTitle: "", //职称 |
|
|
|
photo:"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //照片 |
|
|
|
photo: |
|
|
|
"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //照片 |
|
|
|
salesman: "", //介绍人 |
|
|
|
sexHormoneTermId: null, //性激素期限 |
|
|
|
isNameHide: "N", //隐藏姓名 |
|
|
|
@ -552,13 +630,13 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//分组改变时触发 |
|
|
|
changeCustomerOrgGroupId(){ |
|
|
|
this.patientRegister.customerOrgGroupChange++ |
|
|
|
changeCustomerOrgGroupId() { |
|
|
|
this.patientRegister.customerOrgGroupChange++; |
|
|
|
}, |
|
|
|
|
|
|
|
//套餐改变时触发 |
|
|
|
changeMedicalPackageId(){ |
|
|
|
this.patientRegister.medicalPackageChange++ |
|
|
|
changeMedicalPackageId() { |
|
|
|
this.patientRegister.medicalPackageChange++; |
|
|
|
}, |
|
|
|
|
|
|
|
//根据姓名,身份证号 查询档案信息,用于判断人员多次体检 |
|
|
|
@ -636,7 +714,9 @@ export default { |
|
|
|
//日期转换 |
|
|
|
console.log("body.birthDate", body.birthDate); |
|
|
|
if (body.birthDate) { |
|
|
|
body.birthDate = moment(new Date(body.birthDate)).format("yyyy-MM-DD"); |
|
|
|
body.birthDate = moment(new Date(body.birthDate)).format( |
|
|
|
"yyyy-MM-DD" |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
if (this.form.id.length < 1) { |
|
|
|
@ -652,19 +732,24 @@ export default { |
|
|
|
this.patientRegister.patientRegisterId = res.data.id; |
|
|
|
this.patientRegister.patientRegisterRd = res.data; |
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.patientRegister.saveTimes++ |
|
|
|
this.patientRegister.saveTimes++; |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
} else { |
|
|
|
//id不为空则编辑 |
|
|
|
console.log(`/api/app/patient-register?PatientRegisterId=${this.form.id}`,body); |
|
|
|
putapi(`/api/app/patient-register?PatientRegisterId=${this.form.id}`,body) |
|
|
|
.then((res) => { |
|
|
|
console.log( |
|
|
|
`/api/app/patient-register?PatientRegisterId=${this.form.id}`, |
|
|
|
body |
|
|
|
); |
|
|
|
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.saveTimes++ |
|
|
|
this.patientRegister.saveTimes++; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -715,9 +800,14 @@ export default { |
|
|
|
|
|
|
|
//编辑触发 |
|
|
|
"patientRegister.patientRegisterRd.id"(newVal, oldVal) { |
|
|
|
console.log('patientRegister.patientRegisterRd.id newVal:',newVal,' oldVal:',oldVal) |
|
|
|
console.log( |
|
|
|
"patientRegister.patientRegisterRd.id newVal:", |
|
|
|
newVal, |
|
|
|
" oldVal:", |
|
|
|
oldVal |
|
|
|
); |
|
|
|
if (newVal != oldVal) { |
|
|
|
console.log('newVal:',this.patientRegister.patientRegisterRd) |
|
|
|
console.log("newVal:", this.patientRegister.patientRegisterRd); |
|
|
|
objCopy(this.patientRegister.patientRegisterRd, this.form); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -734,7 +824,7 @@ export default { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
::v-deep .el-form-item{ |
|
|
|
::v-deep .el-form-item { |
|
|
|
margin-bottom: -15px; |
|
|
|
} |
|
|
|
.btn { |
|
|
|
@ -744,13 +834,13 @@ export default { |
|
|
|
.photo { |
|
|
|
position: absolute; |
|
|
|
top: 100px; |
|
|
|
right: 43%; |
|
|
|
right: 42%; |
|
|
|
/* width: 150px; |
|
|
|
height: 150px; */ |
|
|
|
width: 150px; |
|
|
|
height: 160px; |
|
|
|
} |
|
|
|
::v-deep .el-table--small .el-table__cell{ |
|
|
|
::v-deep .el-table--small .el-table__cell { |
|
|
|
padding: 0px 0; |
|
|
|
} |
|
|
|
</style> |