lkk
2024-12-17 6bf0b65995f54e9ee85b9d6823b77fb355b2a47c
src/views/system/biol/index.vue
@@ -142,6 +142,15 @@
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          size="mini"
          :disabled="single"
          @click="chexiao"
          >撤销报告</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <div id="main111">
          <el-input style="width: 920px" v-model="form.name"></el-input>
        </div>
@@ -541,6 +550,7 @@
  hasPrintCode,
  getOrderListOO,
  getNewDateList,
  getChexiao
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
@@ -674,6 +684,7 @@
      open: false,
      // 日期范围
      datetimerange: [],
      seleList:[],
      // 查询参数
      queryParams: {
        pageNum: 1,
@@ -804,6 +815,8 @@
    },
    baogaoyulan() {
      const tjNumber = this.report[0];
      console.log(tjNumber,5555);
      isPdfOrJimu(tjNumber).then((response) => {
        if (response.data.flag == "0") {
          const flag = true;
@@ -840,6 +853,19 @@
          );
        }
      });
    },
    // 撤销打印
    chexiao(){
      const tjNUms = this.seleList.map((item) => item.tjNumber);
      getChexiao(tjNUms).then((res)=>{
        console.log(res,6666);
        if(res.code === 200){
          this.$modal.msgSuccess('撤销成功!')
          this.getList()
        }else{
          this.$modal.msgError('撤销失败!')
        }
      })
    },
    //打印小票
    printHandle() {
@@ -1222,6 +1248,9 @@
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.orderId);
      this.seleList = selection;
      console.log(this.seleList,222333);
      this.DataList1 = this.$refs.multipleTable.selection;
      this.DataList1.forEach((item) => {
        this.barcode = item.tjNumber;