From 76af820e2e11366b322705b51c351ace3d40608a Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期二, 01 七月 2025 16:46:04 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb_region --- src/views/doctor/checkAll/index.vue | 88 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 85 insertions(+), 3 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index f2f8cb4..1a1b329 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -108,8 +108,9 @@ </el-table-column> <el-table-column label="鍑虹敓鏃ユ湡" align="center" prop="cusBrithday" :show-overflow-tooltip="true" width="110px" /> <el-table-column label="鐢佃瘽" align="center" prop="cusPhone" :show-overflow-tooltip="true" width="130px" /> - <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="shsj" :show-overflow-tooltip="true" width="180px" /> - <el-table-column label="瀹屾垚鏃堕棿" align="center" prop="finishTime" :show-overflow-tooltip="true" width="160px" /> + <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="shsj" :show-overflow-tooltip="true" width="180px" v-if="tjStatus == 1" /> + <el-table-column label="浣撴鏃堕棿" align="center" prop="tjTime" :show-overflow-tooltip="true" width="180px" v-if="tjStatus == 0" /> + <!-- <el-table-column label="瀹屾垚鏃堕棿" align="center" prop="finishTime" :show-overflow-tooltip="true" width="160px" /> --> <el-table-column label="鐘舵��" align="center" prop="tjStatus" :show-overflow-tooltip="true" width="120px" v-if="tjStatus == 0"> <template slot-scope="scope" v-if="tjStatus == 0"> @@ -196,6 +197,9 @@ </div> <div class="btn1"> <el-button @click="fuchaxiangmu()" type="primary"><span class="vertical-text">澶嶆煡椤圭洰</span></el-button> + </div> + <div class="btn1"> + <el-button @click="yichanghuifu()" type="primary"><span class="vertical-text">寮傚父鎭㈠</span></el-button> </div> </div> <div class="box"> @@ -692,6 +696,38 @@ </el-form> </div> </template> + <template v-if="status1 == 4"> + <div> + <el-table + :data="ychfList" + style="width: 100%" + :header-cell-style="{ background: '#e6a23c' }" + > + <el-table-column + align="center" + prop="jcxm" + label="椤圭洰鍚�" + width="260" + ></el-table-column> + <el-table-column + label="缁撴灉" + align="center" + prop="jcjg" + width="160" + /> + <el-table-column label="鎿嶄綔" align="center" width="130px"> + <template v-slot="scope"> + <el-button + type="primary" + size="mini" + @click="hfyc(scope.row.id)" + >鎭㈠</el-button + > + </template> + </el-table-column> + </el-table> + </div> + </template> <el-button type="primary" @click="addnew" :disabled="isdisabled" style="margin-top: 20px;">鏂板</el-button> </div> </div> @@ -834,7 +870,9 @@ addOrder, addOrder1, getFcList, - UpdFcPro + UpdFcPro, + huiFuyichangxiangmu, + hfbt, } from "@/api/doctor/checkAll"; import { getInfoById } from "@/api/hosp/history"; import { getInfo } from "@/api/login"; @@ -1866,6 +1904,50 @@ }); }, + yichanghuifu() { + this.loading = true; + let tjNum = this.tjNumber; + huiFuyichangxiangmu(tjNum).then((res) => { + this.status1 = 4; + this.ychfList = res.data; + if(this.ychfList.length == 0){ + this.message.success("鏆傛棤寮傚父鎭㈠椤圭洰") + } + }) + .catch((error)=>{ + console.error("鑾峰彇椤圭洰澶辫触锛�",error); + + this.$message.error("鑾峰彇椤圭洰澶辫触") + }) + .finally(()=>{ + this.loading = false; + }) + }, + + hfyc(id) { + this.$confirm("纭瑕佹仮澶嶈椤瑰悧锛�", "鎻愮ず", { + confirmButtonText: "纭畾", + cancelButtonText: "鍙栨秷", + type: "warning", + }) + .then(() => { + // 鐢ㄦ埛纭鍚庢墽琛屾帴鍙� + hfbt({ id }) + .then((res) => { + this.$message.success("鎭㈠鎴愬姛"); + this.yichanghuifu(); // 鎭㈠鍚庡埛鏂板垪琛� + }) + .catch((err) => { + console.error(err); + this.$message.error("鎭㈠澶辫触"); + }); + }) + .catch(() => { + // 鐢ㄦ埛鍙栨秷浜嗘搷浣� + this.$message.info("宸插彇娑堟仮澶�"); + }); + }, + resetQuery() { this.startTime = []; this.queryParams = { -- Gitblit v1.8.0