Commit 3fcc4455345cf3e15d173cf2fb826e9a66c94538
1 parent
a2a206d0
chore: 为发票和银行流水页面添加导出按钮
在发票和银行流水页面添加了导出按钮,该按钮允许用户选择所需的数据并将其导出为Excel文件。使用了messageApi来显示导出过程的加载状态。 增加了optionRender属性来在搜索配置中添加导出按钮,并确保按钮位于搜索区域的右侧。 服务端点和文件: - 在`index.tsx`文件的Invoice页面中添加了导出功能。 - 在`index.tsx`文件的InvoiceVerification页面中添加了导出功能。 - 更新了`definition.ts`文件,对现有的类型定义没有做出修改,保持了一致性。
Showing
4 changed files
with
700 additions
and
36 deletions
src/pages/Invoice/Invoice/index.tsx
... | ... | @@ -11,6 +11,7 @@ import { |
11 | 11 | postServiceInvoiceGetWriteOffRecord, |
12 | 12 | postServiceInvoiceQueryInvoice, |
13 | 13 | } from '@/services'; |
14 | +import { orderExport } from '@/services/order'; | |
14 | 15 | import { enumValueToLabel, formatDateTime } from '@/utils'; |
15 | 16 | import { formatDate } from '@/utils/time'; |
16 | 17 | import { ActionType, ProTable } from '@ant-design/pro-components'; |
... | ... | @@ -23,6 +24,7 @@ const InvoiceRecord = () => { |
23 | 24 | const [invoiceVerificationVisible, setInvoiceVerificationVisible] = |
24 | 25 | useState(false); |
25 | 26 | const [invoiceId, setInvoiceId] = useState(undefined); |
27 | + const [messageApi, contextHolder] = message.useMessage(); | |
26 | 28 | const reloadInvoiceTable = () => { |
27 | 29 | invoiceActionRef.current?.reload(); |
28 | 30 | }; |
... | ... | @@ -216,6 +218,31 @@ const InvoiceRecord = () => { |
216 | 218 | rowKey="id" |
217 | 219 | search={{ |
218 | 220 | labelWidth: 'auto', |
221 | + optionRender: (searchConfig, formProps, dom) => [ | |
222 | + ...dom.reverse(), | |
223 | + <Button | |
224 | + key="out" | |
225 | + onClick={() => { | |
226 | + const values = searchConfig?.form?.getFieldsValue(); | |
227 | + messageApi.open({ | |
228 | + type: 'loading', | |
229 | + content: '导出中...', | |
230 | + duration: 0, | |
231 | + }); | |
232 | + orderExport( | |
233 | + '/api/service/invoice/exportInvoices', | |
234 | + '发票.xlsx', | |
235 | + 'POST', | |
236 | + values, | |
237 | + () => { | |
238 | + messageApi.destroy(); | |
239 | + }, | |
240 | + ); | |
241 | + }} | |
242 | + > | |
243 | + 导出 | |
244 | + </Button>, | |
245 | + ], | |
219 | 246 | }} |
220 | 247 | options={{ |
221 | 248 | setting: { |
... | ... | @@ -265,6 +292,7 @@ const InvoiceRecord = () => { |
265 | 292 | ) : ( |
266 | 293 | '' |
267 | 294 | )} |
295 | + {contextHolder} | |
268 | 296 | </div> |
269 | 297 | ); |
270 | 298 | }; | ... | ... |
src/pages/Invoice/InvoiceVerification/index.tsx
... | ... | @@ -16,6 +16,7 @@ import { |
16 | 16 | postServiceBankStatementQueryBankStatement, |
17 | 17 | postServiceInvoiceGetWriteOffRecord, |
18 | 18 | } from '@/services'; |
19 | +import { orderExport } from '@/services/order'; | |
19 | 20 | import { enumValueToLabel, formatDateTime } from '@/utils'; |
20 | 21 | import { formatDate } from '@/utils/time'; |
21 | 22 | import { PlusOutlined } from '@ant-design/icons'; |
... | ... | @@ -29,6 +30,7 @@ const InvoiceRecord = () => { |
29 | 30 | const [bankImportModalVisible, setBankImportModalVisible] = useState(false); |
30 | 31 | const [invoiceVerificationVisible, setInvoiceVerificationVisible] = |
31 | 32 | useState(false); |
33 | + const [messageApi, contextHolder] = message.useMessage(); | |
32 | 34 | const [invoiceId] = useState(undefined); |
33 | 35 | const [invoiceRecordDetailVisible, setInvoiceRecordDetailVisible] = |
34 | 36 | useState(false); |
... | ... | @@ -139,6 +141,7 @@ const InvoiceRecord = () => { |
139 | 141 | btns.push( |
140 | 142 | <InvoiceWriteOffModal |
141 | 143 | getData={async () => { |
144 | + console.log(record.writeOffId); | |
142 | 145 | const res = await postServiceInvoiceGetWriteOffRecord({ |
143 | 146 | data: { id: record.writeOffId }, |
144 | 147 | }); |
... | ... | @@ -225,6 +228,31 @@ const InvoiceRecord = () => { |
225 | 228 | rowKey="id" |
226 | 229 | search={{ |
227 | 230 | labelWidth: 'auto', |
231 | + optionRender: (searchConfig, formProps, dom) => [ | |
232 | + ...dom.reverse(), | |
233 | + <Button | |
234 | + key="out" | |
235 | + onClick={() => { | |
236 | + const values = searchConfig?.form?.getFieldsValue(); | |
237 | + messageApi.open({ | |
238 | + type: 'loading', | |
239 | + content: '导出中...', | |
240 | + duration: 0, | |
241 | + }); | |
242 | + orderExport( | |
243 | + '/api/service/invoice/exportBankStatements', | |
244 | + '银行流水.xlsx', | |
245 | + 'POST', | |
246 | + values, | |
247 | + () => { | |
248 | + messageApi.destroy(); | |
249 | + }, | |
250 | + ); | |
251 | + }} | |
252 | + > | |
253 | + 导出 | |
254 | + </Button>, | |
255 | + ], | |
228 | 256 | }} |
229 | 257 | options={{ |
230 | 258 | setting: { |
... | ... | @@ -283,6 +311,7 @@ const InvoiceRecord = () => { |
283 | 311 | ) : ( |
284 | 312 | '' |
285 | 313 | )} |
314 | + {contextHolder} | |
286 | 315 | </div> |
287 | 316 | ); |
288 | 317 | }; | ... | ... |
src/services/definition.ts
... | ... | @@ -1439,11 +1439,20 @@ export interface InvoiceDto { |
1439 | 1439 | invoiceStatus?: string; |
1440 | 1440 | /** |
1441 | 1441 | * @description |
1442 | + * 发票类型 | |
1443 | + */ | |
1444 | + invoiceStatusText?: string; | |
1445 | + /** | |
1446 | + * @description | |
1442 | 1447 | * 开票日期 |
1443 | 1448 | * @format date-time |
1444 | 1449 | */ |
1445 | 1450 | invoicingTime?: string; |
1446 | 1451 | invoicingType?: string; |
1452 | + /** | |
1453 | + * @description | |
1454 | + * 开具类型 | |
1455 | + */ | |
1447 | 1456 | invoicingTypeText?: string; |
1448 | 1457 | logicDelete?: boolean; |
1449 | 1458 | /** |
... | ... | @@ -1472,6 +1481,10 @@ export interface InvoiceDto { |
1472 | 1481 | * 收款单位 |
1473 | 1482 | */ |
1474 | 1483 | payee?: string; |
1484 | + /** | |
1485 | + * @description | |
1486 | + * 收款单位 | |
1487 | + */ | |
1475 | 1488 | payeeText?: string; |
1476 | 1489 | /** |
1477 | 1490 | * @description |
... | ... | @@ -3172,6 +3185,39 @@ export interface QueryUseOldInvoicingDto { |
3172 | 3185 | total?: number; |
3173 | 3186 | } |
3174 | 3187 | |
3188 | +export interface QueryWarningOrderWhiteListDto { | |
3189 | + createByName?: string; | |
3190 | + /** @format int32 */ | |
3191 | + current?: number; | |
3192 | + /** @format int32 */ | |
3193 | + end?: number; | |
3194 | + /** @format int32 */ | |
3195 | + pageSize?: number; | |
3196 | + /** @format int32 */ | |
3197 | + start?: number; | |
3198 | + /** @format int32 */ | |
3199 | + total?: number; | |
3200 | +} | |
3201 | + | |
3202 | +export interface QueryWarningUserWhiteListDto { | |
3203 | + createByName?: string; | |
3204 | + /** @format date-time */ | |
3205 | + createTimeGe?: string; | |
3206 | + /** @format date-time */ | |
3207 | + createTimeLe?: string; | |
3208 | + /** @format int32 */ | |
3209 | + current?: number; | |
3210 | + /** @format int32 */ | |
3211 | + end?: number; | |
3212 | + /** @format int32 */ | |
3213 | + pageSize?: number; | |
3214 | + /** @format int32 */ | |
3215 | + start?: number; | |
3216 | + /** @format int32 */ | |
3217 | + total?: number; | |
3218 | + userNameLike?: string; | |
3219 | +} | |
3220 | + | |
3175 | 3221 | export interface QueryWriteOffRecordDto { |
3176 | 3222 | /** @format int64 */ |
3177 | 3223 | id?: number; |
... | ... | @@ -3634,6 +3680,9 @@ export interface SubOrder { |
3634 | 3680 | id?: number; |
3635 | 3681 | image?: string; |
3636 | 3682 | invoiceApplyUsername?: string; |
3683 | + invoiceConfirmStatus?: string; | |
3684 | + /** @format date-time */ | |
3685 | + invoiceConfirmStatusDatetime?: string; | |
3637 | 3686 | invoiceInformation?: string; |
3638 | 3687 | /** @format int64 */ |
3639 | 3688 | invoiceRecordId?: number; |
... | ... | @@ -3702,6 +3751,8 @@ export interface SubOrder { |
3702 | 3751 | reissueNotes?: string; |
3703 | 3752 | serialNumber?: string; |
3704 | 3753 | shippingWarehouse?: string; |
3754 | + /** @format date-time */ | |
3755 | + statusDatetime?: string; | |
3705 | 3756 | /** @format int64 */ |
3706 | 3757 | subOrderPayment?: number; |
3707 | 3758 | supplierName?: string; |
... | ... | @@ -4037,6 +4088,18 @@ export interface View { |
4037 | 4088 | contentType?: string; |
4038 | 4089 | } |
4039 | 4090 | |
4091 | +export interface WarningOrderWhiteListDto { | |
4092 | + /** @format int64 */ | |
4093 | + orderId?: number; | |
4094 | + salesCode?: string; | |
4095 | +} | |
4096 | + | |
4097 | +export interface WarningUserWhiteListDto { | |
4098 | + /** @format int64 */ | |
4099 | + id?: number; | |
4100 | + userName?: string; | |
4101 | +} | |
4102 | + | |
4040 | 4103 | /** |
4041 | 4104 | * @description |
4042 | 4105 | * 确认收货请求 | ... | ... |
src/services/request.ts
... | ... | @@ -63,6 +63,7 @@ import type { |
63 | 63 | MaterialUnitListRes, |
64 | 64 | MeasureUnitListRes, |
65 | 65 | MessageQueryDTO, |
66 | + ModelAndView, | |
66 | 67 | OrderAddVO, |
67 | 68 | OrderAuditLogQueryVO, |
68 | 69 | OrderBaseInfoQueryVO, |
... | ... | @@ -100,6 +101,8 @@ import type { |
100 | 101 | QueryProcureReturnBillDto, |
101 | 102 | QueryReportFormsDto, |
102 | 103 | QueryUseOldInvoicingDto, |
104 | + QueryWarningOrderWhiteListDto, | |
105 | + QueryWarningUserWhiteListDto, | |
103 | 106 | QueryWriteOffRecordDto, |
104 | 107 | ReissueInvoiceDto, |
105 | 108 | ResearchGroupAddRequest, |
... | ... | @@ -139,6 +142,8 @@ import type { |
139 | 142 | UserDetailRequest, |
140 | 143 | UserListRequest, |
141 | 144 | UserNowMoneyCheckRequest, |
145 | + WarningOrderWhiteListDto, | |
146 | + WarningUserWhiteListDto, | |
142 | 147 | } from './definition'; |
143 | 148 | |
144 | 149 | /** @description request parameter type for postAdminClientAddAdminClient */ |
... | ... | @@ -3232,9 +3237,7 @@ export interface GetErrorResponse { |
3232 | 3237 | * @description |
3233 | 3238 | * OK |
3234 | 3239 | */ |
3235 | - 200: { | |
3236 | - [propertyName: string]: any; | |
3237 | - }; | |
3240 | + 200: ModelAndView; | |
3238 | 3241 | /** |
3239 | 3242 | * @description |
3240 | 3243 | * Unauthorized |
... | ... | @@ -3255,9 +3258,9 @@ export interface GetErrorResponse { |
3255 | 3258 | export type GetErrorResponseSuccess = GetErrorResponse[200]; |
3256 | 3259 | /** |
3257 | 3260 | * @description |
3258 | - * error | |
3261 | + * errorHtml | |
3259 | 3262 | * @tags basic-error-controller |
3260 | - * @produces * | |
3263 | + * @produces text/html | |
3261 | 3264 | */ |
3262 | 3265 | export const getError = /* #__PURE__ */ (() => { |
3263 | 3266 | const method = 'get'; |
... | ... | @@ -3281,9 +3284,7 @@ export interface PutErrorResponse { |
3281 | 3284 | * @description |
3282 | 3285 | * OK |
3283 | 3286 | */ |
3284 | - 200: { | |
3285 | - [propertyName: string]: any; | |
3286 | - }; | |
3287 | + 200: ModelAndView; | |
3287 | 3288 | /** |
3288 | 3289 | * @description |
3289 | 3290 | * Created |
... | ... | @@ -3309,9 +3310,9 @@ export interface PutErrorResponse { |
3309 | 3310 | export type PutErrorResponseSuccess = PutErrorResponse[200]; |
3310 | 3311 | /** |
3311 | 3312 | * @description |
3312 | - * error | |
3313 | + * errorHtml | |
3313 | 3314 | * @tags basic-error-controller |
3314 | - * @produces * | |
3315 | + * @produces text/html | |
3315 | 3316 | * @consumes application/json |
3316 | 3317 | */ |
3317 | 3318 | export const putError = /* #__PURE__ */ (() => { |
... | ... | @@ -3336,9 +3337,7 @@ export interface PostErrorResponse { |
3336 | 3337 | * @description |
3337 | 3338 | * OK |
3338 | 3339 | */ |
3339 | - 200: { | |
3340 | - [propertyName: string]: any; | |
3341 | - }; | |
3340 | + 200: ModelAndView; | |
3342 | 3341 | /** |
3343 | 3342 | * @description |
3344 | 3343 | * Created |
... | ... | @@ -3364,9 +3363,9 @@ export interface PostErrorResponse { |
3364 | 3363 | export type PostErrorResponseSuccess = PostErrorResponse[200]; |
3365 | 3364 | /** |
3366 | 3365 | * @description |
3367 | - * error | |
3366 | + * errorHtml | |
3368 | 3367 | * @tags basic-error-controller |
3369 | - * @produces * | |
3368 | + * @produces text/html | |
3370 | 3369 | * @consumes application/json |
3371 | 3370 | */ |
3372 | 3371 | export const postError = /* #__PURE__ */ (() => { |
... | ... | @@ -3391,9 +3390,7 @@ export interface DeleteErrorResponse { |
3391 | 3390 | * @description |
3392 | 3391 | * OK |
3393 | 3392 | */ |
3394 | - 200: { | |
3395 | - [propertyName: string]: any; | |
3396 | - }; | |
3393 | + 200: ModelAndView; | |
3397 | 3394 | /** |
3398 | 3395 | * @description |
3399 | 3396 | * No Content |
... | ... | @@ -3414,9 +3411,9 @@ export interface DeleteErrorResponse { |
3414 | 3411 | export type DeleteErrorResponseSuccess = DeleteErrorResponse[200]; |
3415 | 3412 | /** |
3416 | 3413 | * @description |
3417 | - * error | |
3414 | + * errorHtml | |
3418 | 3415 | * @tags basic-error-controller |
3419 | - * @produces * | |
3416 | + * @produces text/html | |
3420 | 3417 | */ |
3421 | 3418 | export const deleteError = /* #__PURE__ */ (() => { |
3422 | 3419 | const method = 'delete'; |
... | ... | @@ -3440,9 +3437,7 @@ export interface OptionsErrorResponse { |
3440 | 3437 | * @description |
3441 | 3438 | * OK |
3442 | 3439 | */ |
3443 | - 200: { | |
3444 | - [propertyName: string]: any; | |
3445 | - }; | |
3440 | + 200: ModelAndView; | |
3446 | 3441 | /** |
3447 | 3442 | * @description |
3448 | 3443 | * No Content |
... | ... | @@ -3463,9 +3458,9 @@ export interface OptionsErrorResponse { |
3463 | 3458 | export type OptionsErrorResponseSuccess = OptionsErrorResponse[200]; |
3464 | 3459 | /** |
3465 | 3460 | * @description |
3466 | - * error | |
3461 | + * errorHtml | |
3467 | 3462 | * @tags basic-error-controller |
3468 | - * @produces * | |
3463 | + * @produces text/html | |
3469 | 3464 | * @consumes application/json |
3470 | 3465 | */ |
3471 | 3466 | export const optionsError = /* #__PURE__ */ (() => { |
... | ... | @@ -3490,9 +3485,7 @@ export interface HeadErrorResponse { |
3490 | 3485 | * @description |
3491 | 3486 | * OK |
3492 | 3487 | */ |
3493 | - 200: { | |
3494 | - [propertyName: string]: any; | |
3495 | - }; | |
3488 | + 200: ModelAndView; | |
3496 | 3489 | /** |
3497 | 3490 | * @description |
3498 | 3491 | * No Content |
... | ... | @@ -3513,9 +3506,9 @@ export interface HeadErrorResponse { |
3513 | 3506 | export type HeadErrorResponseSuccess = HeadErrorResponse[200]; |
3514 | 3507 | /** |
3515 | 3508 | * @description |
3516 | - * error | |
3509 | + * errorHtml | |
3517 | 3510 | * @tags basic-error-controller |
3518 | - * @produces * | |
3511 | + * @produces text/html | |
3519 | 3512 | * @consumes application/json |
3520 | 3513 | */ |
3521 | 3514 | export const headError = /* #__PURE__ */ (() => { |
... | ... | @@ -3540,9 +3533,7 @@ export interface PatchErrorResponse { |
3540 | 3533 | * @description |
3541 | 3534 | * OK |
3542 | 3535 | */ |
3543 | - 200: { | |
3544 | - [propertyName: string]: any; | |
3545 | - }; | |
3536 | + 200: ModelAndView; | |
3546 | 3537 | /** |
3547 | 3538 | * @description |
3548 | 3539 | * No Content |
... | ... | @@ -3563,9 +3554,9 @@ export interface PatchErrorResponse { |
3563 | 3554 | export type PatchErrorResponseSuccess = PatchErrorResponse[200]; |
3564 | 3555 | /** |
3565 | 3556 | * @description |
3566 | - * error | |
3557 | + * errorHtml | |
3567 | 3558 | * @tags basic-error-controller |
3568 | - * @produces * | |
3559 | + * @produces text/html | |
3569 | 3560 | * @consumes application/json |
3570 | 3561 | */ |
3571 | 3562 | export const patchError = /* #__PURE__ */ (() => { |
... | ... | @@ -14438,6 +14429,77 @@ export const postServiceInvoiceExportInvoiceRecords = /* #__PURE__ */ (() => { |
14438 | 14429 | return request; |
14439 | 14430 | })(); |
14440 | 14431 | |
14432 | +/** @description request parameter type for postServiceInvoiceExportInvoices */ | |
14433 | +export interface PostServiceInvoiceExportInvoicesOption { | |
14434 | + /** | |
14435 | + * @description | |
14436 | + * dto | |
14437 | + */ | |
14438 | + body: { | |
14439 | + /** | |
14440 | + @description | |
14441 | + dto */ | |
14442 | + dto: Dto; | |
14443 | + }; | |
14444 | +} | |
14445 | + | |
14446 | +/** @description response type for postServiceInvoiceExportInvoices */ | |
14447 | +export interface PostServiceInvoiceExportInvoicesResponse { | |
14448 | + /** | |
14449 | + * @description | |
14450 | + * OK | |
14451 | + */ | |
14452 | + 200: any; | |
14453 | + /** | |
14454 | + * @description | |
14455 | + * Created | |
14456 | + */ | |
14457 | + 201: any; | |
14458 | + /** | |
14459 | + * @description | |
14460 | + * Unauthorized | |
14461 | + */ | |
14462 | + 401: any; | |
14463 | + /** | |
14464 | + * @description | |
14465 | + * Forbidden | |
14466 | + */ | |
14467 | + 403: any; | |
14468 | + /** | |
14469 | + * @description | |
14470 | + * Not Found | |
14471 | + */ | |
14472 | + 404: any; | |
14473 | +} | |
14474 | + | |
14475 | +export type PostServiceInvoiceExportInvoicesResponseSuccess = | |
14476 | + PostServiceInvoiceExportInvoicesResponse[200]; | |
14477 | +/** | |
14478 | + * @description | |
14479 | + * 导出发票 | |
14480 | + * @tags 发票 | |
14481 | + * @produces * | |
14482 | + * @consumes application/json | |
14483 | + */ | |
14484 | +export const postServiceInvoiceExportInvoices = /* #__PURE__ */ (() => { | |
14485 | + const method = 'post'; | |
14486 | + const url = '/service/invoice/exportInvoices'; | |
14487 | + function request( | |
14488 | + option: PostServiceInvoiceExportInvoicesOption, | |
14489 | + ): Promise<PostServiceInvoiceExportInvoicesResponseSuccess> { | |
14490 | + return requester(request.url, { | |
14491 | + method: request.method, | |
14492 | + ...option, | |
14493 | + }) as unknown as Promise<PostServiceInvoiceExportInvoicesResponseSuccess>; | |
14494 | + } | |
14495 | + | |
14496 | + /** http method */ | |
14497 | + request.method = method; | |
14498 | + /** request url */ | |
14499 | + request.url = url; | |
14500 | + return request; | |
14501 | +})(); | |
14502 | + | |
14441 | 14503 | /** @description request parameter type for postServiceInvoiceFindInvoice */ |
14442 | 14504 | export interface PostServiceInvoiceFindInvoiceOption { |
14443 | 14505 | /** |
... | ... | @@ -15902,6 +15964,148 @@ export const postServiceOrderAddOrder = /* #__PURE__ */ (() => { |
15902 | 15964 | return request; |
15903 | 15965 | })(); |
15904 | 15966 | |
15967 | +/** @description request parameter type for postServiceOrderAddWarningOrderWhiteList */ | |
15968 | +export interface PostServiceOrderAddWarningOrderWhiteListOption { | |
15969 | + /** | |
15970 | + * @description | |
15971 | + * dto | |
15972 | + */ | |
15973 | + body: { | |
15974 | + /** | |
15975 | + @description | |
15976 | + dto */ | |
15977 | + dto: WarningOrderWhiteListDto; | |
15978 | + }; | |
15979 | +} | |
15980 | + | |
15981 | +/** @description response type for postServiceOrderAddWarningOrderWhiteList */ | |
15982 | +export interface PostServiceOrderAddWarningOrderWhiteListResponse { | |
15983 | + /** | |
15984 | + * @description | |
15985 | + * OK | |
15986 | + */ | |
15987 | + 200: ServerResult; | |
15988 | + /** | |
15989 | + * @description | |
15990 | + * Created | |
15991 | + */ | |
15992 | + 201: any; | |
15993 | + /** | |
15994 | + * @description | |
15995 | + * Unauthorized | |
15996 | + */ | |
15997 | + 401: any; | |
15998 | + /** | |
15999 | + * @description | |
16000 | + * Forbidden | |
16001 | + */ | |
16002 | + 403: any; | |
16003 | + /** | |
16004 | + * @description | |
16005 | + * Not Found | |
16006 | + */ | |
16007 | + 404: any; | |
16008 | +} | |
16009 | + | |
16010 | +export type PostServiceOrderAddWarningOrderWhiteListResponseSuccess = | |
16011 | + PostServiceOrderAddWarningOrderWhiteListResponse[200]; | |
16012 | +/** | |
16013 | + * @description | |
16014 | + * 新增订单预警白名单 | |
16015 | + * @tags 内部订单 | |
16016 | + * @produces * | |
16017 | + * @consumes application/json | |
16018 | + */ | |
16019 | +export const postServiceOrderAddWarningOrderWhiteList = /* #__PURE__ */ (() => { | |
16020 | + const method = 'post'; | |
16021 | + const url = '/service/order/addWarningOrderWhiteList'; | |
16022 | + function request( | |
16023 | + option: PostServiceOrderAddWarningOrderWhiteListOption, | |
16024 | + ): Promise<PostServiceOrderAddWarningOrderWhiteListResponseSuccess> { | |
16025 | + return requester(request.url, { | |
16026 | + method: request.method, | |
16027 | + ...option, | |
16028 | + }) as unknown as Promise<PostServiceOrderAddWarningOrderWhiteListResponseSuccess>; | |
16029 | + } | |
16030 | + | |
16031 | + /** http method */ | |
16032 | + request.method = method; | |
16033 | + /** request url */ | |
16034 | + request.url = url; | |
16035 | + return request; | |
16036 | +})(); | |
16037 | + | |
16038 | +/** @description request parameter type for postServiceOrderAddWarningUserWhiteList */ | |
16039 | +export interface PostServiceOrderAddWarningUserWhiteListOption { | |
16040 | + /** | |
16041 | + * @description | |
16042 | + * dto | |
16043 | + */ | |
16044 | + body: { | |
16045 | + /** | |
16046 | + @description | |
16047 | + dto */ | |
16048 | + dto: WarningUserWhiteListDto; | |
16049 | + }; | |
16050 | +} | |
16051 | + | |
16052 | +/** @description response type for postServiceOrderAddWarningUserWhiteList */ | |
16053 | +export interface PostServiceOrderAddWarningUserWhiteListResponse { | |
16054 | + /** | |
16055 | + * @description | |
16056 | + * OK | |
16057 | + */ | |
16058 | + 200: ServerResult; | |
16059 | + /** | |
16060 | + * @description | |
16061 | + * Created | |
16062 | + */ | |
16063 | + 201: any; | |
16064 | + /** | |
16065 | + * @description | |
16066 | + * Unauthorized | |
16067 | + */ | |
16068 | + 401: any; | |
16069 | + /** | |
16070 | + * @description | |
16071 | + * Forbidden | |
16072 | + */ | |
16073 | + 403: any; | |
16074 | + /** | |
16075 | + * @description | |
16076 | + * Not Found | |
16077 | + */ | |
16078 | + 404: any; | |
16079 | +} | |
16080 | + | |
16081 | +export type PostServiceOrderAddWarningUserWhiteListResponseSuccess = | |
16082 | + PostServiceOrderAddWarningUserWhiteListResponse[200]; | |
16083 | +/** | |
16084 | + * @description | |
16085 | + * 新增账号预警白名单 | |
16086 | + * @tags 内部订单 | |
16087 | + * @produces * | |
16088 | + * @consumes application/json | |
16089 | + */ | |
16090 | +export const postServiceOrderAddWarningUserWhiteList = /* #__PURE__ */ (() => { | |
16091 | + const method = 'post'; | |
16092 | + const url = '/service/order/addWarningUserWhiteList'; | |
16093 | + function request( | |
16094 | + option: PostServiceOrderAddWarningUserWhiteListOption, | |
16095 | + ): Promise<PostServiceOrderAddWarningUserWhiteListResponseSuccess> { | |
16096 | + return requester(request.url, { | |
16097 | + method: request.method, | |
16098 | + ...option, | |
16099 | + }) as unknown as Promise<PostServiceOrderAddWarningUserWhiteListResponseSuccess>; | |
16100 | + } | |
16101 | + | |
16102 | + /** http method */ | |
16103 | + request.method = method; | |
16104 | + /** request url */ | |
16105 | + request.url = url; | |
16106 | + return request; | |
16107 | +})(); | |
16108 | + | |
15905 | 16109 | /** @description request parameter type for postServiceOrderAfterSalesCheck */ |
15906 | 16110 | export interface PostServiceOrderAfterSalesCheckOption { |
15907 | 16111 | /** |
... | ... | @@ -16477,7 +16681,7 @@ export interface PostServiceOrderConfirmInvoiceOption { |
16477 | 16681 | * @description |
16478 | 16682 | * subIds |
16479 | 16683 | */ |
16480 | - query: { | |
16684 | + body: { | |
16481 | 16685 | /** |
16482 | 16686 | @description |
16483 | 16687 | subIds */ |
... | ... | @@ -16627,6 +16831,150 @@ export const postServiceOrderConfirmReceipt = /* #__PURE__ */ (() => { |
16627 | 16831 | return request; |
16628 | 16832 | })(); |
16629 | 16833 | |
16834 | +/** @description request parameter type for postServiceOrderDeleteWarningOrderWhiteList */ | |
16835 | +export interface PostServiceOrderDeleteWarningOrderWhiteListOption { | |
16836 | + /** | |
16837 | + * @description | |
16838 | + * id | |
16839 | + */ | |
16840 | + body?: { | |
16841 | + /** | |
16842 | + @description | |
16843 | + id */ | |
16844 | + id?: number; | |
16845 | + }; | |
16846 | +} | |
16847 | + | |
16848 | +/** @description response type for postServiceOrderDeleteWarningOrderWhiteList */ | |
16849 | +export interface PostServiceOrderDeleteWarningOrderWhiteListResponse { | |
16850 | + /** | |
16851 | + * @description | |
16852 | + * OK | |
16853 | + */ | |
16854 | + 200: ServerResult; | |
16855 | + /** | |
16856 | + * @description | |
16857 | + * Created | |
16858 | + */ | |
16859 | + 201: any; | |
16860 | + /** | |
16861 | + * @description | |
16862 | + * Unauthorized | |
16863 | + */ | |
16864 | + 401: any; | |
16865 | + /** | |
16866 | + * @description | |
16867 | + * Forbidden | |
16868 | + */ | |
16869 | + 403: any; | |
16870 | + /** | |
16871 | + * @description | |
16872 | + * Not Found | |
16873 | + */ | |
16874 | + 404: any; | |
16875 | +} | |
16876 | + | |
16877 | +export type PostServiceOrderDeleteWarningOrderWhiteListResponseSuccess = | |
16878 | + PostServiceOrderDeleteWarningOrderWhiteListResponse[200]; | |
16879 | +/** | |
16880 | + * @description | |
16881 | + * 删除订单预警白名单 | |
16882 | + * @tags 内部订单 | |
16883 | + * @produces * | |
16884 | + * @consumes application/json | |
16885 | + */ | |
16886 | +export const postServiceOrderDeleteWarningOrderWhiteList = | |
16887 | + /* #__PURE__ */ (() => { | |
16888 | + const method = 'post'; | |
16889 | + const url = '/service/order/deleteWarningOrderWhiteList'; | |
16890 | + function request( | |
16891 | + option?: PostServiceOrderDeleteWarningOrderWhiteListOption, | |
16892 | + ): Promise<PostServiceOrderDeleteWarningOrderWhiteListResponseSuccess> { | |
16893 | + return requester(request.url, { | |
16894 | + method: request.method, | |
16895 | + ...option, | |
16896 | + }) as unknown as Promise<PostServiceOrderDeleteWarningOrderWhiteListResponseSuccess>; | |
16897 | + } | |
16898 | + | |
16899 | + /** http method */ | |
16900 | + request.method = method; | |
16901 | + /** request url */ | |
16902 | + request.url = url; | |
16903 | + return request; | |
16904 | + })(); | |
16905 | + | |
16906 | +/** @description request parameter type for postServiceOrderDeleteWarningUserWhiteList */ | |
16907 | +export interface PostServiceOrderDeleteWarningUserWhiteListOption { | |
16908 | + /** | |
16909 | + * @description | |
16910 | + * id | |
16911 | + */ | |
16912 | + body?: { | |
16913 | + /** | |
16914 | + @description | |
16915 | + id */ | |
16916 | + id?: number; | |
16917 | + }; | |
16918 | +} | |
16919 | + | |
16920 | +/** @description response type for postServiceOrderDeleteWarningUserWhiteList */ | |
16921 | +export interface PostServiceOrderDeleteWarningUserWhiteListResponse { | |
16922 | + /** | |
16923 | + * @description | |
16924 | + * OK | |
16925 | + */ | |
16926 | + 200: ServerResult; | |
16927 | + /** | |
16928 | + * @description | |
16929 | + * Created | |
16930 | + */ | |
16931 | + 201: any; | |
16932 | + /** | |
16933 | + * @description | |
16934 | + * Unauthorized | |
16935 | + */ | |
16936 | + 401: any; | |
16937 | + /** | |
16938 | + * @description | |
16939 | + * Forbidden | |
16940 | + */ | |
16941 | + 403: any; | |
16942 | + /** | |
16943 | + * @description | |
16944 | + * Not Found | |
16945 | + */ | |
16946 | + 404: any; | |
16947 | +} | |
16948 | + | |
16949 | +export type PostServiceOrderDeleteWarningUserWhiteListResponseSuccess = | |
16950 | + PostServiceOrderDeleteWarningUserWhiteListResponse[200]; | |
16951 | +/** | |
16952 | + * @description | |
16953 | + * 删除账号预警白名单 | |
16954 | + * @tags 内部订单 | |
16955 | + * @produces * | |
16956 | + * @consumes application/json | |
16957 | + */ | |
16958 | +export const postServiceOrderDeleteWarningUserWhiteList = | |
16959 | + /* #__PURE__ */ (() => { | |
16960 | + const method = 'post'; | |
16961 | + const url = '/service/order/deleteWarningUserWhiteList'; | |
16962 | + function request( | |
16963 | + option?: PostServiceOrderDeleteWarningUserWhiteListOption, | |
16964 | + ): Promise<PostServiceOrderDeleteWarningUserWhiteListResponseSuccess> { | |
16965 | + return requester(request.url, { | |
16966 | + method: request.method, | |
16967 | + ...option, | |
16968 | + }) as unknown as Promise<PostServiceOrderDeleteWarningUserWhiteListResponseSuccess>; | |
16969 | + } | |
16970 | + | |
16971 | + /** http method */ | |
16972 | + request.method = method; | |
16973 | + /** request url */ | |
16974 | + request.url = url; | |
16975 | + return request; | |
16976 | + })(); | |
16977 | + | |
16630 | 16978 | /** @description request parameter type for postServiceOrderEditOrder */ |
16631 | 16979 | export interface PostServiceOrderEditOrderOption { |
16632 | 16980 | /** |
... | ... | @@ -20696,6 +21044,202 @@ export const postServiceOrderViewImages = /* #__PURE__ */ (() => { |
20696 | 21044 | return request; |
20697 | 21045 | })(); |
20698 | 21046 | |
21047 | +/** @description response type for postServiceOrderWarningOrderStatistics */ | |
21048 | +export interface PostServiceOrderWarningOrderStatisticsResponse { | |
21049 | + /** | |
21050 | + * @description | |
21051 | + * OK | |
21052 | + */ | |
21053 | + 200: ServerResult; | |
21054 | + /** | |
21055 | + * @description | |
21056 | + * Created | |
21057 | + */ | |
21058 | + 201: any; | |
21059 | + /** | |
21060 | + * @description | |
21061 | + * Unauthorized | |
21062 | + */ | |
21063 | + 401: any; | |
21064 | + /** | |
21065 | + * @description | |
21066 | + * Forbidden | |
21067 | + */ | |
21068 | + 403: any; | |
21069 | + /** | |
21070 | + * @description | |
21071 | + * Not Found | |
21072 | + */ | |
21073 | + 404: any; | |
21074 | +} | |
21075 | + | |
21076 | +export type PostServiceOrderWarningOrderStatisticsResponseSuccess = | |
21077 | + PostServiceOrderWarningOrderStatisticsResponse[200]; | |
21078 | +/** | |
21079 | + * @description | |
21080 | + * 查询预警订单数据 | |
21081 | + * @tags 内部订单 | |
21082 | + * @produces * | |
21083 | + * @consumes application/json | |
21084 | + */ | |
21085 | +export const postServiceOrderWarningOrderStatistics = /* #__PURE__ */ (() => { | |
21086 | + const method = 'post'; | |
21087 | + const url = '/service/order/warningOrderStatistics'; | |
21088 | + function request(): Promise<PostServiceOrderWarningOrderStatisticsResponseSuccess> { | |
21089 | + return requester(request.url, { | |
21090 | + method: request.method, | |
21091 | + }) as unknown as Promise<PostServiceOrderWarningOrderStatisticsResponseSuccess>; | |
21092 | + } | |
21093 | + | |
21094 | + /** http method */ | |
21095 | + request.method = method; | |
21096 | + /** request url */ | |
21097 | + request.url = url; | |
21098 | + return request; | |
21099 | +})(); | |
21100 | + | |
21101 | +/** @description request parameter type for postServiceOrderWarningOrderWhiteLists */ | |
21102 | +export interface PostServiceOrderWarningOrderWhiteListsOption { | |
21103 | + /** | |
21104 | + * @description | |
21105 | + * query | |
21106 | + */ | |
21107 | + body: { | |
21108 | + /** | |
21109 | + @description | |
21110 | + query */ | |
21111 | + query: QueryWarningOrderWhiteListDto; | |
21112 | + }; | |
21113 | +} | |
21114 | + | |
21115 | +/** @description response type for postServiceOrderWarningOrderWhiteLists */ | |
21116 | +export interface PostServiceOrderWarningOrderWhiteListsResponse { | |
21117 | + /** | |
21118 | + * @description | |
21119 | + * OK | |
21120 | + */ | |
21121 | + 200: ServerResult; | |
21122 | + /** | |
21123 | + * @description | |
21124 | + * Created | |
21125 | + */ | |
21126 | + 201: any; | |
21127 | + /** | |
21128 | + * @description | |
21129 | + * Unauthorized | |
21130 | + */ | |
21131 | + 401: any; | |
21132 | + /** | |
21133 | + * @description | |
21134 | + * Forbidden | |
21135 | + */ | |
21136 | + 403: any; | |
21137 | + /** | |
21138 | + * @description | |
21139 | + * Not Found | |
21140 | + */ | |
21141 | + 404: any; | |
21142 | +} | |
21143 | + | |
21144 | +export type PostServiceOrderWarningOrderWhiteListsResponseSuccess = | |
21145 | + PostServiceOrderWarningOrderWhiteListsResponse[200]; | |
21146 | +/** | |
21147 | + * @description | |
21148 | + * 查询订单预警白名单 | |
21149 | + * @tags 内部订单 | |
21150 | + * @produces * | |
21151 | + * @consumes application/json | |
21152 | + */ | |
21153 | +export const postServiceOrderWarningOrderWhiteLists = /* #__PURE__ */ (() => { | |
21154 | + const method = 'post'; | |
21155 | + const url = '/service/order/warningOrderWhiteLists'; | |
21156 | + function request( | |
21157 | + option: PostServiceOrderWarningOrderWhiteListsOption, | |
21158 | + ): Promise<PostServiceOrderWarningOrderWhiteListsResponseSuccess> { | |
21159 | + return requester(request.url, { | |
21160 | + method: request.method, | |
21161 | + ...option, | |
21162 | + }) as unknown as Promise<PostServiceOrderWarningOrderWhiteListsResponseSuccess>; | |
21163 | + } | |
21164 | + | |
21165 | + /** http method */ | |
21166 | + request.method = method; | |
21167 | + /** request url */ | |
21168 | + request.url = url; | |
21169 | + return request; | |
21170 | +})(); | |
21171 | + | |
21172 | +/** @description request parameter type for postServiceOrderWarningUserWhiteLists */ | |
21173 | +export interface PostServiceOrderWarningUserWhiteListsOption { | |
21174 | + /** | |
21175 | + * @description | |
21176 | + * query | |
21177 | + */ | |
21178 | + body: { | |
21179 | + /** | |
21180 | + @description | |
21181 | + query */ | |
21182 | + query: QueryWarningUserWhiteListDto; | |
21183 | + }; | |
21184 | +} | |
21185 | + | |
21186 | +/** @description response type for postServiceOrderWarningUserWhiteLists */ | |
21187 | +export interface PostServiceOrderWarningUserWhiteListsResponse { | |
21188 | + /** | |
21189 | + * @description | |
21190 | + * OK | |
21191 | + */ | |
21192 | + 200: ServerResult; | |
21193 | + /** | |
21194 | + * @description | |
21195 | + * Created | |
21196 | + */ | |
21197 | + 201: any; | |
21198 | + /** | |
21199 | + * @description | |
21200 | + * Unauthorized | |
21201 | + */ | |
21202 | + 401: any; | |
21203 | + /** | |
21204 | + * @description | |
21205 | + * Forbidden | |
21206 | + */ | |
21207 | + 403: any; | |
21208 | + /** | |
21209 | + * @description | |
21210 | + * Not Found | |
21211 | + */ | |
21212 | + 404: any; | |
21213 | +} | |
21214 | + | |
21215 | +export type PostServiceOrderWarningUserWhiteListsResponseSuccess = | |
21216 | + PostServiceOrderWarningUserWhiteListsResponse[200]; | |
21217 | +/** | |
21218 | + * @description | |
21219 | + * 查询账号预警白名单 | |
21220 | + * @tags 内部订单 | |
21221 | + * @produces * | |
21222 | + * @consumes application/json | |
21223 | + */ | |
21224 | +export const postServiceOrderWarningUserWhiteLists = /* #__PURE__ */ (() => { | |
21225 | + const method = 'post'; | |
21226 | + const url = '/service/order/warningUserWhiteLists'; | |
21227 | + function request( | |
21228 | + option: PostServiceOrderWarningUserWhiteListsOption, | |
21229 | + ): Promise<PostServiceOrderWarningUserWhiteListsResponseSuccess> { | |
21230 | + return requester(request.url, { | |
21231 | + method: request.method, | |
21232 | + ...option, | |
21233 | + }) as unknown as Promise<PostServiceOrderWarningUserWhiteListsResponseSuccess>; | |
21234 | + } | |
21235 | + | |
21236 | + /** http method */ | |
21237 | + request.method = method; | |
21238 | + /** request url */ | |
21239 | + request.url = url; | |
21240 | + return request; | |
21241 | +})(); | |
21242 | + | |
20699 | 21243 | /** @description request parameter type for getServiceToggles */ |
20700 | 21244 | export interface GetServiceTogglesOption { |
20701 | 21245 | /** @format date-time */ | ... | ... |