From 78a173f85f8a4666d83cf8d900f04dd9f8e3e127 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 17 六月 2025 08:53:12 +0800
Subject: [PATCH] 提交一把订单

---
 company/src/components/business/detailsEntrustedInsurance.vue |  114 +++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 87 insertions(+), 27 deletions(-)

diff --git a/company/src/components/business/detailsEntrustedInsurance.vue b/company/src/components/business/detailsEntrustedInsurance.vue
index 0ce055e..8c323a5 100644
--- a/company/src/components/business/detailsEntrustedInsurance.vue
+++ b/company/src/components/business/detailsEntrustedInsurance.vue
@@ -11,23 +11,40 @@
         <div class="desc_item_label">
           <div class="desc_item_label_left">
             <span>鎶曚繚浜猴細{{ model.companyName }}</span>
-            <span>淇濆崟鐘舵�侊細<span  :class="'union-apply-status'+model.status" >{{ model.statusInfo }}</span></span>
+            <span>淇濆崟鐘舵�侊細
+              <span v-if="model.status === 5 && model.statusInfo === '寰呭鏍�'" style="color: #216EEE;">{{ model.statusInfo }}</span>
+              <span v-else-if="model.status === 3 && model.statusInfo === '宸茶繃鏈�'" style="color: #999;">{{ model.statusInfo }}</span>
+              <span v-else-if="model.status === 3 && model.statusInfo === '寰呯敓鏁�'" style="color: #f95601;">{{ model.statusInfo }}</span>
+              <span v-else-if="model.status === 4 && model.statusInfo === '宸查��鍥�'" style="color: red;">{{ model.statusInfo }}</span>
+              <span :class="'union-apply-status'+model.status" v-else>{{ model.statusInfo }}</span>
+            </span>
             <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span>
           </div>
           <div class="desc_item_label_right">
             <template v-if="userInfo.type === 2">
-              <el-button type="primary"   @click="$refs.InsuranceDetails.open('瀵煎嚭璇﹀崟',model,0)">瀵煎嚭璇﹀崟</el-button>
+              <el-button type="primary" @click="$refs.InsuranceDetails.open('瀵煎嚭璇﹀崟',model,0)">瀵煎嚭璇﹀崟</el-button>
               <el-button v-if="[0].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button>
-              <el-button v-if="model.status == 1" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">绛剧讲鎶曚繚鍗�</el-button>
-              <el-button v-if="[2,3,4].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
-              <el-button v-if="[2].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>
+              <el-button v-if="model.status == 1" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">{{model.signType === 1 ? '绛剧讲鐢宠鍗�' : '绛剧讲鎶曚繚鍗�'}}</el-button>
+              <el-button v-if="[2,3,4].includes(model.status)" type="primary" @click="viewToubaodan">{{model.signType === 1 ? '鏌ョ湅鐢宠鍗�' : '鏌ョ湅鎶曚繚鍗�'}}</el-button>
+<!--              <el-button v-if="[2].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>-->
               <el-button v-if="model.status == 3" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
-              <el-button v-if="[0,1,2].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炵敵璇�</el-button>
+
+              <el-button v-if="[2,3,4,1,5].includes(model.status) && (model.toubaodanFile || model.toubaodanSignedFile)" type="primary" @click="viewToubaodan">{{model.signType === 1 ? '鏌ョ湅鐢宠鍗�' : '鏌ョ湅鎶曚繚鍗�'}}</el-button>
+              <el-button v-if="[0,1,2,5].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('閫�鍥炵敵璇�',model,1)">閫�鍥炵敵璇�</el-button>
+              <el-button v-if="[5].includes(model.status)" type="primary" @click="fusheng">鎶曚繚澶嶅</el-button>
+
+<!--              <el-button v-if="[0,1,2].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('閫�鍥炵敵璇�',model,1)">閫�鍥炵敵璇�</el-button>-->
             </template>
             <template v-if="userInfo.type ===0">
