From cb1f69717eed3b6a61b6c61a8934bac752782b2d Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期三, 05 三月 2025 17:00:38 +0800 Subject: [PATCH] 1 --- src/views/doctor/inspectCheck/index.vue | 220 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 194 insertions(+), 26 deletions(-) diff --git a/src/views/doctor/inspectCheck/index.vue b/src/views/doctor/inspectCheck/index.vue index 02ef381..26785fd 100644 --- a/src/views/doctor/inspectCheck/index.vue +++ b/src/views/doctor/inspectCheck/index.vue @@ -39,16 +39,160 @@ size="mini" style="margin-right: 15px" @click="tongbu" - :disabled="!selectedFirstTable" >鍚屾</el-button > </el-form-item> </el-form> - <div class="table-title"> + <!-- <div class="table-title"> <h3>妫�楠岃褰�</h3> + </div> --> + <div class="box"> + <div + style="text-align: center; background-color: #aad8df; margin-top: 10px" + > + 妫�楠岃褰� + <!-- {{ item.parent || "" }} --> + </div> + <div> + <el-table + :data="exaLists" + border + style="width: 100%" + @selection-change="handleSelectionChange" + :header-cell-style="{ background: '#aad8df' }" + > + <el-table-column + fixed + type="selection" + align="center" + label="閫夋嫨" + width="40" + :selectable="isSelectable" + > + </el-table-column> + <el-table-column + label="濮撳悕" + align="center" + prop="name" + width="80px" + /> + <el-table-column + label="鎬у埆" + align="center" + prop="gender" + width="80px" + /> + <el-table-column + label="骞撮緞" + align="center" + prop="patientAge" + width="80px" + > + </el-table-column> + <el-table-column + label="閫佹绉戝" + align="center" + prop="deptName" + width="100px" + /> + + <el-table-column + label="妫�楠岄」鐩�" + align="center" + prop="checkParts" + width="350px" + :show-overflow-tooltip="true" + /> + <el-table-column + label="椤圭洰缂栧彿" + align="center" + prop="jcxmid" + width="150px" + /> + <el-table-column + label="瀹℃牳鍖诲笀" + align="center" + prop="shys" + width="150px" + /> + <el-table-column + label="鎶ュ憡鏃堕棿" + align="center" + prop="examinationDate" + width="150px" + /> + + <el-table-column + label="闂ㄨ瘖鍙�" + align="center" + prop="mzh" + width="140px" + /> + <el-table-column + label="鐢宠鍗曞彿" + align="center" + prop="brid" + width="145px" + /> + <el-table-column + label="鎶ュ憡鍖诲笀" + align="center" + prop="reportDoctorName" + width="120px" + /> + <el-table-column + label="妫�楠屽尰甯堝悕" + align="center" + prop="checkDoctorName" + width="120px" + /> + <el-table-column align="center" label="妫�娴嬮」鐩�" width="100px "> + <template slot-scope="scope"> + <div>{{ scope.row.proName }}</div> + </template> + </el-table-column> + <el-table-column + align="center" + prop="proResult" + label="妫�娴嬬粨鏋�" + width="180" + > + </el-table-column> + <el-table-column align="center" prop="company" label="鍗曚綅"> + <!-- <template slot-scope="scope"> + <div v-if="scope.row.project != null"> + {{ scope.row.standard.company || "" }} + </div> + <div v-else>{{ scope.row.proAdvice }}</div> + </template> --> + </el-table-column> + <el-table-column + align="center" + prop="conclusion" + label="寮傚父" + width="180" + ></el-table-column> + <el-table-column + align="center" + prop="tjStandardGtValue" + label=" 鍙傝�冭寖鍥�" + > + <!-- <template slot-scope="scope"> + <div v-if="scope.row.project != null"> + {{ + scope.row.standard.tjStandardGtValue || + "/" + "-" + scope.row.standard.tjStandardLtValue || + "/" + }} + </div> + </template> --> + </el-table-column> + </el-table> + </div> </div> - <el-table + + <!-- <el-table id="ta" ref="tb" :data="exaLists" @@ -131,7 +275,7 @@ prop="examination" :show-overflow-tooltip="true" /> - </el-table> + </el-table> --> <div class="table-title"> <h3>浣撴璁板綍</h3> @@ -184,7 +328,7 @@ min-width="80" /> <el-table-column - label="妫�鏌ユ椂闂�" + label="妫�楠屾椂闂�" align="center" prop="bcupdateTime" min-width="160" @@ -277,17 +421,15 @@ }); }, methods: { - - handleDateChange(val){ + handleDateChange(val) { if (val && val.length === 2) { this.queryParams.start = val[0]; // 璁剧疆寮�濮嬫椂闂� - this.queryParams.end = val[1]; // 璁剧疆缁撴潫鏃堕棿 + this.queryParams.end = val[1]; // 璁剧疆缁撴潫鏃堕棿 } else { this.queryParams.start = null; this.queryParams.end = null; } - console.log('Query Params:', this.queryParams); - + console.log("Query Params:", this.queryParams); }, isSelectable(row) { return !!row.mzh; @@ -298,29 +440,29 @@ handleSelectionChange(val) { console.log(val); - if (val.length > 1) { + /* if (val.length > 1) { let del_row = val.shift(); this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑 } - console.log(val, 999); + console.log(val, 999); */ if (val.length > 0) { - const selectedRow = val[0]; - console.log(val[0], 555); + // const selectedRow = val[0]; + // console.log(val[0], 555); - this.selectedFirstTable = selectedRow; + this.selectedFirstTable = val; console.log("褰撳墠閫変腑鐨勮鏁版嵁:", this.selectedFirstTable); - this.fetchRightTableData(selectedRow); + // this.fetchRightTableData(selectedRow); } else { this.selectedFirstTable = null; this.checkList = []; } }, // 鏍规嵁閫変腑鐨勮鏁版嵁璇锋眰鍙宠竟琛ㄦ牸鏁版嵁 - fetchRightTableData(selectedRow) { - const code = selectedRow.mzh; - if (!code) return; - this.loading = true; + fetchRightTableData() { + const code = queryParams.tjNum; + // if (!code) return; + getJyTjList(code).then((response) => { this.checkList = response.data; this.loading = false; @@ -329,6 +471,10 @@ handleSelectionChangeSecond(selectedRows) { this.selectedSecondTable = selectedRows; + if (selectedRows.length > 1) { + let del_row = selectedRows.shift(); + this.$refs.tab1.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑 + } console.log("褰撳墠閫変腑鐨勮鏁版嵁:", this.selectedSecondTable); }, getList() { @@ -345,13 +491,30 @@ handleQuery() { // this.queryParams.page = 1; this.loading = true; + if (!this.queryParams.tjNum) { + this.loading = false; + this.$message.error("浣撴鍙蜂笉鑳戒负绌�"); + return; // 缁堟璇锋眰 + } getlisList(this.queryParams) .then((res) => { - console.log(res, 1111); if (res.code == 200) { this.loading = false; this.exaLists = res.data; - this.code = this.exaLists.mzh; + // const code = this.exaLists[0].mzh; + if ( + this.exaLists && + this.exaLists.length > 0 && + this.exaLists[0].mzh + ) { + const code = this.queryParams.tjNum; + + getJyTjList(code).then((response) => { + this.checkList = response.data; + }); + } else { + this.$message.error("鏌ヨ澶辫触锛岃绋嶅悗閲嶈瘯"); + } } }) .catch((error) => { @@ -392,14 +555,19 @@ this.$modal.loading("姝e湪鍚屾锛岃绋嶅��..."); this.setTime(); const requestData = { - pacs: this.selectedFirstTable, // 宸︿晶琛ㄦ牸閫変腑鏁版嵁 + lis: this.selectedFirstTable.map((item) => ({ + ...item, + tjNum: this.queryParams.tjNum, + })), + jcxmid: this.selectedFirstTable.jcxmid, + shys: this.selectedFirstTable.shys, tj: this.selectedSecondTable[0], // 鍙充晶琛ㄦ牸閫変腑鏁版嵁 }; - if (!this.selectedSecondTable || this.selectedSecondTable.length === 0) { + /* if (!this.selectedSecondTable || this.selectedSecondTable.length === 0) { this.$message.error("鑷冲皯閫変竴鏉℃暟鎹紒"); return; - } + } */ asyncPacs(requestData) .then((res) => { @@ -417,7 +585,7 @@ clearInterval(this.clearTimeSet); this.clearTimeSet = null; this.$modal.closeLoading(); - }) + }); }, }, }; -- Gitblit v1.8.0