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

商品详情兼容老数据

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