interface.ts 2.6 KB

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