feat: 平台收款不需要提交收款相关信息
This commit is contained in:
parent
8e299f8947
commit
d29fd335f2
|
|
@ -28,7 +28,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<view class="form-group" v-if="data.order_info.receive_type === 1">
|
||||
<view class="group-name flex-l line-after">
|
||||
<me-icon class="icon" type="icon-info" color="#E18F00" size="40rpx"></me-icon>
|
||||
<text class="text">提交收款信息</text>
|
||||
|
|
@ -219,6 +219,7 @@ const init = () => {
|
|||
}
|
||||
|
||||
data.value = res
|
||||
submitData.receive_type = res.order_info.receive_type
|
||||
}).catch(() => {})
|
||||
}
|
||||
|
||||
|
|
@ -229,6 +230,7 @@ const submitData = reactive({
|
|||
offline_total_type: 0,//尾款收款方:1=师傅收,2=公司收
|
||||
amount: '',//收款金额
|
||||
payment_image: '',//收款图片
|
||||
receive_type: null,//收款类型:1=定金,2=全款
|
||||
})
|
||||
|
||||
const selectFinalPaymentMethod = () => {
|
||||
|
|
@ -262,6 +264,10 @@ const validate = () => {
|
|||
return false
|
||||
}
|
||||
|
||||
if (data.value.order_info.receive_type === 2) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (submitData.final_payment_method === null) {
|
||||
helpers.showToast('请选择收款方式')
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@
|
|||
|
||||
<!-- 已完成 -->
|
||||
<view class="info" v-if="data.status === enums.ORDER_DISPATCH_STATUS.STATUS_FINISH">
|
||||
<view class="images line-after">
|
||||
<view :class="[data.order_info.receive_type === 1 ? 'line-after' : '', 'images']">
|
||||
<view class="title flex-l">完成图片</view>
|
||||
<view class="imgs-ctr">
|
||||
<view @click="helpers.previewImage(imgUrl)" v-for="(imgUrl, index) in data.images" :key="index" class="img-ctr" :style="{marginRight: (index+1) % 5 === 0 ? '0' : '36rpx'}">
|
||||
|
|
@ -105,32 +105,34 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row flex-sb line-after" v-if="data.order_info.receive_type === 1">
|
||||
<view class="title flex-l">优惠信息</view>
|
||||
<view class="value flex-r">
|
||||
<text>{{data.order_info.online_amount}}元抵扣{{data.order_info.discount_amount}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row flex-sb line-after" v-if="data.offline_total_type !== 0">
|
||||
<view class="title flex-l">尾款收款方</view>
|
||||
<view class="value flex-r">
|
||||
<text>{{ data.offline_total_type === 1 ? '师傅收' : '公司收' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row flex-sb line-after">
|
||||
<view class="title flex-l">收款金额</view>
|
||||
<view class="value flex-r">
|
||||
<text>¥{{ data.total > 0 ? data.total : data.online_total }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="images">
|
||||
<view class="title flex-l">收款凭证</view>
|
||||
<view class="imgs-ctr">
|
||||
<view @click="helpers.previewImage(data.image)" :key="index" class="img-ctr">
|
||||
<image class="img" mode="aspectFill" :src="data.image"></image>
|
||||
<template v-if="data.order_info.receive_type === 1">
|
||||
<view class="item-row flex-sb line-after" v-if="data.order_info.receive_type === 1">
|
||||
<view class="title flex-l">优惠信息</view>
|
||||
<view class="value flex-r">
|
||||
<text>{{data.order_info.online_amount}}元抵扣{{data.order_info.discount_amount}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row flex-sb line-after" v-if="data.offline_total_type !== 0">
|
||||
<view class="title flex-l">尾款收款方</view>
|
||||
<view class="value flex-r">
|
||||
<text>{{ data.offline_total_type === 1 ? '师傅收' : '公司收' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row flex-sb line-after">
|
||||
<view class="title flex-l">收款金额</view>
|
||||
<view class="value flex-r">
|
||||
<text>¥{{ data.total > 0 ? data.total : data.online_total }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="images">
|
||||
<view class="title flex-l">收款凭证</view>
|
||||
<view class="imgs-ctr">
|
||||
<view @click="helpers.previewImage(data.image)" :key="index" class="img-ctr">
|
||||
<image class="img" mode="aspectFill" :src="data.image"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
<me-empty-space height="376"></me-empty-space>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user