| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="姓名" prop="name"> |
| | | <el-input v-model="queryParams.name" placeholder="请输入姓名" style="width: 100px" @keyup.enter.native="handleQuery" /> |
| | | <el-input v-model="queryParams.name" placeholder="请输入姓名" style="width: 100px" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="请输入体检号" clearable |
| | | @keyup.enter.native="handleQuery" ref="inputName" @blur="hb" /> |
| | | </el-form-item> |
| | | <el-form-item label="报告时间" prop="reportTimeList"> |
| | | <el-date-picker clearable v-model="queryParams.reportTimeList" type="daterange" range-separator="-" |
| | | start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" :default-time="['00:00:00', '23:00:00']" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="请选择出报告时间" > |
| | | <el-form-item label="报告时间" prop="createTimeList"> |
| | | <el-date-picker clearable v-model="createTimeList" type="daterange" range-separator="-" start-placeholder="开始日期" |
| | | end-placeholder="结束日期" :picker-options="pickerOptions" :default-time="['00:00:00', '23:00:00']" |
| | | format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择出报告时间" |
| | | @change="dateChangebirthday1"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="单位名称" prop="firmId"> |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" size="mini" :disabled="multiple" @click="jiankangReport">健康检查表打印</el-button> |
| | | </el-col> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" size="mini" :disabled="multiple" @click="jiankangReport">批量体检报告导出</el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" size="mini" :disabled="single" @click="baogaoyulan">报告预览</el-button> |
| | | </el-col> |
| | |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" /> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" @pagination="getList" /> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <!--:before-close="handleClose" --> |
| | | <el-dialog title="提示" :visible.sync="dialogVisiblese" width="30%" > |
| | | <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> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | }, |
| | | created() { |
| | | // this.getNowTime(); |
| | | this.getList(); |
| | | |
| | | this.Company(); |
| | | this.getdate(); |
| | | }, |
| | |
| | | methods: { |
| | | getdate() { |
| | | getNewDateList().then((res) => { |
| | | this.queryParams.reportTimeList = [ |
| | | this.createTimeList = [ |
| | | moment(res.data).format("YYYY-MM-DD 00:00:00"), |
| | | moment(res.data).format("YYYY-MM-DD 23:59:00"), |
| | | ]; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | // / 处理默认选中当前日期 |
| | |
| | | }, |
| | | baogaoyulan() { |
| | | const tjNumber = this.report[0]; |
| | | console.log(tjNumber) |
| | | isPdfOrJimu(tjNumber).then((response) => { |
| | | if (response.data.flag == "0") { |
| | | const flag = true; |
| | |
| | | type: "warning", |
| | | }); |
| | | } else { |
| | | console.log(response) |
| | | this.dialogVisible = true; |
| | | |
| | | this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url |
| | |
| | | } else { |
| | | this.dialogVisible = true; |
| | | this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url |
| | | console.log(this.url) |
| | | this.DataList1.forEach((item) => { |
| | | if (item.tjNumber === this.tjNumber) { |
| | | this.userId = item.tjCustomerName; |
| | |
| | | const newBlob = []; |
| | | newBlob.push(response); |
| | | const blob = new Blob(newBlob, { type: "application/pdf" }); |
| | | |
| | | var date = new Date().getTime(); |
| | | var ifr = document.createElement("iframe"); |
| | | ifr.style.frameborder = "no"; |
| | |
| | | }, |
| | | /** 查询体检记录列表 */ |
| | | getList() { |
| | | this.queryParams.djbeginTime = this.startTime[0]; |
| | | this.queryParams.djendTime = this.startTime[1]; |
| | | if (this.createTimeList) { |
| | | this.queryParams.djbeginTime = this.createTimeList[0]; |
| | | this.queryParams.djendTime = this.createTimeList[1]; |
| | | }else if(this.createTimeList == null){ |
| | | this.queryParams.djbeginTime = null; |
| | | this.queryParams.djendTime =null; |
| | | } |
| | | |
| | | this.loading = true; |
| | | getInfo().then((response) => { |
| | | this.userIds = response.user.userId; |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.createTimeList = [] |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |