diff --git a/src/components/doctorCheck/PatientRegisterList.vue b/src/components/doctorCheck/PatientRegisterList.vue
index d6d5f38..44393db 100644
--- a/src/components/doctorCheck/PatientRegisterList.vue
+++ b/src/components/doctorCheck/PatientRegisterList.vue
@@ -10,10 +10,10 @@
-
-
@@ -188,7 +188,7 @@
-
+
@@ -217,9 +217,14 @@ export default {
dialogVisible: false,
dialogCamera: false,
- cusOrgOCXdisp:'',
- // 控件查询条件
- ocxDatas:[],
+ cusOrgOCX:{
+ brushTimes:0, // 控制刷新 (是否显示单位)
+ useCustomerOrg: false, // 控件默认是否显示单位(如果ocxDatas有单位,则优先)
+ initDateType:'medicalStartDate', // 默认体检类型
+ cusOrgOCXdisp:'', //控件显示条件汇总
+ ocxDatas:[], // 控件查询条件
+ },
+
// 本地查询条件
local: {
query: {
@@ -301,8 +306,11 @@ export default {
dictInit() {
// 默认 当天 体检日期
let today = moment(new Date()).format('yyyy-MM-DD');
- this.ocxDatas = [{startDate: today, endDate: today, dateType: "medicalStartDate"}]
- this.cusOrgOCXdisp = `(体检${today}~${today})`
+ // 不显示单位时,默认日期
+ if(!this.cusOrgOCX.useCustomerOrg){
+ this.cusOrgOCX.ocxDatas = [{startDate: today, endDate: today, dateType: "medicalStartDate"}]
+ }
+ this.cusOrgOCX.cusOrgOCXdisp = `(体检${today}~${today})`
/* 首次使用时,再调用
//分组,所有分组,不限单位,不限次数
@@ -365,16 +373,22 @@ export default {
},
+ // 显示选择控件
+ btnDispCusOrgOCX(){
+ this.report.dialogCusOrgOCX = true
+ this.cusOrgOCX.brushTimes++
+ },
+
// 查询控件数据返回的查询条件
cusOrgOCXbak(cusOrgOCXdata){
- console.log('cusOrgOCXbak.cusOrgOCXdata',cusOrgOCXdata,this.ocxDatas)
- this.ocxDatas = []
+ console.log('cusOrgOCXbak.cusOrgOCXdata',cusOrgOCXdata,this.cusOrgOCX.ocxDatas)
+ this.cusOrgOCX.ocxDatas = []
if(Array.isArray(cusOrgOCXdata?.ocxDatas) && cusOrgOCXdata?.ocxDatas.length > 0){
cusOrgOCXdata.ocxDatas.forEach(e => {
- this.ocxDatas.push(Object.assign({},e))
+ this.cusOrgOCX.ocxDatas.push(Object.assign({},e))
});
}
- this.cusOrgOCXdisp = cusOrgOCXdata?.cusOrgOCXdisp //控件查询件显示
+ this.cusOrgOCX.cusOrgOCXdisp = cusOrgOCXdata?.cusOrgOCXdisp //控件查询件显示
},
// 关闭显示窗口
@@ -461,8 +475,8 @@ export default {
if (this.loadOpts.skipCount != 0 && this.loadOpts.skipCount * this.loadOpts.maxResultCount >= this.loadOpts.totalCount) return
let body = {}, customerOrgs = []
//console.log('this.report.dataCusOrgOCX', this.report.dataCusOrgOCX)
- if (this.ocxDatas.length > 0) {
- this.ocxDatas.forEach(e => {
+ if (this.cusOrgOCX.ocxDatas.length > 0) {
+ this.cusOrgOCX.ocxDatas.forEach(e => {
let dateType = '1'
switch (e.dateType) {
case 'medicalStartDate':
diff --git a/src/components/report/CusOrgOCX.vue b/src/components/report/CusOrgOCX.vue
index 67af613..767ccf7 100644
--- a/src/components/report/CusOrgOCX.vue
+++ b/src/components/report/CusOrgOCX.vue
@@ -119,7 +119,7 @@ import { setDBCom, getDBCom } from "../../utlis/indexedDB";
export default {
components: {},
- props: ["useCustomerOrg", "initDateType", "isUnit"],
+ props: ["useCustomerOrg", "initDateType", "isUnit","refParams"],
data() {
return {
isOnlyCus: 'Y',
@@ -185,11 +185,16 @@ export default {
//挂载组件完成
mounted() {
//获取体检单位列表树信息
- this.getCustomerOrgTree();
+ this.getCustomerOrgTree();
},
methods: {
+ fnBrush(){
+ // 如果选的组为空,或没有单位数据,则
+ this.useCusOrg = false
+ "useCustomerOrg", "initDateType", "isUnit","refParams"
+ },
//树过滤
filterNode(value, data, node) {
if (!value) return true;
@@ -517,6 +522,13 @@ export default {
// }
}
},
+
+ // 刷新页面
+ "refParams.brushTimes"(newVal, oldVal) {
+ if (newVal != oldVal) {
+ fnBrush()
+ }
+ },
// "isOnlyCus"(newVal, oldVal) {
// if (newVal == 'N') {
// this.$refs['customerOrgTree'].filter(this.filterText);
diff --git a/src/views/doctorCheck/doctorCheckBak.vue b/src/views/doctorCheck/doctorCheckBak.vue
deleted file mode 100644
index cd885f2..0000000
--- a/src/views/doctorCheck/doctorCheckBak.vue
+++ /dev/null
@@ -1,917 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/doctorCheck/sumDoctorCheck.vue b/src/views/doctorCheck/sumDoctorCheck.vue
index 99f753c..f558e53 100644
--- a/src/views/doctorCheck/sumDoctorCheck.vue
+++ b/src/views/doctorCheck/sumDoctorCheck.vue
@@ -500,7 +500,7 @@
@@ -569,7 +569,7 @@ import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue";
import ImageTextReport from "../../components/occDisease/ImageTextReport.vue";
import AsbitemCriticalValue from "../../components/sumDoctorCheck/AsbitemCriticalValue.vue";
import OccDisease from "../../components/occDisease/OccDisease.vue"
-import PatientRegisterList from "../../components/doctorCheck/PatientRegisterList.vue";
+import PatientRegisterList1 from "../../components/doctorCheck/PatientRegisterList.vue";
import PhoneFollowUp from "../../components/follow/PhoneFollowUp.vue";
export default {
components: {
@@ -583,7 +583,7 @@ export default {
ImageTextReport,
AsbitemCriticalValue,
OccDisease,
- PatientRegisterList,
+ PatientRegisterList1,
PhoneFollowUp
},
data() {
diff --git a/src/views/doctorCheck/sumDoctorCheckBak.vue b/src/views/doctorCheck/sumDoctorCheckBak.vue
deleted file mode 100644
index 39b4d42..0000000
--- a/src/views/doctorCheck/sumDoctorCheckBak.vue
+++ /dev/null
@@ -1,301 +0,0 @@
-
-
-
-
-
- 体检 /总检医生诊台
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-