| | |
| | | <template> |
| | | <view class="box"> |
| | | <view class="box_hz" :style="{backgroundImage: 'url(' + backgroundImg + ')'}"> |
| | | <view class="box_hz"> |
| | | <image class="box_hz_bg" src="@/static/background/toubao_bg@2x.png" mode="widthFix"></image> |
| | | <view class="box_hz_title">加减保申请</view> |
| | | <view class="box_hz_info">请按要求填写以下内容</view> |
| | | <view class="box_hz_list"> |
| | |
| | | label="选择保单号:" |
| | | prop="code" |
| | | @click="show = true" |
| | | borderBottom |
| | | > |
| | | <u--input v-model="model.code" disabled disabledColor="#ffffff" placeholder="请选择" border="none"></u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | | </u-form-item> |
| | | <u-form-item |
| | | <!-- <u-form-item |
| | | labelWidth="200" |
| | | label="选择期望批单生效期:" |
| | | prop="startDate" |
| | |
| | | > |
| | | <u--input v-model="model.startDate" disabled disabledColor="#ffffff" placeholder="请选择" border="none"></u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | | </u-form-item> |
| | | </u-form-item> --> |
| | | </u--form> |
| | | </view> |
| | | <view class="box_hz_footer"> |
| | |
| | | this.maxDate = this.formatTimeStamp(e.value[0].endTime) |
| | | } |
| | | } |
| | | this.confirm2(); |
| | | this.show = false |
| | | } |
| | | }, |
| | |
| | | this.$u.api.getChangeCountCyclePriceVO({ |
| | | applyId: this.id, |
| | | validTime: this.model.startDate |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.model.cyclePrice = res.data.cyclePrice |
| | | this.show1 = false |
| | | } else { |
| | | this.model.startDate = '' |
| | | } |
| | | }) |
| | | }, |
| | | confirm2(e) { |
| | | this.$u.api.getChangeCountCyclePriceVO({ |
| | | applyId: this.id , |
| | | validTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd') + ' 00:00:00' |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.model.cyclePrice = res.data.cyclePrice |
| | |
| | | submit() { |
| | | this.$refs.uForm.validate().then(res => { |
| | | uni.navigateTo({ |
| | | url: `/pages/addition_subtraction/addition_subtraction?id=${this.model.id}&codeId=${this.id}&cyclePrice=${this.model.cyclePrice}&startDate=${this.model.startDate}&code=${this.model.code}` |
| | | url: `/pages/addition_subtraction/addition_subtraction?id=${this.model.id}&codeId=${this.id}&cyclePrice=${this.model.cyclePrice}&startDate=${this.model.startDate}&code=${this.model.code}&title=加减保申请` |
| | | }) |
| | | }).catch(errors => { |
| | | |
| | |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | padding-top: 48rpx; |
| | | position: relative; |
| | | .box_hz_bg { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | z-index: -1; |
| | | } |
| | | .box_hz_title { |
| | | font-weight: 600; |
| | | font-size: 48rpx; |