Authored by zhangwenxue

refactor: delete queryInvoiceById api

... ... @@ -84,14 +84,11 @@ export default {
}
},
show(invoice) {
const params = _.pick(invoice, ['shopId', 'orderCode']);
this.setTitle(invoice);
this.invoiceAPI.get(params).then(({ data }) => {
// initial data
this.invoiceData = data;
this.formItem = { ...data };
this.visible = true;
});
// initial data
this.invoiceData = invoice;
this.formItem = { ...invoice };
this.visible = true;
},
/**
* 前端可控制的状态转移
... ... @@ -119,7 +116,7 @@ export default {
* 退货已经处理->作废
* 未开发票->作废
* 已开发票->作废
* [6] 已开票->已开票, 退货已经处理->退货已经处理
* [6] 已开票->已开票, 退货已经处理->退货已经处理(更新发票信息)
* return: true: 可以提交, false: 不必提交(当前状态为作废, 选择状态还是作废)
*/
updateState(invoice) {
... ...
... ... @@ -3,7 +3,6 @@ import qs from 'querystringify';
const apiUrl = {
queryPageInvoice: '/erp/queryPageInvoice',
queryInvoice: '/erp/queryInvoice',
updateInvoice: '/erp/updateInvoice',
exportInvoiceList: '/erp/exportInvoiceList',
};
... ... @@ -12,9 +11,6 @@ class InvoiceService extends Service {
queryList(params) {
return this.post(apiUrl.queryPageInvoice, params);
}
get(params) {
return this.post(apiUrl.queryInvoice, params);
}
update(params) {
return this.post(apiUrl.updateInvoice, params);
}
... ...
... ... @@ -69,9 +69,8 @@ const domainApis = {
// 发票管理
queryPageInvoice: '/erp-gateway-web/franchiseInvoice/queryPageInvoice', // 订单发票列表接口
queryInvoice: '/erp-gateway-web/franchiseInvoice/queryInvoice', // 订单发票详情接口
updateInvoice: '/erp-gateway-web/s/franchiseInvoice/updateInvoice', // 发票信息更改接口
exportInvoiceList: '/erp-gateway-web/s/franchiseInvoice/exportInvoiceList', // 导出发票列表
exportInvoiceList: '/erp-gateway-web/export/exportFranchiseInvoiceList', // 导出发票列表
queryByPidForFavorite: '/erp-gateway-web/account/profile/queryByPidForFavorite',
exportFavoriteClearingList: '/erp-gateway-web/export/favoriteClearingList',
... ...