From 28382948158f1b48c9ed01229323eda1951b914f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期六, 27 一月 2024 11:43:27 +0800
Subject: [PATCH] 开发业务接口

---
 company/src/api/business/insuranceApply.js                         |    3 +
 company/src/components/business/OperaInsuranceApplyWindow.vue      |   25 ++++++--
 company/src/components/business/InsuranceDetails.vue               |   84 +++++++++++++++++++--------
 company/src/components/business/OperaInsuranceApplyCheckWindow.vue |    5 -
 company/src/views/business/insuranceApply.vue                      |    4 +
 5 files changed, 84 insertions(+), 37 deletions(-)

diff --git a/company/src/api/business/insuranceApply.js b/company/src/api/business/insuranceApply.js
index 35ee368..4271b19 100644
--- a/company/src/api/business/insuranceApply.js
+++ b/company/src/api/business/insuranceApply.js
@@ -11,6 +11,9 @@
 export function updateById (data) {
     return request.post('/business/insuranceApply/updateById', data)
 }
+export function check (data) {
+    return request.post('/business/insuranceApply/check', data)
+}
 
 export function exportDetailExcel (data) {
     return request.post('/business/insuranceApply/exportDetailExcel', data, {
diff --git a/company/src/components/business/InsuranceDetails.vue b/company/src/components/business/InsuranceDetails.vue
index 213a2f9..00dd1c0 100644
--- a/company/src/components/business/InsuranceDetails.vue
+++ b/company/src/components/business/InsuranceDetails.vue
@@ -45,13 +45,13 @@
               <div class="box_table_head_item">鎶曚繚浜烘暟</div>
               <div class="box_table_head_item">鎬昏垂鐢�(鍏�)</div>
             </div>
-            <div class="box_table_content"  >
-              <div class="box_table_content_item">{{ model.companyName }}</div>
-              <div class="box_table_content_item">{{ model.solutionsName }}</div>
-              <div class="box_table_content_item">{{ model.startTime }}</div>
-              <div class="box_table_content_item">{{ model.endTime }}</div>
-              <div class="box_table_content_item">{{ model.insureNum }}</div>
-              <div class="box_table_content_item">{{model.fee}}</div>
+            <div class="box_table_content "  >
+              <div class="box_table_content_item box_table_content_header">{{ model.companyName }}</div>
+              <div class="box_table_content_item box_table_content_header">{{ model.solutionsName }}</div>
+              <div class="box_table_content_item box_table_content_header">{{ model.startTime }}</div>
+              <div class="box_table_content_item box_table_content_header">{{ model.endTime }}</div>
+              <div class="box_table_content_item box_table_content_header">{{ model.insureNum }}</div>
+              <div class="box_table_content_item box_table_content_header">{{model.fee}}</div>
             </div>
           </div>
             <div class="box_table">
@@ -72,21 +72,18 @@
                     <div class="box_table_content_item">{{item.workTypeName}}</div>
                 </div>
             </div>
-            <div class="box_header">
-              <div class="box_header_item">
-                <div class="box_header_item_label">澶囨敞</div>
-                <div class="box_header_item_val">
-                  <el-form :model="form" ref="form" :rules="rules">
-                  <el-form-item label="" prop="checkInfo">
-                    <el-input v-model="form.checkInfo" placeholder="璇疯緭鍏�" v-trim/>
-                  </el-form-item>
-                </el-form></div>
+          <div class="box_table" v-if="type==1" style="border-top: 0px solid #b4bbc5;" >
+            <div class="box_table_head">
+              <div class="box_table_head_item5">澶囨敞</div>
+              <div class="box_table_head_item5">
+                    <input v-model="form.checkInfo" style="width: 100%;height: 45px;border: 0px;outline: none;" placeholder="璇疯緭鍏�" v-trim/>
               </div>
             </div>
+          </div>
         </div>
         <template v-if="type==1" v-slot:footer>
-            <el-button type="primary"  :loading="isWorking.export" @click="check(1)">鎻愪氦閫氳繃</el-button>
-            <el-button type="danger"  :loading="isWorking.export" @click="check(0)">瀹℃牳涓嶉�氳繃</el-button>
+            <el-button type="primary"  :loading="isWorking.export" @click="check(0)">鎻愪氦閫氳繃</el-button>
+            <el-button type="danger"  :loading="isWorking.export" @click="check(1)">瀹℃牳涓嶉�氳繃</el-button>
             <el-button @click="visible=false">鍙栨秷</el-button>
         </template>
         <template v-else v-slot:footer>
@@ -100,7 +97,7 @@
 <script>
     import BaseOpera from '@/components/base/BaseOpera'
     import GlobalWindow from '@/components/common/GlobalWindow'
-    import {exportDetailExcel, getDetailList} from "@/api/business/insuranceApply";
+    import {check, exportDetailExcel, getDetailList} from "@/api/business/insuranceApply";
     import {exportComFiles} from "@/api/business/company";
     // import {all as solutionAll} from "@/api/business/solutions";
     export default {
@@ -115,7 +112,8 @@
                 // 琛ㄥ崟鏁版嵁
                 form: {
                     id: null,
-                    editDate: ''
+                    dealBackApply:0,
+                    checkInfo: ''
                 },
                 // 楠岃瘉瑙勫垯
                 rules: {
@@ -136,6 +134,7 @@
               this.visible=true
               this.model = target
               this.type=type
+              this.form.id=target.id
               this.getDetailListDo()
             },
            getDetailListDo(){
@@ -158,6 +157,21 @@
                       })
                       .finally(() => {
                         this.isWorking = false
+                      })
+                })
+                .catch(() => {
+                })
+
+          },
+          check(type){
+            this.form.dealBackApply = type;
+            this.$dialog.exportConfirm('纭杩涜璇ユ搷浣滃悧锛�')
+                .then(() => {
+                  this.isWorking = true
+                  check(this.form)
+                      .then(response => {
+                        this.visible = false
+                        this.$emit('success')
                       })
                 })
                 .catch(() => {
@@ -209,7 +223,7 @@
            flex-wrap: wrap;
            border-top: 1px solid #b4bbc5;
            border-left: 1px solid #b4bbc5;
-            font-size: 24px;
+            font-size: 14px;
             font-weight: bold;
             text-align: center;
           padding: 15px;
@@ -253,6 +267,7 @@
         }
         .box_table {
             width: 100%;
+            border-top: 1px solid #b4bbc5;
             border-left: 1px solid #b4bbc5;
             box-sizing: border-box;
             .box_table_head {
@@ -272,9 +287,25 @@
                     border-bottom: 1px solid #b4bbc5;
                     box-sizing: border-box;
                     &:nth-child(1) {
-                        flex: 0.5;
+                        //flex: 0.5;
                     }
                 }
+              .box_table_head_item5 {
+                flex: 1;
+                height: 50px;
+                background: #f2f2f2;
+                display: flex;
+                align-items: center;
+                justify-content: center;
+                font-size: 14px;
+                color: black;
+                border-right: 1px solid #b4bbc5;
+                border-bottom: 1px solid #b4bbc5;
+                box-sizing: border-box;
+                &:nth-child(2) {
+                   flex: 5;
+                }
+              }
               .box_form_item {
                 flex: 1;
                 height: 50px;
@@ -288,7 +319,7 @@
                 border-bottom: 1px solid #b4bbc5;
                 box-sizing: border-box;
                 &:nth-child(1) {
-                  flex: 0.5;
+                  //flex: 0.5;
                 }
               }
             }
@@ -296,7 +327,10 @@
                 width: 100%;
                 display: flex;
                 align-items: center;
-                .box_table_content_item {
+                .box_table_content_header{
+                  border-bottom: 0px solid #b4bbc5 !important;
+                }
+              .box_table_content_item {
                     flex: 1;
                     height: 50px;
                     background: #ffffff;
@@ -309,7 +343,7 @@
                     border-bottom: 1px solid #b4bbc5;
                     box-sizing: border-box;
                     &:nth-child(1) {
-                        flex: 0.5;
+                       // flex: 0.5;
                     }
                 }
             }
diff --git a/company/src/components/business/OperaInsuranceApplyCheckWindow.vue b/company/src/components/business/OperaInsuranceApplyCheckWindow.vue
index e70e3fc..54808ea 100644
--- a/company/src/components/business/OperaInsuranceApplyCheckWindow.vue
+++ b/company/src/components/business/OperaInsuranceApplyCheckWindow.vue
@@ -22,11 +22,10 @@
                     <div class="form_item_val">
                         <el-upload
                             class="upload-demo"
-                            action="https://jsonplaceholder.typicode.com/posts/"
+                            action="https://locahost:10023/public/upload"
                             :on-preview="handlePreview"
                             :on-remove="handleRemove"
                             :before-remove="beforeRemove"
-                            multiple
                             :limit="1"
                             :on-exceed="handleExceed"
                             :file-list="fileList">
@@ -179,7 +178,6 @@
       reverse: true,
       radio: 0,
       fileList: [
-          {name: 'food.pdf', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}
       ],
       activities: [{
           content: '娲诲姩鎸夋湡寮�濮�',
@@ -230,7 +228,6 @@
      },
     getDetail(){
       getDetail(this.dataId).then(res => {
-
       }).catch(err => {
       })
     },
diff --git a/company/src/components/business/OperaInsuranceApplyWindow.vue b/company/src/components/business/OperaInsuranceApplyWindow.vue
index 7b819a1..0d61b41 100644
--- a/company/src/components/business/OperaInsuranceApplyWindow.vue
+++ b/company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -11,17 +11,17 @@
                 <div class="desc_item_label">
                     <div class="desc_item_label_left">
                         <span>鎶曚繚浼佷笟锛歿{ model.companyName }}</span>
-                        <span>淇濆崟鐘舵�侊細{{ model.statusInfo }}</span>
+                        <span>淇濆崟鐘舵�侊細{{ model.statusInfo }}{{model.statusCollect}}</span>
                         <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span>
                     </div>
                     <div class="desc_item_label_right">
                         <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button>
-                        <el-button v-if="model.status == 0 " type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button>
-                        <el-button v-if="model.status == 3 "  type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>
-                        <el-button  v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('澶勭悊閫�鍥炵敵璇�',model,5)">澶勭悊閫�鍥炵敵璇�</el-button>
-                        <el-button v-if="model.status == 0 "  type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button>
-                        <el-button v-if="model.status != 5 " type="danger"  @click="$refs.OperaInsuranceApplyCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button>
-                        <el-button v-if="model.status == 5 "  type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('淇敼淇濋櫓鍗�',model,4)">淇敼淇濋櫓鍗�</el-button>
+                        <el-button v-if="model.statusCollect == 1 " type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button>
+                        <el-button v-if="model.statusCollect == 3 "  type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>
+                        <el-button  v-if="model.statusCollect == 6 || model.status == 7|| model.status == 8" type="primary"  @click="$refs.OperaInsuranceApplyCheckWindow.open('澶勭悊閫�鍥炵敵璇�',model,5)">澶勭悊閫�鍥炵敵璇�</el-button>
+                        <el-button v-if="model.statusCollect == 0 "  type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button>
+                        <el-button v-if="model.statusCollect != 5 " type="danger"  @click="$refs.OperaInsuranceApplyCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button>
+                        <el-button v-if="model.statusCollect == 5 "  type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('淇敼淇濋櫓鍗�',model,4)">淇敼淇濋櫓鍗�</el-button>
                     </div>
                 </div>
                 <div class="desc_item_from">
@@ -258,6 +258,13 @@
        this.dataId=target.id
       this.getDetail();
      },
+    handleSizeChange(){
+
+    },
+    handleCurrentChange(){
+
+    },
+
     getDetail(){
       getDetail(this.dataId).then(res => {
         this.model = res
@@ -266,6 +273,10 @@
         this.activities=res.applyLogList
       }).catch(err => {
       })
+    },
+    successEvent(){
+       this.visible=false
+      this.$emit('success')
     }
   }
 }
diff --git a/company/src/views/business/insuranceApply.vue b/company/src/views/business/insuranceApply.vue
index 88b1f45..8dfed6c 100644
--- a/company/src/views/business/insuranceApply.vue
+++ b/company/src/views/business/insuranceApply.vue
@@ -95,7 +95,6 @@
 import TableLayout from '@/layouts/TableLayout'
 import Pagination from '@/components/common/Pagination'
 import { all as solutionAll} from '@/api/business/solutions'
-import {exportComFiles as exportComFiles} from '@/api/business/company'
 import { pageAll as companyAll} from '@/api/business/company'
 import OperaInsuranceApplyWindow from '@/components/business/OperaInsuranceApplyWindow'
 export default {
@@ -127,6 +126,9 @@
         this.loadSelectList()
     },
     methods:{
+        // handlePageChange() {
+        //   this.search()
+        // },
         loadSelectList() {
           solutionAll({dataType:0}).then(res => {
               this.solutionList = res

--
Gitblit v1.9.3