| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <div style="margin-right: 10px;display: flex "> |
| | | <div style="margin: 10px 10px"> |
| | | <div style="margin: 10px 2px"> |
| | | <el-button type="primary" size="mini" @click="Graphicreport()">图文报告</el-button> |
| | | </div> |
| | | <div style="margin: 10px 5px"> |
| | | <el-button type="primary" size="mini" @click="historicalreport()">历史报告</el-button> |
| | | </div> |
| | | <div style="margin: 10px 10px" v-if="tableAll.tjCategory == '02'"> |
| | | <div style="margin: 10px 5px" v-if="tableAll.tjCategory == '02'"> |
| | | <el-button type="primary" size="mini" @click="medicalhistory()">职业病史</el-button> |
| | | </div> |
| | | <div style="margin: 10px 10px"> |
| | | <div style="margin: 10px 5px"> |
| | | <el-button type="primary" size="mini" @click="jianqian()">检前问诊</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footers"> |
| | | <div slot="footer" class="dialog-footers" v-if="tjproject == '0'"> |
| | | <el-button type="primary" @click="determine" :disabled="isdisabled">提交并生成报告</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | <el-button @click="jianqians = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <Packages ref="bbb" :baogao="baogao" /> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import jianqianwenzhen from "@/components/jianqianwenzhen"; |
| | | import Packages from "@/components/Packages"; |
| | | import { |
| | | getcheckList, |
| | | getTjdetailList, |
| | |
| | | getState, |
| | | getforceIn, |
| | | gettoPdf, |
| | | getModified, |
| | | getModified, isPdfOrJimu |
| | | } from "@/api/doctor/checkAll"; |
| | | import { getInfoById } from "@/api/hosp/history"; |
| | | import { getInfo } from "@/api/login"; |
| | |
| | | import { getPdf, revoke } from "@/api/hosp/order"; |
| | | import ViewPdf from "@/components/ViewPdf"; |
| | | import Historicalreport from "@/components/Historicalreport"; |
| | | |
| | | import { getDicts } from "@/api/system/dict/data"; |
| | | import { |
| | | getTjYxjcList |
| | | } from "@/api/system/package"; |
| | | import { getNewDateList } from "@/api/hosp/order"; |
| | | import moment from "moment"; |
| | | export default { |
| | | components: { |
| | | ViewPdf, |
| | | Historicalreport, |
| | | jianqianwenzhen, |
| | | Packages |
| | | }, |
| | | dicts: [ |
| | | "dict_tjtype", |
| | |
| | | name: "checkAll", |
| | | data() { |
| | | return { |
| | | baogao: [], |
| | | flags: false, |
| | | jianqianwenzhendata: [], |
| | | jianqians: false, |
| | |
| | | }, |
| | | |
| | | created() { |
| | | this.getNowTime(); |
| | | // this.getNowTime(); |
| | | this.getList(); |
| | | this.getdate(); |
| | | }, |
| | | |
| | | mounted() { |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | getdate() { |
| | | getNewDateList().then((res) => { |
| | | this.startTime = [ |
| | | moment(res.data).format("YYYY-MM-DD 00:00:00"), |
| | | moment(res.data).format("YYYY-MM-DD 23:59:00"), |
| | | ]; |
| | | }); |
| | | }, |
| | | // / 处理默认选中当前日期 |
| | | getNowTime() { |
| | | var curDate = new Date().getTime(); |
| | |
| | | |
| | | viewReport(row) { |
| | | const tjNumber = row.tjNumber; |
| | | const flag = true; |
| | | getPdf(tjNumber, flag).then((response) => { |
| | | if (response.size === 0) { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: "Loading", |
| | | spinner: "el-icon-loading", |
| | | background: "rgba(0, 0, 0, 0.7)", |
| | | }); |
| | | setTimeout(() => { |
| | | loading.close(); |
| | | }, 3000); |
| | | this.$message.msgSuccess("报告正在生成,请两分钟后预览!"); |
| | | } else { |
| | | this.dialogVisible = true; |
| | | isPdfOrJimu(tjNumber).then((response) => { |
| | | if (response.data.flag == "0") { |
| | | const flag = true; |
| | | getPdf(tjNumber, flag).then((response) => { |
| | | if (response.size === 0) { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: "Loading", |
| | | spinner: "el-icon-loading", |
| | | background: "rgba(0, 0, 0, 0.7)", |
| | | }); |
| | | setTimeout(() => { |
| | | loading.close(); |
| | | }, 3000); |
| | | this.$message.msgSuccess("报告正在生成,请两分钟后预览!"); |
| | | } else { |
| | | this.dialogVisible = true; |
| | | |
| | | this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url |
| | | this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url |
| | | } |
| | | }); |
| | | } else { |
| | | let url = response.data.url |
| | | const params = { url }; |
| | | this.$tab.openPage("健康证检查表", "/report/zongjianjiankangzheng", params); |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | }, |
| | | |
| | | Graphicreport() { |
| | | let dictType = "dict_ageunit" |
| | | getDicts(dictType).then(res => { |
| | | if (res.code == 200) { |
| | | res.data.forEach(item => { |
| | | if (this.tableAll.age_unit == item.dictValue) { |
| | | this.tableAll.age_unit = item.dictLabel |
| | | } |
| | | }) |
| | | let dictTypes = "sys_user_sex" |
| | | getDicts(dictTypes).then(res => { |
| | | if (res.code == 200) { |
| | | res.data.forEach(item => { |
| | | if (this.tableAll.cusSex == item.dictValue) { |
| | | this.tableAll.cusSex = item.dictLabel |
| | | } |
| | | }) |
| | | let data = { |
| | | patname: this.tableAll.cusName, |
| | | sex: this.tableAll.cusSex, |
| | | patage: this.tableAll.age, |
| | | patagename: this.tableAll.age_unit, |
| | | patbirth: this.tableAll.cusBrithday |
| | | } |
| | | // let data = { |
| | | // patname: "脱能娥", |
| | | // sex: "女", |
| | | // patage: "60", |
| | | // patagename: "岁", |
| | | // patbirth: "1963-01-01" |
| | | // } |
| | | getTjYxjcList(data).then(res => { |
| | | this.baogao = res.data |
| | | }) |
| | | this.$refs.bbb.open = true; |
| | | // this.$refs.bbb.getAllList(); |
| | | this.$refs.bbb.title = "报告字典"; |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | historicalreport() { |