表头固定

This commit is contained in:
yanran200730
2023-09-12 20:49:22 +08:00
parent 456c2efffd
commit 1f47eec9d1

View File

@@ -106,6 +106,7 @@
<ai-table <ai-table
:isShowPagination="false" :isShowPagination="false"
:tableData="last30DaySkuList" :tableData="last30DaySkuList"
height="500"
:col-configs="col30DaysSkuConfigs" :col-configs="col30DaysSkuConfigs"
:total="last30DaySkuList.length" :total="last30DaySkuList.length"
style="margin-top: 8px;" style="margin-top: 8px;"
@@ -129,6 +130,7 @@
<ai-table <ai-table
:isShowPagination="false" :isShowPagination="false"
:tableData="last30DaySkcList" :tableData="last30DaySkcList"
height="500"
:col-configs="col30DaysSkcConfigs" :col-configs="col30DaysSkcConfigs"
:total="last30DaySkcList.length" :total="last30DaySkcList.length"
style="margin-top: 8px;" style="margin-top: 8px;"
@@ -228,14 +230,14 @@ import { Message } from 'element-ui'
{ {
prop: 'productName', prop: 'productName',
label: '商品名称', label: '商品名称',
"show-overflow-tooltip": true, "show-overflow-tooltip": true,
width: '280px', width: '280px',
align: 'left' align: 'left'
}, },
{ {
prop: 'mallName', prop: 'mallName',
label: '店铺名称', label: '店铺名称',
"show-overflow-tooltip": true, "show-overflow-tooltip": true,
width: '120px', width: '120px',
align: 'left' align: 'left'
}, },
@@ -318,8 +320,8 @@ import { Message } from 'element-ui'
} }
} }
}, },
] ]
}, },
col30DaysSkcConfigs () { col30DaysSkcConfigs () {
@@ -327,7 +329,7 @@ import { Message } from 'element-ui'
{ {
prop: 'productName', prop: 'productName',
label: '商品名称', label: '商品名称',
"show-overflow-tooltip": true, "show-overflow-tooltip": true,
width: '300px', width: '300px',
align: 'left', align: 'left',
fixed: 'left' fixed: 'left'
@@ -335,7 +337,7 @@ import { Message } from 'element-ui'
{ {
prop: 'mallName', prop: 'mallName',
label: '店铺名称', label: '店铺名称',
"show-overflow-tooltip": true, "show-overflow-tooltip": true,
width: '120px', width: '120px',
align: 'left', align: 'left',
fixed: 'left' fixed: 'left'
@@ -412,7 +414,7 @@ import { Message } from 'element-ui'
{ {
prop: 'productName', prop: 'productName',
label: '商品名称', label: '商品名称',
"show-overflow-tooltip": true, "show-overflow-tooltip": true,
width: '300px', width: '300px',
align: 'left', align: 'left',
fixed: 'left' fixed: 'left'
@@ -420,7 +422,7 @@ import { Message } from 'element-ui'
{ {
prop: 'mallName', prop: 'mallName',
label: '店铺名称', label: '店铺名称',
"show-overflow-tooltip": true, "show-overflow-tooltip": true,
width: '120px', width: '120px',
align: 'left', align: 'left',
fixed: 'left' fixed: 'left'
@@ -537,7 +539,7 @@ import { Message } from 'element-ui'
this.deliveryMoeny = 0.0 this.deliveryMoeny = 0.0
this.allProductList = [] this.allProductList = []
if (!this.mallId) { if (!this.mallId) {
Message.error("请先选择店铺") Message.error("请先选择店铺")
return return
} }
@@ -610,10 +612,10 @@ import { Message } from 'element-ui'
} else { } else {
data.onSalesDurationOffline = item.onSalesDurationOffline + '天' data.onSalesDurationOffline = item.onSalesDurationOffline + '天'
} }
for(let j = 0;j < item.skuQuantityDetailList.length; j++) { for(let j = 0;j < item.skuQuantityDetailList.length; j++) {
data = {...data, ...item.skuQuantityDetailList[j], data = {...data, ...item.skuQuantityDetailList[j],
productTotalPrice: ((item.skuQuantityDetailList[j].supplierPrice / 100) * item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum).toFixed(2), productTotalPrice: ((item.skuQuantityDetailList[j].supplierPrice / 100) * item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum).toFixed(2),
warehouseInventoryNum: item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum} warehouseInventoryNum: item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum}