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

fix: 去掉商品类型清空

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