| | |
| | | :controlxz="false" |
| | | :typeinfo="2" |
| | | /> |
| | | <pagination |
| | | <!-- <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="topqueryParams.pageNum" |
| | | :limit.sync="topqueryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | /> --> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :currentList="patientuserList" |
| | | :tableLabel="tableLabelhz" |
| | | :heights="600" |
| | | :serialnumber="false" |
| | | :center="false" |
| | | :typeinfo="3" |
| | | /> |
| | | </el-row> |
| | | <pagination |
| | | v-show="patienttotal > 0" |
| | | v-show="patienttotal > 0&&this.patientqueryParams.allhosp != 6" |
| | | :total="patienttotal" |
| | | :page.sync="patientqueryParams.pageNum" |
| | | :limit.sync="patientqueryParams.pageSize" |
| | | @pagination="handleAddpatient" |
| | | /> |
| | | </div> |
| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用病区" prop="region"> |
| | | <el-select |
| | |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | |
| | | <div class="xinz-infs"> |
| | | <el-form-item> |
| | |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | | import store from "@/store"; |
| | | import { |
| | | getTaskpatient, |
| | | getTaskpatientQC, |
| | | getlibrarylist, |
| | | getFollowuplist, |
| | | Externallist, |
| | | getQtemplatelist, |
| | | getQtemplateobj, |
| | | TaskQuestioncomit, |
| | |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0全部1科室2病区 |
| | | leavehospitaldistrictcodes: [], |
| | | leaveldeptcodes: [], |
| | | }, |
| | | topicoptions: [{ children: [{ children: [] }] }], |
| | | showSearch: true, // |
| | |
| | | value: "3", |
| | | label: "体检病人", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "院外患者", |
| | | }, |
| | | ], |
| | | source: [ |
| | | { |
| | |
| | | }, |
| | | { |
| | | value: 7, |
| | | label: "患者报告", |
| | | label: "患者日常报告", |
| | | }, |
| | | { |
| | | value: 9, |
| | | label: "患者异常报告", |
| | | }, |
| | | |
| | | { |
| | |
| | | sendType: [ |
| | | { required: true, message: "发送设置不能为空", trigger: "blur" }, |
| | | ], |
| | | deptcode: [ |
| | | { required: true, message: "适用科室不能为空", trigger: "blur" }, |
| | | ], |
| | | // leavehospitaldistrictcode: [ |
| | | // { required: true, message: "适用病区不能为空", trigger: "blur" }, |
| | | // ], |
| | | }, |
| | | // 科室院区查询入参 |
| | | queryParamsdept: { |
| | |
| | | label: "纸质", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "短信", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信公众号", |
| | | }, |
| | |
| | | label: "智能机器人", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 7) { |
| | | } else if (this.form.serviceType == 7 || this.form.serviceType == 9) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | |
| | | label: "微信小程序", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 2 || this.form.serviceType == 3) { |
| | | } else if ( |
| | | this.form.serviceType == 2 || |
| | | this.form.serviceType == 3 || |
| | | this.form.serviceType == 5 || |
| | | this.form.serviceType == 4 |
| | | ) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | |
| | | if (this.form.longTask && this.form.preachform == 6) { |
| | | this.form.patCycle = 1; |
| | | } |
| | | // |
| | | this.form.labelinfo = 1; |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | |
| | | this.objyl.isoperation = 1; |
| | | } |
| | | this.objyl.taskid = data.taskId; |
| | | this.objyl.sendDay='5', |
| | | if (!this.objyl.sendDay) { |
| | | this.objyl.sendDay = "5"; |
| | | } |
| | | TaskQuestioncomit(this.objyl).then((response) => { |
| | | this.previewtf = false; |
| | | this.form.libtemplateid = this.objyl.svyid; |
| | |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | getTaskpatient(this.patientqueryParams).then((response) => { |
| | | getTaskpatientQC(this.patientqueryParams).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patientuserList.forEach((item) => { |
| | | if (item.endtime) { |
| | |
| | | let indexa = this.overallCase.indexOf(row); |
| | | let indexb = this.form.patTaskRelevances.indexOf(row); |
| | | this.overallCase.splice(indexa, 1); |
| | | this.form.patTaskRelevances[indexb].isoperation = 3; |
| | | if (!this.form.taskid) { |
| | | this.form.patTaskRelevances.splice(indexa, 1); |
| | | } else { |
| | | this.form.patTaskRelevances[indexb].isoperation = 3; |
| | | } |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }); |
| | | }, |
| | | getList() {}, |
| | | handleQuery() { |
| | | // 获取外部患者 |
| | | console.log(this.patientqueryParams.allhosp, "aaalll"); |
| | | |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | this.Externallist(); |
| | | console.log(); |
| | | |
| | | return; |
| | | } |
| | | if (this.patientqueryParams.topica == 0) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | } |
| | | |
| | | if ( |
| | | !this.patientqueryParams.leavehospitaldistrictcodes || |
| | | !this.patientqueryParams.leavehospitaldistrictcodes[0] |
| | | ) |
| | | this.patientqueryParams.leavehospitaldistrictcodes = null; |
| | | if ( |
| | | !this.patientqueryParams.leaveldeptcodes || |
| | | !this.patientqueryParams.leaveldeptcodes[0] |
| | | ) |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | this.handleAddpatient(); |
| | | }, |
| | | // 获取外部患者导入列表 |
| | | Externallist() { |
| | | this.tableLabelhz = [ |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | ]; |
| | | this.patientqueryParams.pageSize = 1000; |
| | | |
| | | Externallist(this.patientqueryParams).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patientuserList.forEach((item) => { |
| | | if (item.endtime) { |
| | | item.endDay = this.daysBetween(item.endtime); |
| | | } |
| | | }); |
| | | this.dialogVisiblepatient = true; |
| | | this.patienttotal = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | |
| | | resetQuery() {}, |
| | | handleQuerymb() { |
| | | getQtemplatelist(this.topqueryParams).then((response) => { |
| | |
| | | |
| | | this.objyl.isoperation = 1; |
| | | console.log(this.objyl.id); |
| | | this.objyl.sendDay='5'; |
| | | if (!this.objyl.sendDay) { |
| | | this.objyl.sendDay = "5"; |
| | | } |
| | | |
| | | if (this.objyl.id) { |
| | | deleteTaskQuestioncomit(this.objyl.id).then((res) => { |