...
|
...
|
@@ -6,6 +6,7 @@ const crypto = global.yoho.crypto; |
|
|
|
|
|
const processInvoiceData = (orderInfo, mobile, addresslist) => {
|
|
|
let invoices_title = false;
|
|
|
let invoices_title_personal = false;
|
|
|
let invoices_type = '2';
|
|
|
let addressId = orderInfo.addressId &&
|
|
|
parseInt(crypto.encryption('', orderInfo.addressId), 10) || 0;
|
...
|
...
|
@@ -28,13 +29,15 @@ const processInvoiceData = (orderInfo, mobile, addresslist) => { |
|
|
invoices_type = orderInfo.invoices_type * 1;
|
|
|
}
|
|
|
|
|
|
invoices_title_personal = orderInfo.invoices_title_personal || '个人(可修改)';
|
|
|
|
|
|
let isCompany = invoices_title && invoices_title !== '个人';
|
|
|
|
|
|
return {
|
|
|
phone: mobile ? mobile : '',
|
|
|
completeTel: mobile,
|
|
|
isCompany: isCompany,
|
|
|
companyName: isCompany ? invoices_title : '个人(不可修改)',
|
|
|
companyName: isCompany ? invoices_title : invoices_title_personal,
|
|
|
buyerTaxNumber: orderInfo.buyerTaxNumber,
|
|
|
isPaper: invoices_type === 1,
|
|
|
invoicesType: [
|
...
|
...
|
|