react-native-timacare 3.1.31-production → 3.1.33-production
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.
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +11 -4
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +4 -4
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +8 -3
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +11 -4
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +4 -4
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +8 -3
|
@@ -100,7 +100,10 @@ export default function ReviewInformation(props) {
|
|
|
100
100
|
? formatDDMMYYY(response?.data?.data?.dob)
|
|
101
101
|
: ''
|
|
102
102
|
);
|
|
103
|
-
formRef.current.setFieldValue(
|
|
103
|
+
formRef.current.setFieldValue(
|
|
104
|
+
'gender',
|
|
105
|
+
response?.data?.data?.gender ?? null
|
|
106
|
+
);
|
|
104
107
|
formRef.current.setFieldValue(
|
|
105
108
|
'nationalCard',
|
|
106
109
|
response?.data?.data?.nationalCard
|
|
@@ -297,7 +300,7 @@ export default function ReviewInformation(props) {
|
|
|
297
300
|
initialValues={{
|
|
298
301
|
fullName: '',
|
|
299
302
|
dob: '',
|
|
300
|
-
gender:
|
|
303
|
+
gender: null,
|
|
301
304
|
nationalCard: '',
|
|
302
305
|
dateNationalId: '',
|
|
303
306
|
phone: '',
|
|
@@ -426,7 +429,11 @@ export default function ReviewInformation(props) {
|
|
|
426
429
|
flex: 1,
|
|
427
430
|
}}
|
|
428
431
|
>
|
|
429
|
-
{values.gender === 0
|
|
432
|
+
{values.gender === 0
|
|
433
|
+
? 'Nam'
|
|
434
|
+
: values.gender === 1
|
|
435
|
+
? 'Nữ'
|
|
436
|
+
: ''}
|
|
430
437
|
</MText>
|
|
431
438
|
<DropDown2 />
|
|
432
439
|
</TouchableOpacity>
|
|
@@ -676,7 +683,7 @@ export default function ReviewInformation(props) {
|
|
|
676
683
|
flexDirection: 'row',
|
|
677
684
|
gap: 16,
|
|
678
685
|
justifyContent: 'space-between',
|
|
679
|
-
marginLeft:
|
|
686
|
+
marginLeft: 16,
|
|
680
687
|
}}
|
|
681
688
|
>
|
|
682
689
|
<TouchableOpacity
|
|
@@ -256,17 +256,17 @@ export default function ReviewInformationOther(props) {
|
|
|
256
256
|
districtName: yup.string().required('Vui lòng nhập quận/huyện'),
|
|
257
257
|
wardName: yup.string().required('Vui lòng nhập phường/xã'),
|
|
258
258
|
address: yup.string().required('Vui lòng nhập địa chỉ'),
|
|
259
|
-
fullName1: yup.string().required('Vui lòng nhập tên'),
|
|
259
|
+
fullName1: yup.string().required('Vui lòng nhập họ tên'),
|
|
260
260
|
phone1: yup.string().required('Vui lòng nhập số điện thoại'),
|
|
261
261
|
relationshipType1: yup
|
|
262
262
|
.object()
|
|
263
|
-
.required('Vui lòng chọn')
|
|
263
|
+
.required('Vui lòng chọn mối quan hệ')
|
|
264
264
|
.nullable(),
|
|
265
|
-
fullName2: yup.string().required('Vui lòng nhập tên'),
|
|
265
|
+
fullName2: yup.string().required('Vui lòng nhập họ tên'),
|
|
266
266
|
phone2: yup.string().required('Vui lòng nhập số điện thoại'),
|
|
267
267
|
relationshipType2: yup
|
|
268
268
|
.object()
|
|
269
|
-
.required('Vui lòng chọn')
|
|
269
|
+
.required('Vui lòng chọn mối quan hệ')
|
|
270
270
|
.nullable(),
|
|
271
271
|
})}
|
|
272
272
|
innerRef={formRef}
|
|
@@ -355,9 +355,14 @@ export default function ReviewLoan(props: any) {
|
|
|
355
355
|
}}
|
|
356
356
|
validationSchema={yup.object().shape({
|
|
357
357
|
loanAmount: yup.string().required('Số tiền là bắt buộc'),
|
|
358
|
-
rateTypeId: yup.number().required('
|
|
359
|
-
loanTime: yup
|
|
360
|
-
|
|
358
|
+
rateTypeId: yup.number().required('HTTT là bắt buộc').nullable(),
|
|
359
|
+
loanTime: yup
|
|
360
|
+
.number()
|
|
361
|
+
.required('Thời gian vay là bắt buộc')
|
|
362
|
+
.nullable(),
|
|
363
|
+
firstPaymentDate: yup
|
|
364
|
+
.string()
|
|
365
|
+
.required('Ngày thanh toán đầu kỳ là bắt buộc'),
|
|
361
366
|
bankName: yup.string().required('Vui lòng chọn ngân hàng'),
|
|
362
367
|
bankAccountName: yup.string().required('Vui lòng nhập chủ thẻ'),
|
|
363
368
|
bankAccountNumber: yup
|