...
|
...
|
@@ -621,6 +621,13 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
orderType, attribute, refundStatus, links) {
|
|
|
let operation = {};
|
|
|
|
|
|
if (attribute === 9 || attribute === 11) {
|
|
|
Object.assign(operation, {
|
|
|
deposit: true
|
|
|
});
|
|
|
return operation;
|
|
|
}
|
|
|
|
|
|
// 立刻付款
|
|
|
if (_.includes(links, 'buyNow')) {
|
|
|
Object.assign(operation, {
|
...
|
...
|
@@ -881,14 +888,18 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
detail.packageTitle = orderDetail.package_title;
|
|
|
detail.packages = that._getPackageInfo(orderDetail);
|
|
|
|
|
|
// 判断是否可以修改地址
|
|
|
if (orderDetail.can_update_delivery_address === 'Y') {
|
|
|
detail.changeable = true;
|
|
|
}
|
|
|
if (+orderDetail.attribute === 9 || +orderDetail.attribute === 11) {
|
|
|
// 定金预售不能操作
|
|
|
} else {
|
|
|
// 判断是否可以修改地址
|
|
|
if (orderDetail.can_update_delivery_address === 'Y') {
|
|
|
detail.changeable = true;
|
|
|
}
|
|
|
|
|
|
// 判断是否可以修改省份
|
|
|
if (orderDetail.is_support_change_province === 'N') {
|
|
|
detail.changeProvince = true;
|
|
|
// 判断是否可以修改省份
|
|
|
if (orderDetail.is_support_change_province === 'N') {
|
|
|
detail.changeProvince = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return detail;
|
...
|
...
|
|