展开

Form

最后发布时间 : 2024-12-05 19:44:29 浏览量 :

                <Form.Item label="采样时间"  name="toBeSentOutDate" rules={[{ required: true, message: '请输入采样时间' }]}>
                    {/* {({ getFieldValue, setFieldsValue }: FormInstance) => {
                        const value = getFieldValue('toBeSentOutDate')
                        // setFieldsValue
                        // if (!value) return null
                        return (
                            <DatePickerComponents value={value} onChange={setFieldsValue} disabled={isDisabled}></DatePickerComponents>
                        )
                    }} */}
                     <DatePickerComponents  disabled={isDisabled}></DatePickerComponents>
                </Form.Item>

                <Form.Item label="采样时间"  name="toBeSentOutDate" rules={[{ required: true, message: '请输入采样时间' }]}>
                    {/* {({ getFieldValue, setFieldsValue }: FormInstance) => {
                        const value = getFieldValue('toBeSentOutDate')
                        // setFieldsValue
                        // if (!value) return null
                        return (
                            <DatePickerComponents value={value} onChange={setFieldsValue} disabled={isDisabled}></DatePickerComponents>
                        )
                    }} */}
                     <DatePickerComponents  disabled={isDisabled}></DatePickerComponents>
                </Form.Item>