|
|
|
@ -623,7 +623,7 @@ import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import mm from "../../utlis/mm"; |
|
|
|
|
|
|
|
import { objCopy, setNull, dddw,checkIDCode, parseID, birthdayToAge,ageToBirthday, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import { objCopy, setNull, dddw,checkIDCode, parseID, birthdayToAge,ageToBirthday, deepCopy, arrayFilter, arrayReduce,parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import Camera from "./Camera.vue"; |
|
|
|
import PatientRegisterItem from "./PatientRegisterItem.vue"; |
|
|
|
import LisRequest from "./LisRequest.vue"; |
|
|
|
@ -957,11 +957,16 @@ export default { |
|
|
|
|
|
|
|
//添加或更新已选组合项目 |
|
|
|
this.addGroupPackageAsb(res.data, typeFlag,groupPackageId); |
|
|
|
|
|
|
|
arrayReduce(this.dict.asbItem, [...this.patientRegister.patientRegisterAbs], "id=asbitemId"); |
|
|
|
arrayReduce(this.dict.asbItemQuick, [...this.patientRegister.patientRegisterAbs], "id=asbitemId"); |
|
|
|
|
|
|
|
//console.log('delBody', delBody,delBody['registerAsbitemIds'].length); |
|
|
|
if (delBody['registerAsbitemIds'].length > 0) { |
|
|
|
return postapi(`/api/app/registerasbitem/deletemany`, delBody) |
|
|
|
} else { |
|
|
|
this.onSubmit(msg); |
|
|
|
} else { |
|
|
|
typeFlag == 'group' ? this.patientRegister.customerOrgGroupChange++ : this.patientRegister.medicalPackageChange++; |
|
|
|
if (this.form.id) this.btnSubmit('form', false); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -969,7 +974,9 @@ export default { |
|
|
|
//console.log('res', res); |
|
|
|
if (res && res.code != -1) { |
|
|
|
//添加新套餐的组合项目 |
|
|
|
this.onSubmit(msg); |
|
|
|
typeFlag == 'group' ? this.patientRegister.customerOrgGroupChange++ : this.patientRegister.medicalPackageChange++; |
|
|
|
if (this.form.id) this.btnSubmit('form', false); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
@ -1081,16 +1088,19 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//分组改变时触发 |
|
|
|
// //分组改变时触发 |
|
|
|
changeCustomerOrgGroupId() { |
|
|
|
this.patientRegister.customerOrgGroupChange++; |
|
|
|
if (this.form.id) this.btnSubmit('form', false); |
|
|
|
// this.patientRegister.customerOrgGroupChange++; |
|
|
|
// if (this.form.id) this.btnSubmit('form', false); |
|
|
|
this.getGroupPackageAsb('group',this.form.customerOrgGroupId) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//套餐改变时触发 |
|
|
|
// //套餐改变时触发 |
|
|
|
changeMedicalPackageId() { |
|
|
|
this.patientRegister.medicalPackageChange++; |
|
|
|
if (this.form.id) this.btnSubmit('form', false); |
|
|
|
// this.patientRegister.medicalPackageChange++; |
|
|
|
// if (this.form.id) this.btnSubmit('form', false); |
|
|
|
this.getGroupPackageAsb('package',this.form.medicalPackageId) |
|
|
|
}, |
|
|
|
|
|
|
|
//根据姓名,身份证号 查询档案信息,用于判断人员多次体检 |
|
|
|
|