feat: 平台收款不需要提交收款相关信息

This commit is contained in:
gcd 2025-04-28 23:02:21 +08:00
parent 8e299f8947
commit d29fd335f2
2 changed files with 34 additions and 26 deletions

View File

@ -28,7 +28,7 @@
</view> </view>
</view> </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"> <view class="group-name flex-l line-after">
<me-icon class="icon" type="icon-info" color="#E18F00" size="40rpx"></me-icon> <me-icon class="icon" type="icon-info" color="#E18F00" size="40rpx"></me-icon>
<text class="text">提交收款信息</text> <text class="text">提交收款信息</text>
@ -219,6 +219,7 @@ const init = () => {
} }
data.value = res data.value = res
submitData.receive_type = res.order_info.receive_type
}).catch(() => {}) }).catch(() => {})
} }
@ -229,6 +230,7 @@ const submitData = reactive({
offline_total_type: 0,//1=,2= offline_total_type: 0,//1=,2=
amount: '',// amount: '',//
payment_image: '',// payment_image: '',//
receive_type: null,//1=,2=
}) })
const selectFinalPaymentMethod = () => { const selectFinalPaymentMethod = () => {
@ -262,6 +264,10 @@ const validate = () => {
return false return false
} }
if (data.value.order_info.receive_type === 2) {
return true
}
if (submitData.final_payment_method === null) { if (submitData.final_payment_method === null) {
helpers.showToast('请选择收款方式') helpers.showToast('请选择收款方式')
return false return false

View File

@ -97,7 +97,7 @@
<!-- 已完成 --> <!-- 已完成 -->
<view class="info" v-if="data.status === enums.ORDER_DISPATCH_STATUS.STATUS_FINISH"> <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="title flex-l">完成图片</view>
<view class="imgs-ctr"> <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'}"> <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>
</view> </view>
<view class="item-row flex-sb line-after" v-if="data.order_info.receive_type === 1"> <template v-if="data.order_info.receive_type === 1">
<view class="title flex-l">优惠信息</view> <view class="item-row flex-sb line-after" v-if="data.order_info.receive_type === 1">
<view class="value flex-r"> <view class="title flex-l">优惠信息</view>
<text>{{data.order_info.online_amount}}元抵扣{{data.order_info.discount_amount}}</text> <view class="value flex-r">
</view> <text>{{data.order_info.online_amount}}元抵扣{{data.order_info.discount_amount}}</text>
</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> </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> </view>
<me-empty-space height="376"></me-empty-space> <me-empty-space height="376"></me-empty-space>