interface.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* eslint-disable */
  2. export enum ServiceTypeKeyEnum {
  3. PC = 'PC',
  4. Pangea = 'Pangea',
  5. PangeaTaxReimbursement = 'PangeaTaxReimbursement',
  6. AZYTaxReimbursement = 'AZYTaxReimbursement',
  7. FOTTaxReimbursement = 'FOTTaxReimbursement',
  8. PrimePacCommon = 'PrimePacCommon',
  9. PrimePacSoft = 'PrimePacSoft',
  10. }
  11. export type TypeService = {
  12. [key in ServiceTypeKeyEnum]: (
  13. | string
  14. | {
  15. value: string
  16. }
  17. )[]
  18. }
  19. export interface ISelectItem {
  20. label: string | number
  21. }
  22. export interface IProduct {
  23. label: string
  24. value: string
  25. [key: string]: number | string
  26. }
  27. export interface IProductItem {
  28. name: string
  29. desc: string
  30. id: string
  31. quantity: number | string
  32. rate: number | string
  33. requirement: string
  34. amount: number | string
  35. discount: number | string
  36. candidate: IProduct[]
  37. [key: string]: number | string | IProduct | IProduct[]
  38. }
  39. export interface IForm {
  40. Order_Type: string
  41. Artwork_Link: string
  42. Currency: string
  43. PO_Date: string
  44. Supplier_Payment_Terms: string
  45. Title: string
  46. field9: string
  47. field7: string
  48. field8: string
  49. field6: string
  50. productList: IProductItem[]
  51. field12: string
  52. field13: string
  53. field10: string
  54. field11: string
  55. field4: string
  56. field5: string
  57. saleOrderId: string
  58. Delivery_Details: string
  59. // 用了处理给接口发送数据前的包装格式
  60. Related_Sales_Order?: any
  61. Product_Details?: any
  62. Status?: string
  63. Subject?: string
  64. Sub_Total?: number
  65. Total_Taxes?: number
  66. Total_Discount?: number
  67. Adjustment?: number
  68. Grand_Total?: number
  69. Created_By?: any
  70. Vendor_Name?: any
  71. currentVendor?: string // 仅前端界面用到, API接口的字段是Vendor_Name
  72. Reference?: string // 用在 表单项:订单号 显示
  73. }
  74. export interface IVendorItem {
  75. value: string
  76. label: string
  77. Primary_Contact_name: string
  78. PDF_display: string
  79. PDF_display2: string
  80. Payment_Terms: string
  81. [x: string]: string | null
  82. }
  83. export interface IRecommandVendor {
  84. id: string
  85. name: string
  86. }
  87. export interface ICompanyItem {
  88. id: string
  89. name: string
  90. addr: string
  91. phone: string
  92. label: string
  93. signPath: string
  94. fax?: string
  95. taxReimbursement?: boolean
  96. }
  97. interface IRole {
  98. name: string
  99. id: number
  100. }
  101. export interface IUser {
  102. id: number
  103. email: string
  104. users_id: string
  105. full_name: string
  106. Organization: string
  107. role: IRole
  108. [x: string]: string | number | object
  109. }