refactor plant section
This commit is contained in:
@@ -64,39 +64,7 @@ const DetailPlantSection = ({ visible, onCancel, onOk, form, editingKey, readOnl
|
||||
rules={[{ required: true, message: 'Silakan masukkan nama sub section!' }]}
|
||||
style={{ marginBottom: 0 }}
|
||||
>
|
||||
<Input readOnly={readOnly} placeholder="Masukkan Kode Plant" />
|
||||
</Form.Item>
|
||||
</div>
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<Text strong>Nama Plant</Text>
|
||||
<Text style={{ color: 'red' }}> *</Text>
|
||||
<Form.Item
|
||||
name="nama_plant"
|
||||
rules={[{ required: true, message: 'Silakan masukkan nama plant!' }]}
|
||||
style={{ marginBottom: 0 }}
|
||||
>
|
||||
<Input readOnly={readOnly} placeholder="Masukkan Nama Plant" />
|
||||
</Form.Item>
|
||||
</div>
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<Text strong>Lokasi Plant</Text>
|
||||
<Text style={{ color: 'red' }}> *</Text>
|
||||
<Form.Item
|
||||
name="lokasi_plant"
|
||||
rules={[{ required: true, message: 'Silakan masukkan lokasi plant!' }]}
|
||||
style={{ marginBottom: 0 }}
|
||||
>
|
||||
<Input readOnly={readOnly} placeholder="Masukkan Lokasi Plant" />
|
||||
</Form.Item>
|
||||
</div>
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<Text strong>Deskripsi</Text>
|
||||
<Form.Item name="deskripsi" style={{ marginBottom: 0 }}>
|
||||
<Input.TextArea
|
||||
readOnly={readOnly}
|
||||
placeholder="Masukkan Deskripsi (Opsional)"
|
||||
rows={4}
|
||||
/>
|
||||
<Input readOnly={readOnly} placeholder="Masukkan Nama Sub Section" />
|
||||
</Form.Item>
|
||||
</div>
|
||||
</Form>
|
||||
|
||||
@@ -26,38 +26,26 @@ const ListPlantSection = ({
|
||||
title: 'No',
|
||||
dataIndex: 'sub_section_id',
|
||||
key: 'sub_section_id',
|
||||
width: '10%',
|
||||
width: '8%',
|
||||
render: (text, record, index) => index + 1,
|
||||
},
|
||||
{
|
||||
title: 'Kode Sub Section',
|
||||
dataIndex: 'sub_section_code',
|
||||
key: 'sub_section_code',
|
||||
width: '20%',
|
||||
},
|
||||
{
|
||||
title: 'Nama Sub Section',
|
||||
dataIndex: 'sub_section_name',
|
||||
key: 'sub_section_name',
|
||||
width: '35%',
|
||||
},
|
||||
{
|
||||
title: 'Kode Plant',
|
||||
dataIndex: 'kode_plant',
|
||||
key: 'kode_plant',
|
||||
},
|
||||
{
|
||||
title: 'Nama Plant',
|
||||
dataIndex: 'nama_plant',
|
||||
key: 'nama_plant',
|
||||
},
|
||||
{
|
||||
title: 'Lokasi Plant',
|
||||
dataIndex: 'lokasi_plant',
|
||||
key: 'lokasi_plant',
|
||||
},
|
||||
{
|
||||
title: 'Deskripsi',
|
||||
dataIndex: 'deskripsi',
|
||||
key: 'deskripsi',
|
||||
},
|
||||
|
||||
{
|
||||
title: 'Aksi',
|
||||
key: 'action',
|
||||
width: '15%',
|
||||
width: '10%',
|
||||
render: (_, record) => (
|
||||
<Space size="middle">
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user