WXL (wul)
6 天以前 a5cba9ab040f6f97558046885dce3017f9bab7e9
src/views/patient/patient/behospitalized.vue
@@ -49,6 +49,8 @@
              v-model="queryParams.scopetype"
              placeholder="默认全部科室"
              :options="sourcetype"
              filterable
              clearable
              :props="{ expandTrigger: 'hover' }"
              @change="handleChange"
            ></el-cascader>
@@ -108,6 +110,18 @@
            >
              添加延续护理任务
            </el-button>
          </el-col>
          <el-col :span="1.5">
            <el-button
              type="success"
              plain
              icon="el-icon-folder-add"
              size="medium"
              :disabled="multiple"
              @click="handleCreateArchive"
            >
              患者建档</el-button
            >
          </el-col>
          <el-col :span="1.5">
            <el-button
@@ -173,7 +187,8 @@
                  gettoken360(
                    scope.row.idcardno,
                    scope.row.drcode,
                    scope.row.drname
                    scope.row.drname,
                    scope.row.patid
                  )
                "
                ><span class="button-textsc">{{
@@ -541,6 +556,13 @@
        <el-button @click="submitclose">取 消</el-button>
      </div>
    </el-dialog>
    <!-- 患者建档弹窗 -->
    <ArchiveDialog
      :visible.sync="archiveDialogVisible"
      :patients="archivePatients"
      source-page="inpatient"
    />
  </div>
</template>
@@ -564,14 +586,20 @@
import Treeselect from "@riophae/vue-treeselect";
import { listDept } from "@/api/system/dept";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { query360PatInfo, getTasklist, addSubtask } from "@/api/AiCentre/index";
import {
  query360PatInfo,
  query360PatInfonh,
  getTasklist,
  addSubtask,
} from "@/api/AiCentre/index";
import store from "@/store";
import ArchiveDialog from "@/views/patient/archives/components/ArchiveDialog.vue";
export default {
  name: "behospitalized",
  dicts: ["sys_normal_disable", "sys_user_sex", "nursinggrade"],
  components: { Treeselect },
  components: { Treeselect, ArchiveDialog },
  data() {
    return {
      // 遮罩层
@@ -605,6 +633,9 @@
      taskList: [], // 任务列表
      selectedTask: null, // 选中的任务
      batchLoading: false, // 批量提交加载状态
      // 患者建档
      archiveDialogVisible: false,
      archivePatients: [],
      // 日期范围
      dateRange: [],
      paperstypes: [
@@ -627,6 +658,8 @@
          label: "病区患者",
        },
      ],
      orgName: localStorage.getItem("orgname"),
      postData: {
        XiaoXiTou: {
          FaSongFCSJC: "ZJHES",
@@ -890,7 +923,12 @@
        pageSize: 100, // 设置较大的分页获取更多任务
        type: 2, // 延续护理任务类型
      };
      topqueryParams.deptcodes = store.getters.belongDepts.map(
        (obj) => obj.deptCode
      );
      topqueryParams.hospitaldistrictcodes = store.getters.belongWards.map(
        (obj) => obj.districtCode
      );
      getTasklist(topqueryParams)
        .then((response) => {
          this.taskList = response.rows;
@@ -980,6 +1018,9 @@
        }
        this.batchTaskVisible = false;
        this.$router.push({
          path: "/followvisit/Continue",
        });
        this.getList(); // 刷新患者列表
      } catch (error) {
        this.$modal.msgError("批量添加任务过程中出错:" + error.message);
@@ -1007,8 +1048,25 @@
      this.handleQuery();
    },
    //患者360跳转
    gettoken360(sfzh, drcode, drname) {
      // this.$modal.msgWarning('360功能暂未开通');
    gettoken360(sfzh, drcode, drname, id) {
      const orgname = localStorage.getItem("orgname");
      if (orgname == "南华大学附属第一医院") {
        query360PatInfonh(id).then((res) => {
          if (res.data) {
            window.open(res.data, "_blank");
          } else {
            this.$modal.msgWarning("360查询无结果");
          }
        });
        return;
      } else if (
        orgname == "第一人民医院湖滨院区" ||
        orgname == "第一人民医院吴山院区"
      ) {
        let url = `http://192.200.81.189:9100/blj/view?BINGRENID=${id}&YONGHUID=DBA`;
        window.open(url, "_blank");
        return;
      }
      this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
@@ -1190,6 +1248,17 @@
      this.upload.open = false;
      this.dractive = 1;
    },
    /** 患者建档 */
    handleCreateArchive() {
      if (this.ids.length === 0) {
        this.$modal.msgWarning("请至少选中1名患者");
        return;
      }
      this.archivePatients = this.userList.filter((item) =>
        this.ids.includes(item.patid)
      );
      this.archiveDialogVisible = true;
    },
  },
};
</script>