From a55722601ade8cbd4e7129eaf6de3ed2690a12ef Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期四, 12 十二月 2024 20:48:33 +0800 Subject: [PATCH] 弃检 --- src/views/doctor/examination/index.vue | 179 ++++++++++++++++++++++++++++++++++------------------------- 1 files changed, 102 insertions(+), 77 deletions(-) diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue index 26b3bee..66e337f 100644 --- a/src/views/doctor/examination/index.vue +++ b/src/views/doctor/examination/index.vue @@ -199,7 +199,7 @@ ref="tab1" :data="xiangmuList" highlight-current-row - @row-click="handleRowClick" + @row-click="handleRowClick" > <!-- <el-table-column type="selection" width="40" align="center" /> --> <el-table-column @@ -285,7 +285,10 @@ @click="qijian(scope.row)" >寮冩</el-button > - <el-button size="mini" type="text" @click="queryResult(scope.row)" + <el-button + size="mini" + type="text" + @click="queryResultone(scope.row)" >缁撴灉鏌ヨ</el-button > <!-- @click="chaxun(scope.row) " --> @@ -297,77 +300,77 @@ <!-- <el-drawer title="鎴戞槸鏍囬" :visible.sync="drawer" :with-header="false"> <div class="rightbox"> - <div class="right"> - <template> - <div v-for="(item, index) in xiangmuList" :key="index"> - <div - style=" - text-align: center; - background-color: #FDE2E2; - margin-top: 10px; - " - > - {{ item.proName || "" }} - </div> - <el-table - :stripe="true" - :row-style="red" - :data="item.sone" - border - style="width: 100%" - :header-cell-style="{ background: 'Transparent' }" - - > - <el-table-column type="expand"> - <template slot-scope="props"> - <div - v-if="props.row.advices && props.row.advices.length > 0" - > - <div - v-for="(jianyi, index1) in props.row.advices" - :key="index1" - style="padding: 0 10px; margin-bottom: 10px" - > - <div>鏍囬锛歿{ jianyi.bt || "" }}</div> - <div>鍐呭锛歿{ jianyi.nr || "" }}</div> - </div> - </div> - </template> - </el-table-column> - - <el-table-column align="center" label="妫�娴嬮」鐩�" width="335"> - <template slot-scope="scope"> - <div>{{ scope.row.proName }}</div> - </template> - </el-table-column> - <el-table-column - align="center" - prop="proResult" - label="妫�娴嬬粨鏋�" - width="85" - > - </el-table-column> - - <el-table-column - align="center" - prop="stanId" - label=" 鍙傝�冭寖鍥�" - width="117" - > - </el-table-column> - - <el-table-column - align="center" - prop="proAdvice" - label="鍗曚綅" - width="78" - > - </el-table-column> - </el-table> + <div class="right"> + <template> + <div v-for="(item, index) in xiangmuList" :key="index"> + <div + style=" + text-align: center; + background-color: #fde2e2; + margin-top: 10px; + " + > + {{ item.proName || "" }} </div> - </template> - </div> + <el-table + :stripe="true" + :row-style="red" + :data="item.sone" + border + style="width: 100%" + :header-cell-style="{ background: 'Transparent' }" + > + <el-table-column type="expand"> + <template slot-scope="props"> + <div + v-if="props.row.advices && props.row.advices.length > 0" + > + <div + v-for="(jianyi, index1) in props.row.advices" + :key="index1" + style="padding: 0 10px; margin-bottom: 10px" + > + <div>鏍囬锛歿{ jianyi.bt || "" }}</div> + <div>鍐呭锛歿{ jianyi.nr || "" }}</div> + </div> + </div> + </template> + </el-table-column> + + <el-table-column align="center" label="妫�娴嬮」鐩�" width="335"> + <template slot-scope="scope"> + <div>{{ scope.row.proName }}</div> + </template> + </el-table-column> + <el-table-column + align="center" + prop="proResult" + label="妫�娴嬬粨鏋�" + width="85" + > + </el-table-column> + + <el-table-column + align="center" + prop="stanId" + label=" 鍙傝�冭寖鍥�" + width="117" + > + </el-table-column> + + <el-table-column + align="center" + prop="proAdvice" + label="鍗曚綅" + width="78" + > + </el-table-column> + </el-table> + </div> + + </template> </div> + </div> </el-drawer> --> <div class="pag"> @@ -395,6 +398,7 @@ confirmOrder, cSWebGetPro, dataSynchronization, + qijian, } from "@/api/doctor/examination"; import { getNewDateList } from "@/api/hosp/order"; import moment from "moment"; @@ -405,8 +409,10 @@ return { dis: false, createTimeList: "", + currentRow: null, total: 0, loading: true, + selectedTjNumber: "", drawer: false, // 鏌ヨ鍙傛暟 queryParams: { @@ -639,6 +645,9 @@ handleCurrentChange(val) { this.currentRow = val; let tjNumber = val.tjNumber; + this.selectedTjNumber = val.tjNumber; + console.log(this.currentRow, 4455); + cSWebGetPro(tjNumber).then((res) => { this.xiangmuList = res.data; this.xiangmuList.forEach((item) => { @@ -673,16 +682,32 @@ }); }); }, - qijian(row) {}, + + // 寮冩鎸夐挳 + qijian(row) { + const tjNUm = this.selectedTjNumber; + const proId = row.proId; + + qijian(tjNUm, proId).then((res) => { + if (res.code == 200) { + cSWebGetPro(tjNUm).then((res) => { + if (res.code === 200) { + // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� + this.xiangmuList = res.data; + } + }); + } + }); + }, chaxun() {}, handleRowClick(row, column, event) { - console.log(row); // + console.log(row); // }, - queryResult(row) { + queryResultone(row) { // 灏嗗綋鍓嶈鐨勬暟鎹瓨鍌ㄥ埌 currentRow - this.currentRow = row; - console.log(this.currentRow,999555); - + // this.currentRow = row; + // console.log(this.currentRow, 999555); + // 鎵撳紑鎶藉眽 this.drawer = true; }, -- Gitblit v1.8.0