| | |
| | | <el-select |
| | | v-model="queryParams.dyzt" |
| | | placeholder="请选择" |
| | | @change="handleQuery" |
| | | @change="handleDyztChange" |
| | | style="width: 100px" |
| | | > |
| | | <el-option |
| | |
| | | hasPrintCode, |
| | | getOrderListOO, |
| | | getNewDateList, |
| | | getChexiao,xiugaidayinzhuangtai |
| | | getChexiao, |
| | | xiugaidayinzhuangtai, |
| | | } from "@/api/hosp/order"; |
| | | import moment from "moment"; |
| | | import ViewPdf from "@/components/ViewPdf"; |
| | |
| | | }, |
| | | created() { |
| | | // this.getNowTime(); |
| | | |
| | | this.Company(); |
| | | // if (this.queryParams.dyzt === "0") { |
| | | // this.createTimeList = []; |
| | | // } else { |
| | | // this.getdate(); |
| | | // } |
| | | this.getdate(); |
| | | }, |
| | | mounted() { |
| | |
| | | }, |
| | | methods: { |
| | | getdate() { |
| | | if (this.queryParams.dyzt === "0") { |
| | | this.createTimeList = []; |
| | | this.getList(); |
| | | return; |
| | | } |
| | | getNewDateList().then((res) => { |
| | | this.createTimeList = [ |
| | | moment(res.data).format("YYYY-MM-DD 00:00:00"), |
| | |
| | | this.dialogVisiblese = true; |
| | | }, |
| | | timjiao() { |
| | | |
| | | if (this.radios == "1") { |
| | | this.mobanId = "912502827716915200"; |
| | | } else { |
| | |
| | | const viewNum = this.mobanId; |
| | | const params = { viewNum, tjNum }; |
| | | this.$tab.openPage("健康证检查表", "/report/jiankangzheng", params); |
| | | let tjNumber = this.report[0] |
| | | xiugaidayinzhuangtai(tjNumber).then((response) => { |
| | | |
| | | }) |
| | | this.dialogVisiblese = false |
| | | let tjNumber = this.report[0]; |
| | | xiugaidayinzhuangtai(tjNumber).then((response) => {}); |
| | | this.dialogVisiblese = false; |
| | | this.getList(); |
| | | }, |
| | | baogaoyulan() { |
| | |
| | | if (response.data.flag == "0") { |
| | | const flag = true; |
| | | this.isLoading = false; |
| | | let sfdy = this.queryParams.dyzt == 0 ? 1 : 0 |
| | | let sfdy = this.queryParams.dyzt == 0 ? 1 : 0; |
| | | getPdfpre(tjNumber, flag, sfdy).then((response) => { |
| | | |
| | | if (response.size === 0) { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | |
| | | // 撤销打印 |
| | | chexiao() { |
| | | const tjNUms = this.seleList.map((item) => item.tjNumber); |
| | | this.isChexiao = true |
| | | this.isChexiao = true; |
| | | getChexiao(tjNUms).then((res) => { |
| | | console.log(res, 6666); |
| | | if (res.code === 200) { |
| | |
| | | } else { |
| | | this.$modal.msgError("撤销失败!"); |
| | | } |
| | | this.isChexiao = false |
| | | this.isChexiao = false; |
| | | }); |
| | | }, |
| | | //打印小票 |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | doPrint(val) { |
| | | var ordonnance = document.getElementById(val).contentWindow; |
| | |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | handleDyztChange(value) { |
| | | if (value === "0") { |
| | | // 确认一下 "未打印" 的 value 是不是 '0' |
| | | this.createTimeList = []; |
| | | } else { |
| | | // 已打印 -> 设置默认登记时间 |
| | | this.getdate(); |
| | | } |
| | | this.handleQuery(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.queryParams = { |