| | |
| | | type: Array, |
| | | default: () => [], |
| | | }, |
| | | // selectedOrder: { |
| | | // type: Array, |
| | | // default: () => [], |
| | | // }, |
| | | initialselectedOrder: { |
| | | type: Array, |
| | | default: () => [], |
| | | }, |
| | | valueKey: { |
| | | type: String, |
| | | default: "value", |
| | |
| | | newVal.length > 0 && |
| | | typeof newVal[0] === "object" |
| | | ) { |
| | | console.log(this.selectedOrder, "111"); |
| | | |
| | | // 1. 传入的是对象数组 [{ sort, preachform, compensateTime }] |
| | | this.checkedValues = newVal.map((item) => item.preachform); // 提取 preachform 组成选中值数组 |
| | | // 构建 selectedOrder,优先使用传入的 compensateTime,否则用默认值 |
| | |
| | | // 2. 传入的是字符串数组 (如 ["1", "3", "4"],兼容之前的用法) |
| | | if (JSON.stringify(newVal) !== JSON.stringify(this.checkedValues)) { |
| | | this.checkedValues = [...newVal]; |
| | | console.log(this.selectedOrder, "222"); |
| | | console.log(this.newVal, "22"); |
| | | // 构建或更新 selectedOrder,保留已有的 compensateTime |
| | | const newOrder = []; |
| | | newVal.forEach((value) => { |
| | |
| | | } else { |
| | | newOrder.push({ |
| | | value, |
| | | compensateTime: this.defaultCompensateTime, |
| | | compensateTime: this.hasOwnProperty(value) |
| | | ? this.hasOwnProperty(value) |
| | | : this.defaultCompensateTime, |
| | | }); |
| | | } |
| | | }); |
| | |
| | | } |
| | | } |
| | | }, |
| | | deep: true // 建议添加 deep: true 以确保对象数组内的变化能被捕获 |
| | | deep: true, // 建议添加 deep: true 以确保对象数组内的变化能被捕获 |
| | | }, |
| | | checkedValues(newVal, oldVal) { |
| | | console.log(this.selectedOrder, "333"); |
| | | // 处理选中项的变化 |
| | | const added = newVal.filter((item) => !oldVal.includes(item)); |
| | | const removed = oldVal.filter((item) => !newVal.includes(item)); |
| | |
| | | this.emitChangeEvent(); |
| | | } |
| | | }, |
| | | hasOwnProperty(patfrom) { |
| | | console.log(patfrom); |
| | | console.log(this.initialselectedOrder); |
| | | // 使用find方法查找匹配的对象 |
| | | const foundObject = this.initialselectedOrder.find( |
| | | (item) => item.preachform === patfrom |
| | | ); |
| | | |
| | | // 如果找到对象,返回其compensateTime;否则返回false |
| | | return foundObject ? foundObject.compensateTime : false; |
| | | }, |
| | | // 发射变化事件 |
| | | emitChangeEvent() { |
| | | // 转换数据格式为父组件需要的格式 |
| | |
| | | }); |
| | | }, |
| | | affiliation() { |
| | | |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | |
| | | this.getList(1); |
| | |
| | | }); |
| | | }, |
| | | affiliation() { |
| | | this.topqueryParams.drcode = store.getters.hisUserId; |
| | | this.topqueryParams.nurseId = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctor = store.getters.name; |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | |
| | | this.getList(1); |
| | | }, |
| | | onthatday() { |
| | |
| | | }); |
| | | }, |
| | | affiliation() { |
| | | this.topqueryParams.managementDoctor = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | this.getList(1); |
| | | }, |
| | | onthatday() { |
| | |
| | | }); |
| | | }, |
| | | affiliation() { |
| | | this.topqueryParams.drcode = store.getters.hisUserId; |
| | | this.topqueryParams.nurseId = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctor = store.getters.name; |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | |
| | | this.getList(1); |
| | | }, |
| | | onthatday() { |
| | |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item label="患者姓名" prop="sendname"> |
| | | <el-input |
| | | v-model="topqueryParams.sendname" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-table |
| | | v-loading="loading" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="过滤医生" width="100" prop="filterDrname"> |
| | | <el-input |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 再次随访 --> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }); |
| | | }, |
| | | affiliation() { |
| | | this.topqueryParams.drcode = store.getters.hisUserId; |
| | | this.topqueryParams.nurseId = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctor = store.getters.name; |
| | | this.topqueryParams.managementDoctorCode = store.getters.hisUserId; |
| | | |
| | | this.getList(1); |
| | | }, |
| | | onthatday() { |
| | |
| | | if (res.code == 200) { |
| | | this.$message.success("评分保存成功"); |
| | | this.scoreDialogVisible = false; |
| | | this.selectedRows=[]; |
| | | this.$refs.userform.clearSelection() |
| | | this.selectedRows = []; |
| | | this.$refs.userform.clearSelection(); |
| | | } else { |
| | | this.$modal.msgWarning("评分保存失败"); |
| | | this.scoreDialogVisible = false; |
| | | this.selectedRows=[]; |
| | | this.$refs.userform.clearSelection() |
| | | this.selectedRows = []; |
| | | this.$refs.userform.clearSelection(); |
| | | } |
| | | }); |
| | | // 这里可以添加保存逻辑,如调用API保存评分 |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | background: #f2f8ff; |
| | | color: #324a9b; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #3664D9; |
| | | background: #3664d9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | |
| | | <SortCheckbox |
| | | v-model="checkList" |
| | | :options="checkboxlist" |
| | | :selectedOrder="selectedOrder" |
| | | :initialselectedOrder="selectedOrder" |
| | | value-key="value" |
| | | label-key="label" |
| | | @change="checkSelectionChange" |
| | |
| | | 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"; |
| | | } |
| | | // 来源判断 |
| | | |
| | |
| | | }, |
| | | getList() {}, |
| | | handleQuery() { |
| | | console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp); |
| | | 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); |
| | | |
| | | console.log( |
| | | "this.patientqueryParams.allhosp", |
| | | this.patientqueryParams.allhosp |
| | | ); |
| | | }, |
| | | |
| | | resetQuerymb() { |
| | |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `https://www.health-y.cn/lssf`, |
| | | // target: `http://192.168.100.129:8095`, |
| | | target: `http://192.168.100.10:8096`, |
| | | // target:`http://localhost:8095`, |
| | | // target: `http://192.168.100.10:8096`, |
| | | target:`http://localhost:8095`, |
| | | // target:`http://35z1t16164.qicp.vip`, |
| | | // target: `http://192.168.100.193:8095`, |
| | | // target: `http://192.168.101.166:8093`, |