| | |
| | | placeholder="请输入任务描述" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="服务形式"> |
| | | <!-- <el-form-item label="服务形式"> |
| | | <el-radio-group |
| | | v-model="checkList" |
| | | @change="handleCheckedCitiesChange" |
| | |
| | | v-for="(item, index) in checkboxlist" |
| | | :key="index" |
| | | :label="item.value" |
| | | @change="checkboxChange($event, item.value)" |
| | | > |
| | | {{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> --> |
| | | <el-form-item label="服务形式"> |
| | | <SortCheckbox |
| | | v-model="checkList" |
| | | :options="checkboxlist" |
| | | :selectedOrder="selectedOrder" |
| | | value-key="value" |
| | | label-key="label" |
| | | @change="checkSelectionChange" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <div class="xinz-infs"> |
| | | <el-form-item label="服务执行顺序" prop="daytime"> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="任务关联" prop="longTask"> |
| | | <el-radio-group v-model="form.appltype"> |
| | | <el-radio label="1">课题组关联</el-radio> |
| | | <el-radio label="1">科室关联</el-radio> |
| | | <el-radio label="2">病区关联</el-radio> |
| | | <el-radio label="3">疾病关联</el-radio> |
| | | <el-radio label="4">手术关联</el-radio> |
| | |
| | | </el-form-item> |
| | | <el-row v-if="form.appltype == 1"> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用课题组" prop="region"> |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | <el-select |
| | | v-model="deptcodesWards" |
| | | @remove-tag="removetag" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择课题组" |
| | | placeholder="请选择科室" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | size="medium" |
| | | :disabled="!patientqueryParams.allhosp" |
| | | @click="handleQuery" |
| | | >新增</el-button |
| | | >添加患者</el-button |
| | | > |
| | | </el-col> |
| | | |
| | |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | | import store from "@/store"; |
| | | import { |
| | | getTaskpatient, |
| | | getTaskpatientQC, |
| | | getillnesslist, |
| | | getbaseopera, |
| | | getFollowuplist, |
| | |
| | | } from "@/api/AiCentre/index"; |
| | | import { deptTreeSelect } from "@/api/system/user"; |
| | | import OptionalForm from "@/components/OptionalForm"; |
| | | import SortCheckbox from "@/components/SortCheckbox"; //表格组件 |
| | | import { MessageBox } from "element-ui"; |
| | | |
| | | import SFtable from "@/components/SFtable"; //表格组件 |
| | |
| | | patientloading: false, // 遮罩层 |
| | | dialogVisiblepatient: false, //添加患者弹框 |
| | | dialogVisiblepatientjb: false, |
| | | deptcodesWards: [], //课题组数据 |
| | | deptcodesWards: [], //科室数据 |
| | | leavehospitaldistrictcodes: [], //病区数据 |
| | | operationcodes: [], //手术数据 |
| | | illnesscodes: [], //疾病数据 |
| | |
| | | skip: false, |
| | | donorchargeList: [], |
| | | baseoperaList: [], |
| | | selectedOrder: [], |
| | | |
| | | usable: [ |
| | | { value: "0", label: "可用" }, |
| | | { value: "1", label: "停用" }, |
| | |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "课题组", width: "240", prop: "dept" }, |
| | | { label: "科室", width: "240", prop: "dept" }, |
| | | { label: "病区", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // 患者表单 |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "课题组", width: "180", prop: "deptName" }, |
| | | { label: "科室", width: "180", prop: "deptName" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | |
| | |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | }, |
| | | checkList: "", |
| | | checkList: [], |
| | | foncheckList: [], |
| | | formatvalue: { |
| | | format1: "", |
| | |
| | | patientqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0全部1课题组2病区 |
| | | topica: 1, //0全部1科室2病区 |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | }, |
| | |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | value: "4", |
| | | label: "出院病人", |
| | | }, |
| | | { |
| | | value: "4", |
| | | value: "1", |
| | | label: "在院病人", |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "课题组患者", |
| | | label: "科室患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | ], |
| | | |
| | | tasktypes: store.getters.tasktypes, |
| | | // 课题组/病区 |
| | | // 科室/病区 |
| | | belongWards: [], |
| | | deptlist: [], |
| | | hosplist: [], |
| | | diagglist: [], |
| | | operlist: [], |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | rules: { |
| | |
| | | { required: true, message: "发送设置不能为空", trigger: "blur" }, |
| | | ], |
| | | // deptcode: [ |
| | | // { required: true, message: "适用课题组不能为空", trigger: "blur" }, |
| | | // { required: true, message: "适用科室不能为空", trigger: "blur" }, |
| | | // ], |
| | | // leavehospitaldistrictcode: [ |
| | | // { required: true, message: "适用病区不能为空", trigger: "blur" }, |
| | | // ], |
| | | }, |
| | | // 课题组院区查询入参 |
| | | // 科室院区查询入参 |
| | | queryParamsdept: { |
| | | tempid: "", |
| | | type: 2, |
| | |
| | | serviceType: null, |
| | | }; |
| | | }, |
| | | components: { SFtable, OptionalForm }, |
| | | components: { SFtable, OptionalForm, SortCheckbox }, |
| | | |
| | | created() { |
| | | this.appraiselist = store.getters.appraiselist; |
| | |
| | | this.leavehospitaldistrictcodes = []; |
| | | } |
| | | if (this.checkList) { |
| | | this.form.preachform = this.checkList; |
| | | this.form.preachform = this.checkList.join(","); |
| | | this.form.preachformList = this.selectedOrder; |
| | | } else { |
| | | this.$modal.msgError("请选择服务类型"); |
| | | return; |
| | |
| | | this.$modal.msgError("请选择任务关联条件"); |
| | | return; |
| | | } |
| | | if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | this.$modal.msgError("请选择病人"); |
| | | return; |
| | | } |
| | | // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | // this.$modal.msgError("请选择病人"); |
| | | // return; |
| | | // } |
| | | |
| | | if (!this.form.templatename && !this.templateor) { |
| | | this.$modal.msgError("未选择模板"); |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "课题组", width: "180", prop: "dept" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "课题组", width: "180", prop: "dept" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "就诊日期", width: "150", prop: "admitdate" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "电话号码", width: "180", prop: "telcode" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } |
| | |
| | | } 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"; |
| | | // this.patientqueryParams.cry = 0; |
| | | // this.patientqueryParams.allhosp = "1"; |
| | | } |
| | | // 来源判断 |
| | | |
| | |
| | | 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) { |
| | |
| | | item.sfzh = item.idcardno; |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | item.patfrom = 1; |
| | | } |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | item.visittime = item.endtime; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | item.visittime = item.starttime; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | item.visittime = item.admitdate; |
| | | } |
| | | this.overallCase.push(item); |
| | | this.form.patTaskRelevances.push(item); |
| | |
| | | }, |
| | | getList() {}, |
| | | handleQuery() { |
| | | console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp); |
| | | if (this.patientqueryParams.topica == 0) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | 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) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leavehospitaldistrictcodes = store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | } |
| | | if ( |
| | |
| | | ) |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | this.handleAddpatient(); |
| | | |
| | | console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp); |
| | | }, |
| | | |
| | | resetQuerymb() { |
| | | this.topqueryParams = { svyname: "" }; |
| | | this.handleQuerymb(); |
| | |
| | | this.patientqueryParams = { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0全部1课题组2病区 |
| | | topica: 1, //0全部1科室2病区 |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | }; |
| | |
| | | ? this.form.patTaskRelevances |
| | | : []; |
| | | this.overallCase = this.form.patTaskRelevances.concat(); |
| | | this.checkList = this.form.preachform; |
| | | this.checkList = this.form.preachform.split(","); |
| | | this.selectedOrder = this.form.preachformList; |
| | | |
| | | this.overallCase.forEach((item) => { |
| | | if (item.endtime) { |
| | |
| | | this.time3 = ""; //晚上时间段 |
| | | this.time4 = ""; //晚上时间段 |
| | | }, |
| | | // 获取课题组列表 |
| | | // 获取科室列表 |
| | | listDept() { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.deptcodesWards = []; |
| | |
| | | } |
| | | }, |
| | | |
| | | // 任务课题组删除触发 |
| | | // 任务科室删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | }); |
| | | } |
| | | }, |
| | | // 保存课题组/病区 |
| | | // 保存科室/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | item.tempid = id; |
| | |
| | | }); |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("课题组更新成功"); |
| | | this.$modal.msgSuccess("科室更新成功"); |
| | | this.tempDetpRelevanceslistform = []; |
| | | } |
| | | }); |
| | |
| | | } |
| | | }); |
| | | }, |
| | | checkboxChange(checked, value) {}, |
| | | checkSelectionChange(selectedValues, selectedOrder) { |
| | | this.selectedOrder = selectedValues; |
| | | console.log("当前选中:", selectedValues); |
| | | console.log("选中顺序:", selectedOrder); |
| | | }, |
| | | // 服务形式选取 |
| | | handleCheckedCitiesChange(row) { |
| | | console.log(row, "服务"); |
| | |
| | | (obj) => obj.value !== tag.value |
| | | ); |
| | | }, |
| | | // 课题组处理 |
| | | // 科室处理 |
| | | Departmenttreatment() { |
| | | if (!this.form.taskid) { |
| | | this.templateor = true; |