diff --git a/src/store/index.js b/src/store/index.js index 56c61f7..f112848 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -38,7 +38,7 @@ export default new Vuex.Store({ patientRegisterRd: { id: "" }, //体检人员记录 patientRegisterTimes: 0, //体检人员登记窗口显示次数(弃用) addTimes: 0, //用于触发新增时初始化赋值 - saveTimes:0, //用于体检登记时,触发分组调整保存 + saveTimes: 0, //用于体检登记时,触发分组调整保存 photo: "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //单独抽出,拍照时会更新 cameraVisble: false, //拍照控件显示 @@ -87,49 +87,49 @@ export default new Vuex.Store({ }, //体检人员记录(初始值)一般创建用 customerOrgGroupAsb: [], //选中分组所包含的组合项目 medicalPackageAsb: [], //选中套餐所包含的组合项目 - customerOrgGroupChange:0, //控制体检列表记录切换时,0 无需触发更换分组操作 - medicalPackageChange:0, //控制体检列表记录切换时,0 无需触发更换套餐操作 + customerOrgGroupChange: 0, //控制体检列表记录切换时,0 无需触发更换分组操作 + medicalPackageChange: 0, //控制体检列表记录切换时,0 无需触发更换套餐操作 query: { times: 0, //触发查询次数 customerOrgId: "", //体检单位ID CustomerOrgParentId: "", //单位父级ID - customerOrgFlag:true, //单位作为查询条件 + customerOrgFlag: true, //单位作为查询条件 }, //查询条件 customerOrgGroup: [], //分组(针对单位) patientRegisterAbs: [], //人员已选组合项目 - + }, //体检医生诊台 - doctorCheck:{ - prBase:{ - id:'', //体检登记ID + doctorCheck: { + prBase: { + id: '', //体检登记ID }, //人员体检登记显示基本信息 - RegisterCheckEdit:{ - id:'', - checkDoctorId:null, - checkDate:'', - completeFlag:'0', - LastModificationTime:'', - LastModifierId:null, - isLock:'N', - isAudit:'N', - auditorUserId:null, - auditTime:'', + RegisterCheckEdit: { + id: '', + checkDoctorId: null, + checkDate: '', + completeFlag: '0', + LastModificationTime: '', + LastModifierId: null, + isLock: 'N', + isAudit: 'N', + auditorUserId: null, + auditTime: '', }, //组合项目详情 - RegisterCheckList:[], //人员体检 组合项目列表 - RegisterCheck:{}, //单组合项目记录 - RegisterCheckId:'', // - checkItemList:[], //组合项目包含的明细项目 - checkItem:{}, //单项目记录 - checkSummaryList:[], //小结 - checkSuggestionList:[], //建议 + RegisterCheckList: [], //人员体检 组合项目列表 + RegisterCheck: {}, //单组合项目记录 + RegisterCheckId: '', // + checkItemList: [], //组合项目包含的明细项目 + checkItem: {}, //单项目记录 + checkSummaryList: [], //小结 + checkSuggestionList: [], //建议 }, //总检医生 - sumDoctorCheck:{ - sumPREdit:{}, //总检医生时间等相关信息 + sumDoctorCheck: { + sumPREdit: {}, //总检医生时间等相关信息 }, //公共字典数据 add by pengjun @@ -137,7 +137,7 @@ export default new Vuex.Store({ personOrgId: "00000000-0000-0000-0000-000000000000", //个人体检单位ID organization: [], //体检中心 sex: [], //性别(人员档案用) - forSex:[], //适用性别 + forSex: [], //适用性别 medicalType: [], //体检类别 personnelType: [], //人员类别 maritalStatus: [], //婚姻状况 @@ -157,7 +157,7 @@ export default new Vuex.Store({ { id: "1", displayName: "已检" }, { id: "2", displayName: "弃检" }, ], - sumAudit:[ + sumAudit: [ //总检审核 { id: "Y", displayName: "已审核" }, { id: "N", displayName: "未审核" } @@ -168,7 +168,7 @@ export default new Vuex.Store({ { id: "1", displayName: "单位支付" }, { id: "2", displayName: "赠送" }, ], - checkTypeFlag:[ + checkTypeFlag: [ { id: "0", displayName: "检验" }, { id: "1", displayName: "功能检查" }, ], @@ -204,41 +204,41 @@ export default new Vuex.Store({ } }, - doctorCheckPrBaseInit(state){ + doctorCheckPrBaseInit(state) { state.doctorCheck.prBase = { - id:'', //体检登记ID - patientRegisterNo:'', //条码号 - patientNo:'', //档案号 - patientName:'', //姓名 - sexId:'', //性别 - medicalTimes:'', //体检次数 - maritalStatusId:'', //婚姻 - creationTime:'', //体检日期 - customerOrgParentName:'', //单位 - customerOrgName:'', //部门 - medicalTypeId:'', //体检类别 - personnelTypeId:'', //人员类别 - nationId:'', //民族 - mobileTelephone:'', //手机 + id: '', //体检登记ID + patientRegisterNo: '', //条码号 + patientNo: '', //档案号 + patientName: '', //姓名 + sexId: '', //性别 + medicalTimes: '', //体检次数 + maritalStatusId: '', //婚姻 + creationTime: '', //体检日期 + customerOrgParentName: '', //单位 + customerOrgName: '', //部门 + medicalTypeId: '', //体检类别 + personnelTypeId: '', //人员类别 + nationId: '', //民族 + mobileTelephone: '', //手机 } //人员体检登记显示基本信息 }, - sumPREditInit(state){ + sumPREditInit(state) { state.sumDoctorCheck.sumPREdit = { - id:'', //体检登记ID - completeFlag:'', //完成状态 - summaryDoctor:'', //总检医生 - summaryDate:'', //总检日期 - isAudit:'', //审核状态 - auditDoctor:'', //审核医生 - auditDate:'', //审核日期 + id: '', //体检登记ID + completeFlag: '', //完成状态 + summaryDoctor: '', //总检医生 + summaryDate: '', //总检日期 + isAudit: '', //审核状态 + auditDoctor: '', //审核医生 + auditDate: '', //审核日期 } //人员体检登记显示基本信息 }, }, actions: { //获取体检人员所选组合项目 - getPatientRegisterAbs(context, id){ + getPatientRegisterAbs(context, id) { //console.log(`vuex getPatientRegisterAbs /api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`, context.state.dict.asbItemAll) getapi(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`).then( (res) => { @@ -248,7 +248,7 @@ export default new Vuex.Store({ key: "patientRegister.patientRegisterAbs", value: res.data, }); - + context.commit("setData", { key: "dict.asbItem", value: arrayReduce( @@ -267,16 +267,16 @@ export default new Vuex.Store({ getCustomerOrgGroup(context, customerOrgld) { console.log(`vuex /api/app/customer-org-group/in-customer-org-id/${customerOrgld}`); getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`) - .then((res) => { - console.log("vuex getCustomerOrgGroup", res.data); - if (res.code == 1) { - //this.patientRegister.customerOrgGroup = res.data - context.commit("setData", { - key: "patientRegister.customerOrgGroup", - value: res.data, - }); - } - }); + .then((res) => { + console.log("vuex getCustomerOrgGroup", res.data); + if (res.code == 1) { + //this.patientRegister.customerOrgGroup = res.data + context.commit("setData", { + key: "patientRegister.customerOrgGroup", + value: res.data, + }); + } + }); }, }, modules: {}, diff --git a/src/views/basic-dictionary/CommonChar.vue b/src/views/basic-dictionary/CommonChar.vue index 268c853..a1a7b7d 100644 --- a/src/views/basic-dictionary/CommonChar.vue +++ b/src/views/basic-dictionary/CommonChar.vue @@ -92,7 +92,7 @@ 类别 @@ -177,7 +177,7 @@