From d2bc6e096f0806b78ea92d4b90a21d3627d406c7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 08 三月 2024 18:28:42 +0800
Subject: [PATCH] mrshi

---
 company/src/components/business/OperaApplyChangeDetailWindow.vue |   85 ++++++++++++++++++++++++++++++------------
 1 files changed, 61 insertions(+), 24 deletions(-)

diff --git a/company/src/components/business/OperaApplyChangeDetailWindow.vue b/company/src/components/business/OperaApplyChangeDetailWindow.vue
index 221bfa8..73f704d 100644
--- a/company/src/components/business/OperaApplyChangeDetailWindow.vue
+++ b/company/src/components/business/OperaApplyChangeDetailWindow.vue
@@ -11,23 +11,23 @@
                 <div class="desc_item_label">
                     <div class="desc_item_label_left">
                         <span>鎶曚繚浼佷笟锛歿{ apply.companyName }}</span>
-                      <span v-if="model.status === 0">淇濆崟鐘舵�侊細寰呯缃�</span>
-                      <span v-if="model.status === 1">淇濆崟鐘舵�侊細宸茬绔�</span>
-                      <span v-if="model.status === 2">淇濆崟鐘舵�侊細宸蹭笂浼犳壒鍗�</span>
-                      <span v-if="model.status === 3 || model.status === 4">淇濆崟鐘舵�侊細閫�鍥炵敵璇�</span>
-                      <span v-if="model.status ===5 || model.status === 8">淇濆崟鐘舵�侊細宸查��鍥�</span>
-                      <span v-if="model.status ===7">淇濆崟鐘舵�侊細宸插叧闂�</span>
+                        <span v-if="model.status === 0">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >寰呯缃�</span></span>
+                        <span v-if="model.status === 1">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >寰呭鏍�</span></span>
+                        <span v-if="model.status === 2">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >宸茬敓鏁�</span></span>
+                        <span v-if="model.status === 3 || model.status === 4">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >閫�鍥炵敵璇�</span></span>
+                        <span v-if="model.status === 5 || model.status === 8">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >宸查��鍥�</span></span>
+                        <span v-if="model.status === 7 || model.status === 6">淇濆崟鐘舵�侊細<span  :class="'change-status'+model.status" >宸插叧闂�</span></span>
                         <span>鎻愪氦鏃堕棿锛歿{ model.createDate }}</span>
                     </div>
                   <div class="desc_item_label_right">
                       <template v-if="userInfo.type === 1">
                           <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model)">瀵煎嚭璇﹀崟</el-button>
-                          <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('鎶曚繚鐢宠', {id: dataId})">鍐嶆鎶曚繚</el-button>
-                          <el-button type="primary" v-if="model.status == 0"   @click="goSign">绛剧讲鐢宠鍗�</el-button>
-                          <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">鐢宠閫�鍥�</el-button>
+                          <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="$refs.reinsurance.open('鍔犲噺淇濈敵璇�', {id: dataId, applyChangId: modelId})">鍐嶆鎶曚繚</el-button>
+                          <el-button type="primary" v-if="model.status == 0" @click="$refs.operaverifyPhoneNumberWindew.open('楠岃瘉鎵嬫満鍙�')">绛剧讲鐢宠鍗�</el-button>
+                          <el-button v-if="[0, 1, 3, 7].includes(model.status)" type="danger" @click="$refs.add_subtract_return.open('鐢宠閫�鍥�', { id: modelId })">鐢宠閫�鍥�</el-button>
                           <el-button v-if="model.status == 5" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
-                          <el-button v-if="model.status == 5" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
-                          <el-button v-if="model.status == 2" type="primary" @click="closeApply">鍏抽棴璁㈠崟</el-button>
+                          <el-button v-if="model.status == 2" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
+                          <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
                       </template>
                         <template v-else>
                             <el-button type="primary" @click="$refs.ApplyChangeDetails.open('鍔犲噺淇濊鍗�',apply,model)">瀵煎嚭璇﹀崟</el-button>
@@ -51,9 +51,11 @@
                             label="鎵瑰崟鍙�">
                         </el-table-column>
                         <el-table-column
-                            prop="applyCode"
                             align="center"
                             label="淇濆崟鍙�">
+                            <template slot-scope="{row}">
+                                <el-button type="text" @click="$refs.insuranceApplyDetails.open('鎶曚繚璇︽儏', { id: row.applyId })">{{row.applyCode}}</el-button>
+                            </template>
                         </el-table-column>
                         <el-table-column
                             prop="solutionsName"
@@ -142,7 +144,7 @@
                         </el-table-column>
                         <el-table-column
                             prop="fee"
