From 39ae52b3f65e2bba3b6570adb51e791cb3befff7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 02 七月 2025 16:32:29 +0800
Subject: [PATCH] 提交

---
 company/src/components/business/OperaInsuranceApplyWindow.vue |  142 ++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 108 insertions(+), 34 deletions(-)

diff --git a/company/src/components/business/OperaInsuranceApplyWindow.vue b/company/src/components/business/OperaInsuranceApplyWindow.vue
index 2b46d54..021ad31 100644
--- a/company/src/components/business/OperaInsuranceApplyWindow.vue
+++ b/company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -19,30 +19,41 @@
                 <div class="desc_item_label">
                     <div class="desc_item_label_left">
                         <span>鎶曚繚浼佷笟锛歿{ model.companyName }}</span>
-                      <span>淇濆崟鐘舵�侊細<span  :class="'apply-status'+model.status" >{{ model.statusInfo }}</span></span>
+                        <span>淇濆崟鐘舵�侊細
+                            <span style="color: #f95601;" v-if="[5,27].includes(model.status) && model.statusInfo === '寰呯敓鏁�'">{{ model.statusInfo }}</span>
+                            <span :class="'apply-status'+model.status" v-else>{{ model.statusInfo }}</span>
+                        </span>
                         <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span>
                     </div>
                   <div class="desc_item_label_right">
+                      <el-button type="primary" @click="viewConfirmationLetter">鏌ョ湅鏂规纭涔�</el-button>
+                      <el-button type="primary" v-if="[1].includes(model.solutionType) && model.shenqingdanFile" @click="viewShenqingdan(model.shenqingdanFile)">鏌ョ湅鐢宠鍗�</el-button>
                       <template v-if="userInfo.type === 1">
                         <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button>
                         <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
 <!--                          $refs.operaverifyPhoneNumberWindew.open('楠岃瘉鎵嬫満鍙�')-->
+<!--                          <el-button v-if="[22].includes(model.status) && model.solutionType === 1" type="primary" @click="viewShenqingdan(model.shenqingdanFile)">鏌ョ湅鐢宠鍗�</el-button>-->
                         <el-button v-if="model.status == 2" type="primary" :disabled="loading" :loading="loading" @click="goSign()">绛剧讲鎶曚繚鍗�</el-button>
                         <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
                         <el-button v-if="model.status == 4" type="primary" @click="$refs.operaInsuranceApplyAddWindow.open('鎶曚繚鐢宠', {id: dataId})">鍐嶆鎶曚繚</el-button>
                         <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('鐢宠閫�鍥�', {id: dataId})">鐢宠閫�鍥�</el-button>
-                        <el-button v-if="model.status == 4" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
+                        <el-button v-if="model.status == 4" type="primary" @click="closeOrder">鍏抽棴鐢宠</el-button>
                       </template>
                     <template v-else>
+                        <el-button v-if="[12].includes(model.status)" type="primary" @click="review">鎶曚繚澶嶅</el-button>
                       <el-button type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚璇︽儏鍗�',model,0)">瀵煎嚭璇﹀崟</el-button>
-                      <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
-                      <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
+                      <el-button v-if="[2, 3, 5, 7, 8, 26].includes(model.status) && (model.toubaodanFile || model.toubaodanSignedFile)" type="primary" @click="viewToubaodan">鏌ョ湅鎶曚繚鍗�</el-button>
+                      <el-button v-if="[27,5].includes(model.status)" type="primary" @click="viewBaoxiandan">鏌ョ湅淇濋櫓鍗�</el-button>
                       <el-button v-if="[2,10].includes(model.status) && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶鎶曚繚鍗�',model,2)">涓婁紶鎶曚繚鍗�</el-button>
