111
lkk
2025-01-20 33b53ec9f9804067fa30fe0b8d5e16a0ae2368e1
src/views/system/biol/index.vue
@@ -13,7 +13,7 @@
          v-model="queryParams.dyzt"
          placeholder="请选择"
          @change="handleQuery"
          style="width: 100px;"
          style="width: 100px"
        >
          <el-option
            v-for="item in optionsOne"
@@ -137,6 +137,7 @@
          type="primary"
          size="mini"
          :disabled="single"
          :loading="isLoading"
          @click="baogaoyulan"
          >报告预览</el-button
        >
@@ -146,6 +147,7 @@
          type="primary"
          size="mini"
          :disabled="single"
          :loading="isChexiao"
          @click="chexiao"
          >撤销报告</el-button
        >
@@ -550,7 +552,7 @@
  hasPrintCode,
  getOrderListOO,
  getNewDateList,
  getChexiao
  getChexiao,
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
@@ -571,6 +573,8 @@
    return {
      radios: "1",
      dialogVisiblese: false,
      isLoading: false,
      isChexiao:false,
      createTimeList: "",
      // printObj: {
      //   id: "box",             //打印的区域
@@ -704,7 +708,7 @@
        dyzt: "0",
        compId: null,
        dw:null,
        tjCompName:''
        tjCompName: "",
      },
      startTime: "",
      // 表单参数
@@ -816,10 +820,12 @@
    baogaoyulan() {
      const tjNumber = this.report[0];
      console.log(tjNumber,5555);
      this.isLoading = true;
      
      isPdfOrJimu(tjNumber).then((response) => {
        if (response.data.flag == "0") {
          const flag = true;
          this.isLoading = false;
          getPdf(tjNumber, flag).then((response) => {
            if (response.size === 0) {
              const loading = this.$loading({
@@ -852,20 +858,23 @@
            params
          );
        }
        this.isLoading = false;
      });
    },
    // 撤销打印
    chexiao(){
      const tjNUms = this.seleList.map((item) => item.tjNumber);
      this.isChexiao = true
      getChexiao(tjNUms).then((res)=>{
        console.log(res,6666);
        if(res.code === 200){
          this.$modal.msgSuccess('撤销成功!')
          this.getList()
          this.$modal.msgSuccess("撤销成功!");
          this.getList();
        }else{
          this.$modal.msgError('撤销失败!')
          this.$modal.msgError("撤销失败!");
        }
      })
        this.isChexiao = false
      });
    },
    //打印小票
    printHandle() {
@@ -1110,7 +1119,6 @@
    searchSelect(val) {
      this.CheckBox = val;
      console.log(this.CheckBox,9999);
    },
    // onSubmit() {
@@ -1239,8 +1247,8 @@
        dyzt: "0",
        compId: null,
        dw:null,
        tjCompName:''
      }
        tjCompName: "",
      };
      this.createTimeList = [];
      this.resetForm("queryForm");
      this.handleQuery();