Commit b43e2ada8372c764aebed30542b4fe68695e5a26
1 parent
2d895a5d
feat: 开票功能开发
Showing
3 changed files
with
61 additions
and
11 deletions
src/pages/Invoice/components/InvoiceRecordDetailModal.tsx
@@ -210,7 +210,7 @@ export default ({ id }) => { | @@ -210,7 +210,7 @@ export default ({ id }) => { | ||
210 | /> | 210 | /> |
211 | <ProFormFieldSet | 211 | <ProFormFieldSet |
212 | name="list" | 212 | name="list" |
213 | - label="订单号" | 213 | + label="子订单号" |
214 | transform={(value: any) => ({ | 214 | transform={(value: any) => ({ |
215 | list: value, | 215 | list: value, |
216 | startTime: value[0], | 216 | startTime: value[0], |
src/pages/Invoice/index.tsx
@@ -14,6 +14,7 @@ import { | @@ -14,6 +14,7 @@ import { | ||
14 | postServiceBankStatementDeleteBankStatement, | 14 | postServiceBankStatementDeleteBankStatement, |
15 | postServiceBankStatementEditBankStatement, | 15 | postServiceBankStatementEditBankStatement, |
16 | postServiceBankStatementQueryBankStatement, | 16 | postServiceBankStatementQueryBankStatement, |
17 | + postServiceConstAfterInvoicingInvoiceRecordStatus, | ||
17 | postServiceConstBeforeInvoicingInvoiceRecordStatus, | 18 | postServiceConstBeforeInvoicingInvoiceRecordStatus, |
18 | postServiceConstInvoiceType, | 19 | postServiceConstInvoiceType, |
19 | postServiceConstInvoicingType, | 20 | postServiceConstInvoicingType, |
@@ -426,15 +427,9 @@ const InvoicePage = () => { | @@ -426,15 +427,9 @@ const InvoicePage = () => { | ||
426 | filters: true, | 427 | filters: true, |
427 | onFilter: true, | 428 | onFilter: true, |
428 | hideInTable: true, | 429 | hideInTable: true, |
429 | - valueEnum: { | ||
430 | - yes: { | ||
431 | - text: '开票中', | ||
432 | - status: true, | ||
433 | - }, | ||
434 | - no: { | ||
435 | - text: '已完成', | ||
436 | - status: false, | ||
437 | - }, | 430 | + request: async () => { |
431 | + const res = await postServiceConstAfterInvoicingInvoiceRecordStatus(); | ||
432 | + return enumToSelect(res.data); | ||
438 | }, | 433 | }, |
439 | }, | 434 | }, |
440 | { | 435 | { |
src/services/request.ts
@@ -8400,6 +8400,61 @@ export const postServiceBankStatementQueryBankStatement = | @@ -8400,6 +8400,61 @@ export const postServiceBankStatementQueryBankStatement = | ||
8400 | return request; | 8400 | return request; |
8401 | })(); | 8401 | })(); |
8402 | 8402 | ||
8403 | +/** @description response type for postServiceConstAfterInvoicingInvoiceRecordStatus */ | ||
8404 | +export interface PostServiceConstAfterInvoicingInvoiceRecordStatusResponse { | ||
8405 | + /** | ||
8406 | + * @description | ||
8407 | + * OK | ||
8408 | + */ | ||
8409 | + 200: ServerResult; | ||
8410 | + /** | ||
8411 | + * @description | ||
8412 | + * Created | ||
8413 | + */ | ||
8414 | + 201: any; | ||
8415 | + /** | ||
8416 | + * @description | ||
8417 | + * Unauthorized | ||
8418 | + */ | ||
8419 | + 401: any; | ||
8420 | + /** | ||
8421 | + * @description | ||
8422 | + * Forbidden | ||
8423 | + */ | ||
8424 | + 403: any; | ||
8425 | + /** | ||
8426 | + * @description | ||
8427 | + * Not Found | ||
8428 | + */ | ||
8429 | + 404: any; | ||
8430 | +} | ||
8431 | + | ||
8432 | +export type PostServiceConstAfterInvoicingInvoiceRecordStatusResponseSuccess = | ||
8433 | + PostServiceConstAfterInvoicingInvoiceRecordStatusResponse[200]; | ||
8434 | +/** | ||
8435 | + * @description | ||
8436 | + * 开票后的开票状态 | ||
8437 | + * @tags front-const-controller | ||
8438 | + * @produces * | ||
8439 | + * @consumes application/json | ||
8440 | + */ | ||
8441 | +export const postServiceConstAfterInvoicingInvoiceRecordStatus = | ||
8442 | + /* #__PURE__ */ (() => { | ||
8443 | + const method = 'post'; | ||
8444 | + const url = '/service/const/afterInvoicingInvoiceRecordStatus'; | ||
8445 | + function request(): Promise<PostServiceConstAfterInvoicingInvoiceRecordStatusResponseSuccess> { | ||
8446 | + return requester(request.url, { | ||
8447 | + method: request.method, | ||
8448 | + }) as unknown as Promise<PostServiceConstAfterInvoicingInvoiceRecordStatusResponseSuccess>; | ||
8449 | + } | ||
8450 | + | ||
8451 | + /** http method */ | ||
8452 | + request.method = method; | ||
8453 | + /** request url */ | ||
8454 | + request.url = url; | ||
8455 | + return request; | ||
8456 | + })(); | ||
8457 | + | ||
8403 | /** @description response type for postServiceConstAfterInvoicingStatus */ | 8458 | /** @description response type for postServiceConstAfterInvoicingStatus */ |
8404 | export interface PostServiceConstAfterInvoicingStatusResponse { | 8459 | export interface PostServiceConstAfterInvoicingStatusResponse { |
8405 | /** | 8460 | /** |
@@ -8487,7 +8542,7 @@ export type PostServiceConstBeforeInvoicingInvoiceRecordStatusResponseSuccess = | @@ -8487,7 +8542,7 @@ export type PostServiceConstBeforeInvoicingInvoiceRecordStatusResponseSuccess = | ||
8487 | PostServiceConstBeforeInvoicingInvoiceRecordStatusResponse[200]; | 8542 | PostServiceConstBeforeInvoicingInvoiceRecordStatusResponse[200]; |
8488 | /** | 8543 | /** |
8489 | * @description | 8544 | * @description |
8490 | - * 开具类型 | 8545 | + * 开票前的开票状态 |
8491 | * @tags front-const-controller | 8546 | * @tags front-const-controller |
8492 | * @produces * | 8547 | * @produces * |
8493 | * @consumes application/json | 8548 | * @consumes application/json |