-                      <el-button v-if="model.status == 3 && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>
+                      <el-button v-if="model.status === 3 && userInfo.type === 0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>
+
+<!--                        <el-button v-if="model.status == 26 && model.solutionType == 1" type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('涓婁紶淇濋櫓鍗�',model,3)">涓婁紶淇濋櫓鍗�</el-button>-->
+<!--                        <el-button v-if="[22].includes(model.status) && model.solutionType === 1 && model.shenqingdanFile" type="primary" @click="viewShenqingdan(model.shenqingdanFile)">鏌ョ湅鐢宠鍗�</el-button>-->
                       <el-button  v-if="[6,7,8,11].includes(model.status) && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('椹冲洖閫�鍥炵敵璇�',model,5)">椹冲洖閫�鍥炵敵璇�</el-button>
-                      <el-button v-if="model.status == 0 && model.solutionType ==0" type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button>
-                      <el-button v-if="![1,4,,5].includes(model.status) && model.solutionType ==0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('閫�鍥炴姇淇�',model,1)">閫�鍥炴姇淇�</el-button>
-                      <el-button v-if="model.status == 5  && model.solutionType ==0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('淇敼淇濋櫓鍗�',model,4)">淇敼淇濋櫓鍗�</el-button>
+                      <el-button v-if="[22, 0].includes(model.status) && [0,1].includes(model.solutionType)" type="primary" @click="$refs.InsuranceDetails.open('鎶曚繚瀹℃牳',model,1)">鎶曚繚瀹℃牳</el-button>
+                      <el-button v-if="![1, 4, 5].includes(model.status) && [0,1].includes(model.solutionType)" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('閫�鍥炵敵璇�',model,1)">閫�鍥炵敵璇�</el-button>
+                      <el-button v-if="[5,27].includes(model.status) && ['寰呯敓鏁�'].includes(model.statusInfo) && userInfo.type === 0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('淇敼淇濋櫓鍗�',model,4)">淇敼淇濋櫓鍗�</el-button>
+
                     </template>
                   </div>
                 </div>
@@ -72,12 +83,12 @@
                             align="center"
                             label="淇濋櫓鐢熸晥姝㈡湡">
                         </el-table-column>
-                        <el-table-column
-                            prop="insureNum"
-                            align="center"
-                            label="鎶曚繚浜烘暟">
-                        </el-table-column>
-                      <el-table-column prop="guaranteeNum"  align="center" label="鍦ㄤ繚浜烘暟" ></el-table-column>
+<!--                        <el-table-column-->
+<!--                            prop="insureNum"-->
+<!--                            align="center"-->
+<!--                            label="鎶曚繚浜烘暟">-->
+<!--                        </el-table-column>-->
+                      <el-table-column prop="guaranteeNum"  align="center" label="褰撳墠鍦ㄤ繚浜烘暟" ></el-table-column>
                         <el-table-column
                             prop="serviceDays"
                             align="center"
@@ -86,9 +97,9 @@
                         <el-table-column
                             prop="currentFee"
                             align="center"
-                            label="宸蹭骇鐢熻垂鐢�(鍏�)">
+                            label="鎵规敼璐圭敤鍚堣">
                           <template slot-scope="{row}">
-                            <span>{{row.currentFee!=null?row.currentFee: '-'}}</span>
+                            <span>{{row.changeMoney}}鍏�</span>
                           </template>
                         </el-table-column>
                         <el-table-column
@@ -103,9 +114,9 @@
                 </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="model.hasDispatchUnit !== 1 ? '鏇存崲娲鹃仯鍗曚綅' : '鏇存崲宸ョ璁板綍'" name="2"></el-tab-pane>
                     </el-tabs>
                 </div>
                 <div class="desc_item_search">
@@ -116,9 +127,10 @@
                                     <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="duId">
+                            <el-form-item label="娲鹃仯鍗曚綅" prop="duId" v-if="model.hasDispatchUnit !== 1">
                                 <el-select v-model="formInline.duId" placeholder="璇烽�夋嫨" @change="search">
                                     <el-option
                                         v-for="item in dwList"
@@ -195,6 +207,8 @@
                             <el-button type="primary" style="width: 80px;" @click="search">鏌ヨ</el-button>
                             <el-button @click="resetting" style="width: 80px;">閲嶇疆</el-button>
                             <el-button type="primary" style="width: 80px;" @click="exportExcel" v-if="activeName === '0'">瀵煎嚭鍚嶅崟</el-button>
