From 7494e99f73c3aa28f7caf8b6b0c063a0cb6035cf Mon Sep 17 00:00:00 2001 From: gabrhr <73925454+gabrhr@users.noreply.github.com> Date: Fri, 3 Jun 2022 17:17:41 -0500 Subject: Add page Simulacion 7 dias falta bastante solo v1 para probar back --- .../Odipar/Simulacion/Simulacion7Dias.js | 8 +- .../containers/Odipar/Simulacion/SimulacionMain.js | 96 ++++++++++++++++++++++ 2 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 front/odiparpack/app/containers/Odipar/Simulacion/SimulacionMain.js (limited to 'front/odiparpack/app/containers/Odipar') diff --git a/front/odiparpack/app/containers/Odipar/Simulacion/Simulacion7Dias.js b/front/odiparpack/app/containers/Odipar/Simulacion/Simulacion7Dias.js index eff6d5d..97bcf5b 100644 --- a/front/odiparpack/app/containers/Odipar/Simulacion/Simulacion7Dias.js +++ b/front/odiparpack/app/containers/Odipar/Simulacion/Simulacion7Dias.js @@ -1,7 +1,7 @@ import React, { Component } from "react"; import { withStyles } from '@material-ui/core/styles'; import {getX, getY} from './utilCoords' -import { Icon } from "@material-ui/core"; +import { Icon, Typography } from "@material-ui/core"; import { TransformWrapper, TransformComponent } from "react-zoom-pan-pinch"; import { mapaH, mapaW } from "odi-utils/constants" @@ -47,6 +47,10 @@ class Simulacion7Dias extends Component { ] render() { return ( + <> + + {`Resultado de simulación a 7 días`} + - + ); } } diff --git a/front/odiparpack/app/containers/Odipar/Simulacion/SimulacionMain.js b/front/odiparpack/app/containers/Odipar/Simulacion/SimulacionMain.js new file mode 100644 index 0000000..616fab8 --- /dev/null +++ b/front/odiparpack/app/containers/Odipar/Simulacion/SimulacionMain.js @@ -0,0 +1,96 @@ +import React, {Component} from "react"; +import { Button, Divider, FormControl, Grid, InputLabel, MenuItem, Paper, Select, Typography } from "@material-ui/core"; +import { withStyles } from '@material-ui/core/styles'; +import { Field, reduxForm } from "redux-form"; +import { SelectRedux } from 'ba-components/Forms/ReduxFormMUI'; + +const styles = ({ + root: { + flexGrow: 1, + marginTop: 30, + padding: 20 + }, + field: { + width: '70%', + marginBottom: 20 + } + }); + + const initData = { + selection: 'option1', + }; + +class SimulacionMain extends Component { + state = { + tipo:'' + } + + changeTipo(tipo){ + this.setState({tipo: tipo}) + } + + handleChange = event => { + this.setState({ [event.target.name]: event.target.value }); + }; + + render() { + const trueBool = true; + const { classes } = this.props; + return ( +
+ + {`Simulación`} + +
+ + + + + {`Datos generales`} + +
+
+ + Tipo de simulación + + +
+ +
+ +
+
+
+ + + + {`Pedidos`} + + +
+
+
+
+ ); + } +} + +const SimulacionMainMapped = reduxForm({ + form: 'immutableExample', + })(SimulacionMain); + +export default withStyles(styles)(SimulacionMainMapped); \ No newline at end of file -- cgit v1.2.3