From be47dc22ea72ba989f75419181284dca0021d018 Mon Sep 17 00:00:00 2001
From: heimawl <1785969728@qq.com>
Date: 星期四, 10 八月 2023 11:13:16 +0800
Subject: [PATCH] 11

---
 src/views/project/fund/fundApply/index.vue |   36 ++++++++++++------------------------
 1 files changed, 12 insertions(+), 24 deletions(-)

diff --git a/src/views/project/fund/fundApply/index.vue b/src/views/project/fund/fundApply/index.vue
index dfee463..aa4e074 100644
--- a/src/views/project/fund/fundApply/index.vue
+++ b/src/views/project/fund/fundApply/index.vue
@@ -24,7 +24,7 @@
       </el-row>
     </el-form>
     <el-row>
-      <el-col :span="8">
+      <el-col :span="6">
         <el-card shadow="never">
           <!-- 鎹愮尞妗堜緥鍒楄〃 -->
           <el-row>
@@ -47,7 +47,7 @@
             :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" />
         </el-card>
       </el-col>
-      <el-col :span="16">
+      <el-col :span="18">
         <el-card shadow="naver">
           <el-form ref="infoform" label-width="100px">
             <el-row :gutter="4" align="right" class="mb8">
@@ -369,7 +369,7 @@
         <el-row>
           <el-col :span="24">
             <el-form-item label="鐢宠闄勪欢锛�" align="left" prop="annexbankcard">
-              <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="5"
+              <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="20"
                 :headers="headers" :on-success="(response, file, fileList) =>
                   uploadSccess(response, file, fileList)
                   " :on-preview="downFile" :disabled='dialogType == "detail"' :on-error="handleUploadError"
@@ -447,7 +447,7 @@
   getdownloadSS,
   getdownloadYX,
   getdownloadBX,
-  batchUploadFund,
+  addorupdateFund,
   getdownloadLL,
   getdetailsByItemId,
 } from "@/api/project/fund";
@@ -558,9 +558,6 @@
         deptmentname: [
           { required: true, message: "璇疯緭鍏ユ墍灞炵粍鍒�", trigger: "blur" },
         ],
-        amountrequested: [
-          { required: true, message: "璇疯緭鍏ョ敵璇烽噾棰�", trigger: "blur" },
-        ],
       },
       //鎹愮尞妗堜緥鍒楄〃鏁版嵁
       // donationCaseTableData:[],
@@ -627,14 +624,12 @@
       this.detailInfoDialogShowType = showType;
     },
     ConfirmDetailDialog() {
-      debugger;
       let tempIndex = this.funddetailForm.index;
       let tempName = this.funddetailForm.beneficiaryname;
       let tempUnitname = this.funddetailForm.unitname;
       let singleDetail = this.fundDetailArr[tempIndex];
       if (this.detailInfoDialogShowType == "name") {
         this.personlist.map((res) => {
-          debugger;
           if (tempName == res.username) {
             singleDetail.beneficiaryno = res.userno;
             singleDetail.beneficiaryname = res.username;
@@ -666,7 +661,6 @@
           singleDetail.unitname = singleDetail.unitno;
         }
       }
-      debugger;
       this.fundDetailArr[tempIndex] = singleDetail;
       this.detailInfoDialogShow = false;
     },
@@ -752,10 +746,14 @@
       if (this.curCase.id) {
         this.istrue += 2;
         this.reset();
+        this.dialogOpen = true;
+        this.title = "娣诲姞璐圭敤鐢宠";
+        this.dialogType = "edit";
         this.queryParams.params = {};
-        this.form.donorno = this.curCase.donorno;
-        this.form.name = this.curCase.name;
+
         this.form.infoid = this.curCase.id;
+        this.form.donorno = this.curCase.donorno;
+        this.form.donorname = this.curCase.name;
         this.form.username = this.defaultperson.nickName;
         this.form.userno = this.defaultperson.userName;
 
@@ -768,9 +766,6 @@
         this.fundDetailArr = [];
         this.fundflowList = [];
         this.addRow();
-        this.dialogOpen = true;
-        this.title = "娣诲姞璐圭敤鐢宠";
-        this.dialogType = "edit";
       } else {
         const h = this.$createElement;
         this.$message({
@@ -1003,8 +998,7 @@
           if (list.length > 0) {
             this.form.annexbankcard = list.map(item => item.url).join(",");
           }
-
-          this.form.donorname = this.curCase.name;
+          
           if (this.form.id != null) {
             updateFund(this.form).then((response) => {
               this.getfundList();
@@ -1056,7 +1050,7 @@
             }
 
             this.form.serviceFunddetails = this.fundDetailArr;
-            batchUploadFund(this.form).then((response) => {
+            addorupdateFund(this.form).then((response) => {
               if (response.code === 200) {
                 this.$modal.msgSuccess("鏂板鎴愬姛");
                 this.loading = false;
@@ -1112,8 +1106,6 @@
       this.isopen = 0;
       this.reset();
       this.queryParams.params = {};
-      this.form.donorno = this.curCase.donorno;
-      this.form.infoid = this.curCase.id;
       this.dialogOpen = true;
       this.title = "淇敼璐圭敤鐢宠";
       this.dialogType = "edit";
@@ -1121,7 +1113,6 @@
       const id = row.id || this.ids;
       getFund(id).then((response) => {
         this.form = response.data;
-        this.form.name = this.curCase.name;
         //闄勪欢澶勭悊
         this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
 
@@ -1140,8 +1131,6 @@
       this.isopen = 0;
       this.reset();
       this.queryParams.params = {};
-      this.form.donorno = this.curCase.donorno;
-      this.form.infoid = this.curCase.id;
       this.dialogOpen = true;
       this.title = "鏌ョ湅璐圭敤鐢宠";
       this.dialogType = "detail";
@@ -1149,7 +1138,6 @@
 
       getFund(id).then((response) => {
         this.form = response.data;
-        this.form.name = this.curCase.name;
         let listFundflowparams = {
           fundid: row.id,
           fundtype: 2,

--
Gitblit v1.9.3