Commit b05baa6d authored by XieZhiXiong's avatar XieZhiXiong
parents 839a4a15 96884935
...@@ -108,10 +108,10 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => { ...@@ -108,10 +108,10 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
if (JSON.stringify(brandList) === JSON.stringify(selectBrandList)) { if (JSON.stringify(brandList) === JSON.stringify(selectBrandList)) {
return return
} }
if (selectBrandList.length <= 0) { // if (selectBrandList.length <= 0) {
message.error("请选择要推荐的品牌") // message.error("请选择要推荐的品牌")
return // return
} // }
setConfirmLoading(true) setConfirmLoading(true)
saveBrand().then(() => { saveBrand().then(() => {
changeProps({ changeProps({
......
...@@ -190,11 +190,12 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => { ...@@ -190,11 +190,12 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
if (JSON.stringify(goodsList) === JSON.stringify(selectGoodsList)) { if (JSON.stringify(goodsList) === JSON.stringify(selectGoodsList)) {
return return
} }
console.log('handleConfirmSave2') // console.log('handleConfirmSave2')
if (selectGoodsList.length <= 0) { // if (selectGoodsList.length <= 0) {
message.error("请选择要推荐的商品") // message.error("请选择要推荐的商品")
return // return
} else if (selectGoodsList.length > 10) { // } else
if (selectGoodsList.length > 10) {
message.error("最多只能推荐10件商品") message.error("最多只能推荐10件商品")
return return
} }
......
...@@ -110,10 +110,10 @@ const ShopSetting: React.FC<ShopSettingPropsType> = (props) => { ...@@ -110,10 +110,10 @@ const ShopSetting: React.FC<ShopSettingPropsType> = (props) => {
return return
} }
if (selectShopsList.length <= 0) { // if (selectShopsList.length <= 0) {
message.error("请选择要推荐的店铺") // message.error("请选择要推荐的店铺")
return // return
} // }
setConfirmLoading(true) setConfirmLoading(true)
saveShop().then(() => { saveShop().then(() => {
changeProps({ changeProps({
......
...@@ -460,9 +460,9 @@ const CommodityDetail = (props) => { ...@@ -460,9 +460,9 @@ const CommodityDetail = (props) => {
return return
} }
if (stockCount < commodityDetail.minOrder) { if (buyCount < commodityDetail.minOrder) {
message.destroy() message.destroy()
message.info("库存不足") message.info("购买数量不能低于最小购买量")
return return
} }
......
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
.content { .content {
position: relative; position: relative;
min-height: 600px;
} }
} }
\ No newline at end of file
...@@ -734,7 +734,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -734,7 +734,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
} }
</div> </div>
<div className={cx(styles.order_list_item_item, styles.count)}> <div className={cx(styles.order_list_item_item, styles.count)}>
<InputNumber disabled={true} max={childItem.stockCount || 0} min={childItem.commodityUnitPrice.commodity.minOrder || 1} value={childItem.count} onChange={(value) => handleCountChange(value, childItem.id)} /> <InputNumber max={childItem.stockCount || 0} min={childItem.commodityUnitPrice.commodity.minOrder || 1} value={childItem.count} onChange={(value) => handleCountChange(value, childItem.id)} />
<div className={styles.stock}> <div className={styles.stock}>
<span>(库存{numFormat(childItem.stockCount)}{childItem.commodityUnitPrice.commodity.unitName})</span> <span>(库存{numFormat(childItem.stockCount)}{childItem.commodityUnitPrice.commodity.unitName})</span>
</div> </div>
......
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