From 2ab2dcd91a6ee60fa907fd3c667ed174f17f13b5 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期四, 15 八月 2024 09:01:59 +0800 Subject: [PATCH] su --- src/views/hosp/order/index.vue | 179 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 164 insertions(+), 15 deletions(-) diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue index 9cdd148..1603b44 100644 --- a/src/views/hosp/order/index.vue +++ b/src/views/hosp/order/index.vue @@ -157,6 +157,16 @@ >璁㈠崟鏄庣粏</el-button > </el-col> + <el-col :span="1.5"> + <el-button + type="primary" + size="mini" + @click="budadzd" + :disabled="single" + v-hasPermi="['hosp:order:export']" + >鎵撳嵃琛ュ綍鍗�</el-button + > + </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" @@ -1082,7 +1092,13 @@ </el-dialog> <!-- 娣诲姞鎴栦慨鏀逛綋妫�璁板綍瀵硅瘽妗� --> - <el-dialog :title="title" :visible.sync="open" width="950px" append-to-body :close-on-click-modal="false"> + <el-dialog + :title="title" + :visible.sync="open" + width="950px" + append-to-body + :close-on-click-modal="false" + > <el-tabs v-model="activeName1" type="card"> <!-- <el-tab-pane label="璁㈠崟娴佹按" name="first"> <el-table :data="numberList" style="width: 100%"> @@ -1123,7 +1139,7 @@ <el-table :data="huizongList" style="width: 100%" max-height="200"> <el-table-column align="center" - type="index" + type="index" label="搴忓彿" width="50" > @@ -1277,6 +1293,100 @@ <!-- <el-button @click="cancel">鍙� 娑�</el-button> --> </div> </el-dialog> + + <el-dialog + :title="title1" + :visible.sync="budadaozhen" + width="1100px" + style="height: 860px" + append-to-body + :close-on-click-modal="false" + > + <el-row type="flex" class="row-bg" justify="space-around"> + <el-col :span="13"> + <div + style="text-align: center; margin-bottom: 10px; margin-top: 10px" + > + 琛ュ綍鍒楄〃 + </div> + + <div class="tab3"> + <el-table + :data="DataLists" + border + style="width: 100%" + height="400" + @selection-change="handleProjectssChange" + > + <el-table-column type="selection" width="40" align="center" /> + <el-table-column + type="index" + label="搴忓彿" + align="center" + width="49px" + > + </el-table-column> + <el-table-column + prop="blje" + label="琛ュ綍閲戦" + align="center" + width="74px" + > + </el-table-column> + <el-table-column + prop="bldh" + label="琛ュ綍鍗曞彿" + align="center" + width="155px" + > + </el-table-column> + <el-table-column + prop="blsj" + label="琛ュ綍鏃堕棿" + align="center" + width="156px" + > + </el-table-column> + <el-table-column + prop="blrmc" + label="琛ュ綍浜�" + align="center" + width="96px" + > + </el-table-column> + </el-table> + </div> + </el-col> + + <el-col :span="10"> + <div class="grid-content bg-purple"> + <div + style="text-align: center; margin-bottom: 10px; margin-top: 10px" + > + 琛ュ綍椤圭洰 + </div> + <el-table + :data="DataListss" + border + style="width: 100%" + height="400" + :span-method="objectSpanMethod2" + > + <el-table-column prop="propinName" label="妫�鏌ラ」鐩�"> + </el-table-column> + <el-table-column prop="proPrice" label="鍘熶环" width="56px"> + </el-table-column> + <el-table-column prop="proName" label="鏄庣粏椤圭洰" width="260px"> + </el-table-column> + </el-table> + </div> + </el-col> + </el-row> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="dayin">鎵� 鍗�</el-button> + <!-- <el-button @click="cancel">鍙� 娑�</el-button> --> + </div> + </el-dialog> </div> </template> @@ -1302,6 +1412,7 @@ getProParentIdDxList, getProSonDxList, } from "@/api/system/tijian"; +import { createLogger } from "vuex"; export default { components: { ViewPdf, @@ -1310,6 +1421,8 @@ name: "Order", data() { return { + bldhid: "", + budadaozhen: false, huizongList: [], DataLists: [], infoList: [], @@ -1404,7 +1517,7 @@ tjNum: null, bgbeginTime: null, bgendTime: null, - xmmc:null, + xmmc: null, }, startTime: "", startTime1: "", @@ -1843,7 +1956,6 @@ discount: discount, }); - console.log(this.bill); this.title = "璁㈠崟娴佹按"; }); getTransitionInfo(tjNumber).then((res) => { @@ -1863,6 +1975,44 @@ }); }); }, + budadzd() { + this.bldhs =[]; + getBlproByTjh(this.tjnumbers).then((res) => { + if (res.data) { + this.DataLists = res.data; + this.budadaozhen = true; + this.title1 = "琛ユ墦瀵艰瘖鍗�"; + } else { + this.$message({ + type: "warning ", + message: "璇ュ鎴锋病鏈夎ˉ褰曢」鐩�", + }); + } + }); + }, + dayin() { + console.log(this.bldhs); + this.bldhid.toString(this.bldhs); + this.bldhs.forEach((item) => { + console.log(item, 666); + this.bldhid += item + ","; + }); + // this.bldhid = this.bldhs.toString() + console.log(this.bldhid); + const tjNumber = this.tjnumbers; + const viewNum = "983185234038140928"; + const jxbz = this.bldhid; + const params = { viewNum, tjNumber, jxbz }; + console.log(params); + hasReport(tjNumber).then((res) => { + if (res == 1) { + this.$tab.openPage("瀵艰瘖鍗�", "/report/budabreDailyReport", params); + this.budadaozhen = false; + } else { + this.$message.error("璇ョ敤鎴锋殏鏃犻」鐩紒"); + } + }); + }, handleClick(tab, event) { if (this.activeNames == "first") { @@ -1876,10 +2026,9 @@ this.loading = false; }); } else { - console.log(111) this.TotalPrice1 = 0; - this.checkedkey =[] - this.DataList = [] + this.checkedkey = []; + this.DataList = []; this.getDataList(); if (this.marryalls != 0) { this.TotalPrice1 += this.marryalls; @@ -1950,7 +2099,7 @@ this.activeNames = "first"; /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ this.handleClick(); - + this.Projectopen = true; this.title = "琛ュ綍椤圭洰"; }, @@ -2011,7 +2160,7 @@ this.activeNames = "first"; /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ this.handleClick(); - + this.Projectopen1 = true; this.title = "琛ュ綍椤圭洰"; }, @@ -2041,8 +2190,8 @@ this.TotalPrice1 = item.proPrice + this.TotalPrice1; }); if (this.marryalls != 0) { - this.TotalPrice1 += this.marryalls; - } + this.TotalPrice1 += this.marryalls; + } } }); } else if (checked.checkedNodes.length == 0) { @@ -2078,8 +2227,8 @@ this.TotalPrice1 = item1.proPrice + this.TotalPrice1; }); if (this.marryalls != 0) { - this.TotalPrice1 += this.marryalls; - } + this.TotalPrice1 += this.marryalls; + } } }); } else if (checked == true) { @@ -2120,8 +2269,8 @@ this.TotalPrice1 = item1.proPrice + this.TotalPrice1; }); if (this.marryalls != 0) { - this.TotalPrice1 += this.marryalls; - } + this.TotalPrice1 += this.marryalls; + } } }); }, -- Gitblit v1.8.0