From 7009ae6599504bda800e7d39f3713db3b61a944c Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期四, 15 八月 2024 10:17:54 +0800
Subject: [PATCH] su

---
 src/views/hosp/order/index.vue |  324 ++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 245 insertions(+), 79 deletions(-)

diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue
index 9cdd148..5313cd4 100644
--- a/src/views/hosp/order/index.vue
+++ b/src/views/hosp/order/index.vue
@@ -157,6 +157,16 @@
           >璁㈠崟鏄庣粏</el-button
         >
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          size="mini"
+          @click="budadzd"
+          :disabled="single"
+          v-hasPermi="['hosp:order:export']"
+          >鎵撳嵃琛ュ綍鍗�</el-button
+        >
+      </el-col>
       <right-toolbar
         :showSearch.sync="showSearch"
         @queryTable="getList"
@@ -772,7 +782,7 @@
     >
       <el-tabs
         type="border-card"
-        style="height: 640px; margin: 0 10px; width: 100%"
+        style="height: 560px; margin: 0 10px; width: 100%"
         @tab-click="handleClick"
         v-model="activeNames"
       >
@@ -1012,77 +1022,83 @@
                     </el-collapse-item>
                   </div>
                 </el-collapse> -->
-
-                <template>
-                  <el-form :model="form">
-                    <el-form-item label="浣撴绫诲瀷" prop="tjType">
-                      <el-radio-group v-model="form.tjType">
-                        <el-radio :label="1">鍥㈤槦</el-radio>
-                        <el-radio :label="2">涓汉</el-radio>
-                      </el-radio-group>
-                    </el-form-item>
-                  </el-form>
-                </template>
-
-                <div class="outside">
-                  <el-form :inline="true" class="outside1">
-                    <el-form-item label="鍘熶环">
-                      <el-input
-                        placeholder="鍘熶环"
-                        :value="TotalPrice1"
-                        disabled
-                        style="width: 90px"
-                      ></el-input>
-                    </el-form-item>
-                    <el-form-item label="鎶樻墸璁惧畾">
-                      <el-input
-                        style="width: 90px"
-                        type="number"
-                        v-model="discount"
-                        :value="discount"
-                      ></el-input>
-                    </el-form-item>
-                    <el-form-item label="搴斾粯閲戦">
-                      <el-input
-                        placeholder="搴斾粯閲戦"
-                        :value="TotalPrice1 * (discount / 10)"
-                        style="width: 90px"
-                      ></el-input>
-                    </el-form-item>
-                    <el-form-item label="浠樻绫诲瀷" prop="payType">
-                      <el-select
-                        style="width: 120px"
-                        v-model="payType"
-                        placeholder="璇烽�夋嫨浠樻绫诲瀷"
-                      >
-                        <el-option
-                          v-for="dict in dict.type.dict_pay_type"
-                          :key="dict.value"
-                          :label="dict.label"
-                          :value="dict.value"
-                        ></el-option>
-                      </el-select>
-                    </el-form-item>
-                    <el-form-item>
-                      <el-button
-                        type="primary"
-                        @click="submitPrice1"
-                        :disabled="confirm"
-                        style="margin-top: 34px"
-                        >鎻愪氦</el-button
-                      >
-                    </el-form-item>
-                  </el-form>
-                </div>
               </div>
             </el-col>
           </el-row>
         </el-tab-pane>
       </el-tabs>
+      <div class="heji">
+        <template>
+          <el-form :model="form" :inline="true">
+            <el-form-item label="浣撴绫诲瀷" prop="tjType">
+              <el-radio-group v-model="form.tjType">
+                <el-radio :label="1">鍥㈤槦</el-radio>
+                <el-radio :label="2">涓汉</el-radio>
+              </el-radio-group>
+            </el-form-item>
+          </el-form>
+        </template>
+
+        <div class="outsides">
+          <el-form :inline="true" class="outside2" label-width="80px" >
+            <el-form-item label="鍘熶环" style="display: flex">
+              <el-input
+                placeholder="鍘熶环"
+                :value="TotalPrice1"
+                disabled
+                style="width: 90px"
+              ></el-input>
+            </el-form-item>
+            <el-form-item label="鎶樻墸璁惧畾" style="display: flex">
+              <el-input
+                style="width: 90px"
+                type="number"
+                v-model="discount"
+                :value="discount"
+              ></el-input>
+            </el-form-item>
+            <el-form-item label="搴斾粯閲戦" style="display: flex">
+              <el-input
+                placeholder="搴斾粯閲戦"
+                :value="TotalPrice1 * (discount / 10)"
+                style="width: 90px"
+              ></el-input>
+            </el-form-item>
+            <el-form-item label="浠樻绫诲瀷" prop="payType" style="display: flex">
+              <el-select
+                style="width: 120px"
+                v-model="payType"
+                placeholder="璇烽�夋嫨浠樻绫诲瀷"
+              >
+                <el-option
+                  v-for="dict in dict.type.dict_pay_type"
+                  :key="dict.value"
+                  :label="dict.label"
+                  :value="dict.value"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item style="display: flex">
+              <el-button
+                type="primary"
+                @click="submitPrice1"
+                :disabled="confirm"
+                >鎻愪氦</el-button
+              >
+            </el-form-item>
+          </el-form>
+        </div>
+      </div>
     </el-dialog>
 
     <!-- 娣诲姞鎴栦慨鏀逛綋妫�璁板綍瀵硅瘽妗� -->
