|
@@ -0,0 +1,140 @@
|
|
|
|
|
+<script setup lang="ts">
|
|
|
|
|
+import { StaticUrl } from '@/config'
|
|
|
|
|
+import router from '@/router'
|
|
|
|
|
+
|
|
|
|
|
+definePage({ name: 'djk-afterSales', islogin: true, style: { navigationBarTitleText: '申请退款' } })
|
|
|
|
|
+const orderInfo = ref<Api.xsbOrderList>()
|
|
|
|
|
+const fileList = ref<{ url: string }[]>([])
|
|
|
|
|
+const remark = ref()
|
|
|
|
|
+const reson = ref()
|
|
|
|
|
+const { refreshOrderList } = storeToRefs(useSysStore())
|
|
|
|
|
+onLoad((option: any) => {
|
|
|
|
|
+ orderInfo.value = JSON.parse(option.data)
|
|
|
|
|
+ console.log(orderInfo.value, '===')
|
|
|
|
|
+})
|
|
|
|
|
+async function handleSubmit() {
|
|
|
|
|
+ if (!reson.value) {
|
|
|
|
|
+ useGlobalToast().show('请选择退款原因')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ uni.showLoading({ mask: true })
|
|
|
|
|
+ try {
|
|
|
|
|
+ await Apis.djk.submitRefund({ data: {
|
|
|
|
|
+ orderNumber: orderInfo.value?.orderNumber,
|
|
|
|
|
+ refundReason: reson.value,
|
|
|
|
|
+ refundDesc: remark.value,
|
|
|
|
|
+ refundImg: fileList.value.map(item => item.url).join(','),
|
|
|
|
|
+ } })
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ useGlobalToast().show('申请退款成功')
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ refreshOrderList.value = true
|
|
|
|
|
+ router.back()
|
|
|
|
|
+ }, 2000)
|
|
|
|
|
+ }
|
|
|
|
|
+ catch {
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<template>
|
|
|
|
|
+ <view class="pages-djk p24rpx">
|
|
|
|
|
+ <view class="rounded-16rpx bg-white p24rpx">
|
|
|
|
|
+ <view class="text-36rpx font-semibold">
|
|
|
|
|
+ 退款订单:{{ orderInfo?.djkOrderAttachInfo?.goodsName }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt16rpx">
|
|
|
|
|
+ <view class="text-24rpx">
|
|
|
|
|
+ 商品金额: {{ orderInfo?.djkOrderAttachInfo?.price }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt16rpx">
|
|
|
|
|
+ <view class="text-24rpx">
|
|
|
|
|
+ 可退金额: {{ orderInfo?.actualTotal }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx rounded-16rpx bg-white px24rpx py28rpx">
|
|
|
|
|
+ <view class="flex items-center justify-between">
|
|
|
|
|
+ <view class="text-32rpx font-semibold">
|
|
|
|
|
+ 请选择退款原因 <text class="text-28rpx text-gray">
|
|
|
|
|
+ (必选)
|
|
|
|
|
+ </text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx">
|
|
|
|
|
+ <wd-radio-group v-model="reson" shape="dot">
|
|
|
|
|
+ <wd-radio value="计划有变,无法使用">
|
|
|
|
|
+ 计划有变,无法使用
|
|
|
|
|
+ </wd-radio>
|
|
|
|
|
+ <wd-radio value="服务项目不符">
|
|
|
|
|
+ 服务项目不符
|
|
|
|
|
+ </wd-radio>
|
|
|
|
|
+ <wd-radio value="找到更合适的服务">
|
|
|
|
|
+ 找到更合适的服务
|
|
|
|
|
+ </wd-radio>
|
|
|
|
|
+ <wd-radio value="其他项目">
|
|
|
|
|
+ 其他项目
|
|
|
|
|
+ </wd-radio>
|
|
|
|
|
+ </wd-radio-group>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt24rpx text-28rpx font-semibold">
|
|
|
|
|
+ 详情说明 <text class="text-gray">
|
|
|
|
|
+ (可选)
|
|
|
|
|
+ </text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx rounded-16rpx bg-#F6F6F6 p24rpx">
|
|
|
|
|
+ <wd-textarea v-model="remark" placeholder="请描述您的具体情况" show-word-limit :maxlength="200" />
|
|
|
|
|
+ <view class="upload mt18rpx">
|
|
|
|
|
+ <Zupload v-model:value="fileList" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx rounded-16rpx bg-white p24rpx">
|
|
|
|
|
+ <view class="text-32rpx font-semibold">
|
|
|
|
|
+ <image
|
|
|
|
|
+ :src="`${StaticUrl}/djk-goods-erro.png`"
|
|
|
|
|
+ class="mr5rpx h24rpx w24rpx"
|
|
|
|
|
+ /> 退款提示
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx text-28rpx">
|
|
|
|
|
+ ·退款申请提交后立即处理,无需审核
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx text-28rpx">
|
|
|
|
|
+ ·退款将在1-3个工作日内到账
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx text-28rpx">
|
|
|
|
|
+ ·退款将原路返回支付账户
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx text-28rpx">
|
|
|
|
|
+ ·退款成功后订单将关闭
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="h200rpx" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view
|
|
|
|
|
+ class="ios fixed bottom-0 z-10 box-border w-full w-full rounded-t-32rpx bg-white px32rpx pt-16rpx"
|
|
|
|
|
+ >
|
|
|
|
|
+ <wd-button block @click="handleSubmit">
|
|
|
|
|
+ 提交
|
|
|
|
|
+ </wd-button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+.pages-djk{
|
|
|
|
|
+ :deep(){
|
|
|
|
|
+ .wd-textarea{
|
|
|
|
|
+ background: #F6F6F6 !important;
|
|
|
|
|
+ padding: 0 !important;
|
|
|
|
|
+ .wd-textarea__value{
|
|
|
|
|
+ background: #F6F6F6 !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ .wd-textarea__count{
|
|
|
|
|
+ background: #F6F6F6 !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|