MrShi
2025-04-11 3a45da15c947c2d478a44a51bd0f926647b1b841
wx/pages/addition_subtraction_details/addition_subtraction_details.vue
@@ -12,7 +12,8 @@
                     <text>关联保单号:{{info.applyCode}}</text>
                  </view>
                  <image v-if="info.status === 2" src="@/static/icon/progress_yishengxiao@2x.png" mode="widthFix"></image>
                  <image v-if="info.status === 1 || info.status === 9" src="@/static/icon/progress_daishenhe@2x.png" mode="widthFix"></image>
                  <image v-if="info.status === 9" src="@/static/icon/ic_toubaozhong.png" mode="widthFix"></image>
                  <image v-if="info.status === 1" src="@/static/icon/progress_daishenhe@2x.png" mode="widthFix"></image>
                  <image v-if="info.status === 0" src="@/static/icon/progress_daiqianshu@2x.png" mode="widthFix"></image>
                  <image v-if="info.status === 3" src="@/static/icon/progress_shenqingtuihui@2x.png" mode="widthFix"></image>
                  <image v-if="info.status === 5" src="@/static/icon/progress_yituihui@2x.png" mode="widthFix"></image>
@@ -34,15 +35,19 @@
               </view>
               <view class="box_info_list_item">
                  <view class="box_info_list_item_label">费用变更:</view>
                  <view class="box_info_list_item_val">-{{info.fee}}元</view>
                  <view class="box_info_list_item_val">{{info.fee}}元</view>
               </view>
               <view class="box_info_list_item">
                  <view class="box_info_list_item_label">保单生效期:</view>
                  <view class="box_info_list_item_val">{{info.startTime}}~{{info.endTime}}</view>
               </view>
               <view class="box_info_list_item">
                  <view class="box_info_list_item_label">批单生效期:</view>
                  <view class="box_info_list_item_label">批增生效日期:</view>
                  <view class="box_info_list_item_val">{{info.applyStartTime}}</view>
               </view>
               <view class="box_info_list_item">
                  <view class="box_info_list_item_label">批减生效日期:</view>
                  <view class="box_info_list_item_val">{{info.delValidTime}}</view>
               </view>
            </view>
         </view>
@@ -73,6 +78,9 @@
                     <view class="item_head_bottom">
                        身份证号:{{item.memberIdcardNo}}
                     </view>
                     <view class="item_head_bottom">
                        备注:{{item.remark || ''}}
                     </view>
                  </view>
                  <view class="item_x"></view>
                  <view class="item_list">
@@ -96,9 +104,9 @@
      <template v-if="info && info.solutionType === 0">
         <!-- 已生效 -->
         <view class="details_footer" v-if="info.status === 2">
            <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="查看申请单" @click="seePdf(info.applyFile.fileurlFull)"></u-button>
            <u-button type="primary" shape="circle" color="#437CB3" text="查看申请单" @click="seePdf(info.applyFile.fileurlFull)"></u-button>
            <view style="width: 44rpx; height: 50rpx;"></view>
            <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="查看批单" @click="seePdf(info.pidanFile.fileurlFull)"></u-button>
            <u-button type="primary" shape="circle" color="#437CB3" text="查看批单" @click="seePdf(info.pidanFile.fileurlFull)"></u-button>
         </view>
         <!-- 待审核 -->
         <view class="details_footer" v-if="info.status === 1">
@@ -119,6 +127,12 @@
      </template>
      <!-- 委托保 -->
      <template v-if="info && info.solutionType === 1">
         <!-- 已生效 -->
         <view class="details_footer" v-if="info.status === 2">
            <u-button type="primary" shape="circle" color="#437CB3" text="查看申请单" @click="seePdf(info.applyFile.fileurlFull)"></u-button>
            <view style="width: 44rpx; height: 50rpx;"></view>
            <u-button type="primary" shape="circle" color="#437CB3" text="查看批单" @click="seePdf(info.pidanFile.fileurlFull)"></u-button>
         </view>
         <!-- 待审核/待出单/投保中 -->
         <view class="details_footer" v-if="info.status === 1 || info.status === 9 || info.status === 7">
            <u-button type="primary" shape="circle" color="#437CB3" text="查看申请单" @click="seePdf(info.applyFile.fileurlFull)"></u-button>