-    <el-dialog :title="title" :visible.sync="open" width="950px" append-to-body :close-on-click-modal="false">
+    <el-dialog
+      :title="title"
+      :visible.sync="open"
+      width="950px"
+      append-to-body
+      :close-on-click-modal="false"
+    >
       <el-tabs v-model="activeName1" type="card">
         <!-- <el-tab-pane label="璁㈠崟娴佹按" name="first">
           <el-table :data="numberList" style="width: 100%">
@@ -1123,7 +1139,7 @@
           <el-table :data="huizongList" style="width: 100%" max-height="200">
             <el-table-column
               align="center"
-            type="index"
+              type="index"
               label="搴忓彿"
               width="50"
             >
@@ -1277,6 +1293,100 @@
         <!-- <el-button @click="cancel">鍙� 娑�</el-button> -->
       </div>
     </el-dialog>
+
+    <el-dialog
+      :title="title1"
+      :visible.sync="budadaozhen"
+      width="1100px"
+      style="height: 860px"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <el-row type="flex" class="row-bg" justify="space-around">
+        <el-col :span="13">
+          <div
+            style="text-align: center; margin-bottom: 10px; margin-top: 10px"
+          >
+            琛ュ綍鍒楄〃
+          </div>
+
+          <div class="tab3">
+            <el-table
+              :data="DataLists"
+              border
+              style="width: 100%"
+              height="400"
+              @selection-change="handleProjectssChange"
+            >
+              <el-table-column type="selection" width="40" align="center" />
+              <el-table-column
+                type="index"
+                label="搴忓彿"
+                align="center"
+                width="49px"
+              >
+              </el-table-column>
+              <el-table-column
+                prop="blje"
+                label="琛ュ綍閲戦"
+                align="center"
+                width="74px"
+              >
+              </el-table-column>
+              <el-table-column
+                prop="bldh"
+                label="琛ュ綍鍗曞彿"
+                align="center"
+                width="155px"
+              >
+              </el-table-column>
+              <el-table-column
+                prop="blsj"
+                label="琛ュ綍鏃堕棿"
+                align="center"
+                width="156px"
+              >
+              </el-table-column>
+              <el-table-column
+                prop="blrmc"
+                label="琛ュ綍浜�"
+                align="center"
+                width="96px"
+              >
+              </el-table-column>
+            </el-table>
+          </div>
+        </el-col>
+
+        <el-col :span="10">
+          <div class="grid-content bg-purple">
+            <div
+              style="text-align: center; margin-bottom: 10px; margin-top: 10px"
+            >
+              琛ュ綍椤圭洰
+            </div>
+            <el-table
+              :data="DataListss"
+              border
+              style="width: 100%"
+              height="400"
+              :span-method="objectSpanMethod2"
+            >
+              <el-table-column prop="propinName" label="妫�鏌ラ」鐩�">
+              </el-table-column>
+              <el-table-column prop="proPrice" label="鍘熶环" width="56px">
+              </el-table-column>
+              <el-table-column prop="proName" label="鏄庣粏椤圭洰" width="260px">
+              </el-table-column>
+            </el-table>
+          </div>
+        </el-col>
+      </el-row>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="dayin">鎵� 鍗�</el-button>
+        <!-- <el-button @click="cancel">鍙� 娑�</el-button> -->
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -1302,6 +1412,7 @@
   getProParentIdDxList,
   getProSonDxList,
 } from "@/api/system/tijian";
