Update
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export type Organizations = {
|
||||
id: number;
|
||||
code: string;
|
||||
no_hp: number;
|
||||
email: string;
|
||||
name: string;
|
||||
address: string;
|
||||
type: string;
|
||||
|
||||
@@ -116,6 +116,8 @@ export default function OrganizationsForm({ isEdit, currentOrganizations }: Prop
|
||||
name: currentOrganizations?.name || '',
|
||||
code: currentOrganizations?.code || '',
|
||||
phone: currentOrganizations?.phone || '',
|
||||
no_hp: currentOrganizations?.no_hp || '',
|
||||
email: currentOrganizations?.email || '',
|
||||
lat: currentOrganizations?.lat || '',
|
||||
lng: currentOrganizations?.lng || '',
|
||||
address: currentOrganizations?.address || '',
|
||||
@@ -185,6 +187,8 @@ export default function OrganizationsForm({ isEdit, currentOrganizations }: Prop
|
||||
formData.append('name', data.name);
|
||||
formData.append('code', data.code);
|
||||
formData.append('phone', data.phone);
|
||||
formData.append('no_hp', data.no_hp);
|
||||
formData.append('email', data.email);
|
||||
formData.append('lat', data.lat);
|
||||
formData.append('lng', data.lng);
|
||||
formData.append('address', data.address);
|
||||
@@ -361,7 +365,7 @@ export default function OrganizationsForm({ isEdit, currentOrganizations }: Prop
|
||||
const findValueCorporate = selectedCorporatID.find(
|
||||
(item: any) => item.value === currentOrganizations?.corporate_id_partner
|
||||
);
|
||||
|
||||
|
||||
return (
|
||||
<FormProvider methods={methods} onSubmit={handleSubmit(onSubmit)}>
|
||||
<Stack spacing={3}>
|
||||
@@ -391,6 +395,14 @@ export default function OrganizationsForm({ isEdit, currentOrganizations }: Prop
|
||||
<LabelStyle>Nomor IGD</LabelStyle>
|
||||
<RHFTextField name="phone" placeholder="Tuliskan No IGD" />
|
||||
</Grid>
|
||||
<Grid item xs={12} md={6}>
|
||||
<LabelStyle>No. HP</LabelStyle>
|
||||
<RHFTextField name="no_hp" placeholder="Tuliskan No. HP" />
|
||||
</Grid>
|
||||
<Grid item xs={12} md={6}>
|
||||
<LabelStyle>Email</LabelStyle>
|
||||
<RHFTextField name="email" placeholder="Tuliskan Email" />
|
||||
</Grid>
|
||||
<Grid item xs={12}>
|
||||
<LabelStyle>Alamat</LabelStyle>
|
||||
<RHFTextField name="address" placeholder="Tuliskan Alamat" />
|
||||
|
||||
@@ -301,9 +301,21 @@ export default function List() {
|
||||
<Grid item xs={10}>
|
||||
: {row.code ? row.code : '-'}
|
||||
</Grid>
|
||||
<Grid item xs={2}>
|
||||
No. HP
|
||||
</Grid>
|
||||
<Grid item xs={10}>
|
||||
: {row.no_hp ? row.no_hp : '-'}
|
||||
</Grid>
|
||||
<Grid item xs={2}>
|
||||
Email
|
||||
</Grid>
|
||||
<Grid item xs={10}>
|
||||
: {row.email ? row.email : '-'}
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={2}>
|
||||
Rekanan
|
||||
Rekanan
|
||||
</Grid>
|
||||
<Grid item xs={10}>
|
||||
: {row.corporate_name ? row.corporate_name : '-'}
|
||||
|
||||
Reference in New Issue
Block a user