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/doctor/examination/index.vue | 78 +++++++++++++++++++++++++------------- 1 files changed, 51 insertions(+), 27 deletions(-) diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue index 749203c..3e35e8f 100644 --- a/src/views/doctor/examination/index.vue +++ b/src/views/doctor/examination/index.vue @@ -303,13 +303,20 @@ size="mini" type="text" :disabled="scope.row.type === 1" + :loading="scope.row.isLoading" @click="qijian(scope.row)" - >寮冩</el-button + >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button > + <!-- <el-button + size="mini" + type="text" + @click="qijian(scope.row)" + >鎭㈠</el-button + > --> <el-button size="mini" type="text" - :disabled="scope.row.type === 0" + :disabled="scope.row.type === 0 || scope.row.type === 2" @click="queryResultone(scope.row)" >缁撴灉鏌ヨ</el-button > @@ -396,6 +403,7 @@ qijian, resultList, typeOne, + huifu, } from "@/api/doctor/examination"; import { getCompany, queryCompany } from "@/api/team/tuanti"; import { getNewDateList } from "@/api/hosp/order"; @@ -408,6 +416,7 @@ jieguoList: [], jyjc: null, dis: false, + isLoading:false, createTimeList: "", currentRow: null, total: 0, @@ -500,13 +509,17 @@ getdate() { getConfigKey("tj_confirm").then((res) => { this.xianshi = res.msg; - console.log(this.xianshi, 999); + // console.log(this.xianshi, 999); }); getNewDateList().then((res) => { - this.createTimeList = [ - moment(res.data).format("YYYY-MM-DD 00:00:00"), - moment(res.data).format("YYYY-MM-DD 23:59:00"), - ]; + // console.log(res,222); + + // this.createTimeList = [ + // moment(res.data).format("YYYY-MM-DD 00:00:00"), + // moment(res.data).format("YYYY-MM-DD 23:59:00"), + // ]; + // console.log(this.createTimeList,8855); + this.getList(); }); }, @@ -548,7 +561,7 @@ // 閫夋鏁版嵁 searchSelect(val) { this.CheckBox = val; - console.log(this.CheckBox, 9999); + // console.log(this.CheckBox, 9999); }, getList() { this.loading = true; @@ -565,7 +578,7 @@ // 鑾峰彇鍗曚綅淇℃伅闆嗗悎 getCompany(this.queryParam).then((response) => { this.CompanyList = response.data; - console.log(this.CompanyList, 555); + // console.log(this.CompanyList, 555); this.loading = false; }); @@ -728,17 +741,13 @@ this.currentRow = val; let tjNumber = val.tjNumber; this.selectedTjNumber = val.tjNumber; - console.log(this.currentRow, 4455); typeOne(tjNumber).then((res) => { this.type = res.data; - console.log(res, 3322); }); cSWebGetPro(tjNumber).then((res) => { this.xiangmuList = res.data; - console.log(this.xiangmuList, 999); - this.xiangmuList.forEach((item) => { // console.log(item); // if (item.type == 0) { @@ -776,23 +785,38 @@ 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; - } - }); - } - }); + row.isLoading = true; + if (row.type == "2") { + huifu(tjNUm, proId).then((res) => { + if (res.code == 200) { + cSWebGetPro(tjNUm).then((res) => { + if (res.code === 200) { + // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� + this.xiangmuList = res.data; + row.isLoading = false + } + }); + } + }); + } else { + qijian(tjNUm, proId).then((res) => { + if (res.code == 200) { + cSWebGetPro(tjNUm).then((res) => { + if (res.code === 200) { + // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� + this.xiangmuList = res.data; + this.isLoading = false + } + }); + } + }); + } }, - chaxun() {}, + handleRowClick(row, column, event) { - console.log(row, 2323); + // console.log(row, 2323); this.name = row.proName; - console.log(this.name, 99999); + // console.log(this.name, 99999); }, queryResultone(row) { // 鎵撳紑鎶藉眽 -- Gitblit v1.8.0