+                            <el-button type="primary" style="width: 100px;" @click="$refs.OperaApplyChangeMonthWindow.open('鍔犲噺淇濊垂鐢ㄦ湀搴︾粺璁�',model)" v-if="activeName === '1'">璐圭敤缁熻鏌ヨ</el-button>
+                            <el-button type="primary" style="width: 120px;" @click="exportRecords" v-if="activeName === '1' && (model.status === 5 || model.status === 27)">瀵煎嚭鍔犲噺淇濊褰�</el-button>
                         </el-form-item>
                     </el-form>
                 </div>
@@ -206,7 +220,7 @@
                         v-if="activeName === '0'"
                         style="width: 100%">
                         <el-table-column label="搴忓彿"
-                                         align="center">
+                             align="center">
                             <template slot-scope="scope">
                                 <span>{{scope.$index + 1}}</span>
                             </template>
@@ -227,12 +241,23 @@
                             </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
                             :key="Math.random()"
                             prop="idcardNo"
                             align="center"
                             label="韬唤璇佸彿">
                         </el-table-column>
                         <el-table-column
+                            v-if="model.hasDispatchUnit !== 1"
                             :key="Math.random()"
                             prop="duName"
                             align="center"
@@ -308,13 +333,19 @@
                             :key="Math.random()"
                             prop="addNum"
                             align="center"
-                            label="澧炲姞浜烘暟锛堜汉锛�">
+                            label="澧炲姞浜烘暟">
+                          <template scope="{row}">
+                            {{row.addNum||0}} 浜�
+                          </template>
                         </el-table-column>
                         <el-table-column
                             :key="Math.random()"
                             prop="delNum"
                             align="center"
-                            label="鍑忓皯浜烘暟锛堜汉锛�">
+                            label="鍑忓皯浜烘暟 ">
+                          <template scope="{row}">
+                            {{row.delNum||0}} 浜�
+                          </template>
                         </el-table-column>
                         <el-table-column
                             :key="Math.random()"
@@ -338,7 +369,10 @@
                             :key="Math.random()"
                             prop="fee"
                             align="center"
-                            label="璐圭敤鍙樻洿(鍏�)">
+                            label="璐圭敤鍙樻洿">
+                          <template scope="{row}">
+                            {{row.fee||0}}鍏�
+                          </template>
                         </el-table-column>
                       <el-table-column
                           :key="Math.random()"
@@ -362,7 +396,7 @@
                         v-if="activeName === '2'"
                         style="width: 100%">
                         <el-table-column label="搴忓彿"
-                                         align="center">
+                             align="center">
                             <template slot-scope="scope">
                                 <span>{{scope.$index + 1}}</span>
                             </template>
@@ -390,7 +424,10 @@
                             :key="Math.random()"
                             prop="changeNum"
                             align="center"
-                            label="鏇存崲娲鹃仯鍗曚綅浜烘暟">
+                            :label="model.hasDispatchUnit !== 1 ? '鏇存崲娲鹃仯鍗曚綅浜烘暟' : '鏇存崲宸ョ浜烘暟'">
+                          <template scope="{row}">
+                            {{row.changeNum||0}} 浜�
+                          </template>
                         </el-table-column>
                         <el-table-column
                             :key="Math.random()"
@@ -468,6 +505,8 @@
         <!--    楠岃瘉鎵嬫満鍙�    -->
         <operaverifyPhoneNumberWindew ref="operaverifyPhoneNumberWindew" @success="goSign" />
         <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
+        <OperaApplyChangeMonthWindow ref="OperaApplyChangeMonthWindow" />
+        <OperaUnionApplyCheckWindow ref="OperaUnionApplyCheckWindow" @success="successEvent" />
         <template v-slot:footer>
             <el-button @click="visible=false">杩斿洖</el-button>
         </template>
@@ -483,16 +522,18 @@
 import factoryChange from '@/components/enterprise/factoryChange'
 import operaverifyPhoneNumberWindew from '@/components/business/operaverifyPhoneNumberWindew'
 import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow'
+import OperaApplyChangeMonthWindow from '@/components/business/OperaApplyChangeMonthWindow'
 import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