+              <el-button v-if="[2,3,4,1,5].includes(model.status) && (model.toubaodanFile || model.toubaodanSignedFile)" type="primary" @click="viewToubaodan">{{model.signType === 1 ? '鏌ョ湅鐢宠鍗�' : '鏌ョ湅鎶曚繚鍗�'}}</el-button>
+              <el-button v-if="[0].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button>
+              <el-button v-if="[0, 1].includes(model.status)" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">{{model.signType === 1 ? '绛剧讲鐢宠鍗�' : '绛剧讲鎶曚繚鍗�'}}</el-button>
+              <el-button v-if="[0,1,2,5].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('閫�鍥炵敵璇�',model,1)">閫�鍥炵敵璇�</el-button>
+              <el-button v-if="[2].includes(model.status)" type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>
               <el-button type="primary"   @click="$refs.InsuranceDetails.open('瀵煎嚭璇﹀崟',model,0)">瀵煎嚭璇﹀崟</el-button>
-              <el-button v-if="[2,3,4].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
+<!--              <el-button v-if="[2,3,4].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>-->
               <el-button v-if="[4].includes(model.status)" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
+              <el-button v-if="[5].includes(model.status)" type="primary" @click="fusheng">鎶曚繚澶嶅</el-button>
             </template>
           </div>
         </div>
@@ -50,41 +67,57 @@
             <el-table-column
                 prop="startTime"
                 align="center"
-                label="淇濋櫓鐢熸晥璧锋湡">
+                :label="getUnionApplyTimeTitle(1,model)">
             </el-table-column>
             <el-table-column
                 prop="endTime"
                 align="center"
-                label="淇濋櫓鐢熸晥姝㈡湡">
+                :label="getUnionApplyTimeTitle(0,model)">
             </el-table-column>
             <el-table-column
                 prop="insureNum"
                 align="center"
                 label="鎶曚繚浜烘暟">
+              <template slot-scope="{row}">
+                <span>{{row.insureNum||0}} 浜�</span>
+              </template>
             </el-table-column>
-            <el-table-column prop="guaranteeNum"  align="center" label="鍦ㄤ繚浜烘暟" ></el-table-column>
+            <el-table-column prop="guaranteeNum"  align="center" label="鍦ㄤ繚浜烘暟" >
+              <template slot-scope="{row}">
+                <span>{{row.guaranteeNum||0}} 浜�</span>
+              </template>
+            </el-table-column>
             <el-table-column
                 prop="serviceDays"
                 align="center"
-                label="淇濆崟鏃堕暱锛堝ぉ锛�">
+                label="淇濆崟鏃堕暱">
+              <template slot-scope="{row}">
+                <span>{{row.serviceDays||0}} 澶�</span>
+              </template>
             </el-table-column>
             <el-table-column
                 prop="currentFee"
                 align="center"
-                label="宸蹭骇鐢熻垂鐢�(鍏�)">
+                label="宸蹭骇鐢熻垂鐢�">
+              <template slot-scope="{row}">
+                <span>{{row.currentFee!=null?row.currentFee+' 鍏�': '-'}}</span>
+              </template>
             </el-table-column>
             <el-table-column
                 prop="fee"
                 align="center"
-                label="鎬昏垂鐢�(鍏�)">
+                label="鎬昏垂鐢�">
+              <template slot-scope="{row}">
+                <span>{{row.fee!=null?row.fee+' 鍏�': '-'}}</span>
+              </template>
             </el-table-column>
           </el-table>
         </div>
         <div class="desc_item_cate">
           <el-tabs v-model="activeName" @tab-click="handleClick">
-            <el-tab-pane label="鍦ㄤ繚浜哄憳" name="0" ></el-tab-pane>
+            <el-tab-pane label="淇濆崟浜哄憳" name="0" ></el-tab-pane>
             <el-tab-pane label="鍔�/鍑忎繚璁板綍"  name="1"></el-tab-pane>
-            <el-tab-pane label="鏇存崲娲鹃仯鍗曚綅璁板綍" name="2"></el-tab-pane>
+            <el-tab-pane label="鏇存崲宸ョ璁板綍" name="2"></el-tab-pane>
           </el-tabs>
         </div>
         <div class="desc_item_search">
@@ -95,6 +128,7 @@
                   <el-option label="鍏ㄩ儴" value="0"></el-option>
                   <el-option label="淇濋殰涓�" value="1"></el-option>
                   <el-option label="涓嶅湪淇�" value="2"></el-option>
+                  <el-option label="寰呯敓鏁�" value="3"></el-option>
                 </el-select>
               </el-form-item>
               <el-form-item label="鍛樺伐濮撳悕" prop="memberName">
@@ -158,7 +192,17 @@
                 label="鎬у埆">
               <template slot-scope="{row}">
                 <span v-if="row.sex === 0">鐢�</span>
