From e1d633ddeece986c1c866d4bc28e4193f3e3c41e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 12 十月 2023 15:49:49 +0800
Subject: [PATCH] 11

---
 src/views/project/fund/medicalCostApply/index.vue |  269 +++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 199 insertions(+), 70 deletions(-)

diff --git a/src/views/project/fund/medicalCostApply/index.vue b/src/views/project/fund/medicalCostApply/index.vue
index 7b710ce..25b3387 100644
--- a/src/views/project/fund/medicalCostApply/index.vue
+++ b/src/views/project/fund/medicalCostApply/index.vue
@@ -1,19 +1,38 @@
 <!--  -->
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="70px">
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      label-width="70px"
+    >
       <el-row align="left">
         <el-col :span="6">
           <el-form-item label="濮撳悕" prop="name">
-            <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" clearable size="small"
-              @keyup.enter.native="handleQuery" />
+            <el-input
+              v-model="queryParams.name"
+              placeholder="璇疯緭鍏ュ鍚�"
+              clearable
+              size="small"
+              @keyup.enter.native="handleQuery"
+            />
           </el-form-item>
         </el-col>
         <el-col :span="6">
           <el-form-item label="鎹愮尞杩涘害" prop="recordstate">
-            <el-select v-model="queryParams.recordstate" placeholder="璇烽�夋嫨璁板綍鐘舵��" clearable size="small">
-              <el-option v-for="dict in dict.type.sys_DonationStatus" :key="dict.value" :label="dict.label"
-                :value="dict.value" />
+            <el-select
+              v-model="queryParams.recordstate"
+              placeholder="璇烽�夋嫨璁板綍鐘舵��"
+              clearable
+              size="small"
+            >
+              <el-option
+                v-for="dict in dict.type.sys_DonationStatus"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
             </el-select>
           </el-form-item>
         </el-col>
@@ -29,8 +48,16 @@
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
-          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
+          <el-button
+            type="primary"
+            icon="el-icon-search"
+            size="mini"
+            @click="handleQuery"
+            >鎼滅储</el-button
+          >
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+            >閲嶇疆</el-button
+          >
         </el-col>
       </el-row>
     </el-form>
@@ -44,18 +71,32 @@
               </el-row>
             </el-col>
           </el-row>
-          <el-table v-loading="loading" border highlight-current-row :data="donatebaseinfoList"
-            @row-click="selectDonotor">
+          <el-table
+            v-loading="loading"
+            border
+            highlight-current-row
+            :data="donatebaseinfoList"
+            @row-click="selectDonotor"
+          >
             <!-- <el-table-column label="鎹愮尞缂栧彿" align="center" prop="donorno" /> -->
             <el-table-column label="鎹愮尞杩涘害" align="center" prop="recordstate">
               <template slot-scope="scope">
-                <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" />
+                <dict-tag
+                  :options="dict.type.sys_DonationStatus"
+                  :value="scope.row.recordstate"
+                />
               </template>
             </el-table-column>
             <el-table-column label="濮撳悕" align="center" prop="name" />
           </el-table>
-          <pagination v-show="total > 0" :total="total" small :page.sync="queryParams.pageNum"
-            :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" />
+          <pagination
+            v-show="total > 0"
+            :total="total"
+            small
+            :page.sync="queryParams.pageNum"
+            :limit.sync="queryParams.pageSize"
+            @pagination="getBaseInfoList"
+          />
         </el-card>
       </el-col>
       <el-col :span="18">
@@ -64,7 +105,10 @@
             <el-row :gutter="4" align="right" class="mb8">
               <el-col :span="9">
                 <el-form-item label="鎹愮尞缂栧彿">
-                  <el-input v-model="curCase.donorno" :disabled="true"></el-input>
+                  <el-input
+                    v-model="curCase.donorno"
+                    :disabled="true"
+                  ></el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="9">
@@ -76,62 +120,146 @@
             </el-row>
             <el-row :gutter="10" class="mb8">
               <el-col :span="1.5">
-                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
-                  v-hasPermi="['project:medicalfund:add']">鏂板鐢宠鍗�</el-button>
+                <el-button
+                  type="primary"
+                  plain
+                  icon="el-icon-plus"
+                  size="mini"
+                  @click="handleAdd"
+                  v-hasPermi="['project:medicalfund:add']"
+                  >鏂板鐢宠鍗�</el-button
+                >
               </el-col>
             </el-row>
             <el-row>