-                            label="浜х敓璐圭敤锛堝厓锛�">
+                            label="宸蹭骇鐢熻垂鐢紙鍏冿級">
                         </el-table-column>
                     </el-table>
                     <div class="desc_item_from_page">
@@ -180,14 +182,23 @@
         <ApplyChangeDetails ref="ApplyChangeDetails" @success="successEvent" />
         <OperaApplyChangeCheckWindow ref="OperaApplyChangeCheckWindow" @success="successEvent" />
         <!--    浼佷笟鐢宠閫�鍥�    -->
-        <applyReturn ref="applyReturn" @success="successEvent" />
+<!--        <applyReturn ref="applyReturn" @success="successEvent" />-->
+        <add_subtract_return ref="add_subtract_return" @success="successEvent" />
         <!--    鏂板鎶曚繚    -->
         <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
         <!--    鍔犲噺淇濈敵璇�    -->
-        <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" />
-        <!--    鎹㈠巶鐢宠    -->
+        <reinsurance ref="reinsurance" @success="successEvent" />
+        <!--    鏇存崲娲鹃仯鍗曚綅鐢宠    -->
         <factoryChange ref="factoryChange" @success="successEvent" />
+        <!--    鎶曚繚璇︽儏    -->
+        <insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" />
+        <!--    楠岃瘉鎵嬫満鍙�    -->
+        <operaverifyPhoneNumberWindew ref="operaverifyPhoneNumberWindew" @success="goSign" />
+      <template v-slot:footer>
+        <el-button @click="visible=false">杩斿洖</el-button>
+      </template>
     </GlobalWindow>
+
 </template>
 
 <script>
@@ -195,29 +206,34 @@
 import GlobalWindow from '@/components/common/GlobalWindow'
 import ApplyChangeDetails from '@/components/business/ApplyChangeDetails'
 import OperaApplyChangeCheckWindow from '@/components/business/OperaApplyChangeCheckWindow'
-import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication'
+import reinsurance from '@/components/enterprise/reinsurance'
 import factoryChange from '@/components/enterprise/factoryChange'
-import applyReturn from '@/components/enterprise/applyReturn'
+import add_subtract_return from '@/components/enterprise/add_subtract_return'
+// import insuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
 import {
   getDetail,
   getChangeDetail,
   applyChagneDetailPage,
   getJiajianBaoSignLink
 } from '@/api/business/insuranceApply'
+import { applyChangeOpt } from '@/api/business/applyChange'
 import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow'
+import operaverifyPhoneNumberWindew from '@/components/business/operaverifyPhoneNumberWindew'
 import { mapState } from 'vuex'
 
 export default {
-  name: 'OperaApplyChangeDetailWindow',
+  name: 'OperaApplyChangeDetailWindow1',
   extends: BaseOpera,
   components: {
       GlobalWindow,
       ApplyChangeDetails,
       OperaApplyChangeCheckWindow,
-      applyReturn,
+      add_subtract_return,
       OperaInsuranceApply,
-      additionSubtractionApplication,
-      factoryChange
+      reinsurance,
+      factoryChange,
+      operaverifyPhoneNumberWindew,
+      insuranceApplyDetails: () => import ('@/components/business/OperaInsuranceApplyWindow')
   },
   data () {
     return {
@@ -240,7 +256,7 @@
           memberName: '',
           types: ''
       },
-      reverse: true,
+      reverse: false,
       radio: 0,
       activities: [],
       tableData: [],
@@ -271,6 +287,24 @@
       resetting() {
             this.search()
       },
+      closeOrder() {
+          this.$confirm('纭鍏抽棴姝よ鍗曞悧?', '鎻愮ず', {
+              confirmButtonText: '纭畾',
+              cancelButtonText: '鍙栨秷',
+              type: 'warning'
+          }).then(() => {
+              applyChangeOpt({
+                  optType: 6,
+                  applyId: this.model.id
+              }).then(res => {
+                  this.getDetail()
+              }).catch(e => {
+                  this.$message.error(e)
+              })
+          }).catch(() => {
+
+          });
+      },
       search() {
           this.currentPage = 1
           this.getList()
@@ -280,7 +314,7 @@
                capacity: 10,
                page: this.currentPage,
                model: {
-                   applyChangId: this.modelId,
+                   applyChangeId: this.modelId,
                    types:[ this.activeName]
                }
            }).then(res => {
@@ -425,6 +459,9 @@
                 align-items: center;
                 justify-content: space-between;
                 margin-bottom: 10px;
+                .desc_item_label_left {
+                    flex-shrink: 0;
+                }
                 span {
                     font-size: 14px;
                     color: black;

--
Gitblit v1.9.3