Commit 5a1ffce2 authored by 靳野's avatar 靳野

Revert "feat: 修改投资金转换问题"

This reverts commit 41a1755f.
parent de85055d
......@@ -229,6 +229,7 @@ const CreateBatchFormItems = ({ specInitValue, batchChange, defaultColumns }) =>
const FormPriceOrStock = forwardRef((props, ref) => {
const { specList, editData, skuList = [], onSpecChange } = props;
const editRef = useRef(null);
const packageRef = useRef(null);
const customer = useContext(ServiceContext);
......@@ -456,15 +457,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
setMergeTable(Boolean(editData.secondSpecValue && editData.secondSpecValue.length));
setTableData(fliterSkuListSortData(skuList) || []);
}
}, [customer.isEdit, customer.isUseCache, editData, skuList]);
useEffect(() => {
if (!editData) {
onFinish();
return;
}
CreateColumnsEvent(editData);
}, [customer.isGold]);
}, [customer.isEdit, customer.isUseCache, editData]);
return (
<>
......
......@@ -377,7 +377,7 @@ const ServiceGoods = options => {
}
setPageLoading(false);
})();
}, [SourceData]);
}, [SourceData, categoryIds]);
useEffect(() => {
if (options.visible) {
......@@ -443,10 +443,10 @@ const ServiceGoods = options => {
const onCategoryChange = e => {
setCategoryIds(e);
let txt = '';
if (e.includes(GoldCategory)) {
txt = '';
} else if (categoryIds.includes(GoldCategory) && !e.includes(GoldCategory)) {
if (categoryIds.includes(GoldCategory)) {
txt = '千克';
} else if (e.includes(GoldCategory)) {
txt = '';
}
if (txt) {
message.warning(`商品品类已切换,规格重量单位已自动切换为${txt}`, 6);
......
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