| | |
| | | v-model="queryParams.dyzt" |
| | | placeholder="请选择" |
| | | @change="handleQuery" |
| | | style="width: 100px;" |
| | | style="width: 100px" |
| | | > |
| | | <el-option |
| | | v-for="item in optionsOne" |
| | |
| | | type="primary" |
| | | size="mini" |
| | | :disabled="single" |
| | | :loading="isLoading" |
| | | @click="baogaoyulan" |
| | | >报告预览</el-button |
| | | > |
| | |
| | | type="primary" |
| | | size="mini" |
| | | :disabled="single" |
| | | :loading="isChexiao" |
| | | @click="chexiao" |
| | | >撤销报告</el-button |
| | | > |
| | |
| | | hasPrintCode, |
| | | getOrderListOO, |
| | | getNewDateList, |
| | | getChexiao |
| | | getChexiao, |
| | | } from "@/api/hosp/order"; |
| | | import moment from "moment"; |
| | | import ViewPdf from "@/components/ViewPdf"; |
| | |
| | | return { |
| | | radios: "1", |
| | | dialogVisiblese: false, |
| | | isLoading: false, |
| | | isChexiao:false, |
| | | createTimeList: "", |
| | | // printObj: { |
| | | // id: "box", //打印的区域 |
| | |
| | | open: false, |
| | | // 日期范围 |
| | | datetimerange: [], |
| | | seleList:[], |
| | | seleList: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | |
| | | tjNum: undefined, |
| | | dyzt: "0", |
| | | compId: null, |
| | | dw:null, |
| | | tjCompName:'' |
| | | dw: null, |
| | | tjCompName: "", |
| | | }, |
| | | startTime: "", |
| | | // 表单参数 |
| | |
| | | }, |
| | | baogaoyulan() { |
| | | const tjNumber = this.report[0]; |
| | | console.log(tjNumber,5555); |
| | | |
| | | console.log(tjNumber, 5555); |
| | | this.isLoading = true; |
| | | |
| | | isPdfOrJimu(tjNumber).then((response) => { |
| | | if (response.data.flag == "0") { |
| | | const flag = true; |
| | | this.isLoading = false; |
| | | getPdf(tjNumber, flag).then((response) => { |
| | | if (response.size === 0) { |
| | | const loading = this.$loading({ |
| | |
| | | params |
| | | ); |
| | | } |
| | | this.isLoading = false; |
| | | }); |
| | | }, |
| | | // 撤销打印 |
| | | chexiao(){ |
| | | 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('撤销失败!') |
| | | this.isChexiao = true |
| | | getChexiao(tjNUms).then((res) => { |
| | | console.log(res, 6666); |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("撤销成功!"); |
| | | this.getList(); |
| | | } else { |
| | | this.$modal.msgError("撤销失败!"); |
| | | } |
| | | }) |
| | | this.isChexiao = false |
| | | }); |
| | | }, |
| | | //打印小票 |
| | | printHandle() { |
| | |
| | | // 选框数据 |
| | | searchSelect(val) { |
| | | this.CheckBox = val; |
| | | console.log(this.CheckBox,9999); |
| | | |
| | | console.log(this.CheckBox, 9999); |
| | | }, |
| | | |
| | | // onSubmit() { |
| | |
| | | }, |
| | | /** 查询体检记录列表 */ |
| | | getList() { |
| | | console.log(this.CheckBox,2323); |
| | | |
| | | console.log(this.CheckBox, 2323); |
| | | |
| | | // this.queryParams.checkStatus = this.checkStatus; |
| | | |
| | | |
| | | this.queryParams.compId = this.CheckBox.drugManufacturerId; |
| | | this.queryParams.dw = this.CheckBox.cnName; |
| | | |
| | | |
| | | if (this.createTimeList) { |
| | | this.queryParams.djbeginTime = this.createTimeList[0]; |
| | | this.queryParams.djendTime = this.createTimeList[1]; |
| | |
| | | // 获取单位信息集合 |
| | | getCompany(this.queryParams).then((response) => { |
| | | this.CompanyList = response.data; |
| | | console.log( this.CompanyList,555); |
| | | |
| | | console.log(this.CompanyList, 555); |
| | | |
| | | this.loading = false; |
| | | }); |
| | | getOrderListOO(this.queryParams).then((response) => { |
| | |
| | | tjNum: undefined, |
| | | dyzt: "0", |
| | | compId: null, |
| | | dw:null, |
| | | tjCompName:'' |
| | | } |
| | | dw: null, |
| | | tjCompName: "", |
| | | }; |
| | | this.createTimeList = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map((item) => item.orderId); |
| | | this.seleList = selection; |
| | | console.log(this.seleList,222333); |
| | | |
| | | console.log(this.seleList, 222333); |
| | | |
| | | this.DataList1 = this.$refs.multipleTable.selection; |
| | | this.DataList1.forEach((item) => { |
| | | this.barcode = item.tjNumber; |