WXL (wul)
6 天以前 a5cba9ab040f6f97558046885dce3017f9bab7e9
src/views/patient/patient/behospitalized.vue
@@ -113,6 +113,18 @@
          </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
              type="danger"
              plain
              icon="el-icon-delete"
@@ -176,7 +188,7 @@
                    scope.row.idcardno,
                    scope.row.drcode,
                    scope.row.drname,
                    scope.row.patid,
                    scope.row.patid
                  )
                "
                ><span class="button-textsc">{{
@@ -544,6 +556,13 @@
        <el-button @click="submitclose">取 消</el-button>
      </div>
    </el-dialog>
    <!-- 患者建档弹窗 -->
    <ArchiveDialog
      :visible.sync="archiveDialogVisible"
      :patients="archivePatients"
      source-page="inpatient"
    />
  </div>
</template>
@@ -567,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,query360PatInfonh, 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 {
      // 遮罩层
@@ -608,6 +633,9 @@
      taskList: [], // 任务列表
      selectedTask: null, // 选中的任务
      batchLoading: false, // 批量提交加载状态
      // 患者建档
      archiveDialogVisible: false,
      archivePatients: [],
      // 日期范围
      dateRange: [],
      paperstypes: [
@@ -630,6 +658,8 @@
          label: "病区患者",
        },
      ],
      orgName: localStorage.getItem("orgname"),
      postData: {
        XiaoXiTou: {
          FaSongFCSJC: "ZJHES",
@@ -893,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;
@@ -983,6 +1018,9 @@
        }
        this.batchTaskVisible = false;
        this.$router.push({
          path: "/followvisit/Continue",
        });
        this.getList(); // 刷新患者列表
      } catch (error) {
        this.$modal.msgError("批量添加任务过程中出错:" + error.message);
@@ -1210,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>