From 3a45da15c947c2d478a44a51bd0f926647b1b841 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 11 四月 2025 16:33:17 +0800
Subject: [PATCH] 提交
---
wx/pages/addition_subtraction/addition_subtraction.vue | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 102 insertions(+), 14 deletions(-)
diff --git a/wx/pages/addition_subtraction/addition_subtraction.vue b/wx/pages/addition_subtraction/addition_subtraction.vue
index b2fcf38..6271aa5 100644
--- a/wx/pages/addition_subtraction/addition_subtraction.vue
+++ b/wx/pages/addition_subtraction/addition_subtraction.vue
@@ -21,9 +21,15 @@
<view class="label">鎶曚繚骞撮緞锛�</view>
<view class="value">{{info.minAge}}鑷硔{info.maxAge}}鍛ㄥ瞾</view>
</view>
- <view class="box_head_info_list_item">
+ <view class="box_head_info_list_item" v-if="info.solutionType !== 1">
<view class="label">璐圭敤锛�</view>
- <view class="value">{{info.price}}鍏�</view>
+ <view class="value">
+ {{info.price}}鍏�
+ <text v-if="info.timeUnit === 0">/澶�</text>
+ <text v-if="info.timeUnit === 1">/鍗婃湀</text>
+ <text v-if="info.timeUnit === 2">/鏈�</text>
+ <text v-if="info.timeUnit === 3">/骞�</text>
+ </view>
</view>
</view>
</view>
@@ -44,6 +50,7 @@
<view class="top_a_tips" v-else>鍔犱繚</view>
</view>
<view class="top_b">韬唤璇佸彿锛歿{item.idCard}}</view>
+ <view class="top_b" v-if="type ===0">澶囨敞锛歿{item.remark||''}}</view>
</view>
<view class="center"></view>
<view class="bottom">
@@ -67,7 +74,7 @@
<view style="width: 100%; height: calc(230rpx + env(safe-area-inset-bottom));"></view>
</view>
<view class="box_footer">
- <view class="box_footer_xy">
+ <view class="box_footer_xy" @click="show = true">
<image src="@/static/icon/ic_tips@2x.png" mode="widthFix"></image>
<text>璇烽槄璇汇�婃姇淇濋』鐭ャ��</text>
</view>
@@ -93,7 +100,17 @@
</view>
</view>
<view style="width: 100%; height: env(safe-area-inset-bottom); background-color: #ffffff;"></view>
+ <u-toast ref="uToast"></u-toast>
</view>
+ <!-- 鎶曚繚椤荤煡 -->
+ <u-popup :show="show" round="20" :closeable="true" @close="show = false" mode="bottom">
+ <view class="info">
+ <view class="info_title">鎶曚繚椤荤煡</view>
+ <scroll-view scroll-y="true" class="info_nr">
+ <view>{{fangan.specialAgreement}}</view>
+ </scroll-view>
+ </view>
+ </u-popup>
</view>
</template>
@@ -102,7 +119,9 @@
data() {
return {
id: null,
+ show: false,
codeId: null,
+ fangan: {},
code: null,
startDate: null,
cyclePrice: null,
@@ -121,6 +140,13 @@
this.cyclePrice = options.cyclePrice
this.getDetails()
uni.$on('add', (res) => {
+ if (JSON.stringify(this.add).indexOf(res.model.idCard) !== -1) {
+ this.$refs.uToast.show({
+ type: 'default',
+ message: `[${res.model.name}]浜哄憳韬唤璇侀噸澶峘
+ })
+ return
+ }
this.add.unshift(res.model)
})
uni.$on('del', (res) => {
@@ -130,7 +156,13 @@
computed: {
// 鎬婚噾棰�
totalPrice() {
- return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
+ // return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
+ var totalReductPrice = 0;
+ this.del.forEach(item =>{
+ totalReductPrice = totalReductPrice+item.fee
+ })
+ // return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
+ return ((this.cyclePrice * this.add.length) +totalReductPrice).toFixed(2)
}
},
methods: {
@@ -159,13 +191,14 @@
})
let delDetailList = this.del.map(item => {
return {
+ memberId: item.id,
duId: item.pqId,
duName: item.pqName,
idcardNo: item.idCard,
memberName: item.name,
workTypeName: item.gzName,
worktypeId: item.gzId,
- fee: this.cyclePrice
+ fee: item.fee
}
})
this.$u.api.applyChangeCreate({
@@ -176,14 +209,9 @@
type: 0
}).then(res => {
if (res.code === 200) {
- uni.showToast({
- title: '鎻愪氦鎴愬姛',
- icon: 'success'
- })
+ uni.showToast({ title: '鎻愪氦鎴愬姛', icon: 'success' })
setTimeout(() => {
- uni.navigateBack({
- delta: 2
- })
+ uni.navigateBack({ delta: 2 })
}, 1500)
}
})
@@ -218,9 +246,14 @@
}
},
getDetails() {
- this.$u.api.insuranceApplyById(this.codeId)
+ var that = this
+ that.$u.api.insuranceApplyById(that.codeId)
.then(res => {
- this.info = res.data
+ that.info = res.data
+ that.$u.api.solutionsById(res.data.newVersionSolutionId)
+ .then(data => {
+ that.fangan = data.data
+ })
})
},
jump() {
@@ -248,6 +281,60 @@
<style lang="scss" scoped>
.box {
width: 100%;
+ .info {
+ width: 100%;
+ padding: 32rpx 30rpx;
+ box-sizing: border-box;
+ .info_title {
+ width: 100%;
+ text-align: center;
+ font-weight: 500;
+ font-size: 30rpx;
+ color: #222222;
+ font-style: normal;
+ }
+ .info_nr {
+ width: 100%;
+ max-height: 70vh;
+ margin-top: 40rpx;
+ font-size: 30rpx;
+ color: black;
+ white-space: pre-wrap;
+ }
+ .info_data {
+ width: 100%;
+ margin-top: 40rpx;
+ .info_data_label {
+ font-weight: 500;
+ font-size: 32rpx;
+ color: #222222;
+ font-style: normal;
+ margin-bottom: 20rpx;
+ }
+ .info_data_item {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 20rpx;
+ &:last-child {
+ margin-bottom: 0 !important;
+ }
+ .info_data_item_label {
+ flex-shrink: 0;
+ font-weight: 400;
+ font-size: 26rpx;
+ color: #777777;
+ font-style: normal;
+ }
+ .info_data_item_val {
+ font-weight: 400;
+ font-size: 26rpx;
+ color: #222222;
+ font-style: normal;
+ }
+ }
+ }
+ }
.box_footer {
width: 100%;
position: fixed;
@@ -443,6 +530,7 @@
color: #FF971D;
font-style: normal;
margin-left: 8rpx;
+ box-sizing: border-box;
}
.top_a_tips {
width: 64rpx;
--
Gitblit v1.9.3