修复新发票接口相关问题

master
zhangmeng 4 years ago
parent 2ff02726b6
commit 4ad143dc99

@ -141,7 +141,7 @@ class _InvoiceAoi {
String get invoiceList => '/v2/app/order/invoice_user_list'; String get invoiceList => '/v2/app/order/invoice_user_list';
/// ///
String get addInvocieTitle => '/v2/app/add_invoice_title'; String get addInvocieTitle => '/v2/app/order/add_invoice_title';
/// ///
String get applyInvoice => '/v2/app/order/apply_invoice'; String get applyInvoice => '/v2/app/order/apply_invoice';

@ -51,7 +51,7 @@ class InvoicePresenter {
'uid': UserManager.instance.user.info.id, //id 'uid': UserManager.instance.user.info.id, //id
'type': type, 'type': type,
"name": name, "name": name,
"default": defaultValue, "defaultValue": defaultValue,
}; };
if (type == 1) { if (type == 1) {
param.putIfAbsent('taxnum', () => taxNum); param.putIfAbsent('taxnum', () => taxNum);
@ -59,7 +59,7 @@ class InvoicePresenter {
param.putIfAbsent('address', () => addr); param.putIfAbsent('address', () => addr);
param.putIfAbsent('bank', () => bankNum); param.putIfAbsent('bank', () => bankNum);
} }
await HttpManager.post(InvoiceApi.addLetterHead, param);// await HttpManager.post(APIV2.invoiceApi.addInvocieTitle, param);
} }
Future updateLetterHead( Future updateLetterHead(
@ -78,7 +78,7 @@ class InvoicePresenter {
'id': id, 'id': id,
'type': type, 'type': type,
"name": name, "name": name,
"default": defaultValue, "defaultValue": defaultValue,
}; };
if (type == 1) { if (type == 1) {
param.putIfAbsent('taxnum', () => taxNum); param.putIfAbsent('taxnum', () => taxNum);
@ -104,7 +104,7 @@ class InvoicePresenter {
}) async { }) async {
ResultData resultData = await HttpManager.post(APIV2.invoiceApi.applyInvoice, { ResultData resultData = await HttpManager.post(APIV2.invoiceApi.applyInvoice, {
'user_id': UserManager.instance.user.info.id, 'user_id': UserManager.instance.user.info.id,
'order_id': ids.first, // 'order_id': ids,
'buyer_name': buyername, 'buyer_name': buyername,
'tax_num': taxnum, 'tax_num': taxnum,
'address': addr, 'address': addr,
@ -124,7 +124,7 @@ class InvoicePresenter {
Future<List<InvoiceBillListModel>> getBillList() async { Future<List<InvoiceBillListModel>> getBillList() async {
ResultData resultData = await HttpManager.post(APIV2.invoiceApi.invoiceRecord, { ResultData resultData = await HttpManager.post(APIV2.invoiceApi.invoiceRecord, {
'userId': UserManager.instance.user.info.id, 'uid': UserManager.instance.user.info.id,
// 'page': page, // 'page': page,
}); });
return resultData.data['data'] == null return resultData.data['data'] == null

Loading…
Cancel
Save