From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 14:05:35 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/business/ApplyChangeUnitDetails.vue |   77 ++++++++++++++++++++++++++++----------
 1 files changed, 56 insertions(+), 21 deletions(-)

diff --git a/company/src/components/business/ApplyChangeUnitDetails.vue b/company/src/components/business/ApplyChangeUnitDetails.vue
index bb5e99a..a3d0127 100644
--- a/company/src/components/business/ApplyChangeUnitDetails.vue
+++ b/company/src/components/business/ApplyChangeUnitDetails.vue
@@ -17,7 +17,7 @@
               <div class="box_table_head_item">淇濆崟鍙�</div>
               <div class="box_table_head_item">淇濋櫓鐢熸晥璧锋湡</div>
               <div class="box_table_head_item">淇濋櫓鐢熸晥姝㈡湡</div>
-              <div class="box_table_head_item">鎹㈠巶浜烘暟</div>
+              <div class="box_table_head_item">鏇存崲娲鹃仯鍗曚綅浜烘暟</div>
               <div class="box_table_head_item">鎵瑰崟鐢熸晥鏈�</div>
             </div>
             <div class="box_table_content "  >
@@ -38,8 +38,8 @@
                     <div class="box_table_head_item">韬唤璇佸彿</div>
                     <div class="box_table_head_item">鍘熸淳閬e崟浣�</div>
                     <div class="box_table_head_item">鍘熸墍灞炲伐绉�</div>
-                    <div class="box_table_head_item">鎹㈠巶鍚庢淳閬e崟浣�</div>
-                    <div class="box_table_head_item">鎹㈠巶鍚庢墍灞炲伐绉�</div>
+                    <div class="box_table_head_item">鏇存崲鍚庢淳閬e崟浣�</div>
+                    <div class="box_table_head_item">鏇存崲鍚庢墍灞炲伐绉�</div>
                 </div>
                 <div class="box_table_content" v-for="(item, index) in detailList" :key="index">
                     <div class="box_table_content_item">{{index + 1}}</div>
@@ -66,6 +66,9 @@
 <!--            <el-button type="danger"  :loading="isWorking.export" @click="check(1)">瀹℃牳涓嶉�氳繃</el-button>-->
             <el-button @click="visible=false">鍙栨秷</el-button>
         </template>
+      <template v-else-if="type==1" v-slot:footer>
+        <el-button @click="visible=false">杩斿洖</el-button>
+      </template>
         <template v-else v-slot:footer>
             <el-button type="primary"  :loading="isWorking.export" @click="exportComFilesDo">浼佷笟璇佷欢</el-button>
             <el-button type="primary"  :loading="isWorking.export" @click="exportDetail">瀵煎嚭璇﹀崟</el-button>
@@ -79,6 +82,7 @@
     import GlobalWindow from '@/components/common/GlobalWindow'
     import {getChangeDetailList, exportChangeUnitExcel} from "@/api/business/insuranceApply";
     import {exportComFiles} from "@/api/business/company";
+    import {check} from "@/api/business/applyChange";
     // import {all as solutionAll} from "@/api/business/solutions";
     export default {
         name: 'ApplyChangeUnitDetails',
@@ -99,7 +103,7 @@
                 // 楠岃瘉瑙勫垯
                 rules: {
                 },
-                reverse: true,
+                reverse: false,
                 tableData: []
             }
         },
@@ -110,14 +114,31 @@
             })
         },
         methods: {
-            open(title,target,target2){
+            open(title,target,target2,target3){
               this.title=title
               this.visible=true
               this.apply = target
               this.model = target2
-              this.form.id=target.id
+              this.type=target3
+              this.form.id=target2.id
               this.getDetailListDo()
             },
+          check (type) {
+            this.form.dealBackApply = type
+            this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�')
+                .then(() => {
+                  this.isWorking = true
+                  check(this.form)
+                      .then(response => {
+                        this.visible = false
+                        this.$emit('success')
+                      }).catch(err => {
+                    this.$tip.apiFailed(err)
+                  })
+                })
+                .catch(() => {
+                })
+          },
            getDetailListDo() {
              this.detailList = []
              var that = this
@@ -265,13 +286,13 @@
                     border-bottom: 1px solid #b4bbc5;
                     box-sizing: border-box;
                   &:nth-child(4) {
-                    flex: 1.5;;
+                    flex: 1.5;
                   }
                   &:nth-child(6) {
-                    flex: 1.5;;
+                    flex: 1.5;
                   }
                   &:nth-child(8) {
-                    flex: 1.5;;
+                    flex: 1.5;
                   }
                 }
               .box_table_head_item5 {
@@ -286,8 +307,11 @@
                 border-right: 1px solid #b4bbc5;
                 border-bottom: 1px solid #b4bbc5;
                 box-sizing: border-box;
+                &:nth-child(1) {
+                   flex: 1;
+                }
                 &:nth-child(2) {
-                   flex: 5;
+                   flex: 8.5;
                 }
               }
               .box_form_item {
@@ -315,8 +339,12 @@
                   border-bottom: 0px solid #b4bbc5 !important;
                 }
               .box_table_content_item {
-                    flex: 1;
-                    height: 50px;
+                //white-space: nowrap;
+                overflow: hidden;
+                //text-overflow: ellipsis;
+                flex: 1;
+                height: 50px;
+                padding: 10px;
                     background: #ffffff;
                     display: flex;
                     align-items: center;
@@ -326,15 +354,22 @@
                     border-right: 1px solid #b4bbc5;
                     border-bottom: 1px solid #b4bbc5;
                     box-sizing: border-box;
-                &:nth-child(4) {
-                  flex: 1.5;
-                }
-                &:nth-child(6) {
-                  flex: 1.5;
-                }
-                &:nth-child(8) {
-                  flex: 1.5;
-                }
+                    &:nth-child(4) {
+                      flex: 1.5;
+                    }
+                    &:nth-child(6) {
+                      flex: 1.5;
+                    }
+                    &:nth-child(8) {
+                      flex: 1.5;
+                    }
+                    span{
+                      width: 100%;
+                      white-space: nowrap;
+                      word-wrap: break-word;
+                      text-overflow: ellipsis;
+                      overflow: hidden;
+                    }
                 }
             }
         }

--
Gitblit v1.9.3