1
lkk
2025-04-16 4f55c0255e5e68b3685d1510062dff6e1e3dbc48
src/views/system/biol/index.vue
@@ -12,7 +12,7 @@
        <el-select
          v-model="queryParams.dyzt"
          placeholder="请选择"
          @change="handleQuery"
          @change="handleDyztChange"
          style="width: 100px"
        >
          <el-option
@@ -551,7 +551,8 @@
  hasPrintCode,
  getOrderListOO,
  getNewDateList,
  getChexiao,xiugaidayinzhuangtai
  getChexiao,
  xiugaidayinzhuangtai,
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
@@ -573,7 +574,7 @@
      radios: "1",
      dialogVisiblese: false,
      isLoading: false,
      isChexiao:false,
      isChexiao: false,
      createTimeList: "",
      // printObj: {
      //   id: "box",             //打印的区域
@@ -751,8 +752,12 @@
  },
  created() {
    // this.getNowTime();
    this.Company();
    // if (this.queryParams.dyzt === "0") {
    //   this.createTimeList = [];
    // } else {
    //   this.getdate();
    // }
    this.getdate();
  },
  mounted() {
@@ -762,6 +767,11 @@
  },
  methods: {
    getdate() {
      if (this.queryParams.dyzt === "0") {
        this.createTimeList = [];
        this.getList();
        return;
      }
      getNewDateList().then((res) => {
        this.createTimeList = [
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
@@ -806,7 +816,6 @@
      this.dialogVisiblese = true;
    },
    timjiao() {
      if (this.radios == "1") {
        this.mobanId = "912502827716915200";
      } else {
@@ -816,24 +825,21 @@
      const viewNum = this.mobanId;
      const params = { viewNum, tjNum };
      this.$tab.openPage("健康证检查表", "/report/jiankangzheng", params);
     let tjNumber = this.report[0]
      xiugaidayinzhuangtai(tjNumber).then((response) => {
      })
      this.dialogVisiblese = false
      let tjNumber = this.report[0];
      xiugaidayinzhuangtai(tjNumber).then((response) => {});
      this.dialogVisiblese = false;
      this.getList();
    },
    baogaoyulan() {
      const tjNumber = this.report[0];
      this.isLoading = true;
      this.isLoading = true;
      isPdfOrJimu(tjNumber).then((response) => {
        if (response.data.flag == "0") {
          const flag = true;
          this.isLoading = false;
          let sfdy = this.queryParams.dyzt == 0 ? 1 : 0
          this.isLoading = false;
          let sfdy = this.queryParams.dyzt == 0 ? 1 : 0;
          getPdfpre(tjNumber, flag, sfdy).then((response) => {
            if (response.size === 0) {
              const loading = this.$loading({
                lock: true,
@@ -862,13 +868,13 @@
            params
          );
        }
        this.isLoading = false;
        this.isLoading = false;
      });
    },
    // 撤销打印
    chexiao() {
      const tjNUms = this.seleList.map((item) => item.tjNumber);
      this.isChexiao = true
      this.isChexiao = true;
      getChexiao(tjNUms).then((res) => {
        console.log(res, 6666);
        if (res.code === 200) {
@@ -877,7 +883,7 @@
        } else {
          this.$modal.msgError("撤销失败!");
        }
        this.isChexiao = false
        this.isChexiao = false;
      });
    },
    //打印小票
@@ -945,7 +951,6 @@
        });
      });
    },
    doPrint(val) {
      var ordonnance = document.getElementById(val).contentWindow;
@@ -1109,6 +1114,16 @@
      this.queryParams.pageNum = 1;
      this.getList();
    },
    handleDyztChange(value) {
      if (value === "0") {
        // 确认一下 "未打印" 的 value 是不是 '0'
        this.createTimeList = [];
      } else {
        // 已打印 -> 设置默认登记时间
        this.getdate();
      }
      this.handleQuery();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.queryParams = {