| | |
| | | <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="查看申请单"></u-button> |
| | | <u-button type="primary" shape="circle" color="#437CB3" :plain="true" 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="查看批单"></u-button> |
| | | <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="查看批单" @click="seePdf(info.pidanFile.fileurlFull)"></u-button> |
| | | </view> |
| | | <!-- 待审核 --> |
| | | <view class="details_footer" v-if="info.status === 1"> |
| | | <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="申请退回"></u-button> |
| | | <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="申请退回" @click="show = true"></u-button> |
| | | <view style="width: 44rpx; height: 50rpx;"></view> |
| | | <u-button type="primary" shape="circle" color="#437CB3" text="查看申请单"></u-button> |
| | | <u-button type="primary" shape="circle" color="#437CB3" text="查看申请单" @click="seePdf(info.applyFile.fileurlFull)"></u-button> |
| | | </view> |
| | | <!-- 已退回 --> |
| | | <view class="details_footer" v-if="info.status === 5"> |
| | |
| | | </view> |
| | | <!-- 待签署 --> |
| | | <view class="details_footer" v-if="info.status === 0"> |
| | | <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="申请退回"></u-button> |
| | | <u-button type="primary" shape="circle" color="#437CB3" :plain="true" @click="show = true" text="申请退回"></u-button> |
| | | <view style="width: 44rpx; height: 50rpx;"></view> |
| | | <u-button type="primary" shape="circle" color="#437CB3" @click="show1 = true" text="签署投保单"></u-button> |
| | | <u-button type="primary" shape="circle" color="#437CB3" text="签署投保单" @click="openmessage(1)"></u-button> |
| | | </view> |
| | | </template> |
| | | <!-- 委托保 --> |
| | |
| | | <u-modal :show="show1" title="获取验证码" :showCancelButton="true" confirmColor="#437CB3" @cancel="cancel1" @confirm="confirm1"> |
| | | <view class="code"> |
| | | <view class="code_input"> |
| | | <input type="text" placeholder="输入验证码" /> |
| | | <input type="text" v-model="code" placeholder="输入验证码" /> |
| | | </view> |
| | | <view class="code_text"> |
| | | <text class="code_text_error">验证码错误</text> |
| | | <text>获取验证码</text> |
| | | <text class="code_text_error" v-if="error === 1">验证码不能为空</text> |
| | | <text class="code_text_error" v-else-if="error === 2">验证码错误</text> |
| | | <text v-else></text> |
| | | |
| | | <text @click="send" v-if="num === 0">获取验证码</text> |
| | | <text v-else>{{num}}</text> |
| | | </view> |
| | | </view> |
| | | </u-modal> |
| | |
| | | }, { |
| | | name: '减保人员', |
| | | // id: ['1'] |
| | | }] |
| | | }], |
| | | |
| | | type: null, |
| | | code: '', |
| | | num: 0, |
| | | error: false, |
| | | timer: null |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | // 查看pdf |
| | | seePdf(url) { |
| | | if(!url) return; |
| | | uni.downloadFile({ |
| | | url, |
| | | success: function (res) { |
| | | var filePath = res.tempFilePath; |
| | | uni.openDocument({ |
| | | filePath: filePath, |
| | | success: function (res) {} |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | send () { |
| | | this.$u.api.sendSms({ |
| | | phone: this.userInfo.mobile |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.num = 60 |
| | | this.setTime() |
| | | } |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | // 打开发送验证码弹窗 |
| | | openmessage(type) { |
| | | this.code = '' |
| | | clearInterval(this.timer) |
| | | this.error = '' |
| | | this.timer = null |
| | | this.num = 0 |
| | | this.type = type |
| | | this.show1 = true |
| | | }, |
| | | IdCard(UUserCard) { |
| | | let idcard = UUserCard.toString(); |
| | | //获取年龄 |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 申请退回 |
| | | confirm() { |
| | | this.show = false |
| | | this.$u.api.applyChangeOpt({ |
| | | applyId: this.info.id, |
| | | optType: 3 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.show = false |
| | | } |
| | | }) |
| | | }, |
| | | cancel() { |
| | | this.show = false |
| | | }, |
| | | // 签署 |
| | | confirm1() { |
| | | this.show1 = false |
| | | if (!this.code) { |
| | | this.error = 1 |
| | | return |
| | | } |
| | | // 签署申请单 |
| | | if (this.type === 1) { |
| | | console.log('签署申请单') |
| | | this.$u.api.validateCode({ |
| | | code: this.code |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.error = '' |
| | | this.show1 = false |
| | | this.$u.api.getJiajianBaoSignLink({ id: this.info.id }) |
| | | .then(url => { |
| | | if (url.code === 200) { |
| | | uni.navigateTo({ |
| | | url: `/pages/webView/webView?url=${url.data}` |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | this.error = 2 |
| | | } |
| | | }) |
| | | |
| | | this.show1 = false |
| | | } |
| | | }, |
| | | cancel1() { |
| | | this.show1 = false |
| | | }, |
| | | // 关闭订单 |
| | | confirm2() { |
| | | this.show2 = false |
| | | this.$u.api.applyChangeOpt({ |
| | | applyId: this.info.id, |
| | | optType: 6 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.show2 = false |
| | | } |
| | | }) |
| | | }, |
| | | cancel2() { |
| | | this.show2 = false |
| | | }, |
| | | returnStyle(type) { |
| | | if (!type) return |
| | | if ([2].includes(type)) { |
| | | return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);' |
| | | } else if ([0,1].includes(type)) { |
| | |
| | | } |
| | | }, |
| | | returnStyle1(type) { |
| | | if (!type) return |
| | | if ([2].includes(type)) { |
| | | return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)' |
| | | } else if ([0,1].includes(type)) { |