🐞 fix(购物页面): 修复购物页面调整价格出错的bug
This commit is contained in:
@@ -81,10 +81,13 @@ let ColorKindItem: FC<PropsType> = props => {
|
||||
targetColor.length = formatMeterMul(num)
|
||||
}
|
||||
const res = await fetchData({
|
||||
color_list: [targetColor],
|
||||
purchaser_id: purchaserId,
|
||||
sale_mode: itemData.sale_mode,
|
||||
sale_offset: itemData.sale_offset,
|
||||
// color_list: [targetColor],
|
||||
// purchaser_id: purchaserId,
|
||||
// sale_mode: itemData.sale_mode,
|
||||
// sale_offset: itemData.sale_offset,
|
||||
id: itemData.id,
|
||||
roll: targetColor.roll,
|
||||
length: targetColor.length,
|
||||
})
|
||||
if (res.success) {
|
||||
state?.Observer?.notify(purchaserId)
|
||||
@@ -118,8 +121,8 @@ let ColorKindItem: FC<PropsType> = props => {
|
||||
<Counter
|
||||
onBlue={e => getInputValue(e, itemData)}
|
||||
defaultNum={formatCount(itemData)}
|
||||
step={selectList[orderType].step}
|
||||
digits={selectList[orderType].digits}
|
||||
step={itemData.step}
|
||||
digits={itemData.digits}
|
||||
onClickBtn={e => getInputValue(e, itemData)}
|
||||
unit={formatUnit(itemData)}
|
||||
minNum={itemData.sale_mode == EnumSaleMode.Bulk ? itemData.min_num : formatMeterDiv(itemData.min_num)}
|
||||
|
||||
Reference in New Issue
Block a user