| | |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-row :gutter="20" v-if="form.longTask"> |
| | | <el-col :span="8"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="周期时间" prop="name"> |
| | | <el-input |
| | | v-model="form.sendDay" |
| | |
| | | <el-form-item label="问卷名称"> |
| | | <el-input v-model="topqueryParams.svyname"></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="适用形式" prop="status"> |
| | | <el-select v-model="topqueryParams.topica" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | value: "4", |
| | | label: "出院病人", |
| | | }, |
| | | { |
| | | value: "4", |
| | | value: "1", |
| | | label: "在院病人", |
| | | }, |
| | | { |
| | |
| | | ], |
| | | |
| | | tasktypes: [ |
| | | // { |
| | | // value: "1", |
| | | // label: "监测评估", |
| | | // }, |
| | | { |
| | | value: 1, |
| | | label: "心电随访", |
| | | }, |
| | | { |
| | | value: 2, |
| | | value: "2", |
| | | label: "出院随访", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "影像随访", |
| | | value: "3", |
| | | label: "门诊随访", |
| | | }, |
| | | { |
| | | value: 4, |
| | | value: "4", |
| | | label: "宣教关怀", |
| | | }, |
| | | { |
| | | value: 5, |
| | | label: "体检随访", |
| | | value: "5", |
| | | label: "复诊管理", |
| | | }, |
| | | { |
| | | value: 11, |
| | | label: "医技随访", |
| | | value: "6", |
| | | label: "满意度调查", |
| | | }, |
| | | { |
| | | value: 10, |
| | | label: "专科随访", |
| | | value: "7", |
| | | label: "患者报告", |
| | | }, |
| | | // { |
| | | // value: "8", |
| | | // label: "其他通知", |
| | | // }, |
| | | ], |
| | | // 科室/病区 |
| | | belongWards: [], |
| | |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if ( |
| | | (this.patientqueryParams.allhosp == 1 && |
| | | !this.patientqueryParams.zsallhosp) || |
| | | this.patientqueryParams.zsallhosp == 1 |
| | | ) { |
| | | if (this.patientqueryParams.allhosp == 4) { |
| | | this.tableLabelhz = [ |
| | | // { label: "入院日期", width: "170", prop: "starttime" }, |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if ( |
| | | this.patientqueryParams.allhosp == 4 || |
| | | this.patientqueryParams.zsallhosp == 4 |
| | | ) { |
| | | } else if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "入院日期", width: "150", prop: "starttime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | |
| | | { label: "患者标签", width: "200", prop: "tag" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else { |
| | | this.tableLabelhz = [ |
| | | { label: "就诊日期", width: "150", prop: "admitdate" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "200", prop: "tag" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | |
| | | |
| | | // 科室还是病区 |
| | | |
| | | if (this.patientqueryParams.searchscope == 1) { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | } else if (this.patientqueryParams.searchscope == 2) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | } else { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | 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; |
| | | if (this.patientqueryParams.allhosp == 4) { |
| | | this.patientqueryParams.hospitaldistrictcodes = []; |
| | | this.patientqueryParams.deptcodes = []; |
| | | this.patientqueryParams.zsallhosp = "1"; |
| | | } else if ( |
| | | this.patientqueryParams.allhosp == 4 || |
| | | this.patientqueryParams.zsallhosp == 4 |
| | | ) { |
| | | } else if (this.patientqueryParams.allhosp == 1) { |
| | | 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) => { |
| | |
| | | getList() {}, |
| | | handleQuery() { |
| | | // 获取外部患者 |
| | | console.log(this.patientqueryParams.allhosp, "aaalll"); |
| | | |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | this.Externallist(); |
| | | console.log(); |
| | | |
| | | return; |
| | | } |
| | | if (this.patientqueryParams.topica == 0) { |
| | | if (this.patientqueryParams.searchscope == 1) { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | } else if (this.patientqueryParams.searchscope == 2) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | } else if (this.patientqueryParams.topica == 1) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = null; |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | } else if (this.patientqueryParams.topica == 2) { |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | } else { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | |
| | | if ( |
| | |
| | | !this.patientqueryParams.leaveldeptcodes[0] |
| | | ) |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | console.log(this.patientqueryParams.allhosp, "bbblll"); |
| | | this.handleAddpatient(); |
| | | }, |
| | | // 获取外部患者导入列表 |
| | |
| | | "当前为新增任务未保存不可关联模板,是否先保存任务?", |
| | | "功能提示", |
| | | { |
| | | confirmButtonText: "保存任务", |
| | | cancelButtonText: "暂存模板", |
| | | confirmButtonText: "暂存模板", |
| | | cancelButtonText: "保存任务", |
| | | type: "warning", |
| | | } |
| | | ) |
| | | .then(() => { |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.templateid = this.objyl.svyid; |
| | | this.form.libtemplateid = this.objyl.svyid; |
| | | this.objyl.isoperation = 1; |
| | | this.objyl.svyTaskTemplateScriptVOS = |
| | | this.objyl.svyTemplateLibScripts; |
| | | this.form.svyTaskTemplateVO = this.objyl; |
| | | this.submitForm(); |
| | | }) |
| | | .catch(() => { |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.templateid = this.objyl.svyid; |
| | |
| | | this.$modal.msgSuccess("暂存成功保存任务后模板失效"); |
| | | this.drawermb = false; |
| | | this.previewtf = false; |
| | | }) |
| | | .catch(() => { |
| | | |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.templateid = this.objyl.svyid; |
| | | this.form.libtemplateid = this.objyl.svyid; |
| | | this.objyl.isoperation = 1; |
| | | this.objyl.svyTaskTemplateScriptVOS = |
| | | this.objyl.svyTemplateLibScripts; |
| | | this.form.svyTaskTemplateVO = this.objyl; |
| | | this.submitForm(); |
| | | }); |
| | | } else { |
| | | setTimeout(() => { |