提交 4dc9ddd6 authored 作者: huaxinzhu's avatar huaxinzhu

商品详情兼容老数据

上级 0061122d
......@@ -96,7 +96,7 @@
</el-table-column>
<el-table-column align="center" prop="" label="价格" >
<template slot-scope="scope">
<el-input size="mini" style="width:90%" v-model.number="scope.row.money" placeholder="价格" ></el-input>
<el-input size="mini" style="width:90%" v-model.trim="scope.row.money" placeholder="价格" ></el-input>
</template>
</el-table-column>
<el-table-column align="center" prop="" label="操作" >
......@@ -318,7 +318,7 @@
<!-- </template>-->
<template slot-scope="scope">
<el-input size="mini" v-for="(iten,inde) in scope.row.ladder" :key="inde" style="width:90%"
v-model="scope.row.ladder[inde].quantity" placeholder="请输入"
v-model.number="scope.row.ladder[inde].quantity" placeholder="请输入"
class="custom-el-input-con"></el-input>
</template>
</el-table-column>
......@@ -333,7 +333,7 @@
<!-- </template>-->
<template slot-scope="scope">
<el-input size="mini" v-for="(iten,inde) in scope.row.ladder" :key="inde" style="width:90%"
v-model="scope.row.ladder[inde].money" placeholder="请输入"
v-model.trim="scope.row.ladder[inde].money" placeholder="请输入"
class="custom-el-input-con"></el-input>
</template>
</el-table-column>
......
......@@ -215,8 +215,8 @@
goods_des: res.data.goods_des, // 商品标签
goods_name: res.data.goods_name, // 商品标题
category_id: res.data.category_id,
metering_unit: res.data.metering_unit,// 计量单位
packaging_unit: res.data.packaging_unit,// 包装单位
metering_unit: res.data.metering_unit !== 0 ? res.data.metering_unit : "",// 计量单位, 三目兼容老数据
packaging_unit: res.data.packaging_unit !== 0 ? res.data.packaging_unit : "",// 包装单位
conversion_unit: res.data.conversion_unit, // 换算关系
producing_area_id: "", // 产地的idlist
producing_area: res.data.producing_area, // 产地中文名称
......@@ -226,9 +226,9 @@
goods_brand: res.data.goods_brand, // 品牌
brand_id: res.data.brand_id, // 品牌
web_url: res.data.web_url, // 市场参考价链接
group: res.data.group, // 商品分组
supplier: res.data.supplier, // 供应商
storehouse: res.data.storehouse, // 仓库
group: res.data.group !== 0 ? res.data.group : "", // 商品分组
supplier: res.data.supplier !== 0 ? res.data.supplier : "", // 供应商
storehouse: res.data.storehouse !== 0 ? res.data.storehouse : "", // 仓库
imgs: res.data.imgs, // 商品图片
video:res.data.video,
ssfl: (res.data.category_three_id && res.data.category_three_name) ? res.data.category_three_name : ""
......@@ -257,9 +257,6 @@
});
}
// 是否启用阶梯定价
// 商品规格, 售价由规格决定
if(res.data.specs && res.data.specs.length > 0) {
this.specificationsdata = res.data.specs;
......@@ -267,7 +264,6 @@
this.parameterdata.isradioguide = 2
this.parameterdata.is_ladder = false
this.parameterdata.is_ladder_spec = res.data.is_ladder == 1 ? true : false;
// this.$bus.$emit("FUCK",this.parameterdata.is_ladder_spec)
}else{
this.parameterdata['specs']=[]
this.radioguide = 1
......@@ -276,7 +272,6 @@
this.parameterdata.is_ladder_spec = false;
}
// debugger
// 商品售价
// 多规格
if(res.data.specs_group && res.data.specs_group.length > 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论