|
@@ -1,5 +1,5 @@
|
|
|
import React from 'react';
|
|
|
-import { Icon, Button, Input, Select, Spin, Table, message, DatePicker ,Modal,Form} from 'antd';
|
|
|
+import { Icon, Button, Input,InputNumber, Select, Spin, Table, message, DatePicker ,Modal,Form} from 'antd';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
import moment from 'moment';
|
|
|
import NewDesc from '@/administration/messagePush/messageIn/messageDesc';
|
|
@@ -319,8 +319,8 @@ const DemandList = React.createClass({
|
|
|
<Modal
|
|
|
className="customeDetails"
|
|
|
footer=''
|
|
|
- title="新增抵用券"
|
|
|
- width='600px'
|
|
|
+ title="新增通用券"
|
|
|
+ width='400px'
|
|
|
visible={this.state.visitModul}
|
|
|
onOk={this.visitOk}
|
|
|
onCancel={this.visitCancel}
|
|
@@ -330,14 +330,14 @@ const DemandList = React.createClass({
|
|
|
<div className="clearfix" >
|
|
|
<FormItem
|
|
|
{...formItemLayout}
|
|
|
- label="劵面名称"
|
|
|
+ label={<span><strong style={{color:'#f00'}}> * </strong>劵面名称</span>}
|
|
|
>
|
|
|
<Input placeholder="券面名称" value={this.state.newName} onChange={(e) => {
|
|
|
this.setState({ newName: e.target.value }) }} />
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
{...formItemLayout}
|
|
|
- label="优惠券来源"
|
|
|
+ label={<span><strong style={{color:'#f00'}}> * </strong>优惠券来源</span>}
|
|
|
>
|
|
|
<Select placeholder="优惠券来源" value={this.state.source}
|
|
|
onChange={(e)=>{this.setState({source:e})}}>
|
|
@@ -350,21 +350,27 @@ const DemandList = React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
{...formItemLayout}
|
|
|
- label="面额"
|
|
|
+ label={<span><strong style={{color:'#f00'}}> * </strong>面额</span>}
|
|
|
>
|
|
|
- <Input placeholder="面额" style={{width:'95%'}} value={this.state.money} onChange={(e) => {
|
|
|
- this.setState({ money: e.target.value }) }} /> 元
|
|
|
+ <InputNumber min={0}
|
|
|
+ formatter={(value)=>value}
|
|
|
+ parser={(val)=>parseInt(val)||0}
|
|
|
+ max={999999} step={0} placeholder="面额" value={this.state.money} onChange={(e) => {
|
|
|
+ this.setState({ money: e }) }} /> 元
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
{...formItemLayout}
|
|
|
- label="使用期限"
|
|
|
+ label={<span><strong style={{color:'#f00'}}> * </strong>使用期限</span>}
|
|
|
>
|
|
|
- <Input placeholder="使用期限" style={{width:'95%'}} value={this.state.durationDay} onChange={(e) => {
|
|
|
- this.setState({ durationDay: e.target.value }) }} /> 天
|
|
|
+ <InputNumber min={0} max={9999}
|
|
|
+ formatter={(value)=>value}
|
|
|
+ parser={(val)=>parseInt(val)||0}
|
|
|
+ step={0} placeholder="使用期限" value={this.state.durationDay} onChange={(e) => {
|
|
|
+ this.setState({ durationDay: e }) }} /> 天
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:'150px'}}>保存</Button>
|
|
|
- <Button type="ghost" onClick={this.visitCancel} style={{marginLeft:'100px'}}>取消</Button>
|
|
|
+ <Button className="setSubmit" type="primary" htmlType="submit" style={{marginLeft:'92px'}}>保存</Button>
|
|
|
+ <Button type="ghost" onClick={this.visitCancel} style={{marginLeft:'40px',marginBottom:20}}>取消</Button>
|
|
|
</Spin>
|
|
|
</Form>
|
|
|
</Modal>
|