商品参数修改
parent
5368f3c323
commit
6100f1e39a
|
@ -151,7 +151,7 @@ export default {
|
||||||
count: 1, // 商品数量
|
count: 1, // 商品数量
|
||||||
imgIndex: 0, // 展示图片下标
|
imgIndex: 0, // 展示图片下标
|
||||||
currentSelceted: [], // 当前商品sku
|
currentSelceted: [], // 当前商品sku
|
||||||
imgList: this.detail.data.specList[0].specImage || [], // 商品图片列表
|
imgList: this.detail.data.specList[0].specImage || [{}], // 商品图片列表
|
||||||
skuDetail: this.detail.data, // sku详情
|
skuDetail: this.detail.data, // sku详情
|
||||||
goodsSpecList: this.detail.specs, // 商品spec
|
goodsSpecList: this.detail.specs, // 商品spec
|
||||||
promotionMap: { // 活动状态
|
promotionMap: { // 活动状态
|
||||||
|
|
|
@ -87,11 +87,16 @@
|
||||||
</div>
|
</div>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane label="商品参数">
|
<TabPane label="商品参数">
|
||||||
<table class="mt_10" border="1" cellpadding='0' cellspacing="0" v-if="skuDetail.goodsParamsList && skuDetail.length">
|
<template v-if="detail.goodsParamsDTOList && detail.goodsParamsDTOList.length">
|
||||||
<tr v-for="param in skuDetail.goodsParamsList" :key="param">
|
<div class="goods-params" v-for="item in detail.goodsParamsDTOList" :key="item.groupId">
|
||||||
<td>{{param.paramName}}</td><td>{{param.paramValue}}</td>
|
<span class="ml_10">{{item.groupName}}</span>
|
||||||
</tr>
|
<table class="mt_10" cellpadding='0' cellspacing="0" >
|
||||||
</table>
|
<tr v-for="param in item.goodsParamsItemDTOList" :key="param.paramId">
|
||||||
|
<td style="text-align:right">{{param.paramName}}</td><td>{{param.paramValue}}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<div v-else>暂无商品参数</div>
|
<div v-else>暂无商品参数</div>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
@ -131,7 +136,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeHeight (name) { // 设置商品详情高度
|
changeHeight (name) { // 设置商品详情高度
|
||||||
let heightCss = window.getComputedStyle(this.$refs[name]).height;
|
let heightCss = window.getComputedStyle(this.$refs[name]).height;
|
||||||
heightCss = parseInt(heightCss.substr(0, heightCss.length - 2)) + 89;
|
heightCss = parseInt(heightCss.substr(0, heightCss.length - 2)) + 89;
|
||||||
this.$refs.itemIntroDetail.style.height = heightCss + 'px';
|
this.$refs.itemIntroDetail.style.height = heightCss + 'px';
|
||||||
|
@ -486,15 +491,25 @@ export default {
|
||||||
table{
|
table{
|
||||||
border-color: #eee;
|
border-color: #eee;
|
||||||
color: #999;
|
color: #999;
|
||||||
width: 70%;
|
width: 50%;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
tr{
|
tr{
|
||||||
td:nth-child(1){
|
td:nth-child(1){
|
||||||
width: 200px;
|
width: 100px;
|
||||||
|
}
|
||||||
|
td:nth-child(2){
|
||||||
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
td{
|
td{
|
||||||
padding: 5px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.goods-params {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
margin-left: 30px;
|
||||||
|
span{color:#999}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -12,6 +12,10 @@ export const verificationCode = verificationCode => {
|
||||||
export const downLoadDeliverExcel = params => {
|
export const downLoadDeliverExcel = params => {
|
||||||
return getRequest(`/orders/downLoadDeliverExcel`, params, 'blob');
|
return getRequest(`/orders/downLoadDeliverExcel`, params, 'blob');
|
||||||
};
|
};
|
||||||
|
// 下载待发货的订单列表
|
||||||
|
export const queryExportOrder = params => {
|
||||||
|
return getRequest(`/orders/queryExportOrder`, params);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// 上传待发货的订单列表
|
// 上传待发货的订单列表
|
||||||
|
|
Loading…
Reference in New Issue