-              <el-table v-loading="loading" border :data="donateconsolationfundList">
-                <el-table-column label="鐢宠鏃ユ湡" align="center" prop="createTime" width="150px">
+              <el-table
+                v-loading="loading"
+                border
+                :data="donateconsolationfundList"
+              >
+                <el-table-column
+                  label="鐢宠鏃ユ湡"
+                  align="center"
+                  prop="createTime"
+                  width="150px"
+                >
                   <template slot-scope="scope">
                     <span>{{
                       parseTime(scope.row.createTime, "{y}-{m}-{d}")
                     }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column label="鐢宠浜�" align="center" prop="username" width="120px" />
-                <el-table-column label="鐢宠閲戦" align="center" prop="pretaxcost" width="200px" />
-                <el-table-column label="鎵�灞炵粍鍒�" align="center" prop="deptmentname" width="220px" />
-                <el-table-column label="缁勯暱" align="center" prop="managername" width="200px" />
-                <el-table-column label="瀹℃牳鐘舵��" align="center" prop="recordstatus">
+                <el-table-column
+                  label="鐢宠浜�"
+                  align="center"
+                  prop="username"
+                  width="120px"
+                />
+                <el-table-column
+                  label="鐢宠閲戦"
+                  align="center"
+                  prop="pretaxcost"
+                  width="200px"
+                />
+                <el-table-column
+                  label="鎵�灞炵粍鍒�"
+                  align="center"
+                  prop="deptmentname"
+                  width="220px"
+                />
+                <el-table-column
+                  label="缁勯暱"
+                  align="center"
+                  prop="managername"
+                  width="200px"
+                />
+                <el-table-column
+                  label="瀹℃牳鐘舵��"
+                  align="center"
+                  prop="recordstatus"
+                >
                   <template slot-scope="scope">
-                    <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" />
+                    <dict-tag
+                      :options="dict.type.sys_recordstatus"
+                      :value="scope.row.recordstatus"
+                    />
                   </template>
                 </el-table-column>
                 <el-table-column
-        label="棰勫鐘舵��"
-        width="140"
-        align="center"
-        prop="checkstatus"
-      >
-        <template slot-scope="scope">
-          <dict-tag
-            :options="dict.type.sys_stage_type"
-            :value="scope.row.checkstatus"
-          />
-        </template>
-      </el-table-column>
+                  label="鐢宠鏉愭枡鐘舵��"
+                  width="140"
+                  align="center"
+                  prop="checkstatus"
+                >
+                  <template slot-scope="scope">
+                    <dict-tag
+                      :options="dict.type.sys_stage_type"
+                      :value="scope.row.checkstatus"
+                    />
+                  </template>
+                </el-table-column>
                 <!--
                   <el-table-column label="鑱旂郴鐢佃瘽" align="center" prop="phone" width="150px" />
                 <el-table-column label="宸ヤ綔鍗曚綅" align="center" prop="unitname" width="150px" />
                 -->
-                <el-table-column label="鎿嶄綔" fixed="right" align="center" class-name="small-padding fixed-width"
-                  width="280px">
+                <el-table-column
+                  label="鎿嶄綔"
+                  fixed="right"
+                  align="center"
+                  class-name="small-padding fixed-width"
+                  width="280px"
+                >
                   <template slot-scope="scope">
-                    <el-button v-if="scope.row.recordstatus == -1 ||
-                      scope.row.recordstatus == 1
-                      " size="mini" type="text" icon="el-icon-edit" @click="handleup(scope.row)">涓婃姤</el-button>
-                    <el-button v-if="scope.row.recordstatus == -1 ||
-                      scope.row.recordstatus == 1
-                      " size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-                      v-hasPermi="['project:medicalfund:edit']">淇敼</el-button>
-                    <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">鏌ョ湅</el-button>
-                    <el-button v-if="scope.row.recordstatus == -1 ||
-                      scope.row.recordstatus == 1
-                      " size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
-                      v-hasPermi="['project:medicalfund:delete']">鍒犻櫎</el-button>
-                    <el-button size="mini" type="text" icon="el-icon-download" @click="mixExport(scope.row.id)"
-                      v-hasPermi="['project:medicalfund:download']">涓嬭浇</el-button>
+                    <el-button
+                      v-if="
+                        scope.row.recordstatus == -1 ||
+                          scope.row.recordstatus == 1
+                      "
+                      size="mini"
+                      type="text"
+                      icon="el-icon-edit"
+                      @click="handleup(scope.row)"
+                      >涓婃姤</el-button
+                    >
+                    <el-button
+                      v-if="
+                        scope.row.recordstatus == -1 ||
+                          scope.row.recordstatus == 1
+                      "
+                      size="mini"
+                      type="text"
+                      icon="el-icon-edit"
+                      @click="handleUpdate(scope.row)"
+                      v-hasPermi="['project:medicalfund:edit']"
+                      >淇敼</el-button
+                    >
+                    <el-button
+                      size="mini"
+                      type="text"
+                      icon="el-icon-view"
+                      @click="handleDetail(scope.row)"
+                      >鏌ョ湅</el-button
+                    >
+                    <el-button
+                      v-if="
+                        scope.row.recordstatus == -1 ||
+                          scope.row.recordstatus == 1
+                      "
+                      size="mini"
+                      type="text"
+                      icon="el-icon-delete"
+                      @click="handleDelete(scope.row)"
+                      v-hasPermi="['project:medicalfund:delete']"
+                      >鍒犻櫎</el-button
+                    >
+                    <el-button
+                      size="mini"
+                      type="text"
+                      icon="el-icon-download"
+                      @click="mixExport(scope.row.id)"
+                      v-hasPermi="['project:medicalfund:download']"
+                      >涓嬭浇</el-button
+                    >
                   </template>
                 </el-table-column>
               </el-table>
@@ -140,7 +268,6 @@
         </el-card>
       </el-col>
     </el-row>
-
   </div>
 </template>
 
@@ -351,13 +478,13 @@
     this.getUsermsg();
   },
 
