import React, { useState } from 'react'; import { Button, Form, Input, Modal, Select, DatePicker } from 'antd'; const { TextArea } = Input; import { connect } from 'react-redux'; import Uploads from '$components/Uploads'; import { useEffect } from 'react'; import moment from 'moment'; const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, qrCodeId }) => { const { projectRegime } = actions const [form] = Form.useForm(); useEffect(() => { // console.log(modelData); }, []) return ( { form.validateFields().then(r => { dispatch(projectRegime.addPosition({ ...r, id: modelData?.id, projectId: qrCodeId })).then(res => { if (res.success) { success() } }) }) }} onCancel={() => { close() }} >
{ }} >
{/* /^\d+$|^\d*\.\d+$/g */} ~