interface.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. Warehouse?: string
  38. CF_Product_Type?: string
  39. [key: string]: number | string | IProduct | IProduct[] | undefined
  40. }
  41. export interface IForm {
  42. Order_Type: string
  43. Artwork_Link: string
  44. Currency: string
  45. PO_Date: string
  46. Supplier_Payment_Terms: string
  47. Title: string
  48. field9: string
  49. field7: string
  50. field8: string
  51. field6: string
  52. productList: IProductItem[]
  53. field12: string
  54. field13: string
  55. field10: string
  56. field11: string
  57. field4: string
  58. field5: string
  59. saleOrderId: string
  60. Delivery_Details: string
  61. // 用了处理给接口发送数据前的包装格式
  62. Related_Sales_Order?: any
  63. Product_Details?: any
  64. Status?: string
  65. Subject?: string
  66. Sub_Total?: number
  67. Total_Taxes?: number
  68. Total_Discount?: number
  69. Adjustment?: number
  70. Grand_Total?: number
  71. Created_By?: any
  72. Vendor_Name?: any
  73. currentVendor?: string // 仅前端界面用到, API接口的字段是Vendor_Name
  74. Reference?: string // 用在 表单项:订单号 显示
  75. Warehouse?: string
  76. CF_Product_Type?: string
  77. }
  78. export interface IVendorItem {
  79. value: string
  80. label: string
  81. Primary_Contact_name: string
  82. PDF_display: string
  83. PDF_display2: string
  84. Payment_Terms: string
  85. High_Risk_Supplier: Boolean
  86. [x: string]: string | Boolean | null
  87. }
  88. export interface IRecommandVendor {
  89. id: string
  90. name: string
  91. }
  92. export interface ICompanyItem {
  93. id: string
  94. name: string
  95. addr: string
  96. phone: string
  97. label: string
  98. signPath: string
  99. fax?: string
  100. taxReimbursement?: boolean
  101. }
  102. interface IRole {
  103. name: string
  104. id: number
  105. }
  106. export interface IUser {
  107. id: number
  108. email: string
  109. users_id: string
  110. full_name: string
  111. Organization: string
  112. role: IRole
  113. [x: string]: string | number | object
  114. }