add SalesOrderSummary.vue
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { axios } from "timi-web-api";
|
||||
import { withCurrentStoreId } from "@/utils/store";
|
||||
import type { CustomerProduct, CustomerProductPage, CustomerProductPageResult } from "@/types/CustomerProduct";
|
||||
|
||||
const URI = "/gao/sales/order/customer-product";
|
||||
|
||||
async function list(page: CustomerProductPage): Promise<CustomerProductPageResult<CustomerProduct>> {
|
||||
return await axios.post(`${URI}/list`, withCurrentStoreId(page));
|
||||
}
|
||||
|
||||
export default { list };
|
||||
@@ -13,6 +13,7 @@ import type {
|
||||
SalesOrderCancelRequest,
|
||||
SalesOrderPage,
|
||||
SalesOrderPageResult,
|
||||
SalesOrderSummary,
|
||||
SalesOrderUpdateRequest
|
||||
} from "@/types/SalesOrder";
|
||||
|
||||
@@ -22,6 +23,9 @@ const FUND_URI = "/gao/fund/record";
|
||||
async function list(page: SalesOrderPage): Promise<SalesOrderPageResult<SalesOrder>> {
|
||||
return await axios.post(`${ORDER_URI}/list`, withCurrentStoreId(page));
|
||||
}
|
||||
async function summary(page: SalesOrderPage): Promise<SalesOrderSummary> {
|
||||
return await axios.post(`${ORDER_URI}/summary`, withCurrentStoreId(page));
|
||||
}
|
||||
async function detail(id: string): Promise<SalesOrder> {
|
||||
return await axios.post(`${ORDER_URI}/detail`, undefined, { params: { id } });
|
||||
}
|
||||
@@ -75,6 +79,7 @@ async function myReceiveRecordDetail(id: string): Promise<FundRecord> {
|
||||
|
||||
export default {
|
||||
list,
|
||||
summary,
|
||||
detail,
|
||||
createDirectProduct,
|
||||
update,
|
||||
|
||||
Reference in New Issue
Block a user