k94314517
2025-05-19 16e8c7adbee6c9ee9bac09a80d44d3bfd3fe2f0c
wx/pages/details_dispatch_unit/details_dispatch_unit.vue
@@ -50,6 +50,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">
@@ -95,11 +98,11 @@
         <view class="details_footer" v-if="info.status === 0">
            <u-button type="primary" shape="circle" color="#437CB3" @click="show = true" :plain="true" text="申请退回"></u-button>
            <view style="width: 44rpx; height: 50rpx;"></view>
            <u-button type="primary" shape="circle" color="#437CB3" text="签署申请单" @click="openmessage(2)"></u-button>
            <u-button type="primary" shape="circle" color="#437CB3" :loading="loading" text="签署申请单" @click="openmessage(2)"></u-button>
         </view>
         <!-- 已退回 -->
         <view class="details_footer" v-if="info.status === 5 || info.status === 8">
            <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>
      </template>
      <!-- 委托 -->
@@ -116,11 +119,11 @@
         </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">
            <u-button type="primary" shape="circle" color="#437CB3" text="签署申请单" @click="openmessage(2)"></u-button>
            <u-button type="primary" shape="circle" color="#437CB3" :loading="loading" text="签署申请单" @click="openmessage(2)"></u-button>
         </view>
      </template>
      <!-- 申请退回确认弹窗 -->
@@ -129,7 +132,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">
@@ -173,7 +176,9 @@
            code: '',
            num: 0,
            error: false,
            timer: null
            timer: null,
            loading: false
         };
      },
      onLoad(option) {
@@ -209,58 +214,64 @@
         },
         // 签署
         confirm1() {
            if (!this.code) {
               this.error = 1
               return
            }
            // if (!this.code) {
            //    this.error = 1
            //    return
            // }
            this.loading = true
            // 签署投保单
            if (this.type === 1) {
               this.$u.api.validateCode({
                  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 => {
                           this.loading = false
                           if (url.code === 200) {
                              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({
                  businessId: this.info.id,
                  code: this.code
               }).then(res => {
                  this.loading = false
                  if (res.code === 200) {
                     this.error = ''
                     this.show1 = false
                     // this.error = ''
                     // this.show1 = false
                     uni.navigateTo({
                        url: `/pages/webView/webView?url=${encodeURIComponent(res.data)}`
                     })
                  } else {
                     this.error = 2
                  }
                  //  else {
                  //    this.error = 2
                  // }
               })
            }
         },
         // 打开发送验证码弹窗
         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
         },
         // 查看pdf
         seePdf(url) {