-  beforeCreate() { }, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠
-  beforeMount() { }, //鐢熷懡鍛ㄦ湡 - 鎸傝浇涔嬪墠
-  beforeUpdate() { }, //鐢熷懡鍛ㄦ湡 - 鏇存柊涔嬪墠
-  updated() { }, //鐢熷懡鍛ㄦ湡 - 鏇存柊涔嬪悗
-  beforeDestroy() { }, //鐢熷懡鍛ㄦ湡 - 閿�姣佷箣鍓�
-  destroyed() { }, //鐢熷懡鍛ㄦ湡 - 閿�姣佸畬鎴�
-  activated() { }, //濡傛灉椤甸潰鏈塳eep-alive缂撳瓨鍔熻兘锛岃繖涓嚱鏁颁細瑙﹀彂
+  beforeCreate() {}, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠
+  beforeMount() {}, //鐢熷懡鍛ㄦ湡 - 鎸傝浇涔嬪墠
+  beforeUpdate() {}, //鐢熷懡鍛ㄦ湡 - 鏇存柊涔嬪墠
+  updated() {}, //鐢熷懡鍛ㄦ湡 - 鏇存柊涔嬪悗
+  beforeDestroy() {}, //鐢熷懡鍛ㄦ湡 - 閿�姣佷箣鍓�
+  destroyed() {}, //鐢熷懡鍛ㄦ湡 - 閿�姣佸畬鎴�
+  activated() {}, //濡傛灉椤甸潰鏈塳eep-alive缂撳瓨鍔熻兘锛岃繖涓嚱鏁颁細瑙﹀彂
 
   //鏂规硶闆嗗悎
   methods: {
@@ -407,7 +534,9 @@
       } else {
         const h = this.$createElement;
         this.$message({
-          message: h("p", null, [h("span", null, "璇峰湪宸﹁竟鐨勬崘鐚渚嬭〃閫夋嫨闇�瑕佹搷浣滅殑妗堜緥锛�")]),
+          message: h("p", null, [
+            h("span", null, "璇峰湪宸﹁竟鐨勬崘鐚渚嬭〃閫夋嫨闇�瑕佹搷浣滅殑妗堜緥锛�")
+          ])
         });
       }
       return;
@@ -469,8 +598,8 @@
         //闄勪欢澶勭悊
         this.fileList = this.form.annexbankcard
           ? this.form.annexbankcard
-            .split(",")
-            .map(item => ({ url: item, name: item }))
+              .split(",")
+              .map(item => ({ url: item, name: item }))
           : [];
 
         getownFundDetail(id).then(async res => {
@@ -516,8 +645,8 @@
         //闄勪欢澶勭悊
         this.fileList = this.form.annexbankcard
           ? this.form.annexbankcard
-            .split(",")
-            .map(item => ({ url: item, name: item }))
+              .split(",")
+              .map(item => ({ url: item, name: item }))
           : [];
 
         listFundflow(listFundflowparams).then(res => {
@@ -545,7 +674,7 @@
       const ids = row.id || this.ids;
       this.$modal
         .confirm("鏄惁纭鍒犻櫎璇ヨ褰曪紵")
-        .then(function () {
+        .then(function() {
           return delFund(ids);
         })
         .then(() => {
@@ -559,7 +688,7 @@
           this.getfundList();
           this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
         })
-        .catch(() => { });
+        .catch(() => {});
     },
 
     /** 涓婃姤鎸夐挳鎿嶄綔 */
@@ -933,9 +1062,9 @@
                   tempData.itemid = tempItemArr[itemIndex].id;
                 }
                 if (tempData.id > 0) {
-                  updateFunddetail(tempData).then(response2 => { });
+                  updateFunddetail(tempData).then(response2 => {});
                 } else {
-                  addFunddetail(tempData).then(response2 => { });
+                  addFunddetail(tempData).then(response2 => {});
                 }
               }
             });
@@ -1226,7 +1355,7 @@
     },
 
     //鏂囦欢涓婁紶
-    handleUploadError() { },
+    handleUploadError() {},
 
     handleremove(file) {
       this.fileList.splice(this.fileList.indexOf(file), 1);

--
Gitblit v1.9.3