|  |  | 
 |  |  |         form.resetFields(); | 
 |  |  |         if (curSprite) { | 
 |  |  |             form.setFieldsValue({ | 
 |  |  |  | 
 |  |  |                 // shelf | 
 |  |  |                 row: curSprite?.data?.row, | 
 |  |  |                 bay: curSprite?.data?.bay, | 
 |  |  |                 no: curSprite?.data?.no, | 
 |  |  |                 shelfType: Utils.SHELF_TYPE.STORE, | 
 |  |  |                 ...curSprite.data | 
 |  |  |             }) | 
 |  |  |         } | 
 |  |  |     }, [props, form]); | 
 |  |  | 
 |  |  |         // execute where the form was finished | 
 |  |  |         const confirmSettings = () => { | 
 |  |  |             if (curSprite && curSprite?.data?.type) { | 
 |  |  |                 switch (curSprite.data.type) { | 
 |  |  |                     case Utils.SENSOR_TYPE.SHELF: | 
 |  |  |                         curSprite.data.no = values.no; // * | 
 |  |  |                         curSprite.data.row = values.row; | 
 |  |  |                         curSprite.data.bay = values.bay; | 
 |  |  |                         break; | 
 |  |  |                     case Utils.SENSOR_TYPE.POINT: | 
 |  |  |                         curSprite.data.no = values.no; // * | 
 |  |  |                         curSprite.data.horizontal = values.horizontal; | 
 |  |  |                         curSprite.data.vertical = values.vertical; | 
 |  |  |                         break; | 
 |  |  |                     case Utils.SENSOR_TYPE.AGV: | 
 |  |  |                         curSprite.data.no = values.no; // * | 
 |  |  |                         break; | 
 |  |  |                     default: | 
 |  |  |                         break; | 
 |  |  |                 } | 
 |  |  |                 curSprite.data = { ...curSprite.data, ...values }; | 
 |  |  |                 Utils.showSheflType(curSprite); | 
 |  |  |             } | 
 |  |  |             message.success(intl.formatMessage({ id: 'common.success', defaultMessage: '操作成功' })); | 
 |  |  |         } | 
 |  |  | 
 |  |  |                 disabled={false} | 
 |  |  |                 layout='horizontal' | 
 |  |  |                 labelCol={{ | 
 |  |  |                     span: 4, | 
 |  |  |                     span: 5, | 
 |  |  |                 }} | 
 |  |  |                 wrapperCol={{ | 
 |  |  |                     span: 20, | 
 |  |  |                     span: 19, | 
 |  |  |                 }} | 
 |  |  |             > | 
 |  |  |                 <br /> | 
 |  |  | 
 |  |  |                     <span>{curSprite?.data?.type}</span> | 
 |  |  |                 </Form.Item> | 
 |  |  |                 <Form.Item | 
 |  |  |                     label={intl.formatMessage({ id: 'map.settings.uuid', defaultMessage: '地图号' })} | 
 |  |  |                     label={intl.formatMessage({ id: 'map.settings.uuid', defaultMessage: '图号' })} | 
 |  |  |                 > | 
 |  |  |                     <span>{curSprite?.data?.uuid}</span> | 
 |  |  |                 </Form.Item> | 
 |  |  | 
 |  |  |                     </> | 
 |  |  |                 )} | 
 |  |  |  | 
 |  |  |                 {curSprite?.data?.type === Utils.SENSOR_TYPE.SHUTTLE && ( | 
 |  |  |                     <> | 
 |  |  |  | 
 |  |  |                     </> | 
 |  |  |                 )} | 
 |  |  |  | 
 |  |  |                 {curSprite?.data?.type === Utils.SENSOR_TYPE.SHELF && ( | 
 |  |  |                     <> | 
 |  |  |                         <Form.Item | 
 |  |  |                             name='row' | 
 |  |  |                             label={intl.formatMessage({ id: 'map.settings.shelf.row', defaultMessage: '排' })} | 
 |  |  |                             label={intl.formatMessage({ id: 'map.settings.shelf.location', defaultMessage: '库位' })} | 
 |  |  |                         > | 
 |  |  |                             <Space.Compact> | 
 |  |  |                                 <Form.Item | 
 |  |  |                                     name='row' | 
 |  |  |                                     noStyle | 
 |  |  |                                     rules={[ | 
 |  |  |                                         { | 
 |  |  |                                             required: false, | 
 |  |  |                                         }, | 
 |  |  |                                     ]} | 
 |  |  |                                 > | 
 |  |  |                                     <InputNumber | 
 |  |  |                                         addonBefore={<Space.Compact><FormattedMessage id='map.settings.shelf.row' defaultMessage='排' /></Space.Compact>} | 
 |  |  |                                         style={{ | 
 |  |  |                                             width: '50%', | 
 |  |  |                                         }} | 
 |  |  |                                     /> | 
 |  |  |                                 </Form.Item> | 
 |  |  |                                 <Form.Item | 
 |  |  |                                     name='bay' | 
 |  |  |                                     noStyle | 
 |  |  |                                     rules={[ | 
 |  |  |                                         { | 
 |  |  |                                             required: false, | 
 |  |  |                                         }, | 
 |  |  |                                     ]} | 
 |  |  |                                 > | 
 |  |  |                                     <InputNumber | 
 |  |  |                                         addonBefore={<Space.Compact><FormattedMessage id='map.settings.shelf.bay' defaultMessage='列' /></Space.Compact>} | 
 |  |  |                                         style={{ | 
 |  |  |                                             width: '50%', | 
 |  |  |                                         }} | 
 |  |  |                                     /> | 
 |  |  |                                 </Form.Item> | 
 |  |  |                             </Space.Compact> | 
 |  |  |                         </Form.Item> | 
 |  |  |                         <Form.Item | 
 |  |  |                             name='shelfType' | 
 |  |  |                             label={intl.formatMessage({ id: 'map.settings.shelf.type', defaultMessage: '类型' })} | 
 |  |  |                             rules={[ | 
 |  |  |                                 { | 
 |  |  |                                     required: false, | 
 |  |  |                                     required: true, | 
 |  |  |                                 }, | 
 |  |  |                             ]} | 
 |  |  |                         > | 
 |  |  |                             <InputNumber | 
 |  |  |                                 style={{ | 
 |  |  |                                     width: '50%', | 
 |  |  |                                 }} | 
 |  |  |                             <Select | 
 |  |  |                                 style={{ width: 120 }} | 
 |  |  |                                 options={[ | 
 |  |  |                                     { | 
 |  |  |                                         label: intl.formatMessage({ id: 'map.settings.shelf.store', defaultMessage: '库位' }), | 
 |  |  |                                         value: Utils.SHELF_TYPE.STORE | 
 |  |  |                                     }, | 
 |  |  |                                     { | 
 |  |  |                                         label: intl.formatMessage({ id: 'map.settings.shelf.track', defaultMessage: '轨道' }), | 
 |  |  |                                         value: Utils.SHELF_TYPE.TRACK | 
 |  |  |                                     }, | 
 |  |  |                                     { | 
 |  |  |                                         label: intl.formatMessage({ id: 'map.settings.shelf.diable', defaultMessage: '禁用' }), | 
 |  |  |                                         value: Utils.SHELF_TYPE.DISABLE | 
 |  |  |                                     }, | 
 |  |  |                                 ]} | 
 |  |  |                             /> | 
 |  |  |                         </Form.Item> | 
 |  |  |                         <Form.Item | 
 |  |  |                             name='bay' | 
 |  |  |                             label={intl.formatMessage({ id: 'map.settings.shelf.bay', defaultMessage: '列' })} | 
 |  |  |                             rules={[ | 
 |  |  |                                 { | 
 |  |  |                                     required: false, | 
 |  |  |                                 }, | 
 |  |  |                             ]} | 
 |  |  |                             label={intl.formatMessage({ id: 'map.settings.shelf.space', defaultMessage: '间距' })} | 
 |  |  |                         > | 
 |  |  |                             <InputNumber | 
 |  |  |                             <Space.Compact> | 
 |  |  |                                 <Form.Item | 
 |  |  |                                     name='top' | 
 |  |  |                                     noStyle | 
 |  |  |                                 > | 
 |  |  |                                     <InputNumber | 
 |  |  |                                         addonBefore={<Space.Compact><FormattedMessage id='map.settings.shelf.top' defaultMessage='上' /></Space.Compact>} | 
 |  |  |                                         style={{ | 
 |  |  |                                             width: '50%', | 
 |  |  |                                         }} | 
 |  |  |                                     /> | 
 |  |  |                                 </Form.Item> | 
 |  |  |                                 <Form.Item | 
 |  |  |                                     name='bottom' | 
 |  |  |                                     noStyle | 
 |  |  |                                 > | 
 |  |  |                                     <InputNumber | 
 |  |  |                                         addonBefore={<Space.Compact><FormattedMessage id='map.settings.shelf.bottom' defaultMessage='下' /></Space.Compact>} | 
 |  |  |                                         style={{ | 
 |  |  |                                             width: '50%', | 
 |  |  |                                         }} | 
 |  |  |                                     /> | 
 |  |  |                                 </Form.Item> | 
 |  |  |                             </Space.Compact> | 
 |  |  |                         </Form.Item> | 
 |  |  |                         <Form.Item | 
 |  |  |                             label={' '} | 
 |  |  |                         > | 
 |  |  |                             <Space.Compact> | 
 |  |  |                                 <Form.Item | 
 |  |  |                                     name='left' | 
 |  |  |                                     noStyle | 
 |  |  |                                 > | 
 |  |  |                                     <InputNumber | 
 |  |  |                                         addonBefore={<Space.Compact><FormattedMessage id='map.settings.shelf.left' defaultMessage='左' /></Space.Compact>} | 
 |  |  |                                         style={{ | 
 |  |  |                                             width: '50%', | 
 |  |  |                                         }} | 
 |  |  |                                     /> | 
 |  |  |                                 </Form.Item> | 
 |  |  |                                 <Form.Item | 
 |  |  |                                     name='right' | 
 |  |  |                                     noStyle | 
 |  |  |                                 > | 
 |  |  |                                     <InputNumber | 
 |  |  |                                         addonBefore={<Space.Compact><FormattedMessage id='map.settings.shelf.right' defaultMessage='右' /></Space.Compact>} | 
 |  |  |                                         style={{ | 
 |  |  |                                             width: '50%', | 
 |  |  |                                         }} | 
 |  |  |                                     /> | 
 |  |  |                                 </Form.Item> | 
 |  |  |                             </Space.Compact> | 
 |  |  |                         </Form.Item> | 
 |  |  |                         <Form.Item | 
 |  |  |                             name='value' | 
 |  |  |                             label={intl.formatMessage({ id: 'map.settings.shelf.value', defaultMessage: '地图值' })} | 
 |  |  |                         > | 
 |  |  |                             <Input | 
 |  |  |                                 style={{ | 
 |  |  |                                     width: '50%', | 
 |  |  |                                 }} |