|
@@ -124,6 +124,15 @@ export default class CreateOrder extends Component {
|
|
|
merchantPrice: 800,
|
|
|
terminalPrice: 1000,
|
|
|
}],
|
|
|
+ },{
|
|
|
+ id: 'package-1',
|
|
|
+ code: '课程包-01',
|
|
|
+ name: '小学一年级语文课程包',
|
|
|
+ type: 'PACKAGE',
|
|
|
+ coverUrl: 'https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png',
|
|
|
+ goods: [{
|
|
|
+
|
|
|
+ }]
|
|
|
}],
|
|
|
};
|
|
|
const { userCode, userName, campusName, merchantName, merchantId, products } = currentItem;
|
|
@@ -179,6 +188,7 @@ export default class CreateOrder extends Component {
|
|
|
render: (text, record) => (
|
|
|
<InputNumber
|
|
|
min={0}
|
|
|
+ defaultValue={0}
|
|
|
formatter={value => `¥ ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
|
|
|
parser={value => value.replace(/\¥\s?|(,*)/g, '')}
|
|
|
/>
|
|
@@ -194,8 +204,9 @@ export default class CreateOrder extends Component {
|
|
|
render: (text, record) => (
|
|
|
<InputNumber
|
|
|
min={1}
|
|
|
- formatter={value => `X ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
|
|
|
- parser={value => value.replace(/\X\s?|(,*)/g, '')}
|
|
|
+ defaultValue={1}
|
|
|
+ formatter={value => `x ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
|
|
|
+ parser={value => value.replace(/\x\s?|(,*)/g, '')}
|
|
|
/>
|
|
|
),
|
|
|
},{
|
|
@@ -229,6 +240,7 @@ export default class CreateOrder extends Component {
|
|
|
<Form.Item label="添加商品" {...formItemLayout}>
|
|
|
<Button onClick={this.handleProductSelectBtnClick} disabled={merchantId ? false : true} type="primary" size="small" icon="plus-circle-o">添加</Button>
|
|
|
<Table
|
|
|
+ size="large"
|
|
|
className={styles.table}
|
|
|
rowKey={record => record.id}
|
|
|
pagination={false}
|
|
@@ -268,6 +280,15 @@ export default class CreateOrder extends Component {
|
|
|
/>
|
|
|
</Card>
|
|
|
<FooterToolbar>
|
|
|
+ <Dropdown.Button
|
|
|
+ overlay={
|
|
|
+ <Menu>
|
|
|
+ <Menu.Item>¥1000 / 年</Menu.Item>
|
|
|
+ <Menu.Item>¥2000 / 季</Menu.Item>
|
|
|
+ </Menu>
|
|
|
+ }
|
|
|
+ >
|
|
|
+ </Dropdown.Button>
|
|
|
<Button>取消</Button>
|
|
|
<Button type="primary">完成</Button>
|
|
|
</FooterToolbar>
|