shared-ritm 1.3.138 → 1.3.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +10 -4
- package/dist/shared-ritm.umd.js +49 -49
- package/dist/types/api/services/PurchaseService.d.ts +4 -0
- package/dist/types/api/types/Api_Controls.d.ts +2 -0
- package/dist/types/api/types/Api_Purchase.d.ts +6 -0
- package/package.json +1 -1
- package/src/api/services/PurchaseService.ts +12 -3
- package/src/api/types/Api_Controls.ts +2 -0
- package/src/api/types/Api_Purchase.ts +6 -0
- package/src/common/app-table/components/ModalSelect.vue +315 -311
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import ApiService from '../settings/ApiService';
|
|
2
2
|
import { Api_Visitor_Dto } from '../types/Api_User';
|
|
3
3
|
import { ResponseApi } from '../types/Api_Service';
|
|
4
|
+
import { Api_Payload_Create_Purchase_Dto } from '@/api/types/Api_Purchase';
|
|
4
5
|
declare class PurchaseService extends ApiService {
|
|
5
6
|
getPurchaseList(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
|
|
7
|
+
getPurchaseValue(params?: Record<string, any>): Promise<Api_Visitor_Dto>;
|
|
8
|
+
createPurchase(body: Api_Payload_Create_Purchase_Dto): Promise<Api_Visitor_Dto>;
|
|
9
|
+
getPurchaseCard(purchaseId: string, stageId: string): Promise<any>;
|
|
6
10
|
}
|
|
7
11
|
export default function usePurchaseService(): PurchaseService;
|
|
8
12
|
export {};
|
package/package.json
CHANGED
|
@@ -2,15 +2,24 @@ import ApiService from '../settings/ApiService'
|
|
|
2
2
|
import { Api_Visitor_Dto } from '../types/Api_User'
|
|
3
3
|
|
|
4
4
|
import { ResponseApi } from '../types/Api_Service'
|
|
5
|
+
import { Api_Payload_Create_Purchase_Dto } from '@/api/types/Api_Purchase'
|
|
5
6
|
|
|
6
7
|
class PurchaseService extends ApiService {
|
|
7
8
|
public async getPurchaseList(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
|
|
8
9
|
return await this.get(`purchase/list`, { params })
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
public getPurchaseValue(params?: Record<string, any>): Promise<Api_Visitor_Dto> {
|
|
13
|
+
return this.get('purchase/value', { params })
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public createPurchase(body: Api_Payload_Create_Purchase_Dto): Promise<Api_Visitor_Dto> {
|
|
17
|
+
return this.post('purchase/create', body)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public getPurchaseCard(purchaseId: string, stageId: string): Promise<any> {
|
|
21
|
+
return this.get(`/purchase/${purchaseId}/stages/${stageId}/card`)
|
|
22
|
+
}
|
|
14
23
|
// public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
|
|
15
24
|
// return await this.post(`exit_visitor_log/${id}`, {})
|
|
16
25
|
// }
|