diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 262d2ef..2e16c37 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -742,6 +742,9 @@ export default { if (!this.form.id) { this.form.organizationUnitId = this.peisid; } + objCopy(this.formInitData, this.form); + this.initBox(); + this.getPeoplePhoto(this.patientRegister.photo) }, //挂载完成 @@ -1055,6 +1058,7 @@ export default { //提交 btnSubmit(formName, msgTip) { this.$refs[formName].validate((valid,fields) => { + console.log('fields',fields) if(!valid){ this.$message.warning(fields[Object.keys(fields)[0]][0].message); return false @@ -1455,7 +1459,7 @@ export default { "editTimes"(newVal, oldVal) { //console.log('editTimes newVal:',newVal,' oldVal:',oldVal) if (newVal != oldVal) { - console.log('this.editTimes', this.editTimes) + console.log('this.editTimes', this.editTimes,this.formInitData) objCopy(this.formInitData, this.form); this.initBox(); this.getPeoplePhoto(this.patientRegister.photo) diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 13e9292..a3e9080 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -75,8 +75,10 @@ @focus="totalFoucs = true" @blur="totalFoucs = false" />
- @@ -823,8 +825,8 @@ export default { // }, //快速选择组合项目时,调整可按拼间简码及简称查找 - remoteMethod(keyWords) { - //console.log('remoteMethod',this.dict.asbItemQuick) + filterMethod(keyWords) { + //console.log('filterMethod',this.dict.asbItemQuick) if (keyWords) { this.quickAsb = []; this.dict.asbItemQuick.forEach(item => { @@ -835,7 +837,7 @@ export default { } }); } else { - this.quickAsb = [...this.dict.asbItemQuick]; + this.quickAsb = deepCopy(this.dict.asbItemQuick); } }, diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index b8242d2..1848a8a 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -2,7 +2,7 @@
@@ -122,26 +122,25 @@
-
+
- 人员登记人员登记
- 编辑
- 删除
拍照 -->
- 调整分组批量调整分组
- 调整项目批量调整项目
指引单打印 @@ -173,7 +172,7 @@
指引单预览 @@ -188,14 +187,14 @@ @@ -767,10 +766,12 @@ export default { break } } - if(lfind > -1 && this.patientRegister.patientRegisterId != this.patientRegister.prList[lfind].id){ - this.patientRegister.patientRegisterId = this.patientRegister.prList[lfind].id - this.patientRegister.photo = this.patientRegister.prList[lfind].photo || "/pic/Photo.jpg"; + + if(lfind > -1 && this.patientRegister.patientRegisterRd.id != this.patientRegister.prList[lfind].id){ this.patientRegister.patientRegisterRd = this.patientRegister.prList[lfind]; + this.patientRegister.photo = this.patientRegister.prList[lfind].photo || "/pic/Photo.jpg"; + this.patientRegister.patientRegisterRd.customerOrgId = this.patientRegister.query.customerOrgId; + this.patientRegister.query.customerOrgParentId = this.patientRegister.prList[lfind].customerOrgParentId; this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作 this.patientRegister.medicalPackageChange = 0; //控制体检列表记录切换时,0 无需触发更换套餐操作 @@ -782,7 +783,7 @@ export default { }, //体检次数 相关操作 - add() { + btnAdd() { if(!this.peisid || this.peisid == 'null'){ this.$message.warning("该用户未选归属体检中心,不能执行此操作!"); return @@ -793,16 +794,11 @@ export default { this.$message.warning("请选择单位或个人"); return; } - //console.log('customerOrgId',customerOrgId) - this.patientRegister.patientRegisterId = ""; - this.patientRegister.photo = "/pic/Photo.jpg"; - // 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.formInitData = deepCopy(this.patientRegister.patientRegisterRdInit); + + this.patientRegister.patientRegisterRd = deepCopy(this.patientRegister.patientRegisterRdInit) + this.patientRegister.patientRegisterRd.customerOrgId = this.patientRegister.query.customerOrgId; + this.patientRegister.photo = "/pic/Photo.jpg"; + this.patientRegister.patientRegisterAbs = []; this.dialogVisible = true; this.editTimes++; //触发表单窗口,数据更新 @@ -814,9 +810,6 @@ export default { this.$message.warning("请选择要操作的记录"); return; } - //this.patientRegister.patientRegisterTimes++; - //this.getPatientRegisterAbs(this.patientRegister.patientRegisterRd.id); - this.formInitData = deepCopy(this.patientRegister.patientRegisterRd); this.dialogVisible = true; this.editTimes++; //触发表单窗口,数据更新 }, @@ -893,13 +886,6 @@ export default { }); }, - ldddw(arrayData, key, value, display) { - return dddw(arrayData, key, value, display); - }, - - lmoment(date, forMat) { - return moment(new Date(date)).format(forMat); - }, //查询 async Query() { @@ -1030,6 +1016,9 @@ export default { this.pacsPrint(row.id, "0004", false); }, }, + { + label: "----------------", + }, ], event, //x: event.clientX, @@ -1580,8 +1569,11 @@ export default { }; diff --git a/src/components/patientRegister/customerOrgTreeAll.vue b/src/components/patientRegister/customerOrgTreeAll.vue index e14e47d..2202ced 100644 --- a/src/components/patientRegister/customerOrgTreeAll.vue +++ b/src/components/patientRegister/customerOrgTreeAll.vue @@ -37,10 +37,9 @@ export default { methods: { //获取体检单位列表树信息 getCustomerOrgTree() { - getapi("/api/app/customerorg/getbycodeall").then((res) => { - //customerOrgTree = res.data; - console.log("res.data", res.data); - this.patientRegister.customerOrgTreeAll = res.data; + getapi("/api/app/customerorg/getbycodeall").then((res) => { + // console.log("res.data", res.data); + if(res.code != -1) this.patientRegister.customerOrgTreeAll = res.data; //tcdate(this.patientRegister.customerOrgTreeAll) }); }, @@ -52,7 +51,7 @@ export default { return; } getapi(`/api/app/customer-org/parent/${customerOrgld}`).then((res) => { - console.log("res.data", res.data); + // console.log("res.data", res.data); if (res.code == 1) { this.patientRegister.query.CustomerOrgParentId = res.data; } diff --git a/src/components/patientRegister/patientRegisterQuery.vue b/src/components/patientRegister/patientRegisterQuery.vue index a7925d5..d31b5f9 100644 --- a/src/components/patientRegister/patientRegisterQuery.vue +++ b/src/components/patientRegister/patientRegisterQuery.vue @@ -1,8 +1,8 @@