|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div class="detail">
|
|
|
<!-- 收退货仓库信息-->
|
|
|
<el-card class="box-card" v-if="refundInfo.refundType == '3'">
|
|
|
<el-select
|
|
@@ -34,10 +34,13 @@
|
|
|
v-if="refundInfo.status == 0"
|
|
|
v-loading="btnLoading"
|
|
|
>
|
|
|
- <!-- TODO 暂时关闭SL -->
|
|
|
+ <!-- TODO 暂时关闭SL -->
|
|
|
<el-form
|
|
|
- v-if="refundInfo.refundType == '3' &&
|
|
|
- this.isShopifyLabel == true && addressInfo.receiverCountryName == 'US'"
|
|
|
+ v-if="
|
|
|
+ refundInfo.refundType == '3' &&
|
|
|
+ this.isShopifyLabel == true &&
|
|
|
+ addressInfo.receiverCountryName == 'US'
|
|
|
+ "
|
|
|
label-width="120px"
|
|
|
>
|
|
|
<el-form-item label="ShippingLabel">
|
|
@@ -103,7 +106,7 @@
|
|
|
label-width="80px"
|
|
|
>
|
|
|
<el-form-item :label="$t('label.refundMethod')">
|
|
|
- <el-radio-group v-model="refundInfo.refundMethod" >
|
|
|
+ <el-radio-group v-model="refundInfo.refundMethod">
|
|
|
<el-radio label="system">{{ $t("view.systemRefund") }}</el-radio>
|
|
|
<el-radio label="manual">{{ $t("view.manualRefund") }}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -113,9 +116,7 @@
|
|
|
v-if="refundInfo.refundMethod == 'manual'"
|
|
|
:label="$t('label.accountType')"
|
|
|
>
|
|
|
- <el-radio-group
|
|
|
- v-model="refundInfo.refundAccountType"
|
|
|
- >
|
|
|
+ <el-radio-group v-model="refundInfo.refundAccountType">
|
|
|
<el-radio label="PayPal">PayPal</el-radio>
|
|
|
<el-radio label="bankCard">银行卡</el-radio>
|
|
|
<el-radio label="Gift Card">Gift Card</el-radio>
|
|
@@ -217,6 +218,7 @@
|
|
|
<el-descriptions
|
|
|
:title="$t('title.basicInformation')"
|
|
|
:colon="false"
|
|
|
+ :column="6"
|
|
|
border
|
|
|
>
|
|
|
<el-descriptions-item :label="$t('label.refundOrderNumber')"
|
|
@@ -232,8 +234,8 @@
|
|
|
<el-descriptions-item :label="$t('label.totalRefundAmount')">{{
|
|
|
refundInfo.refundAmount
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.SLFee')" span="1">
|
|
|
- {{ refundInfo.slFee || '0.00'}}
|
|
|
+ <el-descriptions-item :label="$t('label.SLFee')">
|
|
|
+ {{ refundInfo.slFee || "0.00" }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('label.onlineShopOrder')"
|
|
|
>{{ refundInfo.ormorder }}
|
|
@@ -249,7 +251,7 @@
|
|
|
<el-descriptions-item label="实际退款金额">{{
|
|
|
refundInfo.actualRefundAmount
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.shopifyNumber')" span="2"
|
|
|
+ <el-descriptions-item :label="$t('label.shopifyNumber')"
|
|
|
>{{ refundInfo.cutUser }}
|
|
|
<i
|
|
|
style="color:blue;"
|
|
@@ -263,30 +265,28 @@
|
|
|
refundInfo.refundType | refundTypeFilter(that)
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
- <!-- <el-descriptions-item label="退款原因(中文)" span="2">{{
|
|
|
+ <!-- <el-descriptions-item label="退款原因(中文)">{{
|
|
|
refundInfo.reasonContentChinese
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
- <el-descriptions-item label="退款原因(English)" span="1">{{
|
|
|
+ <el-descriptions-item label="退款原因(English)">{{
|
|
|
refundInfo.reasonContentEnglish
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item
|
|
|
v-if="refundInfo.otherReason"
|
|
|
label="其他原因说明"
|
|
|
- span="3">{{
|
|
|
+ >{{
|
|
|
refundInfo.otherReason
|
|
|
}}</el-descriptions-item> -->
|
|
|
<el-descriptions-item
|
|
|
:label="$t('label.receivingReturnWarehouse')"
|
|
|
- span="1"
|
|
|
v-if="refundInfo.warehouseName"
|
|
|
>
|
|
|
{{ refundInfo.warehouseName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item
|
|
|
:label="$t('label.warehouseReceivingStatus')"
|
|
|
- span="1"
|
|
|
v-if="refundInfo.warehouseName"
|
|
|
>
|
|
|
{{ refundInfo.warehouseReceivingStatus }}
|
|
@@ -309,49 +309,47 @@
|
|
|
v-on:click="copy"
|
|
|
></i
|
|
|
></el-descriptions-item>
|
|
|
- <el-descriptions-item
|
|
|
- :label="$t('label.customerServiceNote')"
|
|
|
- span="3"
|
|
|
- >{{ refundInfo.notes }}</el-descriptions-item
|
|
|
- >
|
|
|
- <el-descriptions-item :label="$t('label.buyersNote')" span="1">{{
|
|
|
+ <el-descriptions-item :label="$t('label.buyersNote')">{{
|
|
|
refundInfo.buyNotes
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item
|
|
|
- :label="$t('label.customerReturnCountry')"
|
|
|
- span="2"
|
|
|
- >{{ addressInfo.receiverCountryName }}</el-descriptions-item
|
|
|
- >
|
|
|
+ <el-descriptions-item :label="$t('label.customerReturnCountry')">{{
|
|
|
+ addressInfo.receiverCountryName
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
|
- <el-descriptions-item :label="$t('label.refundMethod')" span="1">
|
|
|
+ <el-descriptions-item :label="$t('label.refundMethod')">
|
|
|
{{ refundInfo.refundMethod | refundMethodFilter(that) }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.accountType')" span="2">
|
|
|
+ <el-descriptions-item :label="$t('label.accountType')">
|
|
|
{{ refundInfo.refundAccountType | refundAccountTypeFilter(that) }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.refundAccount')" span="2">
|
|
|
+ <el-descriptions-item :label="$t('label.refundAccount')">
|
|
|
{{ refundInfo.refundAccount }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.isSelfPickupOrder')" span="1">
|
|
|
- <span v-if="refundInfo.isSelfPickupOrder === false">{{ $t("no") }}</span>
|
|
|
+ <el-descriptions-item :label="$t('label.isSelfPickupOrder')">
|
|
|
+ <span v-if="refundInfo.isSelfPickupOrder === false">{{
|
|
|
+ $t("no")
|
|
|
+ }}</span>
|
|
|
<span v-else>{{ $t("yes") }}</span>
|
|
|
</el-descriptions-item>
|
|
|
<!-- TODO 暂时关闭SL -->
|
|
|
- <el-descriptions-item :label="$t('label.openShippingLabel')" span="1">
|
|
|
- {{ refundInfo.slUseable | SlstatusFilter }}
|
|
|
+ <el-descriptions-item :label="$t('label.openShippingLabel')">
|
|
|
+ {{ refundInfo.slUseable | SlstatusFilter }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.useShippingLabel')" span="2">
|
|
|
+ <el-descriptions-item :label="$t('label.useShippingLabel')">
|
|
|
{{ refundInfo.slFlag | SlstatusFilter }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.shippingRefundAmount')" span="1">
|
|
|
- {{refundInfo.refundPostageAmount}}
|
|
|
+ <el-descriptions-item :label="$t('label.shippingRefundAmount')">
|
|
|
+ {{ refundInfo.refundPostageAmount }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.sumGiftCardRefundAmount')" span="1">
|
|
|
- {{refundInfo.sumGiftCardRefundAmount}}
|
|
|
+ <el-descriptions-item :label="$t('label.sumGiftCardRefundAmount')">
|
|
|
+ {{ refundInfo.sumGiftCardRefundAmount }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.sumAiGiftCardRefundAmount')" span="1">
|
|
|
- {{refundInfo.sumAiGiftCardRefundAmount}}
|
|
|
+ <el-descriptions-item :label="$t('label.sumAiGiftCardRefundAmount')">
|
|
|
+ {{ refundInfo.sumAiGiftCardRefundAmount }}
|
|
|
</el-descriptions-item>
|
|
|
+ <el-descriptions-item :label="$t('label.customerServiceNote')">{{
|
|
|
+ refundInfo.notes
|
|
|
+ }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-card>
|
|
|
|
|
@@ -365,10 +363,11 @@
|
|
|
v-for="(item, index) in orderItemInfo"
|
|
|
:key="index"
|
|
|
:colon="false"
|
|
|
+ :column="6"
|
|
|
:style="titleColor(item)"
|
|
|
border
|
|
|
>
|
|
|
- <el-descriptions-item :label="$t('label.isNoHeadFlag')" span="1">
|
|
|
+ <el-descriptions-item :label="$t('label.isNoHeadFlag')">
|
|
|
<span v-if="item.isHeadFlag == 1">
|
|
|
是
|
|
|
</span>
|
|
@@ -376,14 +375,14 @@
|
|
|
否
|
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.noHeadFlag')" span="2">
|
|
|
- <span v-if="item.isHeadFlag == 1 ">
|
|
|
- {{item.ordersIdS}}
|
|
|
+ <el-descriptions-item :label="$t('label.noHeadFlag')">
|
|
|
+ <span v-if="item.isHeadFlag == 1">
|
|
|
+ {{ item.ordersIdS }}
|
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.uniqueCode')" span="3">{{
|
|
|
- item.uniqueCode
|
|
|
- }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item :label="$t('label.uniqueCode')">{{
|
|
|
+ item.uniqueCode
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('label.skuCode')"
|
|
|
>{{ item.skuCode }}
|
|
|
<i
|
|
@@ -394,7 +393,7 @@
|
|
|
v-on:click="copy"
|
|
|
></i
|
|
|
></el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.shopifyNumber')" span="2"
|
|
|
+ <el-descriptions-item :label="$t('label.shopifyNumber')"
|
|
|
>{{ item.orderOnId }}
|
|
|
<i
|
|
|
style="color:blue;"
|
|
@@ -407,18 +406,18 @@
|
|
|
<el-descriptions-item :label="$t('label.orderStatus')"
|
|
|
>{{ item.orderStatus | statusFilterStatus }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.orderItemStatus')" span="2"
|
|
|
+ <el-descriptions-item :label="$t('label.orderItemStatus')"
|
|
|
>{{ item.itemStatus | statusFilterStatus }}
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
- <el-descriptions-item :label="$t('label.exchangeGoods')" span="1">
|
|
|
+ <el-descriptions-item :label="$t('label.exchangeGoods')">
|
|
|
{{ item.exchangeFlag === "1" ? $t("label.yes") : $t("label.no") }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.originalSKU')" span="2">
|
|
|
+ <el-descriptions-item :label="$t('label.originalSKU')">
|
|
|
{{ item.oldSku }}
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
- <el-descriptions-item :label="$t('label.productName')" span="2">{{
|
|
|
+ <el-descriptions-item :label="$t('label.productName')">{{
|
|
|
item.productName
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item
|
|
@@ -448,14 +447,14 @@
|
|
|
item.discountFee
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('label.sellerDiscount')">{{
|
|
|
- item.sellerDiscount
|
|
|
- }}</el-descriptions-item>
|
|
|
+ item.sellerDiscount
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('label.platformDiscount')">{{
|
|
|
- item.platformDiscount
|
|
|
- }}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('label.loanAmount')" span="2">{{
|
|
|
- item.loanAmount
|
|
|
- }}</el-descriptions-item>
|
|
|
+ item.platformDiscount
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item :label="$t('label.loanAmount')">{{
|
|
|
+ item.loanAmount
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('label.status')"
|
|
|
>{{ item.returnStatus | statusFiltr2 }}
|
|
|
</el-descriptions-item>
|
|
@@ -479,13 +478,46 @@
|
|
|
<!--
|
|
|
<el-divider><i class="el-icon-magic-stick"></i></el-divider>
|
|
|
-->
|
|
|
+ <!-- 多件多折信息 -->
|
|
|
+ <el-card class="box-card" v-has="'priceRule:list'">
|
|
|
+ <el-descriptions
|
|
|
+ :column="6"
|
|
|
+ :title="$t('discountInfo')"
|
|
|
+ :colon="false"
|
|
|
+ border
|
|
|
+ >
|
|
|
+ <el-descriptions-item
|
|
|
+ :label="$t('multipleDiscountInfo.OriginalDiscount')"
|
|
|
+ >2件9折</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item
|
|
|
+ :label="$t('multipleDiscountInfo.OriginalMoneny')"
|
|
|
+ >{{ addressInfo.receiverState }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item
|
|
|
+ :label="$t('multipleDiscountInfo.afterReturnDiscount')"
|
|
|
+ >{{ addressInfo.receiverCity }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item
|
|
|
+ :label="$t('multipleDiscountInfo.afterReturnMoney')"
|
|
|
+ >{{ addressInfo.receiverCity }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item :label="$t('multipleDiscountInfo.returnMoney')">{{
|
|
|
+ addressInfo.receiverCity
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item
|
|
|
+ :label="$t('multipleDiscountInfo.needPayMoney')"
|
|
|
+ >{{ addressInfo.receiverCity }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ </el-descriptions>
|
|
|
+ </el-card>
|
|
|
<el-card class="box-card">
|
|
|
<el-descriptions
|
|
|
:title="$t('title.buyerInformation')"
|
|
|
:colon="false"
|
|
|
border
|
|
|
>
|
|
|
- <el-descriptions-item :label="$t('country')" span="3">{{
|
|
|
+ <el-descriptions-item :label="$t('country')">{{
|
|
|
addressInfo.receiverCountryName
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('state')">{{
|
|
@@ -497,19 +529,19 @@
|
|
|
<el-descriptions-item :label="$t('suburb')">{{
|
|
|
addressInfo.receiverDistrict
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('street')" span="3">{{
|
|
|
+ <el-descriptions-item :label="$t('street')">{{
|
|
|
addressInfo.receiverStreet
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('address')" span="3">{{
|
|
|
+ <el-descriptions-item :label="$t('address')">{{
|
|
|
addressInfo.receiverAddress
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('dooeNo')" span="2">{{
|
|
|
+ <el-descriptions-item :label="$t('dooeNo')">{{
|
|
|
addressInfo.receiverAddress2
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item :label="$t('recipient')">{{
|
|
|
addressInfo.receiverName
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('telephone')" span="3"
|
|
|
+ <el-descriptions-item :label="$t('telephone')"
|
|
|
>{{ addressInfo.receiverPhone
|
|
|
}}<i
|
|
|
style="color:blue;"
|
|
@@ -520,7 +552,7 @@
|
|
|
v-on:click="copy"
|
|
|
></i
|
|
|
></el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('moPhone')" span="3"
|
|
|
+ <el-descriptions-item :label="$t('moPhone')"
|
|
|
>{{ addressInfo.receiverMobile
|
|
|
}}<i
|
|
|
style="color:blue;"
|
|
@@ -531,8 +563,8 @@
|
|
|
v-on:click="copy"
|
|
|
></i
|
|
|
></el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('post')" span="3"
|
|
|
- >{{ addressInfo.email
|
|
|
+ <el-descriptions-item :label="$t('post')"
|
|
|
+ >{{ addressInfo.email
|
|
|
}}<i
|
|
|
style="color:blue;"
|
|
|
v-if="addressInfo.email"
|
|
@@ -541,8 +573,8 @@
|
|
|
:copy-value="addressInfo.email"
|
|
|
v-on:click="copy"
|
|
|
></i
|
|
|
- ></el-descriptions-item>
|
|
|
- <el-descriptions-item :label="$t('refundImg')" span="3">
|
|
|
+ ></el-descriptions-item>
|
|
|
+ <el-descriptions-item :label="$t('refundImg')">
|
|
|
<el-image
|
|
|
style="width: 40px; height: 40px"
|
|
|
:src="refundInfo.annexPath"
|
|
@@ -624,6 +656,7 @@ export default {
|
|
|
isShopifyLabel: false,
|
|
|
activeName: "orderItemList",
|
|
|
afterSaleStatusSuccess: global.afterSaleStatusSuccess,
|
|
|
+ discountInfo: [],
|
|
|
refundInfo: {},
|
|
|
orderItemInfo: {},
|
|
|
addressInfo: {},
|
|
@@ -668,7 +701,7 @@ export default {
|
|
|
});
|
|
|
return value;
|
|
|
},
|
|
|
- refundTypeFilter(key,that) {
|
|
|
+ refundTypeFilter(key, that) {
|
|
|
var value = "";
|
|
|
global.afterSaleType.forEach(refundType => {
|
|
|
if (refundType.value == key) {
|
|
@@ -679,7 +712,7 @@ export default {
|
|
|
},
|
|
|
statusFiltr2(key) {
|
|
|
var value = "";
|
|
|
- if(key != null){
|
|
|
+ if (key != null) {
|
|
|
var keys = key.split(",");
|
|
|
global.returnDeatilStatus.forEach(status => {
|
|
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -693,7 +726,7 @@ export default {
|
|
|
},
|
|
|
inboundStatusFilter(key) {
|
|
|
var value = "";
|
|
|
- if(key != null){
|
|
|
+ if (key != null) {
|
|
|
var keys = key.split(",");
|
|
|
global.inboundStatus.forEach(type => {
|
|
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -716,7 +749,7 @@ export default {
|
|
|
},
|
|
|
receiveTypeFilter(key) {
|
|
|
var value = "";
|
|
|
- if(key != null){
|
|
|
+ if (key != null) {
|
|
|
var keys = key.split(",");
|
|
|
global.receiveType.forEach(type => {
|
|
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -735,7 +768,7 @@ export default {
|
|
|
} else if (key == "0") {
|
|
|
return "NO";
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
//获取退货详情信息
|
|
@@ -754,12 +787,14 @@ export default {
|
|
|
|
|
|
//选择物流公司编码,带出地址
|
|
|
handelChangeReturnWarehouse() {
|
|
|
- if (this.selectedWarehouseCode !== "PSJ-H0000024"
|
|
|
- && this.selectedWarehouseCode !== "PSJ-H0000019"
|
|
|
- && this.selectedWarehouseCode !== "PSJ-H0000011"
|
|
|
- && this.selectedWarehouseCode !== "PSJ-G001001"
|
|
|
- && this.selectedWarehouseCode !== "PSJ-G001003"
|
|
|
- && this.selectedWarehouseCode !== "PSJ-G001004") {
|
|
|
+ if (
|
|
|
+ this.selectedWarehouseCode !== "PSJ-H0000024" &&
|
|
|
+ this.selectedWarehouseCode !== "PSJ-H0000019" &&
|
|
|
+ this.selectedWarehouseCode !== "PSJ-H0000011" &&
|
|
|
+ this.selectedWarehouseCode !== "PSJ-G001001" &&
|
|
|
+ this.selectedWarehouseCode !== "PSJ-G001003" &&
|
|
|
+ this.selectedWarehouseCode !== "PSJ-G001004"
|
|
|
+ ) {
|
|
|
this.slUseAble = "0";
|
|
|
this.showSlChooseLabel = 0; //展示sl的选择标签
|
|
|
// 触发预估运费查询,目前只有一个仓库使用,可暂时不添加查询逻辑,后续若多仓库支持,则需要增加实时查询预估运费逻辑
|
|
@@ -774,13 +809,16 @@ export default {
|
|
|
this.returnWarehouseAddress = this.returnWcodeAndAddress[
|
|
|
this.selectedWarehouseCode
|
|
|
];
|
|
|
- this.checkPSJWarehouse(this.returnWarehouseAddress, this.selectedWarehouseCode);
|
|
|
+ this.checkPSJWarehouse(
|
|
|
+ this.returnWarehouseAddress,
|
|
|
+ this.selectedWarehouseCode
|
|
|
+ );
|
|
|
},
|
|
|
//获取退货仓库列表
|
|
|
getReturnWarehouseList() {
|
|
|
this.wareHouses = [];
|
|
|
this.returnWcodeAndAddress = {};
|
|
|
- returnWarehouseList({'limit':1000}).then(res => {
|
|
|
+ returnWarehouseList({ limit: 1000 }).then(res => {
|
|
|
if (200 == res.code) {
|
|
|
if (res.data.list != null && res.data.list.length > 0) {
|
|
|
res.data.list.forEach(item1 => {
|
|
@@ -821,7 +859,10 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
//展示sl的选择标签
|
|
|
- this.checkPSJWarehouse(this.returnWarehouseAddress, this.selectedWarehouseCode);
|
|
|
+ this.checkPSJWarehouse(
|
|
|
+ this.returnWarehouseAddress,
|
|
|
+ this.selectedWarehouseCode
|
|
|
+ );
|
|
|
// TODO 暂时关闭SL
|
|
|
// if (this.selectedWarehouseCode == "PSJ-H0000024") {
|
|
|
// this.slUseAble = "1";
|
|
@@ -854,24 +895,24 @@ export default {
|
|
|
if (200 == res.code) {
|
|
|
this.addressInfo = res.data;
|
|
|
this.getReturnWarehouseList();
|
|
|
- if(this.addressInfo.receiverCountryCode == 'GB'){
|
|
|
- this.refundInfo.warehouseCode = 'PSJ-H0000044';
|
|
|
- this.selectedWarehouseCode = 'PSJ-H0000044';
|
|
|
+ if (this.addressInfo.receiverCountryCode == "GB") {
|
|
|
+ this.refundInfo.warehouseCode = "PSJ-H0000044";
|
|
|
+ this.selectedWarehouseCode = "PSJ-H0000044";
|
|
|
}
|
|
|
|
|
|
- if(this.addressInfo.receiverCountryCode == 'JP'){
|
|
|
- this.refundInfo.warehouseCode = 'JPNW01';
|
|
|
- this.selectedWarehouseCode = 'JPNW01';
|
|
|
+ if (this.addressInfo.receiverCountryCode == "JP") {
|
|
|
+ this.refundInfo.warehouseCode = "JPNW01";
|
|
|
+ this.selectedWarehouseCode = "JPNW01";
|
|
|
}
|
|
|
|
|
|
- if(this.addressInfo.receiverCountryCode == 'TW'){
|
|
|
- this.refundInfo.warehouseCode = 'G00886001';
|
|
|
- this.selectedWarehouseCode = 'G00886001';
|
|
|
+ if (this.addressInfo.receiverCountryCode == "TW") {
|
|
|
+ this.refundInfo.warehouseCode = "G00886001";
|
|
|
+ this.selectedWarehouseCode = "G00886001";
|
|
|
}
|
|
|
|
|
|
- if(this.addressInfo.receiverCountryCode == 'HK'){
|
|
|
- this.refundInfo.warehouseCode = 'HKW002';
|
|
|
- this.selectedWarehouseCode = 'HKW002';
|
|
|
+ if (this.addressInfo.receiverCountryCode == "HK") {
|
|
|
+ this.refundInfo.warehouseCode = "HKW002";
|
|
|
+ this.selectedWarehouseCode = "HKW002";
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -935,18 +976,24 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 审核是否是派速捷仓库 美国地址
|
|
|
- checkPSJWarehouse(house, code){
|
|
|
+ checkPSJWarehouse(house, code) {
|
|
|
let shu = house.split(" ");
|
|
|
- if (this.addressInfo.receiverCountryCode == 'US' && (code == "PSJ-G001003" || code == "PSJ-G001001" || code == "PSJ-H0000024"
|
|
|
- || code == "PSJ-H0000019" || code == "PSJ-H0000011" || code == "PSJ-G001004")){
|
|
|
+ if (
|
|
|
+ this.addressInfo.receiverCountryCode == "US" &&
|
|
|
+ (code == "PSJ-G001003" ||
|
|
|
+ code == "PSJ-G001001" ||
|
|
|
+ code == "PSJ-H0000024" ||
|
|
|
+ code == "PSJ-H0000019" ||
|
|
|
+ code == "PSJ-H0000011" ||
|
|
|
+ code == "PSJ-G001004")
|
|
|
+ ) {
|
|
|
this.isShopifyLabel = true;
|
|
|
this.refundInfo.warehouseCode = code;
|
|
|
this.slUseAble = "1";
|
|
|
this.getShippingLabelAmount(this.refundInfo);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.isShopifyLabel = false;
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
//客服审核
|
|
|
handleKfCheck(status) {
|
|
@@ -1034,28 +1081,36 @@ export default {
|
|
|
.then(
|
|
|
res => {
|
|
|
if (200 === res.code) {
|
|
|
- if(res.msg==="exist"){
|
|
|
- this.refundPriority="gift";
|
|
|
- this.$confirm("当前订单存在礼品卡支付,执行退款将优先退还礼品卡金额", "温馨提示", {
|
|
|
- confirmButtonText: "确认",
|
|
|
- cancelButtonText: "关闭",
|
|
|
- showCancelButton:false,
|
|
|
- cancelButtonClass: 'btnCancel',
|
|
|
- type: 'warning',
|
|
|
- showClose:false
|
|
|
- })
|
|
|
- }else if(res.msg==="none"){
|
|
|
- this.refundPriority="";
|
|
|
- this.$confirm("当前售后没有可退款的支付流水,请您选择手工退款方式", "温馨提示", {
|
|
|
- confirmButtonText: "确认",
|
|
|
- cancelButtonText: "关闭",
|
|
|
- showCancelButton:false,
|
|
|
- cancelButtonClass: 'btnCancel',
|
|
|
- type: 'warning',
|
|
|
- showClose:false
|
|
|
- })
|
|
|
- }else{
|
|
|
- this.refundPriority="";
|
|
|
+ if (res.msg === "exist") {
|
|
|
+ this.refundPriority = "gift";
|
|
|
+ this.$confirm(
|
|
|
+ "当前订单存在礼品卡支付,执行退款将优先退还礼品卡金额",
|
|
|
+ "温馨提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "关闭",
|
|
|
+ showCancelButton: false,
|
|
|
+ cancelButtonClass: "btnCancel",
|
|
|
+ type: "warning",
|
|
|
+ showClose: false
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else if (res.msg === "none") {
|
|
|
+ this.refundPriority = "";
|
|
|
+ this.$confirm(
|
|
|
+ "当前售后没有可退款的支付流水,请您选择手工退款方式",
|
|
|
+ "温馨提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "关闭",
|
|
|
+ showCancelButton: false,
|
|
|
+ cancelButtonClass: "btnCancel",
|
|
|
+ type: "warning",
|
|
|
+ showClose: false
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.refundPriority = "";
|
|
|
}
|
|
|
this.$message({
|
|
|
message: "验证通过",
|
|
@@ -1100,16 +1155,41 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
-//.btnCancel{
|
|
|
-// float: right;
|
|
|
-// margin-left: 10px;
|
|
|
-// color: #fff !important;
|
|
|
-// background-color: #AE8877 !important;
|
|
|
-// border-color: #AE8877 !important;
|
|
|
-//}
|
|
|
-//.btnCancel:hover, .btnCancel:focus {
|
|
|
-// background: #bea092 !important;
|
|
|
-// border-color: #bea092 !important;
|
|
|
-// color: #fff !important;
|
|
|
-//}
|
|
|
+.detail {
|
|
|
+ .el-descriptions__title {
|
|
|
+ color: #606266;
|
|
|
+ font-size: 16px !important;
|
|
|
+ line-height: 16px;
|
|
|
+ position: relative;
|
|
|
+ padding-left: 8px !important;
|
|
|
+ &:before {
|
|
|
+ position: absolute;
|
|
|
+ left: 0px;
|
|
|
+ top: 0px;
|
|
|
+ content: "";
|
|
|
+ display: inline-block;
|
|
|
+ width: 3px;
|
|
|
+ height: 13px;
|
|
|
+ background: #ae8877;
|
|
|
+ border-radius: 0px 0px 0px 0px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .box-card {
|
|
|
+ box-shadow: none;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ .el-descriptions {
|
|
|
+ margin-bottom: 40px;
|
|
|
+ &:last-child {
|
|
|
+ margin-bottom: 0px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-descriptions__body {
|
|
|
+ width: 100%;
|
|
|
+ overflow: auto;
|
|
|
+ }
|
|
|
+ .el-descriptions__table {
|
|
|
+ table-layout: fixed;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|