-
 import applyReturn from '@/components/enterprise/applyReturn'
 import { getDetail, getSignLink, applyDetailPage,  exportExcel, applyChagneDetailExcel, applyOpt } from '@/api/business/insuranceApply'
 import { findListByDTO } from '@/api/business/dispatchUnit'
-import { fetchList } from '@/api/business/applyChange'
+import { fetchList, exportApplyJiajianBaoExcel } from '@/api/business/applyChange'
+import { reexamineCheck } from '@/api/business/insuranceApply'
 import { findListByDTO as worktypeFindListByDTO } from '@/api/business/worktype'
 import OperaInsuranceApplyAddWindow from '@/components/enterprise/OperaInsuranceApplyAddWindow'
 import { mapState } from 'vuex'
 import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
+import OperaUnionApplyCheckWindow from '@/components/business/OperaUnionApplyCheckWindow'
 export default {
   name: 'OperaInsuranceApplyWindow1',
   extends: BaseOpera,
@@ -504,10 +545,12 @@
     applyReturn,
     additionSubtractionApplication,
     factoryChange,
+    OperaApplyChangeMonthWindow,
     OperaApplyChangeDetailWindow,
     OperaApplyChangeUnitDetailWindow,
     OperaInsuranceApplyAddWindow,
-    operaverifyPhoneNumberWindew
+    operaverifyPhoneNumberWindew,
+    OperaUnionApplyCheckWindow
   },
   data () {
     return {
@@ -587,6 +630,33 @@
       this.getDW()
       this.getGZ()
     },
+    viewShenqingdan(row) {
+      if (!row) return;
+      this.$refs.OperaPdfViewerWindow.open(row.name, row.fileurlFull)
+    },
+    viewConfirmationLetter() {
+      this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鏂规纭涔�', this.model.fanganFile.fileurlFull)
+    },
+    review() {
+      this.$confirm('鏄惁纭畾澶嶆牳閫氳繃?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(() => {
+        reexamineCheck({ id: this.dataId })
+          .then(res => {
+            this.getDetail()
+          })
+      }).catch(() => {
+
+      });
+    },
+    exportRecords() {
+      exportApplyJiajianBaoExcel({ id: this.dataId })
+        .then(response => {
+          this.download(response)
+        })
+    },
     result(flag,param){
       console.log(flag,param)
       if(param && param.godetail && param.id){
@@ -598,7 +668,7 @@
     goYjxb(){
       this.$refs.operaInsuranceApplyAddWindow.open('缁繚', {id: this.dataId,type: 1 })
     },
-    // 鍏抽棴璁㈠崟
+    // 鍏抽棴鐢宠
     closeOrder () {
       this.$confirm('纭鍏抽棴姝よ鍗曞悧?', '鎻愮ず', {
         confirmButtonText: '纭畾',
@@ -681,7 +751,7 @@
     exportExcel () {
       if (this.activeName === '0') {
         exportExcel({
-          capacity: 10,
+          capacity: 60000,
           page: this.currentPage,
           model: {
             solutionName: this.tableData[0].solutionsName,
@@ -700,7 +770,7 @@
         })
       } else {
         applyChagneDetailExcel({
-          capacity: 10,
+          capacity: 60000,
           page: this.currentPage,
           model: {
             applyId: this.dataId,
@@ -722,7 +792,7 @@
     getList () {
       if (this.activeName === '0') {
         applyDetailPage({
-          capacity: 10,
+          capacity: 10000,
           page: this.currentPage,
           model: {
             applyId: this.dataId,
@@ -929,14 +999,18 @@
             .desc_item_label {
                 width: 100%;
                 display: flex;
-                align-items: center;
-                justify-content: space-between;
+                align-items: start;
+                flex-direction: column;
                 margin-bottom: 10px;
                 span {
                     font-size: 14px;
                     color: black;
                     margin-right: 30px;
                 }
+                .desc_item_label_right {
+                    width: 100%;
+                    margin: 10px 0;
+                }
             }
             .desc_item_from {
                 width: 100%;

--
Gitblit v1.9.3