指引单预览
@@ -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 @@
-
+
-
+
登记日期:
@@ -59,7 +59,7 @@
-
+
查询
@@ -109,19 +109,7 @@ export default {
};
diff --git a/src/store/index.js b/src/store/index.js
index 5e4f5b9..2883ac3 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -61,8 +61,7 @@ export default new Vuex.Store({
//体检人员登记 add by pengjun
patientRegister: {
customerOrgTreeAll: [], //体检单位列表(含个人)
- patientRegisterId: "", //当前单位ID(可根据此值是否为空,判断是新增还是编辑)
- patientRegisterRd: { id: "" }, //体检人员记录
+ patientRegisterId: "", //当前人员ID(可根据此值是否为空,判断是新增还是编辑)
patientRegisterTimes: 0, //体检人员登记窗口显示次数(弃用)
addTimes: 0, //用于触发新增时初始化赋值
saveTimes: 0, //用于体检登记时,触发分组调整保存
@@ -70,6 +69,7 @@ export default new Vuex.Store({
cameraVisble: false, //拍照控件显示
lisRequestVisble: false, //检验条码补打
mergeAsbitemVisble: false, //合并项目
+ patientRegisterRd: { id: "" }, //体检人员记录
patientRegisterRdInit: {
id: "", //id
patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000...
diff --git a/src/views/customerOrg/customerOrgGroup.vue b/src/views/customerOrg/customerOrgGroup.vue
index 31854f9..4d6734b 100644
--- a/src/views/customerOrg/customerOrgGroup.vue
+++ b/src/views/customerOrg/customerOrgGroup.vue
@@ -159,6 +159,7 @@
diff --git a/src/views/customerOrg/patientRegister.vue b/src/views/customerOrg/patientRegister.vue
index 710274a..a95a57d 100644
--- a/src/views/customerOrg/patientRegister.vue
+++ b/src/views/customerOrg/patientRegister.vue
@@ -18,7 +18,7 @@