From 7d2dba2945bf807413e7fc809fc06acebe3721a8 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期二, 21 一月 2025 13:46:41 +0800 Subject: [PATCH] 1 --- src/views/system/biol/index.vue | 65 +++++++++++++++++++++++++------- 1 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/views/system/biol/index.vue b/src/views/system/biol/index.vue index cf12645..81e2f80 100644 --- a/src/views/system/biol/index.vue +++ b/src/views/system/biol/index.vue @@ -13,7 +13,7 @@ v-model="queryParams.dyzt" placeholder="璇烽�夋嫨" @change="handleQuery" - style="width: 100px;" + style="width: 100px" > <el-option v-for="item in optionsOne" @@ -137,8 +137,19 @@ type="primary" size="mini" :disabled="single" + :loading="isLoading" @click="baogaoyulan" >鎶ュ憡棰勮</el-button + > + </el-col> + <el-col :span="1.5"> + <el-button + type="primary" + size="mini" + :disabled="single" + :loading="isChexiao" + @click="chexiao" + >鎾ら攢鎶ュ憡</el-button > </el-col> <el-col :span="1.5"> @@ -541,6 +552,7 @@ hasPrintCode, getOrderListOO, getNewDateList, + getChexiao, } from "@/api/hosp/order"; import moment from "moment"; import ViewPdf from "@/components/ViewPdf"; @@ -561,6 +573,8 @@ return { radios: "1", dialogVisiblese: false, + isLoading: false, + isChexiao:false, createTimeList: "", // printObj: { // id: "box", //鎵撳嵃鐨勫尯鍩� @@ -674,6 +688,7 @@ open: false, // 鏃ユ湡鑼冨洿 datetimerange: [], + seleList: [], // 鏌ヨ鍙傛暟 queryParams: { pageNum: 1, @@ -692,8 +707,8 @@ tjNum: undefined, dyzt: "0", compId: null, - dw:null, - tjCompName:'' + dw: null, + tjCompName: "", }, startTime: "", // 琛ㄥ崟鍙傛暟 @@ -804,9 +819,13 @@ }, baogaoyulan() { const tjNumber = this.report[0]; + 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({ @@ -839,6 +858,22 @@ params ); } + this.isLoading = false; + }); + }, + // 鎾ら攢鎵撳嵃 + chexiao() { + const tjNUms = this.seleList.map((item) => item.tjNumber); + 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 }); }, //鎵撳嵃灏忕エ @@ -1083,8 +1118,7 @@ // 閫夋鏁版嵁 searchSelect(val) { this.CheckBox = val; - console.log(this.CheckBox,9999); - + console.log(this.CheckBox, 9999); }, // onSubmit() { @@ -1095,13 +1129,13 @@ }, /** 鏌ヨ浣撴璁板綍鍒楄〃 */ 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]; @@ -1117,8 +1151,8 @@ // 鑾峰彇鍗曚綅淇℃伅闆嗗悎 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) => { @@ -1212,9 +1246,9 @@ tjNum: undefined, dyzt: "0", compId: null, - dw:null, - tjCompName:'' - } + dw: null, + tjCompName: "", + }; this.createTimeList = []; this.resetForm("queryForm"); this.handleQuery(); @@ -1222,6 +1256,9 @@ // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { this.ids = selection.map((item) => item.orderId); + this.seleList = selection; + console.log(this.seleList, 222333); + this.DataList1 = this.$refs.multipleTable.selection; this.DataList1.forEach((item) => { this.barcode = item.tjNumber; -- Gitblit v1.8.0