lavoce #2
@@ -440,6 +440,34 @@ const DetailTag = (props) => {
|
|||||||
readOnly={props.readOnly}
|
readOnly={props.readOnly}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div style={{ marginBottom: 12 }}>
|
||||||
|
<Text strong>Plant Sub Section Name</Text>
|
||||||
|
<Select
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
placeholder="Select Plant Sub Section"
|
||||||
|
value={FormData.sub_section_id || undefined}
|
||||||
|
onChange={(value) => handleSelectChange('sub_section_id', value)}
|
||||||
|
disabled={props.readOnly}
|
||||||
|
loading={loadingPlantSubSections}
|
||||||
|
showSearch
|
||||||
|
allowClear
|
||||||
|
optionFilterProp="children"
|
||||||
|
filterOption={(input, option) => {
|
||||||
|
const text = option.children;
|
||||||
|
if (!text) return false;
|
||||||
|
return text.toLowerCase().includes(input.toLowerCase());
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{plantSubSectionList.map((section) => (
|
||||||
|
<Select.Option
|
||||||
|
key={section.sub_section_id}
|
||||||
|
value={section.sub_section_id}
|
||||||
|
>
|
||||||
|
{section.sub_section_name || ''}
|
||||||
|
</Select.Option>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
<div style={{ marginBottom: 12 }}>
|
<div style={{ marginBottom: 12 }}>
|
||||||
<Text strong>Device Code</Text>
|
<Text strong>Device Code</Text>
|
||||||
<Text style={{ color: 'red' }}> *</Text>
|
<Text style={{ color: 'red' }}> *</Text>
|
||||||
@@ -476,34 +504,6 @@ const DetailTag = (props) => {
|
|||||||
style={{ backgroundColor: '#f5f5f5' }}
|
style={{ backgroundColor: '#f5f5f5' }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginBottom: 12 }}>
|
|
||||||
<Text strong> Plant Sub Section Name</Text>
|
|
||||||
<Select
|
|
||||||
style={{ width: '100%' }}
|
|
||||||
placeholder="Select Plant Sub Section"
|
|
||||||
value={FormData.sub_section_id || undefined}
|
|
||||||
onChange={(value) => handleSelectChange('sub_section_id', value)}
|
|
||||||
disabled={props.readOnly}
|
|
||||||
loading={loadingPlantSubSections}
|
|
||||||
showSearch
|
|
||||||
allowClear
|
|
||||||
optionFilterProp="children"
|
|
||||||
filterOption={(input, option) => {
|
|
||||||
const text = option.children;
|
|
||||||
if (!text) return false;
|
|
||||||
return text.toLowerCase().includes(input.toLowerCase());
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{plantSubSectionList.map((section) => (
|
|
||||||
<Select.Option
|
|
||||||
key={section.sub_section_id}
|
|
||||||
value={section.sub_section_id}
|
|
||||||
>
|
|
||||||
{section.sub_section_name || ''}
|
|
||||||
</Select.Option>
|
|
||||||
))}
|
|
||||||
</Select>
|
|
||||||
</div>
|
|
||||||
{/* Device ID hidden - value dari dropdown */}
|
{/* Device ID hidden - value dari dropdown */}
|
||||||
<input type="hidden" name="device_id" value={FormData.device_id || ''} />
|
<input type="hidden" name="device_id" value={FormData.device_id || ''} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user