qx
qx
9 天以前 91ec24b5e11ee9294f4061853b93b97508804023
src/views/system/biol/index.vue
@@ -530,8 +530,17 @@
    </el-dialog>
    <!--:before-close="handleClose"  -->
    <el-dialog title="提示" :visible.sync="dialogVisiblese" width="30%">
      <el-radio v-model="radios" label="1">从业人员检查表</el-radio>
      <el-radio v-model="radios" label="2">公共场所检查表</el-radio>
        <el-form :model="forms" ref="form" :inline="true" label-width="76px" style="margin-top: 10px">
        <el-form-item label="" prop="radios">
          <el-select  filterable v-model="forms.radios" placeholder="请选择打印健康检查表类型" clearable
            >
            <el-option v-for="dict in radiosList" :key="dict.dictValue" :label="dict.dictLabel"
              :value="dict.dictValue" />
          </el-select>
        </el-form-item>
      </el-form>
      <!-- <el-radio v-model="radios" label="1">从业人员检查表</el-radio>
      <el-radio v-model="radios" label="2">公共场所检查表</el-radio> -->
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisiblese = false">取 消</el-button>
        <el-button type="primary" @click="timjiao">确 定</el-button>
@@ -555,6 +564,8 @@
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
import { getDicts } from "@/api/system/dict/data";
import {
  SubmitCompany,
  getCompany,
@@ -575,6 +586,10 @@
      isLoading: false,
      isChexiao:false,
      createTimeList: "",
       forms:{
        radios:""
      },
      radiosList: [],
      // printObj: {
      //   id: "box",             //打印的区域
      //   preview: false,            //预览工具是否启用
@@ -804,15 +819,20 @@
    jiankangReport() {
      this.dialogVisiblese = true;
        let dictType = "jimu_lx"
      getDicts(dictType).then(res => {
        console.log(res.data)
        this.radiosList = res.data
      })
    },
    timjiao() {
      if (this.radios == "1") {
        this.mobanId = "912502827716915200";
      } else {
        this.mobanId = "912519857543262208";
      }
      // if (this.radios == "1") {
      //   this.mobanId = "912502827716915200";
      // } else {
      //   this.mobanId = "912519857543262208";
      // }
      const tjNum = this.report;
      const viewNum = this.mobanId;
      const viewNum = this.forms.radios;
      const params = { viewNum, tjNum };
      this.$tab.openPage("健康证检查表", "/report/jiankangzheng", params);
    },