Commit 58bcf5f2 by 肖康

x

parent 7f160d42
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
v-html="'按'+goodDetail.mpq_unit_name+'购买'" v-html="'按'+goodDetail.mpq_unit_name+'购买'"
:class="{'act':navInit==1}" :class="{'act':navInit==1}"
@click="changeNav(1)" @click="changeNav(1)"
v-show="ispan"
></span> ></span>
</dd> </dd>
</dl> </dl>
...@@ -234,7 +235,8 @@ export default { ...@@ -234,7 +235,8 @@ export default {
zyladderArr: [], //阶梯价 zyladderArr: [], //阶梯价
zySingleInit: 0, //自营数量初始值 zySingleInit: 0, //自营数量初始值
goodsNum: 0, //商品数量 goodsNum: 0, //商品数量
isYushou:false isYushou:false,
ispan:true,//是否能整盘购买
}; };
}, },
computed: { computed: {
...@@ -245,12 +247,18 @@ export default { ...@@ -245,12 +247,18 @@ export default {
watch: { watch: {
goodDetail(res){ goodDetail(res){
//处理力创数据库存为0 //处理力创数据库存为0
if(util.aggxde(res.stock)==0&&res.self_supplier_type==2){ if(util.aggxde(res.goods_number)==0&&res.self_supplier_type==2){
res.isLcKc0=true; res.isLcKc0=true;
}else{ }else{
res.isLcKc0=false; res.isLcKc0=false;
} }
if(util.aggxde(res.goods_number)<util.aggxde(res.min_mpq)){
this.ispan=false
}else{
this.ispan=true
}
}, },
ypNum(now) { ypNum(now) {
if (String(now).indexOf(".") > 0) this.ypNum = ""; if (String(now).indexOf(".") > 0) this.ypNum = "";
......
This diff could not be displayed because it is too large.
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 sign in to comment