From 41b5a6881fc9adefe11b496a6a2f01bd070fb868 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 14 七月 2025 17:45:16 +0800 Subject: [PATCH] 1 --- src/views/doctor/checkAll/index.vue | 188 ++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 177 insertions(+), 11 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index f2f8cb4..c85e25f 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -23,7 +23,7 @@ </el-select> </el-form-item> <el-form-item label="浣撴绫诲埆"> - <el-select style="width: 200px" v-model="queryParams.tjCategory" placeholder="璇烽�夋嫨浣撴绫诲埆"> + <el-select style="width: 200px" v-model="queryParams.tjCategory" placeholder="璇烽�夋嫨浣撴绫诲埆" @change="searchCategory"> <el-option v-for="dict in dict.type.dict_tjtype" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> </el-select> @@ -91,9 +91,16 @@ <el-radio-button label="1">宸插鏍�</el-radio-button> </el-radio-group> + <el-row :gutter="10" class="mb8" v-if="piliang" style="margin: 15px;"> + <el-col :span="1.5"> + <el-button type="primary" size="mini" @click="handleshenhe">鎵归噺鏍告敹</el-button> + </el-col> + </el-row> + <template> <el-table v-loading="loading" :data="checkList" ref="table" border style="margin: 20px; width: 98%" @current-change="handleCurrentChange"> + <el-table-column type="selection" align="center" label="閫夋嫨" width="50" v-if="piliang"/> <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" :show-overflow-tooltip="true" width="160px" fixed="left" /> <el-table-column label="濮撳悕" align="center" prop="cusName" :show-overflow-tooltip="true" width="100px" @@ -108,8 +115,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 +204,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"> @@ -330,8 +341,9 @@ </div> <template v-if="item.jyjc == '0'"> <el-table :stripe="true" :row-style="red" :data="item.sone" border style="width: 100%" - :header-cell-style="{ background: '#67C23A' }" :expand-row-keys="expends" :row-key="getRowKeys" + :header-cell-style="{ background: '#67C23A' }" :row-key="getRowKeys" v-loading="loading"> + <!-- :expand-row-keys="expends" --> <el-table-column type="expand"> <template slot-scope="props"> <div style="padding: 10px;"> @@ -378,11 +390,29 @@ <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-column + label="鎿嶄綔" + align="center" + class-name="small-padding fixed-width" + width="60" + fixed="right" + > + <template slot-scope="props"> + <el-button + size="mini" + type="text" + icon="el-icon-delete" + @click="shanchu(props.row)" + > + </el-button> + </template> + </el-table-column> </el-table> </template> <template v-if="item.jyjc == '1'"> <el-table :stripe="true" :row-style="red" :data="item.sone" border style="width: 100%" - :header-cell-style="{ background: '#67C23A' }" :expand-row-keys="expends" :row-key="getRowKeys"> + :header-cell-style="{ background: '#67C23A' }" :row-key="getRowKeys"> + <!-- :expand-row-keys="expends" --> <el-table-column type="expand"> <template slot-scope="props"> <div style="padding: 10px;"> @@ -427,6 +457,23 @@ </template> </el-table-column> <el-table-column align="center" prop="proResult" label="妫�娴嬬粨鏋�" width="403"></el-table-column> + <el-table-column + label="鎿嶄綔" + align="center" + class-name="small-padding fixed-width" + width="60" + fixed="right" + > + <template slot-scope="props"> + <el-button + size="mini" + type="text" + icon="el-icon-delete" + @click="shanchu(props.row)" + > + </el-button> + </template> + </el-table-column> </el-table> </template> </div> @@ -442,16 +489,17 @@ <el-table-column align="center" prop="proName" label="椤圭洰" width="260"></el-table-column> <el-table-column label="鐘舵��" align="center" prop="type" :show-overflow-tooltip="true" width="120"> <template slot-scope="scope"> - <span v-if="scope.row.type == '0'">鏈鏍�</span> - <span v-if="scope.row.type == '1'">宸插鏍�</span> + <span v-if="scope.row.type == '0'">鏈</span> + <span v-if="scope.row.type == '1'">宸叉</span> <span v-if="scope.row.type == '2'">寮冩</span> <span v-if="scope.row.type == '3'">寤舵湡</span> </template> </el-table-column> - <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" width="160" /> - <el-table-column label="鎿嶄綔" align="center" width="130px"> + <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" :formatter="formatDate" width="160" /> + <el-table-column label="鎿嶄綔" align="center" width="80px"> <template slot-scope="scope"> - <el-button type="primary" size="mini" @click="huifu" v-if="scope.row.type == '2'">鎭㈠</el-button> + <el-button type="primary" size="mini" @click="huifu(scope.row)" v-if="scope.row.type == '2'">鎭㈠</el-button> + <el-button type="primary" size="mini" @click="chexiao(scope.row)" v-if="scope.row.type == '1'">鎾ら攢</el-button> </template> </el-table-column> </el-table> @@ -692,6 +740,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 +914,10 @@ addOrder, addOrder1, getFcList, - UpdFcPro + UpdFcPro, + huiFuyichangxiangmu, + hfbt, + chexiao } from "@/api/doctor/checkAll"; import { getInfoById } from "@/api/hosp/history"; import { getInfo } from "@/api/login"; @@ -880,9 +963,11 @@ zhiyeJg: '', // 鍒濆鍖栦綋妫�缁撴灉涓洪粯璁ゅ�� selectedAdvice: null, activeAdviceIndex: 0, + gotyval: null, advicerulesList: [], xmChange: [], showjianyi: false, + piliang: false, isLoading: false, adviceLoading: false, adviceEmptyText: '鏆傛棤鏁版嵁', @@ -1114,6 +1199,12 @@ handleCurrentChangeAdvice(currentRow) { this.selectedAdvice = currentRow; + }, + + formatDate(row) { + if (!row.qdcreateTime) return ""; + const date = moment(row.qdcreateTime, "YYYY-MM-DD"); + return date.isValid() ? date.format("YYYY-MM-DD") : "鏃犳晥鏃ユ湡"; }, @@ -1718,6 +1809,11 @@ radioChange(value) { this.loading = true; + if(value == "0" && this.gotyval == "01"){ + this.piliang = true + }else{ + this.piliang = false + } this.queryParams.checkStatus = value; this.queryParams.page = 1; this.queryParams.pageSize = 10; @@ -1818,6 +1914,19 @@ this.CheckBox = val; }, + searchCategory(val){ + this.gotyval = val + if(val == "01" && this.tjStatus == "0"){ + this.piliang = true + }else{ + this.piliang = false + } + }, + + handleshenhe(){ + + }, + dateChangebirthday1(val) { this.startTime = val; }, @@ -1866,6 +1975,62 @@ }); }, + chexiao(row) { + const tjNUm = this.tjNumber; + const proId = row.proId; + chexiao(tjNUm, proId).then((res) => { + if (res.code == 200) { + this.$message.success("鎾ら攢鎴愬姛"); + this.xiangmuqingkuang(); + } + }); + }, + + + 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 = { @@ -1907,6 +2072,7 @@ }, handleCurrentChange(val) { + console.log(val) if (val != null) { this.handleClick(val); } -- Gitblit v1.8.0