| | |
| | | tableLabelhz: [ |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "", prop: "tag" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | |
| | | tableLabelhzwb: [ |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "sfzh" }, |
| | | { label: "患者编号", width: "200", prop: "sfzh" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | |
| | | topica: 1, //0全部1科室2病区 |
| | | leavehospitaldistrictcodes: [], |
| | | leaveldeptcodes: [], |
| | | hospitaldistrictcodes: [], |
| | | deptcodes: [], |
| | | }, |
| | | topicoptions: [{ children: [{ children: [] }] }], |
| | | showSearch: true, // |
| | |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if ( |
| | | this.patientqueryParams.allhosp == 1 || |
| | | (this.patientqueryParams.allhosp == 1 && |
| | | this.patientqueryParams.cry == 1) |
| | | !this.patientqueryParams.zsallhosp) || |
| | | this.patientqueryParams.zsallhosp == 1 |
| | | ) { |
| | | this.tableLabelhz = [ |
| | | // { label: "入院日期", width: "170", prop: "starttime" }, |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "200", prop: "tag" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | } else if ( |
| | | this.patientqueryParams.allhosp == 4 || |
| | | this.patientqueryParams.zsallhosp == 4 |
| | | ) { |
| | | this.tableLabelhz = [ |
| | | { label: "入院日期", width: "150", prop: "starttime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "200", prop: "tag" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | |
| | | } else { |
| | | this.patientqueryParams.pids = null; |
| | | } |
| | | // 类型判断 |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.patientqueryParams.cry = 1; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | this.patientqueryParams.cry = 0; |
| | | this.patientqueryParams.allhosp = "1"; |
| | | } |
| | | // 来源判断 |
| | | |
| | | // 科室还是病区 |
| | | |
| | | if (this.patientqueryParams.searchscope == 1) { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | // 出院还是入院 |
| | | if ( |
| | | (this.patientqueryParams.allhosp == 1 && |
| | | !this.patientqueryParams.zsallhosp) || |
| | | this.patientqueryParams.zsallhosp == 1 |
| | | ) { |
| | | this.patientqueryParams.cry = 1; |
| | | this.patientqueryParams.hospitaldistrictcodes = []; |
| | | this.patientqueryParams.deptcodes = []; |
| | | this.patientqueryParams.zsallhosp = "1"; |
| | | } else if ( |
| | | this.patientqueryParams.allhosp == 4 || |
| | | this.patientqueryParams.zsallhosp == 4 |
| | | ) { |
| | | this.patientqueryParams.deptcodes = |
| | | this.patientqueryParams.leaveldeptcodes; |
| | | this.patientqueryParams.hospitaldistrictcodes = |
| | | this.patientqueryParams.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | this.patientqueryParams.cry = 0; |
| | | this.patientqueryParams.allhosp = "1"; |
| | | this.patientqueryParams.zsallhosp = "4"; |
| | | } |
| | | |
| | | getTaskpatientQC(this.patientqueryParams).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patientuserList.forEach((item) => { |
| | |
| | | item.isoperation = 1; |
| | | item.patid = item.id; |
| | | item.hospType = this.patientqueryParams.allhosp; |
| | | item.sfzh = item.idcardno; |
| | | item.sfzh = item.patientno; |
| | | item.deptCode = item.deptcode; |
| | | item.deptName = item.dept; |
| | | item.admindate = item.inhosptime; |
| | | item.sfzh = item.idcardno; |
| | | item.sfzh = item.patientno; |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | item.patfrom = 1; |
| | | } |
| | |
| | | !this.patientqueryParams.leaveldeptcodes[0] |
| | | ) |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | console.log(this.patientqueryParams.allhosp, "bbblll"); |
| | | this.handleAddpatient(); |
| | | }, |
| | | // 获取外部患者导入列表 |
| | | Externallist() { |
| | | this.tableLabelhz = [ |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | ]; |