Commit 8b8d564f authored by guang.wu's avatar guang.wu

fix: 修改重量最大限制

parent 9bb1b190
...@@ -230,14 +230,14 @@ export const StaticColumns = customer => [ ...@@ -230,14 +230,14 @@ export const StaticColumns = customer => [
batchProps: { batchProps: {
min: 0, min: 0,
precision: customer.isGold ? 2 : 3, precision: customer.isGold ? 2 : 3,
max: 999999.999, max: customer.isGold ? 100 : 999999.999,
}, },
role: [1], role: [1],
roleRules: { required: true }, roleRules: { required: true },
roleProps: { roleProps: {
min: 0, min: 0,
precision: customer.isGold ? 2 : 3, precision: customer.isGold ? 2 : 3,
max: 999999.999, max: customer.isGold ? 100 : 999999.999,
}, },
disabeldRender: () => customer.isDisabled, disabeldRender: () => customer.isDisabled,
}, },
......
...@@ -440,6 +440,15 @@ const ServiceGoods = options => { ...@@ -440,6 +440,15 @@ const ServiceGoods = options => {
// 切换类目 // 切换类目
const onCategoryChange = e => { const onCategoryChange = e => {
setCategoryIds(e); setCategoryIds(e);
let txt = '';
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