Commit 28668385 authored by 靳野's avatar 靳野

fix:修复价格与库存单位显示问题 切换

parent 8879b7db
...@@ -464,7 +464,7 @@ const FormPriceOrStock = forwardRef((props, ref) => { ...@@ -464,7 +464,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
setMergeTable(Boolean(editData.secondSpecValue && editData.secondSpecValue.length)); setMergeTable(Boolean(editData.secondSpecValue && editData.secondSpecValue.length));
setTableData(fliterSkuListSortData(skuList) || []); setTableData(fliterSkuListSortData(skuList) || []);
} }
}, [customer.isEdit, customer.isUseCache, editData]); }, [customer.isEdit, customer.isUseCache, editData, customer.isGold]);
return ( return (
<> <>
......
...@@ -377,7 +377,7 @@ const ServiceGoods = options => { ...@@ -377,7 +377,7 @@ const ServiceGoods = options => {
} }
setPageLoading(false); setPageLoading(false);
})(); })();
}, [SourceData, categoryIds]); }, [SourceData]);
useEffect(() => { useEffect(() => {
if (options.visible) { if (options.visible) {
...@@ -443,9 +443,9 @@ const ServiceGoods = options => { ...@@ -443,9 +443,9 @@ const ServiceGoods = options => {
const onCategoryChange = e => { const onCategoryChange = e => {
setCategoryIds(e); setCategoryIds(e);
let txt = ''; let txt = '';
if (categoryIds.includes(GoldCategory)) { if (e.includes(GoldCategory)) {
txt = '千克'; txt = '千克';
} else if (e.includes(GoldCategory)) { } else {
txt = ''; txt = '';
} }
if (txt) { if (txt) {
......
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