From 6c67a924e87f74a07a74c6f953b69e8bcc109015 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 16 十二月 2024 10:59:47 +0800 Subject: [PATCH] jujiao --- src/views/doctor/examination/index.vue | 107 +++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 78 insertions(+), 29 deletions(-) diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue index 2c5e4c1..498760b 100644 --- a/src/views/doctor/examination/index.vue +++ b/src/views/doctor/examination/index.vue @@ -7,6 +7,15 @@ :inline="true" label-width="68px" > + <el-form-item label="濮撳悕" prop="name"> + <el-input + v-model="queryParams.name" + placeholder="璇疯緭鍏ュ鍚�" + clearable + @keyup.enter.native="handleQuery" + style="width: 110px" + /> + </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNumber"> <el-input ref="inputName" @@ -18,15 +27,7 @@ style="width: 170px" /> </el-form-item> - <el-form-item label="濮撳悕" prop="name"> - <el-input - v-model="queryParams.name" - placeholder="璇疯緭鍏ュ鍚�" - clearable - @keyup.enter.native="handleQuery" - style="width: 110px" - /> - </el-form-item> + <el-form-item label="鍗曚綅鍚嶇О" prop="tjCompName" @@ -319,7 +320,7 @@ </div> </div> - <el-drawer title="鎴戞槸鏍囬" :visible.sync="drawer" :with-header="false"> + <!-- <el-drawer title="鎴戞槸鏍囬" :visible.sync="drawer" :with-header="false"> <div class="a" v-for="(item, index) in jieguoList" :key="index"> <template v-if="item.jyjc == 0"> <div @@ -362,13 +363,54 @@ 妫�鏌ョ粨璁猴細{{ item.yxzd || "鏆傛棤缁撹" }} </div> </div> + </template> + </div> + </el-drawer> --> - <!-- <el-table-column label="妫�娴嬮」鐩�" prop="pro_name"> + <el-drawer title="鎴戞槸鏍囬" :visible.sync="drawer" :with-header="false"> + <div v-if="jieguoList && jieguoList.length > 0"> + <div v-if="jieguoList[0].jyjc === 0"> + <div + style=" + text-align: center; + background-color: #aad8df; + margin-top: 10px; + " + > + {{ jieguoList[0].pro_name || "" }} + </div> + <el-table + :data="jieguoList" + border + style="width: 100%" + :header-cell-style="{ background: '#AAD8DF' }" + > + <el-table-column label="妫�娴嬮」鐩�" prop="pro_name"> </el-table-column> <el-table-column label="妫�娴嬬粨鏋�" prop="pro_result"> - </el-table-column> --> - <!-- <el-table-column label="鍙傝�冭寖鍥�" prop="ckfw"> </el-table-column> --> - </template> + </el-table-column> + <el-table-column label="鍙傝�冭寖鍥�" prop="ckfw"> </el-table-column> + </el-table> + </div> + <div v-else-if="jieguoList[0].jyjc === 1"> + <div + style=" + text-align: center; + background-color: #aad8df; + margin-top: 10px; + " + > + {{ jieguoList[0].pro_name || "" }} + </div> + + <div style="padding: 0 10px; margin-bottom: 10px; margin-top: 10px"> + <div>妫�鏌ユ墍瑙侊細{{ jieguoList[0].pro_result }}</div> + + <div style="margin-top: 10px"> + 妫�鏌ョ粨璁猴細{{ jieguoList[0].yxzd || "鏆傛棤缁撹" }} + </div> + </div> + </div> </div> </el-drawer> @@ -409,7 +451,11 @@ dicts: ["dict_tj_status"], data() { return { - jieguoList: [], + jieguoList: [ + { + jyjc: "", + }, + ], dis: false, createTimeList: "", currentRow: null, @@ -430,7 +476,7 @@ name: null, beginTime: null, endTime: null, - tjCompName:'' + tjCompName: "", }, // 缁戝畾鍗曢�夋寜閽� checkStatus: "0", @@ -547,8 +593,7 @@ // 閫夋鏁版嵁 searchSelect(val) { this.CheckBox = val; - console.log(this.CheckBox,9999); - + console.log(this.CheckBox, 9999); }, getList() { this.loading = true; @@ -565,8 +610,8 @@ // 鑾峰彇鍗曚綅淇℃伅闆嗗悎 getCompany(this.queryParam).then((response) => { this.CompanyList = response.data; - console.log( this.CompanyList,555); - + console.log(this.CompanyList, 555); + this.loading = false; }); @@ -624,7 +669,7 @@ hb() { // console.log(this.queryParams.tjNumber); if (this.queryParams.tjNumber != null) { - this.handleQuery(); + // this.handleQuery(); this.submitForm(); } }, @@ -672,7 +717,7 @@ /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { this.createTimeList = []; - this.queryParams ={ + (this.queryParams = { page: 1, pageSize: 20, checkStatus: null, @@ -681,13 +726,12 @@ name: null, beginTime: null, endTime: null, - tjCompName:'' - }, - this.CheckBox.drugManufacturerId = '' + tjCompName: "", + }), + (this.CheckBox.drugManufacturerId = ""); this.handleQuery(); - + this.loading = true; - }, // 鍗曢�夋閫変腑鏁版嵁 handleSelectionChange(selection) { @@ -793,13 +837,18 @@ }, queryResultone(row) { // 鎵撳紑鎶藉眽 - this.drawer = true; - const tjNum = this.selectedTjNumber; const proId = row.proId; resultList(tjNum, proId).then((res) => { console.log(res, 666); this.jieguoList = res.data; + console.log(this.jieguoList[0],22222); + + if (res.data.length > 0) { + this.drawer = true; + } else { + this.$message.warning("璇ラ」鐩病鏈夌粨鏋�"); + } }); }, setTime() { -- Gitblit v1.8.0