- 查找: 条码号
+ 查找: 条码号
- 档案号
+ 档案号
- 姓名
+ 姓名
- 手机号
+ 手机号
@@ -623,7 +623,7 @@ import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import mm from "../../utlis/mm";
-import { objCopy, setNull, dddw, parseID, birthdayToAge, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto } from "../../utlis/proFunc";
+import { objCopy, setNull, dddw, parseID, birthdayToAge, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc";
import Camera from "./Camera.vue";
import PatientRegisterItem from "./PatientRegisterItem.vue";
import LisRequest from "./LisRequest.vue";
@@ -913,13 +913,13 @@ export default {
//分组改变时触发
changeCustomerOrgGroupId() {
this.patientRegister.customerOrgGroupChange++;
- if (this.form.id) this.Onsubmit('form', false);
+ if (this.form.id) this.btnSubmit('form', false);
},
//套餐改变时触发
changeMedicalPackageId() {
this.patientRegister.medicalPackageChange++;
- if (this.form.id) this.Onsubmit('form', false);
+ if (this.form.id) this.btnSubmit('form', false);
},
//根据姓名,身份证号 查询档案信息,用于判断人员多次体检
@@ -1045,7 +1045,7 @@ export default {
},
//提交
- Onsubmit(formName, msgTip) {
+ btnSubmit(formName, msgTip) {
this.$refs[formName].validate((valid) => {
if (valid) {
//赋值
@@ -1095,14 +1095,17 @@ export default {
objCopy(res.data, this.form);
// this.patientRegister.prList.push(res.data); //列表添加记录
- this.patientRegister.patientRegisterId = res.data.id;
+ this.patientRegister.patientRegisterId = res.data.id;
+ this.patientRegister.patientRegisterRd = res.data;
+
+ //this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新)
+ this.patientRegister.prList.push(res.data)
+
+ //触发已选组合项目保存
this.patientRegister.patientRegisterAbs.forEach(e => {
e.patientRegisterId = res.data.id;
return e;
});
- this.patientRegister.patientRegisterRd = res.data;
-
- this.patientRegister.query.times++;
this.patientRegister.saveTimes++;
}
}
@@ -1115,7 +1118,11 @@ export default {
if (msgTip) this.$message.success("更新 操作成功");
//一般读身份证照片时,会出现这种情况
if (this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(this.form.id, this.patientRegister.photo);
- this.patientRegister.query.times++;
+ //this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新)
+ let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id)
+ if(lfind > - 1) objCopy(this.form,this.patientRegister.prList[lfind])
+
+
//this.patientRegister.saveTimes++; //更新保存时,无需触发组合项目保存
}
});
@@ -1485,4 +1492,7 @@ export default {
.query {
margin-left: 10px;
}
+.querySpan {
+ margin-right: 2px;
+}
diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue
index a9fa2c3..b5e9bbc 100644
--- a/src/components/patientRegister/PatientRegisterList.vue
+++ b/src/components/patientRegister/PatientRegisterList.vue
@@ -896,7 +896,7 @@ export default {
//查询
async Query() {
this.patientRegister.prList = [];
- let body = {};
+ let body = {maxResultCount:500};
console.log(`this.patientRegister.query`, this.patientRegister.query);
if (this.patientRegister.query.customerOrgFlag) {
diff --git a/src/store/index.js b/src/store/index.js
index 606749f..1c3bbc4 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -29,6 +29,7 @@ export default new Vuex.Store({
},
customerOrg: {
//体检单位设置
+ oprStatus:'',//空,add,edit 三种状态
customerOrgTree: [], //体检单位列表
defaultExpandedKeys:[], //当前选中树的节点
treeCurrentNodekey:'', //当前选中树的节点
diff --git a/src/utlis/proFunc.js b/src/utlis/proFunc.js
index d41563e..7202ca1 100644
--- a/src/utlis/proFunc.js
+++ b/src/utlis/proFunc.js
@@ -15,13 +15,13 @@ function tcdate(date) {
};
exports.tcdate = tcdate;
-//json 对像赋值 只从 from 对象 赋值 to 中有的 key 项 add by pengjun
-function objCopy(from, to) {
- if (from && to) {
- let keys = Object.keys(to);
+//json 对像赋值 只从 provide/提供 对象 赋值到 receive/接收 中有的 key 项 add by pengjun receive provide
+function objCopy(provide, receive) {
+ if (provide && receive) {
+ let keys = Object.keys(receive);
for (let key in keys) {
- if (from[keys[key]] !== undefined) {
- to[keys[key]] = from[keys[key]];
+ if (provide[keys[key]] !== undefined) {
+ receive[keys[key]] = provide[keys[key]];
}
}
}
From 70d6876390865b00f6494e2d378541d69ec168d4 Mon Sep 17 00:00:00 2001
From: pengjun <158915633@qq.com>
Date: Fri, 13 Oct 2023 18:12:55 +0800
Subject: [PATCH 2/3] org seo
---
src/components/customerOrg/customerOrgEdit.vue | 5 +++++
.../patientRegister/PatientRegisterList.vue | 11 ++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue
index bb8c097..c7b6bd6 100644
--- a/src/components/customerOrg/customerOrgEdit.vue
+++ b/src/components/customerOrg/customerOrgEdit.vue
@@ -467,6 +467,11 @@ export default {
//新增弹框
async add(formName, child) {
await this.$refs[formName].resetFields();
+ //console.log('this.peisid',this.peisid)
+ if(!this.peisid || this.peisid == 'null'){
+ this.$message.warning("该用户未选归属体检中心,不能执行此操作!");
+ return
+ }
if (child) {
if (!this.customerOrg.customerOrgId) {
diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue
index b5e9bbc..3593929 100644
--- a/src/components/patientRegister/PatientRegisterList.vue
+++ b/src/components/patientRegister/PatientRegisterList.vue
@@ -475,6 +475,7 @@ export default {
},
data() {
return {
+ peisid:null,
startPoint: -1, // 多选起点 -1 表示选择
endPoint: -1, // 多选终点 -1 表示选择
@@ -555,6 +556,9 @@ export default {
//挂载完成
mounted() {
this.quickAsb = this.dict.asbItemAll;
+
+ this.peisid = window.sessionStorage.getItem('peisid');
+
//初始化可以拖动的列
this.dropCol = this.columnDrop(this.dropCol);
},
@@ -778,7 +782,12 @@ export default {
},
//体检次数 相关操作
- add() {
+ add() {
+ if(!this.peisid || this.peisid == 'null'){
+ this.$message.warning("该用户未选归属体检中心,不能执行此操作!");
+ return
+ }
+
let customerOrgId = this.patientRegister.query.customerOrgId;
if (!customerOrgId) {
alert("请选择单位或个人");
From a882e9b46213f95b8005b536a6fb8b36bf106f7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E6=96=8C=E6=9D=B0?= <>
Date: Sat, 14 Oct 2023 02:01:23 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=A8=A1=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/fee-settings/Item.vue | 222 ++++++++++++++++++++++----------
1 file changed, 152 insertions(+), 70 deletions(-)
diff --git a/src/views/fee-settings/Item.vue b/src/views/fee-settings/Item.vue
index 401b392..2e31f38 100644
--- a/src/views/fee-settings/Item.vue
+++ b/src/views/fee-settings/Item.vue
@@ -204,6 +204,7 @@
v-model="form.unitId"
placeholder="请选择"
style="width: 100%"
+ filterable
>
+
@@ -253,7 +263,9 @@
+ >
+
+
@@ -283,9 +295,11 @@
-
+
-
+
+
+
@@ -293,7 +307,7 @@
-
+
@@ -462,30 +476,32 @@
-
+
+ {{scope.row.diagnosisId}}
+