react-native-timacare 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/lib/commonjs/assets/icons/back2.svg +13 -0
  2. package/lib/commonjs/assets/icons/check1.svg +4 -0
  3. package/lib/commonjs/assets/icons/check2.svg +9 -0
  4. package/lib/commonjs/assets/icons/error.svg +6 -0
  5. package/lib/commonjs/assets/icons/index.js +1 -1
  6. package/lib/commonjs/assets/icons/index.js.flow +16 -0
  7. package/lib/commonjs/assets/icons/index.js.map +1 -1
  8. package/lib/commonjs/assets/icons/line2.svg +12 -0
  9. package/lib/commonjs/assets/icons/next.svg +6 -0
  10. package/lib/commonjs/assets/icons/step.svg +9 -0
  11. package/lib/commonjs/assets/icons/update.svg +5 -0
  12. package/lib/commonjs/components/CommonSelect.js +2 -0
  13. package/lib/commonjs/components/CommonSelect.js.flow +12 -0
  14. package/lib/commonjs/components/CommonSelect.js.map +1 -0
  15. package/lib/commonjs/components/MText.js +1 -1
  16. package/lib/commonjs/components/MText.js.flow +2 -2
  17. package/lib/commonjs/components/MText.js.map +1 -1
  18. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  19. package/lib/commonjs/navigation/primary-navigator.js.flow +6 -0
  20. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  21. package/lib/commonjs/screens/digital-lending/Step1.js +2 -0
  22. package/lib/commonjs/screens/digital-lending/Step1.js.flow +670 -0
  23. package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -0
  24. package/lib/commonjs/screens/digital-lending/Step2.js +2 -0
  25. package/lib/commonjs/screens/digital-lending/Step2.js.flow +613 -0
  26. package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -0
  27. package/lib/commonjs/screens/digital-lending/Step3.js +2 -0
  28. package/lib/commonjs/screens/digital-lending/Step3.js.flow +606 -0
  29. package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -0
  30. package/lib/commonjs/screens/digital-lending/Step4.js +2 -0
  31. package/lib/commonjs/screens/digital-lending/Step4.js.flow +496 -0
  32. package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -0
  33. package/lib/commonjs/screens/digital-lending/Step5.js +2 -0
  34. package/lib/commonjs/screens/digital-lending/Step5.js.flow +350 -0
  35. package/lib/commonjs/screens/digital-lending/Step5.js.map +1 -0
  36. package/lib/commonjs/screens/digital-lending/Step6.js +2 -0
  37. package/lib/commonjs/screens/digital-lending/Step6.js.flow +369 -0
  38. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -0
  39. package/lib/commonjs/screens/digital-lending/index.js +2 -0
  40. package/lib/commonjs/screens/digital-lending/index.js.flow +110 -0
  41. package/lib/commonjs/screens/digital-lending/index.js.map +1 -0
  42. package/lib/commonjs/screens/digital-lending/store.js +2 -0
  43. package/lib/commonjs/screens/digital-lending/store.js.flow +294 -0
  44. package/lib/commonjs/screens/digital-lending/store.js.map +1 -0
  45. package/lib/commonjs/screens/home/index.js +1 -1
  46. package/lib/commonjs/screens/home/index.js.flow +475 -0
  47. package/lib/commonjs/screens/home/index.js.map +1 -1
  48. package/lib/commonjs/screens/register/index.js +1 -1
  49. package/lib/commonjs/screens/register/index.js.flow +1 -1
  50. package/lib/commonjs/services/api/api-config.js +1 -1
  51. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  52. package/lib/commonjs/services/api/api-config.js.map +1 -1
  53. package/lib/commonjs/services/api/api.js +1 -1
  54. package/lib/commonjs/services/api/api.js.flow +95 -0
  55. package/lib/commonjs/services/api/api.js.map +1 -1
  56. package/lib/module/assets/icons/back2.svg +13 -0
  57. package/lib/module/assets/icons/check1.svg +4 -0
  58. package/lib/module/assets/icons/check2.svg +9 -0
  59. package/lib/module/assets/icons/error.svg +6 -0
  60. package/lib/module/assets/icons/index.js +1 -1
  61. package/lib/module/assets/icons/index.js.map +1 -1
  62. package/lib/module/assets/icons/line2.svg +12 -0
  63. package/lib/module/assets/icons/next.svg +6 -0
  64. package/lib/module/assets/icons/step.svg +9 -0
  65. package/lib/module/assets/icons/update.svg +5 -0
  66. package/lib/module/components/CommonSelect.js +2 -0
  67. package/lib/module/components/CommonSelect.js.map +1 -0
  68. package/lib/module/components/MText.js +1 -1
  69. package/lib/module/components/MText.js.map +1 -1
  70. package/lib/module/navigation/primary-navigator.js +1 -1
  71. package/lib/module/navigation/primary-navigator.js.map +1 -1
  72. package/lib/module/screens/digital-lending/Step1.js +2 -0
  73. package/lib/module/screens/digital-lending/Step1.js.map +1 -0
  74. package/lib/module/screens/digital-lending/Step2.js +2 -0
  75. package/lib/module/screens/digital-lending/Step2.js.map +1 -0
  76. package/lib/module/screens/digital-lending/Step3.js +2 -0
  77. package/lib/module/screens/digital-lending/Step3.js.map +1 -0
  78. package/lib/module/screens/digital-lending/Step4.js +2 -0
  79. package/lib/module/screens/digital-lending/Step4.js.map +1 -0
  80. package/lib/module/screens/digital-lending/Step5.js +2 -0
  81. package/lib/module/screens/digital-lending/Step5.js.map +1 -0
  82. package/lib/module/screens/digital-lending/Step6.js +2 -0
  83. package/lib/module/screens/digital-lending/Step6.js.map +1 -0
  84. package/lib/module/screens/digital-lending/index.js +2 -0
  85. package/lib/module/screens/digital-lending/index.js.map +1 -0
  86. package/lib/module/screens/digital-lending/store.js +2 -0
  87. package/lib/module/screens/digital-lending/store.js.map +1 -0
  88. package/lib/module/screens/home/index.js +1 -1
  89. package/lib/module/screens/home/index.js.map +1 -1
  90. package/lib/module/screens/register/index.js +1 -1
  91. package/lib/module/services/api/api-config.js +1 -1
  92. package/lib/module/services/api/api-config.js.map +1 -1
  93. package/lib/module/services/api/api.js +1 -1
  94. package/lib/module/services/api/api.js.map +1 -1
  95. package/lib/typescript/assets/icons/index.d.ts +9 -1
  96. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  97. package/lib/typescript/components/CommonSelect.d.ts +8 -0
  98. package/lib/typescript/components/CommonSelect.d.ts.map +1 -0
  99. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  100. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  101. package/lib/typescript/screens/digital-lending/Step1.d.ts +2 -0
  102. package/lib/typescript/screens/digital-lending/Step1.d.ts.map +1 -0
  103. package/lib/typescript/screens/digital-lending/Step2.d.ts +2 -0
  104. package/lib/typescript/screens/digital-lending/Step2.d.ts.map +1 -0
  105. package/lib/typescript/screens/digital-lending/Step3.d.ts +2 -0
  106. package/lib/typescript/screens/digital-lending/Step3.d.ts.map +1 -0
  107. package/lib/typescript/screens/digital-lending/Step4.d.ts +2 -0
  108. package/lib/typescript/screens/digital-lending/Step4.d.ts.map +1 -0
  109. package/lib/typescript/screens/digital-lending/Step5.d.ts +2 -0
  110. package/lib/typescript/screens/digital-lending/Step5.d.ts.map +1 -0
  111. package/lib/typescript/screens/digital-lending/Step6.d.ts +2 -0
  112. package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -0
  113. package/lib/typescript/screens/digital-lending/index.d.ts +2 -0
  114. package/lib/typescript/screens/digital-lending/index.d.ts.map +1 -0
  115. package/lib/typescript/screens/digital-lending/store.d.ts +35 -0
  116. package/lib/typescript/screens/digital-lending/store.d.ts.map +1 -0
  117. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  118. package/lib/typescript/services/api/api.d.ts +80 -19
  119. package/lib/typescript/services/api/api.d.ts.map +1 -1
  120. package/package.json +1 -1
  121. package/src/assets/icons/back2.svg +13 -0
  122. package/src/assets/icons/check1.svg +4 -0
  123. package/src/assets/icons/check2.svg +9 -0
  124. package/src/assets/icons/error.svg +6 -0
  125. package/src/assets/icons/index.tsx +16 -0
  126. package/src/assets/icons/line2.svg +12 -0
  127. package/src/assets/icons/next.svg +6 -0
  128. package/src/assets/icons/step.svg +9 -0
  129. package/src/assets/icons/update.svg +5 -0
  130. package/src/components/CommonSelect.tsx +12 -0
  131. package/src/components/MText.tsx +2 -2
  132. package/src/navigation/primary-navigator.tsx +6 -0
  133. package/src/screens/digital-lending/Step1.tsx +670 -0
  134. package/src/screens/digital-lending/Step2.tsx +613 -0
  135. package/src/screens/digital-lending/Step3.tsx +606 -0
  136. package/src/screens/digital-lending/Step4.tsx +496 -0
  137. package/src/screens/digital-lending/Step5.tsx +350 -0
  138. package/src/screens/digital-lending/Step6.tsx +369 -0
  139. package/src/screens/digital-lending/index.tsx +110 -0
  140. package/src/screens/digital-lending/store.tsx +294 -0
  141. package/src/screens/home/index.tsx +475 -0
  142. package/src/screens/register/index.tsx +1 -1
  143. package/src/services/api/api-config.ts +2 -2
  144. package/src/services/api/api.ts +95 -0
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Step3=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _formik=require("formik");var _store=_interopRequireDefault(require("./store"));var _utils=require("../../utils");var _native=require("@react-navigation/native");var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/digital-lending/Step3.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var EnumIncomeType=[{id:1,name:'Tiền mặt'},{id:5,name:'Chuyển khoản'}];var EnumCompanyInsurance=[{id:true,name:'Có mua'},{id:false,name:'Không mua'}];var Step3=exports.Step3=(0,_mobxReactLite.observer)(function Step3(){var _digitalLendingStore$,_digitalLendingStore$2,_digitalLendingStore$3,_digitalLendingStore$4,_digitalLendingStore$5,_digitalLendingStore$6,_digitalLendingStore$7,_digitalLendingStore$8,_digitalLendingStore$9,_digitalLendingStore$10,_digitalLendingStore$11,_digitalLendingStore$12,_digitalLendingStore$13,_digitalLendingStore$14,_digitalLendingStore$15,_digitalLendingStore$16,_digitalLendingStore$17,_digitalLendingStore$18,_digitalLendingStore$19,_digitalLendingStore$20,_digitalLendingStore$21,_this=this;var navigation=(0,_native.useNavigation)();var ref=(0,_react.useRef)(null);var onSubmit=function onSubmit(values){var _values$job,_values$jobDescriptio,_values$companyProvin,_values$companyDistri,_values$companyWardId;_store.default.body=(0,_extends2.default)({},_store.default.body,{jobId:values==null?void 0:(_values$job=values.job)==null?void 0:_values$job.id,jobDescriptionId:values==null?void 0:(_values$jobDescriptio=values.jobDescription)==null?void 0:_values$jobDescriptio.id,description:values==null?void 0:values.description,totalIncome:Number(String(values==null?void 0:values.totalIncome).replaceAll(',','')),imcomeType:values==null?void 0:values.incomeType,companyName:values==null?void 0:values.companyName,companyProvinceId:values==null?void 0:(_values$companyProvin=values.companyProvinceId)==null?void 0:_values$companyProvin.id,companyDistrictId:values==null?void 0:(_values$companyDistri=values.companyDistrictId)==null?void 0:_values$companyDistri.id,companyWardId:values==null?void 0:(_values$companyWardId=values.companyWardId)==null?void 0:_values$companyWardId.id,companyAddress:values==null?void 0:values.companyAddress,companyInsurance:values==null?void 0:values.companyInsurance});};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:71,columnNumber:5}},_react.default.createElement(_reactNative.ScrollView,{style:{paddingHorizontal:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:81,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:13}},"01")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:13}},"02")),_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:112,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:13}},"03")),_react.default.createElement(_icons.Line2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:11}}),_react.default.createElement(_reactNative.View,{style:(0,_extends2.default)({width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'white',shadowOffset:{width:2,height:1}},_reactNative.Platform.select({ios:{shadowColor:'rgba(0, 0, 0, 0.10)',shadowOpacity:0.2},android:{elevation:10}})),__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:149,columnNumber:13}},"04")),_react.default.createElement(_reactNative.View,{style:(0,_extends2.default)({width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'white',shadowOffset:{width:2,height:1}},_reactNative.Platform.select({ios:{shadowColor:'rgba(0, 0, 0, 0.10)',shadowOpacity:0.2},android:{elevation:10}})),__self:this,__source:{fileName:_jsxFileName,lineNumber:151,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:175,columnNumber:13}},"05")),_react.default.createElement(_reactNative.View,{style:(0,_extends2.default)({width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'white',shadowOffset:{width:2,height:1}},_reactNative.Platform.select({ios:{shadowColor:'rgba(0, 0, 0, 0.10)',shadowOpacity:0.2},android:{elevation:10}})),__self:this,__source:{fileName:_jsxFileName,lineNumber:177,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:201,columnNumber:13}},"06"))),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:9}},"TH\xD4NG TIN VI\u1EC6C L\xC0M"),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:205,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#EB5757',flexDirection:'row',padding:8,alignItems:'center',borderRadius:8,marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:208,columnNumber:9}},_react.default.createElement(_icons.WarningIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:218,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{flex:1,color:'white',marginLeft:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:219,columnNumber:11}},"Ki\u1EC3m tra l\u1EA1i th\xF4ng tin c\u1EE7a b\u1EA1n, n\u1EBFu ch\u01B0a ch\xEDnh x\xE1c ho\u1EB7c \u0111\xE3 c\u0169, h\xE3y c\u1EADp nh\u1EADt l\u1EA1i th\xF4ng tin m\u1EDBi nh\u1EA5t nh\xE9!")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:ref,initialValues:{job:_store.default!=null&&(_digitalLendingStore$=_store.default.data)!=null&&_digitalLendingStore$.jobId?{id:_store.default==null?void 0:(_digitalLendingStore$2=_store.default.data)==null?void 0:_digitalLendingStore$2.jobId,name:_store.default==null?void 0:(_digitalLendingStore$3=_store.default.data)==null?void 0:_digitalLendingStore$3.jobName}:null,jobDescription:_store.default!=null&&(_digitalLendingStore$4=_store.default.data)!=null&&_digitalLendingStore$4.jobDescriptionId?{id:_store.default==null?void 0:(_digitalLendingStore$5=_store.default.data)==null?void 0:_digitalLendingStore$5.jobDescriptionId,name:_store.default==null?void 0:(_digitalLendingStore$6=_store.default.data)==null?void 0:_digitalLendingStore$6.jobDescriptionName}:null,description:_store.default==null?void 0:(_digitalLendingStore$7=_store.default.data)==null?void 0:_digitalLendingStore$7.description,totalIncome:_store.default==null?void 0:(_digitalLendingStore$8=_store.default.data)==null?void 0:_digitalLendingStore$8.totalIncome,companyInsurance:_store.default==null?void 0:(_digitalLendingStore$9=_store.default.data)==null?void 0:_digitalLendingStore$9.companyInsurance,companyName:_store.default==null?void 0:(_digitalLendingStore$10=_store.default.data)==null?void 0:_digitalLendingStore$10.companyName,companyAddress:_store.default==null?void 0:(_digitalLendingStore$11=_store.default.data)==null?void 0:_digitalLendingStore$11.companyAddress,incomeType:_store.default==null?void 0:(_digitalLendingStore$12=_store.default.data)==null?void 0:_digitalLendingStore$12.imcomeType,companyProvinceId:_store.default!=null&&(_digitalLendingStore$13=_store.default.data)!=null&&_digitalLendingStore$13.companyProvinceId?{id:_store.default==null?void 0:(_digitalLendingStore$14=_store.default.data)==null?void 0:_digitalLendingStore$14.companyProvinceId,name:_store.default==null?void 0:(_digitalLendingStore$15=_store.default.data)==null?void 0:_digitalLendingStore$15.companyProvinceName}:null,companyDistrictId:_store.default!=null&&(_digitalLendingStore$16=_store.default.data)!=null&&_digitalLendingStore$16.companyDistrictId?{id:_store.default==null?void 0:(_digitalLendingStore$17=_store.default.data)==null?void 0:_digitalLendingStore$17.companyDistrictId,name:_store.default==null?void 0:(_digitalLendingStore$18=_store.default.data)==null?void 0:_digitalLendingStore$18.companyDistrictName}:null,companyWardId:_store.default!=null&&(_digitalLendingStore$19=_store.default.data)!=null&&_digitalLendingStore$19.companyWardId?{id:_store.default==null?void 0:(_digitalLendingStore$20=_store.default.data)==null?void 0:_digitalLendingStore$20.companyWardId,name:_store.default==null?void 0:(_digitalLendingStore$21=_store.default.data)==null?void 0:_digitalLendingStore$21.companyWardName}:null},__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:9}},function(_ref){var _values$job2,_values$jobDescriptio2,_values$companyProvin2,_values$companyDistri2,_values$companyWardId2;var values=_ref.values,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange,setFieldValue=_ref.setFieldValue;return _react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:267,columnNumber:13}},_react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:268,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:269,columnNumber:17}},"Ngh\u1EC1 nghi\u1EC7p"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Chọn Nghề nghiệp',data:_store.default.listJob,callback:function callback(item){setFieldValue('job',item);setFieldValue('jobDescription',null);_store.default.getJobDescription(item==null?void 0:item.id);}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:288,columnNumber:19}},values.job?(_values$job2=values.job)==null?void 0:_values$job2.name:''))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:293,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:294,columnNumber:17}},"Ng\xE0nh ngh\u1EC1"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Chọn Ngành nghề',data:_store.default.listJobDescription,callback:function callback(item){setFieldValue('jobDescription',item);}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:295,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:311,columnNumber:19}},values.jobDescription?(_values$jobDescriptio2=values.jobDescription)==null?void 0:_values$jobDescriptio2.name:''))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:316,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:317,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:318,columnNumber:17}},"V\u1ECB tr\xED"),_react.default.createElement(_reactNative.TextInput,{onChangeText:handleChange('description'),value:values==null?void 0:values.description,style:{flex:1,color:'#33333',height:30,marginVertical:0,flex:1,padding:0},__self:_this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:332,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:334,columnNumber:17}},"Thu nh\u1EADp"),_react.default.createElement(_reactNative.TextInput,{keyboardType:"number-pad",value:(0,_utils.formatMoney)(values.totalIncome),onChangeText:handleChange('totalIncome'),style:{flex:1,color:'#33333',height:30,marginVertical:0,flex:1,padding:0},__self:_this,__source:{fileName:_jsxFileName,lineNumber:335,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:349,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:350,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:351,columnNumber:17}},"H\xECnh th\u1EE9c nh\u1EADn l\u01B0\u01A1ng"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Hình thức nhận lương',data:EnumIncomeType,callback:function callback(item){setFieldValue('incomeType',item.id);}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:352,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:368,columnNumber:19}},values.incomeType===1?'Tiền mặt':'Chuyển khoản'))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:375,columnNumber:17}},"Tham gia BHXH"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Tham gia BHXH',data:EnumCompanyInsurance,callback:function callback(item){setFieldValue('companyInsurance',item.id);}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:376,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:392,columnNumber:19}},values.companyInsurance?'Có mua':'Không mua'))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:398,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:399,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:400,columnNumber:17}},"T\xEAn c\xF4ng ty"),_react.default.createElement(_reactNative.TextInput,{value:values.companyName,onChangeText:handleChange('companyName'),style:{flex:1,color:'#33333',height:30,marginVertical:0,flex:1,padding:0},__self:_this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:414,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:415,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:17}},"Ch\u1ECDn th\xE0nh ph\u1ED1"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Chọn thành phố',data:_store.default.listProvinces,callback:function callback(item){_store.default.getDistricts(item==null?void 0:item.id,function(data){_store.default.companyListDistricts=data;});setFieldValue('companyProvinceId',item);setFieldValue('companyDistrictId',null);setFieldValue('companyWardId',null);_store.default.companyListWards=[];}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:439,columnNumber:19}},values.companyProvinceId?(_values$companyProvin2=values.companyProvinceId)==null?void 0:_values$companyProvin2.name:''))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:446,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:447,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:448,columnNumber:17}},"Ch\u1ECDn Qu\u1EADn/Huy\u1EC7n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Chọn Quận/Huyện',data:_store.default.companyListDistricts,callback:function callback(item){_store.default.getWards(item==null?void 0:item.id,function(data){_store.default.companyListWards=data;});setFieldValue('companyDistrictId',item);setFieldValue('companyWardId',null);}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:449,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:469,columnNumber:19}},values.companyDistrictId?(_values$companyDistri2=values.companyDistrictId)==null?void 0:_values$companyDistri2.name:''))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:476,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:478,columnNumber:17}},"Ch\u1ECDn Ph\u01B0\u1EDDng/X\xE3"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push('CommonSelect',{title:'Chọn Phường/Xã',data:_store.default.companyListWards,callback:function callback(item){setFieldValue('companyWardId',item);}});},style:{height:30,flex:1,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:479,columnNumber:17}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:495,columnNumber:19}},values.companyWardId?(_values$companyWardId2=values.companyWardId)==null?void 0:_values$companyWardId2.name:''))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:501,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#8A8A8A'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:502,columnNumber:17}},"\u0110\u1ECBa ch\u1EC9 chi ti\u1EBFt"),_react.default.createElement(_reactNative.TextInput,{value:values.companyAddress,onChangeText:handleChange('companyAddress'),style:{flex:1,color:'#33333',height:30,marginVertical:0,flex:1,padding:0},__self:_this,__source:{fileName:_jsxFileName,lineNumber:503,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:516,columnNumber:15}}));})),_react.default.createElement(_reactNative.View,{style:(0,_extends2.default)({backgroundColor:'white',shadowOffset:{width:2,height:1}},_reactNative.Platform.select({ios:{shadowColor:'rgba(0, 0, 0, 0.10)',shadowOpacity:0.2},android:{elevation:10}}),{paddingTop:12,paddingHorizontal:12,flexDirection:'row',paddingBottom:16,justifyContent:'space-between',alignItems:'center'}),__self:this,__source:{fileName:_jsxFileName,lineNumber:521,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return _store.default.step=2;},style:{paddingHorizontal:12,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:545,columnNumber:9}},_react.default.createElement(_icons.Back2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{marginLeft:5,color:'#FF8E4F',fontSize:16,fontWeight:'500'},__self:this,__source:{fileName:_jsxFileName,lineNumber:558,columnNumber:11}},"Tr\u1EDF l\u1EA1i")),_react.default.createElement(_icons.StepIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:569,columnNumber:9}}),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){_store.default.step=4;ref.current.handleSubmit();},__self:this,__source:{fileName:_jsxFileName,lineNumber:570,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{paddingHorizontal:12,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:576,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,fontWeight:'500',marginRight:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:13}},"Ti\u1EBFp t\u1EE5c"),_react.default.createElement(_icons.NextIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:596,columnNumber:13}})))));});var styles=_reactNative.StyleSheet.create({input:{}});
2
+ //# sourceMappingURL=Step3.js.map
@@ -0,0 +1,606 @@
1
+ //@ts-nocheck
2
+ import React, { useRef } from 'react';
3
+ import { observer } from 'mobx-react-lite';
4
+ import {
5
+ Platform,
6
+ ScrollView,
7
+ TouchableOpacity,
8
+ View,
9
+ StyleSheet,
10
+ TextInput,
11
+ } from 'react-native';
12
+ import LinearGradient from 'react-native-linear-gradient';
13
+ import {
14
+ Back2Icon,
15
+ StepIcon,
16
+ NextIcon,
17
+ Line2Icon,
18
+ WarningIcon,
19
+ } from '../../assets/icons';
20
+ import { MText } from '../../components/MText';
21
+ import { Formik } from 'formik';
22
+ import digitalLendingStore from './store';
23
+ import { formatMoney } from '../../utils';
24
+ import { useNavigation } from '@react-navigation/native';
25
+ import QuickSubmitStore from '../quick-submit/store';
26
+ import FullSubmitStore from '../full-submit/store';
27
+
28
+ const EnumIncomeType = [
29
+ {
30
+ id: 1,
31
+ name: 'Tiền mặt',
32
+ },
33
+ {
34
+ id: 5,
35
+ name: 'Chuyển khoản',
36
+ },
37
+ ];
38
+
39
+ const EnumCompanyInsurance = [
40
+ {
41
+ id: true,
42
+ name: 'Có mua',
43
+ },
44
+ {
45
+ id: false,
46
+ name: 'Không mua',
47
+ },
48
+ ];
49
+
50
+ export const Step3 = observer(function Step3() {
51
+ const navigation = useNavigation();
52
+ const ref = useRef(null);
53
+
54
+ const onSubmit = (values) => {
55
+ digitalLendingStore.body = {
56
+ ...digitalLendingStore.body,
57
+ jobId: values?.job?.id,
58
+ jobDescriptionId: values?.jobDescription?.id,
59
+ description: values?.description,
60
+ totalIncome: Number(String(values?.totalIncome).replaceAll(',', '')),
61
+ imcomeType: values?.incomeType,
62
+ companyName: values?.companyName,
63
+ companyProvinceId: values?.companyProvinceId?.id,
64
+ companyDistrictId: values?.companyDistrictId?.id,
65
+ companyWardId: values?.companyWardId?.id,
66
+ companyAddress: values?.companyAddress,
67
+ companyInsurance: values?.companyInsurance,
68
+ };
69
+ };
70
+ return (
71
+ <View style={{ flex: 1 }}>
72
+ <ScrollView style={{ paddingHorizontal: 12 }}>
73
+ <View
74
+ style={{
75
+ flexDirection: 'row',
76
+ justifyContent: 'space-between',
77
+ alignItems: 'center',
78
+ paddingVertical: 16,
79
+ }}
80
+ >
81
+ <View
82
+ style={{
83
+ width: 40,
84
+ height: 40,
85
+ borderRadius: 40,
86
+ alignItems: 'center',
87
+ justifyContent: 'center',
88
+ shadowRadius: 40,
89
+ backgroundColor: '#FFF3E9',
90
+ borderWidth: 1,
91
+ borderColor: '#FF8E4F',
92
+ }}
93
+ >
94
+ <MText style={{ fontWeight: 'bold', color: '#FF8E4F' }}>01</MText>
95
+ </View>
96
+ <View
97
+ style={{
98
+ width: 40,
99
+ height: 40,
100
+ borderRadius: 40,
101
+ alignItems: 'center',
102
+ justifyContent: 'center',
103
+ shadowRadius: 40,
104
+ backgroundColor: '#FFF3E9',
105
+ borderWidth: 1,
106
+ borderColor: '#FF8E4F',
107
+ }}
108
+ >
109
+ <MText style={{ color: '#FF8E4F', fontWeight: 'bold' }}>02</MText>
110
+ </View>
111
+
112
+ <LinearGradient
113
+ colors={['#FF8E4F', '#EF592E']}
114
+ style={{
115
+ width: 40,
116
+ height: 40,
117
+ borderRadius: 40,
118
+ alignItems: 'center',
119
+ justifyContent: 'center',
120
+ }}
121
+ >
122
+ <MText style={{ fontWeight: 'bold', color: 'white' }}>03</MText>
123
+ </LinearGradient>
124
+ <Line2Icon />
125
+ <View
126
+ style={{
127
+ width: 40,
128
+ height: 40,
129
+ borderRadius: 40,
130
+ alignItems: 'center',
131
+ justifyContent: 'center',
132
+ shadowRadius: 40,
133
+ backgroundColor: 'white',
134
+ shadowOffset: {
135
+ width: 2,
136
+ height: 1,
137
+ },
138
+ ...Platform.select({
139
+ ios: {
140
+ shadowColor: 'rgba(0, 0, 0, 0.10)',
141
+ shadowOpacity: 0.2,
142
+ },
143
+ android: {
144
+ elevation: 10,
145
+ },
146
+ }),
147
+ }}
148
+ >
149
+ <MText style={{ fontWeight: 'bold', color: '#333333' }}>04</MText>
150
+ </View>
151
+ <View
152
+ style={{
153
+ width: 40,
154
+ height: 40,
155
+ borderRadius: 40,
156
+ alignItems: 'center',
157
+ justifyContent: 'center',
158
+ shadowRadius: 40,
159
+ backgroundColor: 'white',
160
+ shadowOffset: {
161
+ width: 2,
162
+ height: 1,
163
+ },
164
+ ...Platform.select({
165
+ ios: {
166
+ shadowColor: 'rgba(0, 0, 0, 0.10)',
167
+ shadowOpacity: 0.2,
168
+ },
169
+ android: {
170
+ elevation: 10,
171
+ },
172
+ }),
173
+ }}
174
+ >
175
+ <MText style={{ fontWeight: 'bold', color: '#333333' }}>05</MText>
176
+ </View>
177
+ <View
178
+ style={{
179
+ width: 40,
180
+ height: 40,
181
+ borderRadius: 40,
182
+ alignItems: 'center',
183
+ justifyContent: 'center',
184
+ shadowRadius: 40,
185
+ backgroundColor: 'white',
186
+ shadowOffset: {
187
+ width: 2,
188
+ height: 1,
189
+ },
190
+ ...Platform.select({
191
+ ios: {
192
+ shadowColor: 'rgba(0, 0, 0, 0.10)',
193
+ shadowOpacity: 0.2,
194
+ },
195
+ android: {
196
+ elevation: 10,
197
+ },
198
+ }),
199
+ }}
200
+ >
201
+ <MText style={{ fontWeight: 'bold', color: '#333333' }}>06</MText>
202
+ </View>
203
+ </View>
204
+ <MText style={{ fontWeight: 'bold' }}>THÔNG TIN VIỆC LÀM</MText>
205
+ <View
206
+ style={{ height: 1, backgroundColor: '#BDBDBD', marginTop: 16 }}
207
+ />
208
+ <View
209
+ style={{
210
+ backgroundColor: '#EB5757',
211
+ flexDirection: 'row',
212
+ padding: 8,
213
+ alignItems: 'center',
214
+ borderRadius: 8,
215
+ marginTop: 12,
216
+ }}
217
+ >
218
+ <WarningIcon />
219
+ <MText style={{ flex: 1, color: 'white', marginLeft: 8 }}>
220
+ Kiểm tra lại thông tin của bạn, nếu chưa chính xác hoặc đã cũ, hãy
221
+ cập nhật lại thông tin mới nhất nhé!
222
+ </MText>
223
+ </View>
224
+ <Formik
225
+ onSubmit={onSubmit}
226
+ innerRef={ref}
227
+ initialValues={{
228
+ job: digitalLendingStore?.data?.jobId
229
+ ? {
230
+ id: digitalLendingStore?.data?.jobId,
231
+ name: digitalLendingStore?.data?.jobName,
232
+ }
233
+ : null,
234
+ jobDescription: digitalLendingStore?.data?.jobDescriptionId
235
+ ? {
236
+ id: digitalLendingStore?.data?.jobDescriptionId,
237
+ name: digitalLendingStore?.data?.jobDescriptionName,
238
+ }
239
+ : null,
240
+ description: digitalLendingStore?.data?.description,
241
+ totalIncome: digitalLendingStore?.data?.totalIncome,
242
+ companyInsurance: digitalLendingStore?.data?.companyInsurance,
243
+ companyName: digitalLendingStore?.data?.companyName,
244
+ companyAddress: digitalLendingStore?.data?.companyAddress,
245
+ incomeType: digitalLendingStore?.data?.imcomeType,
246
+ companyProvinceId: digitalLendingStore?.data?.companyProvinceId
247
+ ? {
248
+ id: digitalLendingStore?.data?.companyProvinceId,
249
+ name: digitalLendingStore?.data?.companyProvinceName,
250
+ }
251
+ : null,
252
+ companyDistrictId: digitalLendingStore?.data?.companyDistrictId
253
+ ? {
254
+ id: digitalLendingStore?.data?.companyDistrictId,
255
+ name: digitalLendingStore?.data?.companyDistrictName,
256
+ }
257
+ : null,
258
+ companyWardId: digitalLendingStore?.data?.companyWardId
259
+ ? {
260
+ id: digitalLendingStore?.data?.companyWardId,
261
+ name: digitalLendingStore?.data?.companyWardName,
262
+ }
263
+ : null,
264
+ }}
265
+ >
266
+ {({ values, handleSubmit, handleChange, setFieldValue }) => (
267
+ <View style={{ marginTop: 16 }}>
268
+ <View>
269
+ <MText style={{ color: '#8A8A8A' }}>Nghề nghiệp</MText>
270
+ <TouchableOpacity
271
+ onPress={() => {
272
+ navigation.push('CommonSelect', {
273
+ title: 'Chọn Nghề nghiệp',
274
+ data: digitalLendingStore.listJob,
275
+ callback: (item) => {
276
+ setFieldValue('job', item);
277
+ setFieldValue('jobDescription', null);
278
+ digitalLendingStore.getJobDescription(item?.id);
279
+ },
280
+ });
281
+ }}
282
+ style={{
283
+ height: 30,
284
+ flex: 1,
285
+ marginTop: 5,
286
+ }}
287
+ >
288
+ <MText>{values.job ? values.job?.name : ''}</MText>
289
+ </TouchableOpacity>
290
+ </View>
291
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
292
+
293
+ <View style={{ marginTop: 12 }}>
294
+ <MText style={{ color: '#8A8A8A' }}>Ngành nghề</MText>
295
+ <TouchableOpacity
296
+ onPress={() => {
297
+ navigation.push('CommonSelect', {
298
+ title: 'Chọn Ngành nghề',
299
+ data: digitalLendingStore.listJobDescription,
300
+ callback: (item) => {
301
+ setFieldValue('jobDescription', item);
302
+ },
303
+ });
304
+ }}
305
+ style={{
306
+ height: 30,
307
+ flex: 1,
308
+ marginTop: 5,
309
+ }}
310
+ >
311
+ <MText>
312
+ {values.jobDescription ? values.jobDescription?.name : ''}
313
+ </MText>
314
+ </TouchableOpacity>
315
+ </View>
316
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
317
+ <View style={{ marginTop: 12 }}>
318
+ <MText style={{ color: '#8A8A8A' }}>Vị trí</MText>
319
+ <TextInput
320
+ onChangeText={handleChange('description')}
321
+ value={values?.description}
322
+ style={{
323
+ flex: 1,
324
+ color: '#33333',
325
+ height: 30,
326
+ marginVertical: 0,
327
+ flex: 1,
328
+ padding: 0,
329
+ }}
330
+ />
331
+ </View>
332
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
333
+ <View style={{ marginTop: 12 }}>
334
+ <MText style={{ color: '#8A8A8A' }}>Thu nhập</MText>
335
+ <TextInput
336
+ keyboardType="number-pad"
337
+ value={formatMoney(values.totalIncome)}
338
+ onChangeText={handleChange('totalIncome')}
339
+ style={{
340
+ flex: 1,
341
+ color: '#33333',
342
+ height: 30,
343
+ marginVertical: 0,
344
+ flex: 1,
345
+ padding: 0,
346
+ }}
347
+ />
348
+ </View>
349
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
350
+ <View style={{ marginTop: 12 }}>
351
+ <MText style={{ color: '#8A8A8A' }}>Hình thức nhận lương</MText>
352
+ <TouchableOpacity
353
+ onPress={() => {
354
+ navigation.push('CommonSelect', {
355
+ title: 'Hình thức nhận lương',
356
+ data: EnumIncomeType,
357
+ callback: (item) => {
358
+ setFieldValue('incomeType', item.id);
359
+ },
360
+ });
361
+ }}
362
+ style={{
363
+ height: 30,
364
+ flex: 1,
365
+ marginTop: 5,
366
+ }}
367
+ >
368
+ <MText>
369
+ {values.incomeType === 1 ? 'Tiền mặt' : 'Chuyển khoản'}
370
+ </MText>
371
+ </TouchableOpacity>
372
+ </View>
373
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
374
+ <View style={{ marginTop: 12 }}>
375
+ <MText style={{ color: '#8A8A8A' }}>Tham gia BHXH</MText>
376
+ <TouchableOpacity
377
+ onPress={() => {
378
+ navigation.push('CommonSelect', {
379
+ title: 'Tham gia BHXH',
380
+ data: EnumCompanyInsurance,
381
+ callback: (item) => {
382
+ setFieldValue('companyInsurance', item.id);
383
+ },
384
+ });
385
+ }}
386
+ style={{
387
+ height: 30,
388
+ flex: 1,
389
+ marginTop: 5,
390
+ }}
391
+ >
392
+ <MText>
393
+ {values.companyInsurance ? 'Có mua' : 'Không mua'}
394
+ </MText>
395
+ </TouchableOpacity>
396
+ </View>
397
+
398
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
399
+ <View style={{ marginTop: 12 }}>
400
+ <MText style={{ color: '#8A8A8A' }}>Tên công ty</MText>
401
+ <TextInput
402
+ value={values.companyName}
403
+ onChangeText={handleChange('companyName')}
404
+ style={{
405
+ flex: 1,
406
+ color: '#33333',
407
+ height: 30,
408
+ marginVertical: 0,
409
+ flex: 1,
410
+ padding: 0,
411
+ }}
412
+ />
413
+ </View>
414
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
415
+ <View style={{ marginTop: 12 }}>
416
+ <MText style={{ color: '#8A8A8A' }}>Chọn thành phố</MText>
417
+ <TouchableOpacity
418
+ onPress={() => {
419
+ navigation.push('CommonSelect', {
420
+ title: 'Chọn thành phố',
421
+ data: digitalLendingStore.listProvinces,
422
+ callback: (item) => {
423
+ digitalLendingStore.getDistricts(item?.id, (data) => {
424
+ digitalLendingStore.companyListDistricts = data;
425
+ });
426
+ setFieldValue('companyProvinceId', item);
427
+ setFieldValue('companyDistrictId', null);
428
+ setFieldValue('companyWardId', null);
429
+ digitalLendingStore.companyListWards = [];
430
+ },
431
+ });
432
+ }}
433
+ style={{
434
+ height: 30,
435
+ flex: 1,
436
+ marginTop: 5,
437
+ }}
438
+ >
439
+ <MText>
440
+ {values.companyProvinceId
441
+ ? values.companyProvinceId?.name
442
+ : ''}
443
+ </MText>
444
+ </TouchableOpacity>
445
+ </View>
446
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
447
+ <View style={{ marginTop: 12 }}>
448
+ <MText style={{ color: '#8A8A8A' }}>Chọn Quận/Huyện</MText>
449
+ <TouchableOpacity
450
+ onPress={() => {
451
+ navigation.push('CommonSelect', {
452
+ title: 'Chọn Quận/Huyện',
453
+ data: digitalLendingStore.companyListDistricts,
454
+ callback: (item) => {
455
+ digitalLendingStore.getWards(item?.id, (data) => {
456
+ digitalLendingStore.companyListWards = data;
457
+ });
458
+ setFieldValue('companyDistrictId', item);
459
+ setFieldValue('companyWardId', null);
460
+ },
461
+ });
462
+ }}
463
+ style={{
464
+ height: 30,
465
+ flex: 1,
466
+ marginTop: 5,
467
+ }}
468
+ >
469
+ <MText>
470
+ {values.companyDistrictId
471
+ ? values.companyDistrictId?.name
472
+ : ''}
473
+ </MText>
474
+ </TouchableOpacity>
475
+ </View>
476
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
477
+ <View style={{ marginTop: 12 }}>
478
+ <MText style={{ color: '#8A8A8A' }}>Chọn Phường/Xã</MText>
479
+ <TouchableOpacity
480
+ onPress={() => {
481
+ navigation.push('CommonSelect', {
482
+ title: 'Chọn Phường/Xã',
483
+ data: digitalLendingStore.companyListWards,
484
+ callback: (item) => {
485
+ setFieldValue('companyWardId', item);
486
+ },
487
+ });
488
+ }}
489
+ style={{
490
+ height: 30,
491
+ flex: 1,
492
+ marginTop: 5,
493
+ }}
494
+ >
495
+ <MText>
496
+ {values.companyWardId ? values.companyWardId?.name : ''}
497
+ </MText>
498
+ </TouchableOpacity>
499
+ </View>
500
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
501
+ <View style={{ marginTop: 12 }}>
502
+ <MText style={{ color: '#8A8A8A' }}>Địa chỉ chi tiết</MText>
503
+ <TextInput
504
+ value={values.companyAddress}
505
+ onChangeText={handleChange('companyAddress')}
506
+ style={{
507
+ flex: 1,
508
+ color: '#33333',
509
+ height: 30,
510
+ marginVertical: 0,
511
+ flex: 1,
512
+ padding: 0,
513
+ }}
514
+ />
515
+ </View>
516
+ <View style={{ height: 1, backgroundColor: '#E0E0E0' }} />
517
+ </View>
518
+ )}
519
+ </Formik>
520
+ </ScrollView>
521
+ <View
522
+ style={{
523
+ backgroundColor: 'white',
524
+ shadowOffset: {
525
+ width: 2,
526
+ height: 1,
527
+ },
528
+ ...Platform.select({
529
+ ios: {
530
+ shadowColor: 'rgba(0, 0, 0, 0.10)',
531
+ shadowOpacity: 0.2,
532
+ },
533
+ android: {
534
+ elevation: 10,
535
+ },
536
+ }),
537
+ paddingTop: 12,
538
+ paddingHorizontal: 12,
539
+ flexDirection: 'row',
540
+ paddingBottom: 16,
541
+ justifyContent: 'space-between',
542
+ alignItems: 'center',
543
+ }}
544
+ >
545
+ <TouchableOpacity
546
+ onPress={() => (digitalLendingStore.step = 2)}
547
+ style={{
548
+ paddingHorizontal: 12,
549
+ paddingVertical: 8,
550
+ borderRadius: 40,
551
+ flexDirection: 'row',
552
+ alignItems: 'center',
553
+ borderWidth: 1,
554
+ borderColor: '#FF8E4F',
555
+ }}
556
+ >
557
+ <Back2Icon />
558
+ <MText
559
+ style={{
560
+ marginLeft: 5,
561
+ color: '#FF8E4F',
562
+ fontSize: 16,
563
+ fontWeight: '500',
564
+ }}
565
+ >
566
+ Trở lại
567
+ </MText>
568
+ </TouchableOpacity>
569
+ <StepIcon />
570
+ <TouchableOpacity
571
+ onPress={() => {
572
+ digitalLendingStore.step = 4;
573
+ ref.current.handleSubmit();
574
+ }}
575
+ >
576
+ <LinearGradient
577
+ colors={['#FF8E4F', '#EF592E']}
578
+ style={{
579
+ paddingHorizontal: 12,
580
+ paddingVertical: 8,
581
+ borderRadius: 40,
582
+ flexDirection: 'row',
583
+ alignItems: 'center',
584
+ }}
585
+ >
586
+ <MText
587
+ style={{
588
+ color: 'white',
589
+ fontSize: 16,
590
+ fontWeight: '500',
591
+ marginRight: 5,
592
+ }}
593
+ >
594
+ Tiếp tục
595
+ </MText>
596
+ <NextIcon />
597
+ </LinearGradient>
598
+ </TouchableOpacity>
599
+ </View>
600
+ </View>
601
+ );
602
+ });
603
+
604
+ const styles = StyleSheet.create({
605
+ input: {},
606
+ });