...
|
...
|
@@ -383,6 +383,14 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
_.set(newOrder, 'invoiceOperation.invoiceSupplying', issueType === 1);
|
|
|
}
|
|
|
|
|
|
if (+order.refund_status === 1 || +order.exchange_status === 1) {
|
|
|
Object.assign(newOrder, {
|
|
|
invoiceOperation: {unsupportSupply: true},
|
|
|
unsupportSupplyTip: +order.refund_status === 1 ?
|
|
|
'订单商品已申请退货,暂无发票信息' : '换货订单暂不支持补开发票'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (newOrder.issueType) {
|
|
|
newOrder.invoiceType = _.get(order, 'invoice.type', 0) === 2 ? '电子发票' : '纸质发票';
|
|
|
}
|
...
|
...
|
|