优化:酒道馆商品列表 购买多规格商品时 商品某个规格不存在库存则不显示购买数量输入框

This commit is contained in:
wuhui_zzw 2024-03-09 17:03:41 +08:00
parent 60b41f0ce8
commit a106aff01c
2 changed files with 5 additions and 6 deletions

View File

@ -139,7 +139,7 @@
import {mapGetters} from "vuex";
import authorize from '@/components/Authorize';
import {supplierGoodsList, withGoodsCartAdd} from "@/api/supplier";
import {withGoodsCartDel, withGoodsCartIds, withGoodsCartList, withGoodsChangeNum} from "../../../api/supplier";
import {withGoodsCartDel, withGoodsCartIds, withGoodsCartList} from "@/api/supplier";
export default {
name: 'business',

View File

@ -127,7 +127,7 @@
<view v-if="(batch_list[currentGoods.product_id] || 0) == 1" class="stock">
库存{{ Math.floor((currentGoods.selected.stock || 0) / currentGoods.batch_num) }}
</view>
<view v-else class="stock">库存{{ currentGoods.selected.stock || '' }}</view>
<view v-else class="stock">库存{{ currentGoods.selected.stock || 0 }}</view>
</view>
<text class="iconfont icon-cha2 close-btn" @click="closeMoreSpecsSelect"></text>
</view>
@ -148,7 +148,7 @@
</view>
</view>
<!--数量变更-->
<view class="bottom-content">
<view class="bottom-content" v-if="(currentGoods.selected.stock || 0) > 0">
<!--操作按钮-->
<view class="num-change">
<text class="iconfont icon-shangpinshuliang-jian" @click="buyFlowChangeNum('reduce', currentGoods.selected)"></text>
@ -216,10 +216,9 @@
<script>
import { mapGetters } from "vuex";
import authorize from '@/components/Authorize';
import {wineGoodsList, wineWithGoodsCartAdd, wineWithGoodsCartDel, wineWithGoodsCartIds, wineWithGoodsCartList} from "@/api/wine";
import {wineGoodsList, wineWithGoodsCartAdd, wineWithGoodsCartDel, wineWithGoodsCartIds, wineWithGoodsCartList, wineList} from "@/api/wine";
import { getUserInfo } from '@/api/user.js';
import {getBrandlist, getProductCate} from "../../api/store";
import {wineList} from "../../api/wine";
import {getBrandlist, getProductCate} from "@/api/store";
export default {
name: 'business',