k94314517
2025-05-19 cdd6551b190b981b807a3b95e9635c559ccc769d
wx/pages/addition_subtraction_details/addition_subtraction_details.vue
@@ -42,8 +42,12 @@
                  <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 +77,9 @@
                     </view>
                     <view class="item_head_bottom">
                        身份证号:{{item.memberIdcardNo}}
                     </view>
                     <view class="item_head_bottom">
                        备注:{{item.remark || ''}}
                     </view>
                  </view>
                  <view class="item_x"></view>
@@ -109,7 +116,7 @@
         </view>
         <!-- 已退回 -->
         <view class="details_footer" v-if="info.status === 5">
            <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="关闭订单"></u-button>
            <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="关闭申请"></u-button>
         </view>
         <!-- 待签署 -->
         <view class="details_footer" v-if="info.status === 0">
@@ -132,7 +139,7 @@
         </view>
         <!-- 已退回 -->
         <view class="details_footer" v-if="info.status === 5">
            <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="关闭订单"></u-button>
            <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="关闭申请"></u-button>
         </view>
         <!-- 待签署 -->
         <view class="details_footer" v-if="info.status === 0">
@@ -145,7 +152,7 @@
      </u-modal>
      <!-- 关闭确认弹窗 -->
      <u-modal :show="show2" title="温馨提示" :showCancelButton="true" cancelText="我再想想" confirmColor="#437CB3" @cancel="cancel2" @confirm="confirm2">
         确认关闭订单?
         确认关闭申请?
      </u-modal>
      <!-- 签署投保单验证码弹窗 -->
      <u-modal :show="show1" title="获取验证码" :showCancelButton="true" confirmColor="#437CB3" @cancel="cancel1" @confirm="confirm1">
@@ -167,6 +174,7 @@
</template>
<script>
   import { mapState } from 'vuex'
   export default {
      data() {
         return {
@@ -191,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()
@@ -239,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();
@@ -312,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('签署申请单')
@@ -323,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=${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({
@@ -345,21 +362,23 @@
                  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=${encodeURIComponent(res.data)}`
                     })
                  } else {
                     this.error = 2
                  }
                  //  else {
                  //    this.error = 2
                  // }
               })
            }
         },
         cancel1() {
            this.show1 = false
         },
         // 关闭订单
         // 关闭申请
         confirm2() {
            this.$u.api.applyChangeOpt({
               applyId: this.info.id,