From ba9dbeee7c139c67d770afe0053f06f1f235e565 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 17 十月 2023 10:56:35 +0800
Subject: [PATCH] qxtj

---
 src/views/hosp/about/index.vue |   70 ++++++++++++++++++++--------------
 1 files changed, 41 insertions(+), 29 deletions(-)

diff --git a/src/views/hosp/about/index.vue b/src/views/hosp/about/index.vue
index 372a3ec..8319401 100644
--- a/src/views/hosp/about/index.vue
+++ b/src/views/hosp/about/index.vue
@@ -2,16 +2,18 @@
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
       <el-form-item label="浜ゆ鍛�" prop="tollCollectorName">
-        <el-select v-model="queryParams.tollCollectorName" filterable style="width: 200px" placeholder="璇烽�夋嫨浜ゆ鍛�" clearable @clear="getCompanyList" @change="idFn">
-          <el-option v-for="dict in CompanyList" :key="dict.userId" :label="dict.nickName" :value="dict.userId"/>
+        <el-select v-model="queryParams.tollCollectorName" filterable style="width: 200px" placeholder="璇烽�夋嫨浜ゆ鍛�" clearable
+          @clear="getCompanyList" @change="idFn">
+          <el-option v-for="dict in CompanyList" :key="dict.userId" :label="dict.nickName" :value="dict.userId" />
         </el-select>
       </el-form-item>
       <el-form-item label="浜よ处鏃堕棿" prop="tollCollectorName">
-        <el-date-picker v-model="value1" type="datetimerange" :picker-options="pickerOptions" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="璧锋鏃ユ湡" end-placeholder="缁堟鏃ユ湡" :default-time="['12:00:00']">
+        <el-date-picker v-model="value1" type="datetimerange" :picker-options="pickerOptions"
+          value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="璧锋鏃ユ湡" end-placeholder="缁堟鏃ユ湡" :default-time="['12:00:00']">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >鎼滅储</el-button>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
       </el-form-item>
     </el-form>
 
@@ -19,27 +21,28 @@
       <el-col :span="1.5">
         <el-button icon="el-icon-edit" size="mini" @click="handleDelete" v-hasPermi="['hosp:water:edit']">鎾ら攢</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button icon="el-icon-edit" size="mini" @click="handledocument"
+          v-hasPermi="['hosp:water:edit']">琛ユ墦鍗曟嵁</el-button>
+      </el-col>
     </el-row>
 
-    <el-table :row-class-name="tableRowClassName" style="width: 80%" :data="tableData" @selection-change="handleSelect" ref="multipleTable" border>
+    <el-table :row-class-name="tableRowClassName" style="width: 80%" :data="tableData" @selection-change="handleSelect"
+      ref="multipleTable" border>
       <el-table-column type="selection" width="55"> </el-table-column>
-      <el-table-column label="浜ゆ鍛�" align="center" prop="tollCollector" :show-overflow-tooltip="true"/>
-      <el-table-column label="鏀惰垂閲戦" align="center" prop="amountReceived" :show-overflow-tooltip="true"/>
-      <el-table-column label="閫�璐归噾棰�" align="center" prop="refundAmount" :show-overflow-tooltip="true"/>
-      <el-table-column label="搴斾氦娆�" align="center" prop="payable" :show-overflow-tooltip="true"/>
-      <el-table-column label="浜よ处鏃堕棿" align="center" prop="createTime" :show-overflow-tooltip="true"/>
-      <el-table-column label="璧锋鏃ユ湡" align="center" prop="accountBeginTime" :show-overflow-tooltip="true"/>
-      <el-table-column label="缁堟鏃ユ湡" align="center" prop="accountEndTime" :show-overflow-tooltip="true"/>
-      <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
-        <template slot-scope="scope">
-          <el-button size="mini" type="text" icon="el-icon-s-order" title="璇︽儏" @click="handleUpdate(scope.row)" v-hasPermi="['hosp:water:edit']"></el-button>
-        </template>
-      </el-table-column>
+      <el-table-column label="浜ゆ鍛�" align="center" prop="tollCollector" :show-overflow-tooltip="true" />
+      <el-table-column label="鏀惰垂閲戦" align="center" prop="amountReceived" :show-overflow-tooltip="true" />
+      <el-table-column label="閫�璐归噾棰�" align="center" prop="refundAmount" :show-overflow-tooltip="true" />
+      <el-table-column label="搴斾氦娆�" align="center" prop="payable" :show-overflow-tooltip="true" />
+      <el-table-column label="浜よ处鏃堕棿" align="center" prop="createTime" :show-overflow-tooltip="true" />
+      <el-table-column label="璧锋鏃ユ湡" align="center" prop="accountBeginTime" :show-overflow-tooltip="true" />
+      <el-table-column label="缁堟鏃ユ湡" align="center" prop="accountEndTime" :show-overflow-tooltip="true" />
     </el-table>
 
     <div class="pag">
       <div class="pag1">
-        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList"/>
+        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
+          @pagination="getList" />
       </div>
     </div>
 
@@ -145,7 +148,7 @@
   created() {
     this.getList();
     this.getCompanyList();
-    
+
   },
   methods: {
     /** 鏌ヨ浣撴娴佹按鍒楄〃 */
@@ -166,11 +169,11 @@
       };
       getcolllist(data).then((res) => {
         this.tableData = res.data.list;
-        if(this.tableData.length === 0){
+        if (this.tableData.length === 0) {
           this.$message({
-          message: '璇锋悳绱㈣鎾ら攢鏁版嵁鐨勬椂闂存鍝',
-          type: 'warning'
-        });
+            message: '璇锋悳绱㈣鎾ら攢鏁版嵁鐨勬椂闂存鍝',
+            type: 'warning'
+          });
         }
         if (res.code === 200) {
           if (this.tableData.length != 0) {
@@ -238,7 +241,7 @@
         this.total = res.data.total;
       });
     },
-    handleUpdate() {},
+    handleUpdate() { },
 
     // 琛ㄦ牸鍗曢��
     handleSelect(selection, val) {
@@ -253,6 +256,12 @@
         let del_row = selection.shift();
         this.$refs.multipleTable.toggleRowSelection(del_row, false);
       }
+    },
+    handledocument() {
+      const viewNum = "809743614817824768";
+      let accountId =  this.selectList[0].accountId
+      const params = { viewNum, accountId };
+      this.$tab.openPage("缁撹处鍗�", "/report/settlement", params);
     },
     tableRowClassName({ row, rowIndex }) {
       for (let i = 0; i < this.selectList.length; i++) {
@@ -278,11 +287,12 @@
   },
 };
 </script>
-
+ 
 <style>
 .el-table__header-wrapper .el-checkbox {
   display: none;
 }
+
 .pag {
   width: 100%;
   display: flex;
@@ -292,11 +302,13 @@
 .pag1 {
   width: 30%;
 }
-.el-table__body tr.current-row > td {
+
+.el-table__body tr.current-row>td {
   background-color: #f19944 !important;
-  /* color: #f19944; */ /* 璁剧疆鏂囧瓧棰滆壊锛屽彲浠ラ�夋嫨涓嶈缃� */
+  /* color: #f19944; */
+  /* 璁剧疆鏂囧瓧棰滆壊锛屽彲浠ラ�夋嫨涓嶈缃� */
 }
+
 .el-table .warning-row {
   background: #e5f3ff !important;
-}
-</style>
\ No newline at end of file
+}</style>
\ No newline at end of file

--
Gitblit v1.8.0