...
|
...
|
@@ -218,6 +218,23 @@ |
|
|
});
|
|
|
},
|
|
|
|
|
|
goodReflushDelivery(code, skns, orderCode) {
|
|
|
$.get('/home/return/exchange/refreshDelivery', {
|
|
|
areaCode: code,
|
|
|
skns: skns,
|
|
|
orderCode: orderCode
|
|
|
}).then(result => {
|
|
|
this.delivery = result.data;
|
|
|
|
|
|
$.each(result.data, (index, obj) => {
|
|
|
if (obj.is_default === 'Y') {
|
|
|
this.deliveryTpye = obj.id;
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
|
|
|
// 生成提交数据
|
|
|
submitData() {
|
|
|
const data = {
|
...
|
...
|
@@ -321,7 +338,17 @@ |
|
|
}
|
|
|
},
|
|
|
'address.areaCode': function(newVal) { // area code 改变,重新获取 换货方式
|
|
|
this.reflushDeliveryTpye(newVal);
|
|
|
let skns = [];
|
|
|
|
|
|
this.goodsArr.filter(function(item) {
|
|
|
if (item.checked) {
|
|
|
skns.push(item.productSkn);
|
|
|
}
|
|
|
|
|
|
return skns;
|
|
|
});
|
|
|
|
|
|
this.goodReflushDelivery(newVal, JSON.stringify(skns), this.orderCode);
|
|
|
},
|
|
|
processing(val) {
|
|
|
if (val) {
|
...
|
...
|
@@ -329,6 +356,24 @@ |
|
|
} else {
|
|
|
loading.hideLoading();
|
|
|
}
|
|
|
},
|
|
|
goodsArr: {
|
|
|
handler: function() {
|
|
|
let skns = [];
|
|
|
|
|
|
this.goodsArr.filter(function(item) {
|
|
|
if (item.checked) {
|
|
|
skns.push(item.productSkn);
|
|
|
}
|
|
|
|
|
|
return skns;
|
|
|
});
|
|
|
|
|
|
if (skns.length > 0) {
|
|
|
this.goodReflushDelivery(this.address.areaCode, JSON.stringify(skns), this.orderCode);
|
|
|
}
|
|
|
},
|
|
|
deep: true
|
|
|
}
|
|
|
},
|
|
|
components: {
|
...
|
...
|
|