|
|
@@ -82,14 +82,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { afterSaleOrder} from '@/api/pointOrder'
|
|
|
+import { afterSaleOrder } from '@/api/pointOrder'
|
|
|
import Upload from '@/components/upload/index.vue';
|
|
|
export default {
|
|
|
components: { Upload },
|
|
|
data() {
|
|
|
return {
|
|
|
- orderNo:null,
|
|
|
- orderId:null,
|
|
|
+ orderNo: null,
|
|
|
+ orderId: null,
|
|
|
fileList: [],
|
|
|
tab: null,//1 退款/换货申请第一步 2 已收货-换货申请第二步
|
|
|
headPhotoImg: [],
|
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
receivedStatus: null,//1 未收到,申请退款;2.已收到货,申请退款 3.已收货-换货申请
|
|
|
isTop: 0,
|
|
|
list: [],
|
|
|
- servicePromise:[
|
|
|
+ servicePromise: [
|
|
|
"假一赔三",
|
|
|
"7天无理由退换",
|
|
|
"破损包退换"
|
|
|
@@ -109,17 +109,17 @@ export default {
|
|
|
{
|
|
|
title: '平台原因',
|
|
|
data: [
|
|
|
- { value: '1', text: '商家无货联系我取消订单',show:true},
|
|
|
- { value: '2', text: '商家无法按承诺时效送达' ,show:true},
|
|
|
- { value: '3', text: '商家其他原因联系我取消订单' ,show:true},
|
|
|
+ { value: '1', text: '商家无货联系我取消订单', show: true },
|
|
|
+ { value: '2', text: '商家无法按承诺时效送达', show: true },
|
|
|
+ { value: '3', text: '商家其他原因联系我取消订单', show: true },
|
|
|
]
|
|
|
}, {
|
|
|
title: '个人原因',
|
|
|
data: [
|
|
|
- { value: '4', text: '不想要' ,show:true},
|
|
|
- { value: '5', text: '商品错选 / 多选' ,show:true},
|
|
|
- { value: '6', text: '地址信息填写错误' ,show:true},
|
|
|
- { value: '7', text: '7天无理由退货' ,show:true},
|
|
|
+ { value: '4', text: '不想要', show: true },
|
|
|
+ { value: '5', text: '商品错选 / 多选', show: true },
|
|
|
+ { value: '6', text: '地址信息填写错误', show: true },
|
|
|
+ { value: '7', text: '7天无理由退货', show: true },
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
@@ -128,13 +128,13 @@ export default {
|
|
|
{
|
|
|
title: '',
|
|
|
data: [
|
|
|
- { value: '1', text: '买错/买多/不想要' ,show:true},
|
|
|
- { value: '2', text: '商品质量问题' ,show:true},
|
|
|
- { value: '3', text: '商品与页面描述不符' ,show:true},
|
|
|
- { value: '4', text: '商品/包装破损' ,show:true},
|
|
|
- { value: '5', text: '发错货' ,show:true},
|
|
|
- { value: '6', text: '少件/未收到货' ,show:true},
|
|
|
- { value: '7', text: '7天无理由退货' ,show:true},
|
|
|
+ { value: '1', text: '买错/买多/不想要', show: true },
|
|
|
+ { value: '2', text: '商品质量问题', show: true },
|
|
|
+ { value: '3', text: '商品与页面描述不符', show: true },
|
|
|
+ { value: '4', text: '商品/包装破损', show: true },
|
|
|
+ { value: '5', text: '发错货', show: true },
|
|
|
+ { value: '6', text: '少件/未收到货', show: true },
|
|
|
+ { value: '7', text: '7天无理由退货', show: true },
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
@@ -168,8 +168,8 @@ export default {
|
|
|
if (data) {
|
|
|
this.receivedStatus = data.receivedStatus
|
|
|
this.tab = data.tab ? data.tab : null
|
|
|
- if(data.orderId)this.orderId=data.orderId
|
|
|
- if(data.orderNo)this.orderNo=data.orderNo
|
|
|
+ if (data.orderId) this.orderId = data.orderId
|
|
|
+ if (data.orderNo) this.orderNo = data.orderNo
|
|
|
if (data.questionOrDiscribeValue && data.questionOrDiscribeValue !== "null") {
|
|
|
this.questionOrDiscribeValue = data.questionOrDiscribeValue
|
|
|
}
|
|
|
@@ -194,24 +194,24 @@ export default {
|
|
|
|
|
|
},
|
|
|
onShow(data) {
|
|
|
- let flag=this.servicePromise.some(f=>{
|
|
|
- return f.indexOf('7天无理由退')!==-1
|
|
|
+ let flag = this.servicePromise.some(f => {
|
|
|
+ return f.indexOf('7天无理由退') !== -1
|
|
|
})
|
|
|
- if(!flag){
|
|
|
- this.list2.map(m=>{
|
|
|
- m.data.forEach(e=>{
|
|
|
- if(e.text.indexOf('7天无理由退')==-1){
|
|
|
- e.show=false
|
|
|
+ if (!flag) {
|
|
|
+ this.list2.map(m => {
|
|
|
+ m.data.forEach(e => {
|
|
|
+ if (e.text.indexOf('7天无理由退') == -1) {
|
|
|
+ e.show = false
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
})
|
|
|
- this.list1.map(m=>{
|
|
|
- m.data.forEach(e=>{
|
|
|
- if(e.text.indexOf('7天无理由退')==-1){
|
|
|
- e.show=false
|
|
|
+ this.list1.map(m => {
|
|
|
+ m.data.forEach(e => {
|
|
|
+ if (e.text.indexOf('7天无理由退') == -1) {
|
|
|
+ e.show = false
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
@@ -237,12 +237,15 @@ export default {
|
|
|
//点击单选按钮
|
|
|
groupChange(val) {
|
|
|
this.selectReason = val
|
|
|
- this.filteredList[0].data.forEach(item => {
|
|
|
- if (item.value == val) {
|
|
|
- this.selectReasonValue = item.text
|
|
|
- }
|
|
|
+ this.filteredList.map(m => {
|
|
|
+ m.data.forEach(item => {
|
|
|
+ if (item.value == val) {
|
|
|
+ this.selectReasonValue = item.text
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ })
|
|
|
|
|
|
- });
|
|
|
},
|
|
|
//提交
|
|
|
goSubmit() {
|
|
|
@@ -250,14 +253,13 @@ export default {
|
|
|
//receivedStatus 1 未收到,申请退款;2.已收到货,申请退款 3.已收货-换货申请
|
|
|
//tab 1 退款 2 换货
|
|
|
afterSaleOrder({ // 未收到-申请退款,已收到货-申请退款
|
|
|
- orderId:this.orderId,
|
|
|
- orderNo:this.orderNo,
|
|
|
- receiptStatus:this.receivedStatus,//1:未收货 2:已收货
|
|
|
- applyReason:this.selectReasonValue,
|
|
|
- afterSaleType:this.tab,//1:退货 2:换货
|
|
|
+ orderId: this.orderId,
|
|
|
+ orderNo: this.orderNo,
|
|
|
+ applyReason: this.selectReasonValue,
|
|
|
+ afterSaleType: this.receivedStatus == 1 ? 3 : this.receivedStatus == 2 ? 1 : null,//1:退货 2:换 3:未收到货
|
|
|
//applyDesc:'',
|
|
|
//applyImages:'',
|
|
|
- }).then(res=>{
|
|
|
+ }).then(res => {
|
|
|
|
|
|
})
|
|
|
|