|
|
|
@ -163,7 +163,12 @@
|
|
|
|
|
<el-input-number v-model="state.form.refundAmount" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="选择收货点" prop="receivePoint">
|
|
|
|
|
<el-select v-model="state.form.receivePoint" :opts="opts.receivePoint" />
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="state.form.receivePoint"
|
|
|
|
|
:config="{ label: 'recipientName', value: 'detailAddress' }"
|
|
|
|
|
:opts="[state.detail.refundAddress]"
|
|
|
|
|
@change="handlePointChange"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="收货人姓名" prop="recipientName">
|
|
|
|
|
<el-input v-model="state.form.recipientName" />
|
|
|
|
@ -221,10 +226,10 @@
|
|
|
|
|
<span>
|
|
|
|
|
{{ state.detail.refundLogistics?.companyName }}
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
<span style="margin: 0 10px">
|
|
|
|
|
{{ state.detail.refundLogistics?.trackingNo }}
|
|
|
|
|
</span>
|
|
|
|
|
<el-button type="text">查看</el-button>
|
|
|
|
|
<el-button type="text" @click="handleTrack">查看</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="退款说明">
|
|
|
|
|
{{ state.detail.handleReturnLog?.problemDescribe }}
|
|
|
|
@ -250,10 +255,12 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
</div>
|
|
|
|
|
<OrderTrack ref="refsOrderTrack" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="jsx">
|
|
|
|
|
import OrderTrack from '../order/track.vue';
|
|
|
|
|
const store = useStore();
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
@ -373,6 +380,7 @@
|
|
|
|
|
refundProduct: [],
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
handlePointChange(state.detail.refundAddress.detailAddress);
|
|
|
|
|
state.form.refundId = res.refundId;
|
|
|
|
|
state.form.refundAmount = res.refundAmount;
|
|
|
|
|
[null, state.steps, state.steps2][res.refundType].forEach((step, index) => {
|
|
|
|
@ -388,7 +396,19 @@
|
|
|
|
|
state.loading = false;
|
|
|
|
|
};
|
|
|
|
|
onActivated(handleLoad);
|
|
|
|
|
|
|
|
|
|
const handlePointChange = (e) => {
|
|
|
|
|
state.form.receivePoint = e;
|
|
|
|
|
let point = [state.detail.refundAddress].find((item) => item.detailAddress === e);
|
|
|
|
|
state.form.recipientName = point?.recipientName || null;
|
|
|
|
|
state.form.recipientPhone = point?.recipientPhone || null;
|
|
|
|
|
state.form.detailAddress = point?.detailAddress || null;
|
|
|
|
|
state.form.address = point ? [point.provinceCode, point.cityCode, point.areaCode] : [];
|
|
|
|
|
state.form.addressInfo = point ? [point.province, point.city, point.area] : [];
|
|
|
|
|
};
|
|
|
|
|
const refsOrderTrack = ref(null);
|
|
|
|
|
const handleTrack = () => {
|
|
|
|
|
unref(refsOrderTrack).show(state.detail.orderId);
|
|
|
|
|
};
|
|
|
|
|
/* 同意退货/退款 */
|
|
|
|
|
const handleResolveRefundOrReturn = async () => {
|
|
|
|
|
state.loading = true;
|
|
|
|
|