WXL (wul)
15 小时以前 0bccc45dca0527bef40f5d9ed47c8e0d175cd40b
src/views/patient/patient/outpatient.vue
@@ -29,10 +29,10 @@
              @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"
@@ -306,7 +306,7 @@
            width="120"
          /> -->
          <el-table-column
            label="就诊科室"
            label="就诊课题组"
            align="center"
            key="deptname"
            prop="deptname"
@@ -319,7 +319,23 @@
            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"
@@ -389,7 +405,7 @@
                </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>
@@ -440,6 +456,12 @@
                  <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>
@@ -640,7 +662,7 @@
          id: 999,
        },
        {
          name: "当前科室",
          name: "当前课题组",
          id: 1,
        },
      ],
@@ -684,7 +706,7 @@
      sourcetype: [
        {
          value: 1,
          label: "科室",
          label: "课题组",
          children: [],
        },
        {
@@ -858,7 +880,9 @@
      });
    },
    //患者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";
@@ -1045,8 +1069,19 @@
        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) => {
@@ -1057,9 +1092,9 @@
        }
      });
      // 校验是否同一科室
      // 校验是否同一课题组
      if (patientDepts.size > 1) {
        this.$modal.msgError("选中的患者不属于同一科室,无法批量添加任务");
        this.$modal.msgError("选中的患者不属于同一课题组,无法批量添加任务");
        return;
      }
@@ -1193,7 +1228,7 @@
  }
}
.button-textsc {
  color: #28cfe6;
  color: #3664D9;
}
.batch-patient-section,
.batch-task-section {