读身份证
@@ -403,7 +473,14 @@
- {{ ldddw(dict.maritalStatus,"id",scope.row.maritalStatusId,"displayName") }}
+ {{
+ ldddw(
+ dict.maritalStatus,
+ "id",
+ scope.row.maritalStatusId,
+ "displayName"
+ )
+ }}
@@ -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,15 +630,15 @@ export default {
},
//分组改变时触发
- changeCustomerOrgGroupId(){
- this.patientRegister.customerOrgGroupChange++
+ changeCustomerOrgGroupId() {
+ this.patientRegister.customerOrgGroupChange++;
},
//套餐改变时触发
- changeMedicalPackageId(){
- this.patientRegister.medicalPackageChange++
- },
-
+ changeMedicalPackageId() {
+ this.patientRegister.medicalPackageChange++;
+ },
+
//根据姓名,身份证号 查询档案信息,用于判断人员多次体检
query(param) {
//编辑的时候不查重
@@ -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 {
};
diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue
index 7e72f2b..651ef67 100644
--- a/src/components/patientRegister/PatientRegisterItem.vue
+++ b/src/components/patientRegister/PatientRegisterItem.vue
@@ -9,7 +9,7 @@