| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="科室" width="100" prop="name"> |
| | | <el-form-item label="课题组" width="100" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.deptname" |
| | | placeholder="请输入科室名称" |
| | | placeholder="请输入课题组名称" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | |
| | | width="120" |
| | | /> --> |
| | | <el-table-column |
| | | label="就诊科室" |
| | | label="就诊课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | prop="drname" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="是否存在任务" |
| | | align="center" |
| | | key="serverState" |
| | | prop="serverState" |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span |
| | | :style="{ |
| | | color: scope.row.serverState == 1 ? 'green' : 'gray', |
| | | }" |
| | | > |
| | | {{ scope.row.serverState == 1 ? "是" : "无" }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="outhospno" label="病案号" /> |
| | | <el-table-column prop="deptname" label="科室" /> |
| | | <el-table-column prop="deptname" label="课题组" /> |
| | | </el-table> |
| | | </div> |
| | | </el-col> |
| | |
| | | <span>{{ formatTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <template #empty> |
| | | <div class="empty-message"> |
| | | <i class="el-icon-warning"></i> |
| | | <span>患者课题组无匹配服务</span> |
| | | </div> |
| | | </template> |
| | | </el-table> |
| | | </div> |
| | | </el-col> |
| | |
| | | id: 999, |
| | | }, |
| | | { |
| | | name: "当前科室", |
| | | name: "当前课题组", |
| | | id: 1, |
| | | }, |
| | | ], |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | }); |
| | | }, |
| | | //患者360跳转 |
| | | gettoken360(sfzh, drcode, drname) { |
| | | gettoken360(sfzh,drcode,drname) { |
| | | this.$modal.msgWarning('360功能暂未开通'); |
| | | return; // 阻止后续代码执行 |
| | | this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh; |
| | | if (this.postData.XiaoXiTou.ZuHuMC == "丽水市中医院") { |
| | | this.postData.YeWuXX.YongHuXX.YongHuID = "1400398571877961728"; |
| | |
| | | this.$modal.msgWarning("请至少选中1名患者"); |
| | | return; |
| | | } |
| | | // 检查选中的患者中是否有已有任务的 |
| | | const hasTaskPatients = this.userList.filter( |
| | | (item) => this.ids.includes(item.patid) && item.serverState == 1 |
| | | ); |
| | | |
| | | // 获取选中患者的科室信息(用于校验同一科室) |
| | | if (hasTaskPatients.length > 0) { |
| | | const patientNames = hasTaskPatients.map((p) => p.patname).join("、"); |
| | | this.$modal.msgError( |
| | | `选中的患者 ${patientNames} 已有任务,无法重复添加` |
| | | ); |
| | | return; |
| | | } |
| | | // 获取选中患者的课题组信息(用于校验同一课题组) |
| | | const patientDepts = new Set(); |
| | | let deptcode = ""; |
| | | this.ids.forEach((patId) => { |
| | |
| | | } |
| | | }); |
| | | |
| | | // 校验是否同一科室 |
| | | // 校验是否同一课题组 |
| | | if (patientDepts.size > 1) { |
| | | this.$modal.msgError("选中的患者不属于同一科室,无法批量添加任务"); |
| | | this.$modal.msgError("选中的患者不属于同一课题组,无法批量添加任务"); |
| | | return; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | .batch-patient-section, |
| | | .batch-task-section { |