You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

data.ts 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. interface StepType {
  2. title : String,
  3. content : String
  4. }
  5. export const steps : StepType[] = [
  6. {
  7. title: '基本资料',
  8. content: 'First-content',
  9. },
  10. {
  11. title: '上传相关图片',
  12. content: 'Second-content',
  13. },
  14. {
  15. title: '注册人资料',
  16. content: 'Last-content',
  17. }
  18. ];
  19. export let dataForm = {
  20. full_name: '',
  21. registration_number: '',
  22. establishment_date: '',
  23. contact: '',
  24. phone: '',
  25. mobile: '',
  26. email: '',
  27. fax: '',
  28. website: '',
  29. province: 0,
  30. city: 0,
  31. district: 0,
  32. street: 0,
  33. address: '',
  34. industry: 0,
  35. nature: 0,
  36. scale: 0,
  37. introduction: '',
  38. photo: '',
  39. photo_status: 1,
  40. license_path: '',
  41. license_status: 1,
  42. login_pwd: '',
  43. company_photos: [],
  44. longitude: 0,
  45. latitude: 0
  46. }
  47. export let otherDataForm = {
  48. chengli_date: '',
  49. content: '',
  50. photo_img: '',
  51. license_img: '',
  52. company_photo_img: '',
  53. company_photos: [],
  54. company_address_cascader: '',
  55. company_industry_cascader: '',
  56. company_nature_cascader: '',
  57. }
  58. export const reset = () => {
  59. dataForm = {
  60. full_name: '',
  61. registration_number: '',
  62. establishment_date: '',
  63. contact: '',
  64. phone: '',
  65. mobile: '',
  66. email: '',
  67. fax: '',
  68. website: '',
  69. province: 0,
  70. city: 0,
  71. district: 0,
  72. street: 0,
  73. address: '',
  74. industry: 0,
  75. nature: 0,
  76. scale: 0,
  77. introduction: '',
  78. photo: '',
  79. photo_status: 1,
  80. license_path: '',
  81. license_status: 1,
  82. login_pwd: '',
  83. company_photos: [],
  84. longitude: 0,
  85. latitude: 0
  86. };
  87. otherDataForm = {
  88. chengli_date: '',
  89. content: '',
  90. photo_img: '',
  91. license_img: '',
  92. company_photo_img: '',
  93. company_photos: [],
  94. company_address_cascader: '',
  95. company_industry_cascader: '',
  96. company_nature_cascader: '',
  97. }
  98. return { dataForm, otherDataForm }
  99. }