|
|
|
@ -0,0 +1,116 @@ |
|
|
|
import * as React from "react"; |
|
|
|
import { connect, Dispatch } from "react-redux"; |
|
|
|
import { StMainView, StAppWithMainView } from "."; |
|
|
|
import { Grid, Row, Col, Table, ButtonToolbar, Button, Panel, FormControl, Checkbox } from "react-bootstrap"; |
|
|
|
|
|
|
|
interface Props { }; |
|
|
|
|
|
|
|
interface Callbacks { }; |
|
|
|
|
|
|
|
function mainView(props: Props & Callbacks) { |
|
|
|
return <Grid> |
|
|
|
<Row style={{ height: "calc(20vh - 50px)" }}> |
|
|
|
<Col xs={3}> |
|
|
|
<div>0.00</div> |
|
|
|
<ButtonToolbar> |
|
|
|
<Button>启用称重</Button> |
|
|
|
<Button disabled>停止称重</Button> |
|
|
|
</ButtonToolbar> |
|
|
|
<div>宰杀日期:<input /></div> |
|
|
|
</Col> |
|
|
|
<Col xs={5} style={{ height: "15vh", flexWrap: "wrap", display: "flex", flexDirection: "column", alignItems: "center" }}> |
|
|
|
<Checkbox>打印条码</Checkbox> |
|
|
|
<Button>打印选中</Button> |
|
|
|
<Button>同步数据</Button> |
|
|
|
<Button>称设置</Button> |
|
|
|
<Button>扣重项</Button> |
|
|
|
<div>屠宰顺序: 0 已宰头数: 0</div> |
|
|
|
</Col> |
|
|
|
<Col xs={4}> |
|
|
|
<ButtonToolbar> |
|
|
|
<Button bsSize="large">掉猪</Button> |
|
|
|
<Button bsSize="large">删除选中</Button> |
|
|
|
<Button bsSize="large">数据校验</Button> |
|
|
|
</ButtonToolbar> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row> |
|
|
|
<Col xs={8}> |
|
|
|
<Row> |
|
|
|
<Panel style={{ height: "40vh" }} header="烫褪"> |
|
|
|
<Col xs={6} > |
|
|
|
<Table > |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>屠宰顺序</th> |
|
|
|
<th>头数</th> |
|
|
|
<th>已宰</th> |
|
|
|
<th>完毕</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</Table> |
|
|
|
</Col> |
|
|
|
<Col xs={6}> |
|
|
|
<ButtonToolbar> |
|
|
|
<Button bsStyle="info">一级</Button> |
|
|
|
<Button bsStyle="info">二级</Button> |
|
|
|
<Button bsStyle="info">三级</Button> |
|
|
|
</ButtonToolbar> |
|
|
|
</Col> |
|
|
|
</Panel> |
|
|
|
</Row> |
|
|
|
<Row> |
|
|
|
<Panel style={{ height: "40vh" }} header="毛剥"> |
|
|
|
<Col xs={6}> |
|
|
|
<Table> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>屠宰顺序</th> |
|
|
|
<th>头数</th> |
|
|
|
<th>已宰</th> |
|
|
|
<th>完毕</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</Table> |
|
|
|
</Col> |
|
|
|
<Col xs={6}> |
|
|
|
<ButtonToolbar> |
|
|
|
<Button>一级</Button> |
|
|
|
<Button>二级</Button> |
|
|
|
<Button>三级</Button> |
|
|
|
</ButtonToolbar> |
|
|
|
</Col> |
|
|
|
</Panel> |
|
|
|
</Row> |
|
|
|
</Col> |
|
|
|
<Col xs={4}> |
|
|
|
<Panel style={{ height: "calc(80vh + 20px)" }} header="记录"> |
|
|
|
<Table> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>序号</th> |
|
|
|
<th>顺序</th> |
|
|
|
<th>工艺</th> |
|
|
|
<th>级别</th> |
|
|
|
<th>重量</th> |
|
|
|
<th>时间</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</Table> |
|
|
|
</Panel> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</Grid>; |
|
|
|
} |
|
|
|
|
|
|
|
function mapStateToProps(st: StAppWithMainView): Props { |
|
|
|
return { |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
function mapDispatchToProps(dispatch: Dispatch<StAppWithMainView>): Callbacks { |
|
|
|
return { |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
export const MainView = connect(mapStateToProps, mapDispatchToProps)(mainView); |