Commit 2208b4ba authored by 武广's avatar 武广

fix: 去掉商品类型清空

parent 245c0292
...@@ -170,12 +170,7 @@ class goodsManage extends Component { ...@@ -170,12 +170,7 @@ class goodsManage extends Component {
<Input placeholder="请输入商品名称" allowClear style={selectW} /> <Input placeholder="请输入商品名称" allowClear style={selectW} />
</FormItem> </FormItem>
<FormItem label="商品类型" name="productType"> <FormItem label="商品类型" name="productType">
<Select <Select style={selectW} placeholder="请选择商品类型" onChange={this.onChangeProductType}>
style={selectW}
placeholder="请选择商品类型"
allowClear
onChange={this.onChangeProductType}
>
<Option value={1}>实体商品</Option> <Option value={1}>实体商品</Option>
<Option value={2}>虚拟商品</Option> <Option value={2}>虚拟商品</Option>
<Option value={4}>服务类商品</Option> <Option value={4}>服务类商品</Option>
......
...@@ -21,14 +21,13 @@ const GoodsGroup = options => { ...@@ -21,14 +21,13 @@ const GoodsGroup = options => {
const json = JSON.parse(user); const json = JSON.parse(user);
const res = await apiSupplierShopList(json.id); const res = await apiSupplierShopList(json.id);
if (res && res.data && res.data.length > 0) { if (res && res.data && res.data.length > 0) {
// setShops( setShops(
// res.data.map(item => ({ res.data.map(item => ({
// label: item.name, label: item.name,
// value: +item.id, value: +item.id,
// })), })),
// ); );
// options.changeShop(+res.data[0].id); options.changeShop(+res.data[0].id);
options.changeShop(0);
} else { } else {
options.changeShop(0); options.changeShop(0);
} }
......
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