-                <span v-else>濂�</span>
+                <span  v-if="row.sex === 1">濂�</span>
+              </template>
+            </el-table-column>
+            <el-table-column
+              align="center"
+              :key="Math.random()"
+              label="鍦ㄤ繚鐘舵��">
+              <template slot-scope="{row}">
+                <span v-if="row.applyStatus === 0" style="color: #00BA92;">淇濋殰涓�</span>
+                <span v-if="row.applyStatus === 1" style="color: #999;">涓嶅湪淇�</span>
+                <span v-if="row.applyStatus === 2" style="color: #f95601;">寰呯敓鏁�</span>
               </template>
             </el-table-column>
             <el-table-column
@@ -174,6 +218,7 @@
                 label="琚繚闄╀汉">
             </el-table-column>
             <el-table-column
+                v-if="model.hasDispatchUnit !== 1"
                 :key="Math.random()"
                 prop="duName"
                 align="center"
@@ -189,13 +234,13 @@
                 :key="Math.random()"
                 prop="startTime"
                 align="center"
-                label="淇濋櫓鐢熸晥璧锋湡">
+                :label="getUnionApplyTimeTitle(1,model)">
             </el-table-column>
             <el-table-column
                 :key="Math.random()"
                 prop="endTime"
                 align="center"
-                label="淇濋櫓鐢熸晥姝㈡湡">
+                :label="getUnionApplyTimeTitle(0,model)">
             </el-table-column>
             <el-table-column
                 :key="Math.random()"
@@ -306,7 +351,7 @@
                 :key="Math.random()"
                 prop="changeNum"
                 align="center"
-                label="鏇存崲娲鹃仯鍗曚綅浜烘暟">
+                label="鏇存崲宸ョ浜烘暟">
             </el-table-column>
             <el-table-column
                 :key="Math.random()"
@@ -434,7 +479,7 @@
 import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
 
 import OperaUnionApplyCheckWindow from '@/components/business/OperaUnionApplyCheckWindow'
-import { getById, getSignLink } from '@/api/business/unionApply'
+import { getById, getSignLink, reexamineCheck } from '@/api/business/unionApply'
 
 import {
   applyDetailPage,
@@ -545,6 +590,20 @@
       this.getDW()
       this.getGZ()
     },
+    fusheng() {
+      this.$confirm('鏄惁纭畾澶嶅閫氳繃?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(() => {
+        reexamineCheck({ id: this.dataId })
+          .then(res => {
+            this.getDetail()
+          })
+      }).catch(() => {
+
+      });
+    },
     getSignLink (flag) {
       if (flag === 0) {
         this.signTitle = '绛剧讲鎶曚繚鍗�'
@@ -603,7 +662,7 @@
         this.num = this.num - 1
       }, 1000)
     },
-    // 鍏抽棴璁㈠崟
+    // 鍏抽棴鐢宠
     closeOrder () {
       this.$confirm('纭鍏抽棴姝よ鍗曞悧?', '鎻愮ず', {
         confirmButtonText: '纭畾',
@@ -687,7 +746,7 @@
     exportExcel () {
       if (this.activeName === '0') {
         exportExcel({
-          capacity: 10,
+          capacity: 60000,
           page: this.currentPage,
           model: {
             solutionName: this.tableData[0].solutionsName,
@@ -706,7 +765,7 @@
         })
       } else {
         applyChagneDetailExcel({
-          capacity: 10,
+          capacity: 60000,
           page: this.currentPage,
           model: {
             applyId: this.dataId,
@@ -798,10 +857,11 @@
       }, 500)
     },
     viewToubaodan () {
-      this.fileData = this.taobaodanFileData;
-      this.visibleFile=true
-      this.fileTitle='鏌ョ湅鎶曚繚鍗�'
-      this.fileFlag = 0
+      if (this.model.toubaodanSignedFile) {
+        this.$refs.OperaPdfViewerWindow.open(this.model.toubaodanSignedFile.name, this.model.toubaodanSignedFile.fileurlFull)
+      } else if (this.model.toubaodanFile) {
+        this.$refs.OperaPdfViewerWindow.open(this.model.toubaodanFile.name, this.model.toubaodanFile.fileurlFull)
+      }
     },
     viewBaoxiandan () {
       this.fileFlag = 1

--
Gitblit v1.9.3