feat(commission): 支持计奖商品参与设置、独立分成与多规格规则,完善团队中心与微信快捷登录
这个提交包含在:
@@ -189,8 +189,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
}
|
||||
|
||||
function onConfirm() {
|
||||
let cleanedPrices = (goods.score_sku_prices || []).map(item => {
|
||||
let clone = { ...item };
|
||||
if (clone.status === 'up') {
|
||||
clone.score = (clone.score === '' || clone.score === undefined || clone.score === null) ? 0 : Number(clone.score);
|
||||
clone.price = (clone.price === '' || clone.price === undefined || clone.price === null) ? 0 : Number(clone.price);
|
||||
clone.stock = (clone.stock === '' || clone.stock === undefined || clone.stock === null) ? 0 : Number(clone.stock);
|
||||
}
|
||||
return clone;
|
||||
});
|
||||
let submitForm = {
|
||||
sku_prices: goods.score_sku_prices,
|
||||
sku_prices: cleanedPrices,
|
||||
}
|
||||
if (state.type == 'add') {
|
||||
submitForm = {
|
||||
|
||||
在新工单中引用
屏蔽一个用户