+import { createLogger } from "vuex";
 export default {
   components: {
     ViewPdf,
@@ -1310,6 +1421,8 @@
   name: "Order",
   data() {
     return {
+      bldhid: "",
+      budadaozhen: false,
       huizongList: [],
       DataLists: [],
       infoList: [],
@@ -1404,7 +1517,7 @@
         tjNum: null,
         bgbeginTime: null,
         bgendTime: null,
-        xmmc:null,
+        xmmc: null,
       },
       startTime: "",
       startTime1: "",
@@ -1843,7 +1956,6 @@
           discount: discount,
         });
 
-        console.log(this.bill);
         this.title = "璁㈠崟娴佹按";
       });
       getTransitionInfo(tjNumber).then((res) => {
@@ -1863,6 +1975,44 @@
         });
       });
     },
+    budadzd() {
+      this.bldhs = [];
+      getBlproByTjh(this.tjnumbers).then((res) => {
+        if (res.data) {
+          this.DataLists = res.data;
+          this.budadaozhen = true;
+          this.title1 = "琛ユ墦瀵艰瘖鍗�";
+        } else {
+          this.$message({
+            type: "warning ",
+            message: "璇ュ鎴锋病鏈夎ˉ褰曢」鐩�",
+          });
+        }
+      });
+    },
+    dayin() {
+      console.log(this.bldhs);
+      this.bldhid.toString(this.bldhs);
+      this.bldhs.forEach((item) => {
+        console.log(item, 666);
+        this.bldhid += item + ",";
+      });
+      // this.bldhid = this.bldhs.toString()
+      console.log(this.bldhid);
+      const tjNumber = this.tjnumbers;
+      const viewNum = "983185234038140928";
+      const jxbz = this.bldhid;
+      const params = { viewNum, tjNumber, jxbz };
+      console.log(params);
+      hasReport(tjNumber).then((res) => {
+        if (res == 1) {
+          this.$tab.openPage("瀵艰瘖鍗�", "/report/budabreDailyReport", params);
+          this.budadaozhen = false;
+        } else {
+          this.$message.error("璇ョ敤鎴锋殏鏃犻」鐩紒");
+        }
+      });
+    },
 
     handleClick(tab, event) {
       if (this.activeNames == "first") {
@@ -1876,10 +2026,9 @@
           this.loading = false;
         });
       } else {
-        console.log(111)
         this.TotalPrice1 = 0;
-        this.checkedkey =[]
-        this.DataList = []
+        this.checkedkey = [];
+        this.DataList = [];
         this.getDataList();
         if (this.marryalls != 0) {
           this.TotalPrice1 += this.marryalls;
@@ -1950,7 +2099,7 @@
       this.activeNames = "first";
       /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */
       this.handleClick();
-     
+
       this.Projectopen = true;
       this.title = "琛ュ綍椤圭洰";
     },
@@ -2011,7 +2160,7 @@
       this.activeNames = "first";
       /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */
       this.handleClick();
-      
+
       this.Projectopen1 = true;
       this.title = "琛ュ綍椤圭洰";
     },
@@ -2041,8 +2190,8 @@
               this.TotalPrice1 = item.proPrice + this.TotalPrice1;
             });
             if (this.marryalls != 0) {
-          this.TotalPrice1 += this.marryalls;
-        }
+              this.TotalPrice1 += this.marryalls;
+            }
           }
         });
       } else if (checked.checkedNodes.length == 0) {
@@ -2078,8 +2227,8 @@
               this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
             });
             if (this.marryalls != 0) {
-          this.TotalPrice1 += this.marryalls;
-        }
+              this.TotalPrice1 += this.marryalls;
+            }
           }
         });
       } else if (checked == true) {
@@ -2120,8 +2269,8 @@
             this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
           });
           if (this.marryalls != 0) {
-          this.TotalPrice1 += this.marryalls;
-        }
+            this.TotalPrice1 += this.marryalls;
+          }
         }
       });
     },
@@ -2396,9 +2545,14 @@
   display: flex;
   margin-top: 8px;
 }
+.outsides {
+  width: 500px;
+  display: flex;
+  // margin-top: 12px;
+}
 
 .tab3 {
-  max-height: 500px;
+  max-height: 420px;
   overflow-y: auto;
   border: 1px solid #d9d9d9;
 }
@@ -2408,4 +2562,16 @@
   display: flex;
   margin-top: 8px;
 }
+.outside2 {
+  width: 500px;
+  display: flex;
+  margin-top: 8px;
+}
+.heji {
+  display: flex;
+  flex-direction: row;
+  justify-content: flex-start;
+  align-items: center;
+  margin-top: 10px;
+}
 </style>

--
Gitblit v1.8.0