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

---
 company/src/components/business/OperaInsuranceApplyWindow.vue |   57 +++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 45 insertions(+), 12 deletions(-)

diff --git a/company/src/components/business/OperaInsuranceApplyWindow.vue b/company/src/components/business/OperaInsuranceApplyWindow.vue
index 0d61b41..bff0dfe 100644
--- a/company/src/components/business/OperaInsuranceApplyWindow.vue
+++ b/company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -11,18 +11,21 @@
                 <div class="desc_item_label">
                     <div class="desc_item_label_left">
                         <span>鎶曚繚浼佷笟锛歿{ model.companyName }}</span>
-                        <span>淇濆崟鐘舵�侊細{{ model.statusInfo }}{{model.statusCollect}}</span>
+                        <span>淇濆崟鐘舵�侊細{{ model.statusInfo }}</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.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 class="desc_item_label_right">
+                    <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button>
+                    <el-button v-if="model.status == 2 ||model.status == 3 ||model.status == 5  ||model.status == 7 ||model.status == 8  "  type="primary"  @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
+                    <el-button v-if="model.status == 5  "  type="primary"  @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
+                    <el-button v-if="model.status == 10 " 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 == 2 "  type="primary"  @click="goSign">浼佷笟绛剧珷</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 && model.status != 4 && model.status != 1" 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>
+                  </div>
                 </div>
                 <div class="desc_item_from">
                     <el-table
@@ -31,35 +34,43 @@
                         style="width: 100%">
                         <el-table-column
                             prop="code"
+                            align="center"
                             label="淇濆崟鍙�">
                         </el-table-column>
                         <el-table-column
                             prop="solutionsName"
                             label="淇濋櫓鏂规"
+                            align="center"
                             width="180">
                         </el-table-column>
                         <el-table-column
                             prop="startTime"
+                            align="center"
                             label="淇濋櫓鐢熸晥璧锋湡">
                         </el-table-column>
                         <el-table-column
                             prop="endTime"
+                            align="center"
                             label="淇濋櫓鐢熸晥姝㈡湡">
                         </el-table-column>
                         <el-table-column
                             prop="insureNum"
+                            align="center"
                             label="鎶曚繚浜烘暟">
                         </el-table-column>
                         <el-table-column
                             prop="serviceDays"
+                            align="center"
                             label="鍦ㄤ繚鏃堕暱锛堝ぉ锛�">
                         </el-table-column>
                         <el-table-column
                             prop="currentFee"
+                            align="center"
                             label="褰撳墠璐圭敤(鍏�)">
                         </el-table-column>
                         <el-table-column
                             prop="fee"
+                            align="center"
                             label="鎬昏垂鐢�(鍏�)">
                         </el-table-column>
                     </el-table>
@@ -199,7 +210,7 @@
 import GlobalWindow from '@/components/common/GlobalWindow'
 import InsuranceDetails from '@/components/business/InsuranceDetails'
 import OperaInsuranceApplyCheckWindow from '@/components/business/OperaInsuranceApplyCheckWindow'
-import {getDetail} from "@/api/business/insuranceApply";
+import {getDetail, getSignLink} from "@/api/business/insuranceApply";
 import {all as solutionAll} from "@/api/business/solutions";
 export default {
   name: 'OperaInsuranceApplyWindow',
@@ -256,20 +267,42 @@
      open(title,target){
        this.visible=true;
        this.dataId=target.id
-      this.getDetail();
+      this.getDetail()
      },
+    goSign(){
+      getSignLink(this.dataId).then(res => {
+          window.open(res)
+      }).catch(err => {
+       this.$tip.apiFailed(err)
+      })
+    },
+    viewToubaodan(){
+       if(this.model.toubaodanSignedFile && this.model.toubaodanSignedFile.fileurlFull){
+        window.open(this.model.toubaodanSignedFile.fileurlFull)
+       } else if(this.model.toubaodanFile && this.model.toubaodanFile.fileurlFull){
+         window.open(this.model.toubaodanFile.fileurlFull)
+       }
+    },
+    viewBaoxiandan(){
+      if(this.model.baoxiandanFile && this.model.baoxiandanFile.fileurlFull){
+        window.open(this.model.baoxiandanFile.fileurlFull)
+      }
+    },
     handleSizeChange(){
 
     },
     handleCurrentChange(){
 
     },
+    onSubmit(){
 
+    },
     getDetail(){
       getDetail(this.dataId).then(res => {
         this.model = res
         this.tableData = new Array()
         this.tableData.push(res)
+        console.log(this.tableData)
         this.activities=res.applyLogList
       }).catch(err => {
       })

--
Gitblit v1.9.3