lavoce #2

Merged
yogiedigital merged 118 commits from lavoce into main 2025-10-20 04:06:02 +00:00
Showing only changes of commit 4e2da7d4fa - Show all commits

View File

@@ -440,6 +440,34 @@ const DetailTag = (props) => {
readOnly={props.readOnly}
/>
</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 }}>
<Text strong>Device Code</Text>
<Text style={{ color: 'red' }}> *</Text>
@@ -476,34 +504,6 @@ const DetailTag = (props) => {
style={{ backgroundColor: '#f5f5f5' }}
/>
</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 */}
<input type="hidden" name="device_id" value={FormData.device_id || ''} />
</div>