Commit 8c27f62c authored by zhengke's avatar zhengke

修改

parent 325a13dd
......@@ -23,7 +23,9 @@
color: #409EFF;
cursor: pointer;
}
.gdDis_Item{
background-color: #e1e3e6!important;
}
</style>
<template>
<div class="flexOne goodlist">
......@@ -129,14 +131,27 @@
{{currentGoodsObj.name}}
</div>
<el-form label-width="80px" size="small">
<template v-for="(subItem,subIndex) in currentGoodsObj.attr_groups">
<el-form-item :key="subIndex" :label="subItem.attr_group_name" style="line-height:25px;">
<span class="gd_Item" v-for="(childItem,childIndex) in subItem.attr_list" :key="childIndex"
@click="chooseSpec(subIndex,childIndex),calcTotalPrice()"
:class="{'checkSpec':subItem.checkId==childItem.attr_id}">
{{childItem.attr_name}}
</span>
</el-form-item>
<template>
<template v-if="currentGoodsObj.goods_stock>0">
<template v-for="(subItem,subIndex) in currentGoodsObj.attr_groups">
<el-form-item :key="subIndex" :label="subItem.attr_group_name" style="line-height:25px;">
<span class="gd_Item" v-for="(childItem,childIndex) in subItem.attr_list" :key="childIndex"
@click="chooseSpec(subIndex,childIndex),calcTotalPrice()"
:class="{'checkSpec':subItem.checkId==childItem.attr_id}">
{{childItem.attr_name}}
</span>
</el-form-item>
</template>
</template>
<template v-else>
<template v-for="(subItem,subIndex) in currentGoodsObj.attr_groups">
<el-form-item :key="subIndex" :label="subItem.attr_group_name" style="line-height:25px;">
<span class="gd_Item gdDis_Item" v-for="(childItem,childIndex) in subItem.attr_list" :key="childIndex">
{{childItem.attr_name}}
</span>
</el-form-item>
</template>
</template>
</template>
<el-form-item label="购买数量" size="small">
<el-input-number @change="calcTotalPrice()" size="small" style="height:32px;" v-model="orderMsg.Number"
......@@ -447,6 +462,7 @@
})
}
this.DataList = tempArray;
console.log(this.DataList,'datalist');
this.msg.total = res.data.data.count;
}
});
......@@ -529,6 +545,12 @@
NewUserId: this.orderMsg.mallUserId,
NewShopId: this.getLocalStorage().MallSmallShopsId
}
if(this.currentGoodsObj.goods_stock>0){
if(DetailList[0].SpecificationList.length==0){
this.Error('请选择规格');
return;
}
}
this.mallapipost("/api/AppletOrder/SetERPGoodsOrderInfo", orderData, res => {
if (res.data.resultCode == 1) {
......
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