...
|
...
|
@@ -210,14 +210,24 @@ exports.submit = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
if (req.body.invoice === 'true') {
|
|
|
let invoicesTitlePersonal = req.body.invoices_title_personal ? req.body.invoices_title_personal : '个人';
|
|
|
let invoicePayableType = _.parseInt(req.body.invoice_payable_type);
|
|
|
|
|
|
_.assign(options, {
|
|
|
invoices_title: req.body.invoices_title || '个人',
|
|
|
invoices_type: 2,
|
|
|
invoices_type_id: 12,
|
|
|
invoice_payable_type: req.body.invoice_payable_type || 1,
|
|
|
invoice_payable_type: invoicePayableType,
|
|
|
receiverMobile: req.body.receiverMobile || '',
|
|
|
buyerTaxNumber: req.body.buyerTaxNumber || ''
|
|
|
});
|
|
|
|
|
|
if (invoicePayableType === 1) {
|
|
|
// 开个人发票
|
|
|
options.invoices_title = invoicesTitlePersonal;
|
|
|
} else {
|
|
|
// 开公司发票
|
|
|
options.invoices_title = req.body.invoices_title;
|
|
|
options.buyerTaxNumber = req.body.buyerTaxNumber;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return seckillModel.submit(options)
|
...
|
...
|
|