Commit f317f0f7 authored by beisir's avatar beisir

feat: merge-master

parent 0b03c0f7
...@@ -73,15 +73,21 @@ class goodsManage extends Component { ...@@ -73,15 +73,21 @@ class goodsManage extends Component {
return ( return (
<Form name="horizontal_login" layout="inline" className={styles.searchForm}> <Form name="horizontal_login" layout="inline" className={styles.searchForm}>
<FormItem label="SKU编码"> <FormItem label="SKU编码">
{getFieldDecorator('skuId', {})(<Input allowClear style={selectW} />)} {getFieldDecorator('skuId', {})(
<Input placeholder="请输入SKU编码" allowClear style={selectW} />,
)}
</FormItem> </FormItem>
<FormItem label="商品名称"> <FormItem label="商品名称">
{getFieldDecorator('skuName', {})(<Input allowClear style={selectW} />)} {getFieldDecorator('skuName', {})(
<Input placeholder="请输入商品名称" allowClear style={selectW} />,
)}
</FormItem> </FormItem>
<FormItem label="类目"> <FormItem label="类目">
{getFieldDecorator('productCategoryId', {})( {getFieldDecorator('productCategoryId', {})(
<Cascader <Cascader
placeholder="请选择类目"
style={selectW} style={selectW}
showSearch
changeOnSelect changeOnSelect
fieldNames={{ label: 'name', value: 'id', children: 'children' }} fieldNames={{ label: 'name', value: 'id', children: 'children' }}
options={treeData} options={treeData}
...@@ -90,7 +96,12 @@ class goodsManage extends Component { ...@@ -90,7 +96,12 @@ class goodsManage extends Component {
</FormItem> </FormItem>
<FormItem label="审核状态"> <FormItem label="审核状态">
{getFieldDecorator('state', {})( {getFieldDecorator('state', {})(
<Select style={selectW} allowClear showSearch filterOption={filterOption}> <Select
style={selectW}
placeholder="请选择审核状态"
allowClear
filterOption={filterOption}
>
{stateList?.map(item => ( {stateList?.map(item => (
<Option key={item.value} value={item.value}> <Option key={item.value} value={item.value}>
{item.label} {item.label}
...@@ -101,17 +112,25 @@ class goodsManage extends Component { ...@@ -101,17 +112,25 @@ class goodsManage extends Component {
</FormItem> </FormItem>
<FormItem label="供货价区间"> <FormItem label="供货价区间">
<FormItem className={styles.iptNumRight}> <FormItem className={styles.iptNumRight}>
{getFieldDecorator('supplyPriceMin', {})(<InputNumber style={iptNumWidth} />)} {getFieldDecorator('supplyPriceMin', {})(
<InputNumber placeholder="请输入" style={iptNumWidth} />,
)}
</FormItem> </FormItem>
<span>--</span> <span>--</span>
<FormItem className={styles.iptNumRight}> <FormItem className={styles.iptNumRight}>
{getFieldDecorator('supplyPriceMax', {})( {getFieldDecorator('supplyPriceMax', {})(
<InputNumber style={iptNumWidth} min={getFieldValue('supplyPriceMin')} />, <InputNumber
style={iptNumWidth}
placeholder="请输入"
min={getFieldValue('supplyPriceMin')}
/>,
)} )}
</FormItem> </FormItem>
</FormItem> </FormItem>
<FormItem label="第三方SKU编码"> <FormItem label="第三方SKU编码">
{getFieldDecorator('thirdSkuNo', {})(<Input allowClear style={selectW} />)} {getFieldDecorator('thirdSkuNo', {})(
<Input placeholder="请输入第三方SKU编码" allowClear style={selectW} />,
)}
</FormItem> </FormItem>
<FormItem className={styles.queryBtn}> <FormItem className={styles.queryBtn}>
<Button onClick={() => this.handleSearch()} type="primary" className={styles.button}> <Button onClick={() => this.handleSearch()} type="primary" className={styles.button}>
...@@ -121,7 +140,7 @@ class goodsManage extends Component { ...@@ -121,7 +140,7 @@ class goodsManage extends Component {
重置 重置
</Button> </Button>
</FormItem> </FormItem>
<FormItem style={{ width: '100%', textAlign: 'right' }}> <FormItem style={{ float: 'right' }}>
<Button type="primary" className={styles.button} onClick={this.addSpu}> <Button type="primary" className={styles.button} onClick={this.addSpu}>
新增商品 新增商品
</Button> </Button>
......
...@@ -534,7 +534,7 @@ class goodsManage extends Component { ...@@ -534,7 +534,7 @@ class goodsManage extends Component {
style={{ width: 690 }} style={{ width: 690 }}
changeOnSelect changeOnSelect
showSearch showSearch
placeholder="请输入商品名称" placeholder="请选择类目,支持模糊搜索"
fieldNames={{ label: 'name', value: 'id', children: 'children' }} fieldNames={{ label: 'name', value: 'id', children: 'children' }}
options={treeDataArray} options={treeDataArray}
onChange={(val, label, ext) => this.treeChange(val, label, ext)} onChange={(val, label, ext) => this.treeChange(val, label, ext)}
...@@ -566,7 +566,7 @@ class goodsManage extends Component { ...@@ -566,7 +566,7 @@ class goodsManage extends Component {
showSearch showSearch
style={{ width: 280 }} style={{ width: 280 }}
filterOption={filterOption} filterOption={filterOption}
placeholder="请选择,支持模糊搜索" placeholder="请选择商品品牌,支持模糊搜索"
> >
{brandListArray?.length && {brandListArray?.length &&
brandListArray.map(item => ( brandListArray.map(item => (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment