Branch_csl #1
@ -4,54 +4,25 @@
|
|||||||
<form @submit="subRefund" report-submit="true">
|
<form @submit="subRefund" report-submit="true">
|
||||||
<view class="apply-return">
|
<view class="apply-return">
|
||||||
<view class="list borRadius14">
|
<view class="list borRadius14">
|
||||||
<view
|
<view class="item acea-row row-between-wrapper" style="display: flex; align-items: center">
|
||||||
class="item acea-row row-between-wrapper"
|
|
||||||
style="display: flex; align-items: center"
|
|
||||||
>
|
|
||||||
<view>物流公司</view>
|
<view>物流公司</view>
|
||||||
<view v-if="state.expresses.length > 0" style="flex: 1">
|
<view v-if="state.expresses.length > 0" style="flex: 1;">
|
||||||
<picker
|
<picker mode="selector" class="num" @change="bindPickerChange"
|
||||||
mode="selector"
|
:value="state.expressIndex" :range="state.expresses" range-key="name">
|
||||||
class="num"
|
<view class="picker acea-row row-between-wrapper"
|
||||||
@change="bindPickerChange"
|
style="display: flex; justify-content: space-between;">
|
||||||
:value="state.expressIndex"
|
|
||||||
:range="state.expresses"
|
|
||||||
range-key="name"
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
class="picker acea-row row-between-wrapper"
|
|
||||||
style="display: flex; justify-content: space-between"
|
|
||||||
>
|
|
||||||
<view class="reason">{{ state.expresses[state.expressIndex].name }}</view>
|
<view class="reason">{{ state.expresses[state.expressIndex].name }}</view>
|
||||||
<text class="iconfont _icon-forward" />
|
<text class="iconfont _icon-forward"></text>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view class="item textarea acea-row row-between" style="display: flex; align-items: center">
|
||||||
class="item textarea acea-row row-between"
|
|
||||||
style="display: flex; align-items: center"
|
|
||||||
>
|
|
||||||
<view>物流单号</view>
|
<view>物流单号</view>
|
||||||
<input
|
<input placeholder="请填写物流单号" class="num" name="logisticsNo" placeholder-class="placeholder" />
|
||||||
placeholder="请填写物流单号"
|
|
||||||
class="num"
|
|
||||||
name="logisticsNo"
|
|
||||||
placeholder-class="placeholder"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
<button
|
<button class="returnBnt bg-color ss-reset-button ui-BG-Main-Gradient sub-btn" form-type="submit" style="background: linear-gradient( 90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient) ) !important; ">
|
||||||
class="returnBnt bg-color ss-reset-button ui-BG-Main-Gradient sub-btn"
|
提交</button>
|
||||||
form-type="submit"
|
|
||||||
style="
|
|
||||||
background: linear-gradient(
|
|
||||||
90deg,
|
|
||||||
var(--ui-BG-Main),
|
|
||||||
var(--ui-BG-Main-gradient)
|
|
||||||
) !important;
|
|
||||||
"
|
|
||||||
>提交</button
|
|
||||||
>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</form>
|
</form>
|
||||||
@ -60,8 +31,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onLoad } from '@dcloudio/uni-app';
|
import {
|
||||||
import { reactive } from 'vue';
|
onLoad
|
||||||
|
} from '@dcloudio/uni-app';
|
||||||
|
import {
|
||||||
|
reactive
|
||||||
|
} from 'vue';
|
||||||
import sheep from '@/sheep';
|
import sheep from '@/sheep';
|
||||||
import AfterSaleApi from '@/sheep/api/trade/afterSale';
|
import AfterSaleApi from '@/sheep/api/trade/afterSale';
|
||||||
import DeliveryApi from '@/sheep/api/trade/delivery';
|
import DeliveryApi from '@/sheep/api/trade/delivery';
|
||||||
@ -82,19 +57,26 @@
|
|||||||
logisticsId: state.expresses[state.expressIndex].id,
|
logisticsId: state.expresses[state.expressIndex].id,
|
||||||
logisticsNo: e.detail.value.logisticsNo,
|
logisticsNo: e.detail.value.logisticsNo,
|
||||||
};
|
};
|
||||||
const { code } = await AfterSaleApi.deliveryAfterSale(data);
|
const {
|
||||||
|
code
|
||||||
|
} = await AfterSaleApi.deliveryAfterSale(data);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '填写退货成功',
|
title: '填写退货成功',
|
||||||
});
|
});
|
||||||
sheep.$router.go('/pages/order/aftersale/detail', { id: state.id });
|
sheep.$router.go('/pages/order/aftersale/detail', {
|
||||||
|
id: state.id
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得快递物流列表
|
// 获得快递物流列表
|
||||||
async function getExpressList() {
|
async function getExpressList() {
|
||||||
const { code, data } = await DeliveryApi.getDeliveryExpressList();
|
const {
|
||||||
|
code,
|
||||||
|
data
|
||||||
|
} = await DeliveryApi.getDeliveryExpressList();
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user