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 |   83 +++++++++++++++++++++++++++
 src/components/proposal/index.vue   |   20 +++---
 src/api/doctor/checkAll.js          |   20 ++++++
 3 files changed, 111 insertions(+), 12 deletions(-)

diff --git a/src/api/doctor/checkAll.js b/src/api/doctor/checkAll.js
index 726deb2..adffb55 100644
--- a/src/api/doctor/checkAll.js
+++ b/src/api/doctor/checkAll.js
@@ -174,3 +174,23 @@
     data: data
   })
 }
+
+// 鎭㈠寮傚父鍒楄〃
+export function huiFuyichangxiangmu(tjNum) {
+  return request({
+    url: '/check/zongjianyishengHuiFuyichangxiangmu',
+    method: 'get',
+    params: {
+      tjNum: tjNum
+    }
+  })
+}
+
+// 鎭㈠寮傚父鎸夐挳
+export function hfbt(data) {
+  return request({
+    url: '/check/zongjianyishengHuiFuyichangxiangmuanniu',
+    method: 'get',
+    params: data
+  })
+}
diff --git a/src/components/proposal/index.vue b/src/components/proposal/index.vue
index 472fd2a..58d3474 100644
--- a/src/components/proposal/index.vue
+++ b/src/components/proposal/index.vue
@@ -19,8 +19,8 @@
       <el-form inline @submit.native.prevent="search">
         <el-form-item>
           <el-radio-group v-model="tjproposal" @input="radiotjproposalChange">
-            <el-radio-button label="0">蹇嵎寤鸿</el-radio-button>
-            <el-radio-button label="1">甯哥敤寤鸿</el-radio-button>
+            <el-radio-button label="0">甯哥敤寤鸿</el-radio-button>
+            <el-radio-button label="1">蹇嵎寤鸿</el-radio-button>
           </el-radio-group>
         </el-form-item>
         <el-form-item v-show="tjproposal == 0">
@@ -89,7 +89,7 @@
           prop="createTime"
         /> -->
       </el-table>
-      <div class="pag"   v-if="tjproposal == 1">
+      <div class="pag" v-if="tjproposal == 1">
         <div class="pag1">
           <pagination
             v-show="total > 0"
@@ -105,7 +105,7 @@
           <pagination
             v-show="total > 0"
             :total="total"
-           :page.sync="queryParams1.pageNum"
+            :page.sync="queryParams1.pageNum"
             :limit.sync="queryParams1.pageSize"
             @pagination="radiotjproposalChange"
           />
@@ -124,9 +124,7 @@
   getKjTjAdviceKjbqBySex,
   getCyTjAdviceKjbqBySex,
 } from "@/api/hosp/project";
-import {
-  listAdvicerules,
-} from "@/api/hosp/advicerules";
+import { listAdvicerules } from "@/api/hosp/advicerules";
 import { getInfo } from "@/api/login";
 export default {
   name: "Packagese",
@@ -149,7 +147,7 @@
       queryParams1: {
         pageNum: 1,
         pageSize: 10,
-        zyzd: ''
+        zyzd: "",
       },
       queryParams: {
         sex: "",
@@ -158,7 +156,7 @@
         page: 1,
         pageSize: 10,
         jynr: "",
-        jybt:""
+        jybt: "",
       },
       list: [],
       fList: {},
@@ -216,7 +214,7 @@
       // this.queryParams.page = 1;
       this.loading = true;
       listAdvicerules(this.queryParams1).then((res) => {
-        this.dataList =  res.rows;
+        this.dataList = res.rows;
         this.total = res.total;
         this.loading = false;
       });
@@ -266,7 +264,7 @@
 .pag1 {
   width: 30%;
 }
-::v-deep .el-dialog__body{
+::v-deep .el-dialog__body {
   padding: 7px 20px;
 }
 </style>
diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index b301dcd..1a1b329 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -198,6 +198,9 @@
           <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">
           <div class="left-container">
@@ -693,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>
@@ -835,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";
@@ -1867,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