@@ -160,6 +174,7 @@
</template>
<script>
   import { mapState } from 'vuex'
   export default {
      data() {
         return {
@@ -184,13 +199,18 @@
            code: '',
            num: 0,
            error: false,
            timer: null
            timer: null,
            loading: false
         };
      },
      onLoad(options) {
         this.id = options.id
         this.getInfo()
         this.getList()
      },
      computed: {
         ...mapState(['userInfo'])
      },
      onReachBottom() {
         this.getList()
@@ -232,13 +252,14 @@
         },
         // 打开发送验证码弹窗
         openmessage(type) {
            this.code = ''
            clearInterval(this.timer)
            this.error = ''
            this.timer = null
            this.num = 0
            // this.code = ''
            // clearInterval(this.timer)
            // this.error = ''
            // this.timer = null
            // this.num = 0
            this.type = type
            this.show1 = true
            this.confirm1()
            // this.show1 = true
         },
         IdCard(UUserCard) {
            let idcard = UUserCard.toString();
@@ -305,10 +326,11 @@
         },
         // 签署
         confirm1() {
            if (!this.code) {
               this.error = 1
               return
            }
            // if (!this.code) {
            //    this.error = 1
            //    return
            // }
            this.loading = true
            // 签署投保单
            if (this.type === 1) {
               console.log('签署申请单')
@@ -316,21 +338,23 @@
                  code: this.code
               }).then(res => {
                  if (res.code === 200) {
                     this.error = ''
                     this.show1 = false
                     // this.error = ''
                     // this.show1 = false
                     this.$u.api.getJiajianBaoSignLink({ id: this.info.id })
                        .then(url => {
                           if (url.code === 200) {
                              this.loading = false
                              uni.navigateTo({
                                 url: `/pages/webView/webView?url=${url.data}`
                                 url: `/pages/webView/webView?url=${encodeURIComponent(url.data)}`
                              })
                           }
                        })
                  } else {
                     this.error = 2
                  }
                  //  else {
                  //    this.error = 2
                  // }
               })
               this.show1 = false
               // this.show1 = false
            // 申请单
            } else if (this.type === 2) {
               this.$u.api.getChangeMemberListOnlineSignLink({
@@ -338,14 +362,16 @@
                  code: this.code
               }).then(res => {
                  if (res.code === 200) {
                     this.error = ''
                     this.show1 = false
                     // this.error = ''
                     // this.show1 = false
                     this.loading = false
                     uni.navigateTo({
                        url: `/pages/webView/webView?url=${res.data}`
                        url: `/pages/webView/webView?url=${encodeURIComponent(res.data)}`
                     })
                  } else {
                     this.error = 2
                  }
                  //  else {
                  //    this.error = 2
                  // }
               })
            }
         },
@@ -368,18 +394,18 @@
            this.show2 = false
         },
         returnStyle(type) {
            if ([2].includes(type)) {
            if ([2,9].includes(type)) {
               return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);'
            } else if ([0,1,9,7].includes(type)) {
            } else if ([0,1,7].includes(type)) {
               return 'linear-gradient( 180deg, #FBC88C 0%, #F7F7F7 100%);'
            } else if ([3,5,6].includes(type)) {
               return ''
            }
         },
         returnStyle1(type) {
            if ([2].includes(type)) {
            if ([2,9].includes(type)) {
               return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)'
            } else if ([0,1,9,7].includes(type)) {
            } else if ([0,1,7].includes(type)) {
               return 'linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);'
            } else if ([3,5,6].includes(type)) {
               return '#ffffff'
@@ -598,12 +624,11 @@
         position: fixed;
         bottom: 0;
         left: 0;
         padding: 10rpx 30rpx;
         padding: 10rpx 30rpx calc(env(safe-area-inset-bottom) + 10rpx) 30rpx;
         box-sizing: border-box;
         background-color: #ffffff;
         display: flex;
         align-items: center;
         padding-bottom: env(safe-area-inset-bottom);
      }
      .code {
         width: 100%;