提交 ed945fa9 作者: 龚洪江

Merge branch 'master' into develop

...@@ -154,10 +154,10 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({ ...@@ -154,10 +154,10 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
// // 根据产品类型获取产品列表 // // 根据产品类型获取产品列表
const handleProdTypeSelect = (id: number) => { const handleProdTypeSelect = (id: number) => {
getProductList(id); getProductList(id);
// skuForm.setFieldsValue({ skuForm.setFieldsValue({
// skuId: undefined, skuId: undefined,
// specIds: undefined, specIds: undefined,
// }); });
// getProduct(id); // getProduct(id);
}; };
// //
...@@ -228,7 +228,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({ ...@@ -228,7 +228,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
const ids: number[] = result.list.reduce((pre: number[], cur) => { const ids: number[] = result.list.reduce((pre: number[], cur) => {
return cur.priceList || goodsType === 1 ? [...pre, cur.id] : pre; return cur.priceList || goodsType === 1 ? [...pre, cur.id] : pre;
}, []); }, []);
skuForm.setFieldValue('specIds', ids); skuForm.setFieldValue('specIds', ids.length ? ids : undefined);
} }
}, },
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论