调整
This commit is contained in:
@@ -32,6 +32,36 @@
|
||||
</json-excel>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<div>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<div><el-statistic group-separator="," :precision="2" :value="value2" :title="title"></el-statistic></div>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<div><el-statistic title="今天销量"><template slot="formatter"> 456/2 </template></el-statistic></div>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<div>
|
||||
<el-statistic group-separator="," :precision="2" decimal-separator="." :value="11111" title="t11itle">
|
||||
<template slot="prefix"><i class="el-icon-s-flag" style="color: red"></i></template>
|
||||
<template slot="suffix"><i class="el-icon-s-flag" style="color: blue"></i></template>
|
||||
</el-statistic>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<div>
|
||||
<el-statistic :value="like ? 521 : 520" title="Feedback">
|
||||
<template slot="suffix">
|
||||
<span @click="like = !like" class="like">
|
||||
<i class="el-icon-star-on" style="color:red" v-show="!!like"></i>
|
||||
<i class="el-icon-star-off" v-show="!like"></i>
|
||||
</span>
|
||||
</template>
|
||||
</el-statistic>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<ai-table
|
||||
:isShowPagination="false"
|
||||
:tableData="list"
|
||||
@@ -62,6 +92,8 @@ import { Message } from 'element-ui'
|
||||
{
|
||||
prop: 'productName',
|
||||
label: '商品名称',
|
||||
"show-overflow-tooltip": true,
|
||||
width: '300px',
|
||||
align: 'left'
|
||||
},
|
||||
{
|
||||
@@ -75,15 +107,14 @@ import { Message } from 'element-ui'
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'className',
|
||||
label: 'SKU属性',
|
||||
prop: 'productSkuId',
|
||||
label: 'SKU ID',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'supplierPrice',
|
||||
label: '申报价格(CNY)',
|
||||
align: 'center',
|
||||
format: v => v / 100
|
||||
prop: 'className',
|
||||
label: 'SKU属性',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'isVerifyPrice',
|
||||
@@ -91,11 +122,32 @@ import { Message } from 'element-ui'
|
||||
align: 'center',
|
||||
format: v => v ? '核价通过': '核价未通过 / 无法备货'
|
||||
},
|
||||
{
|
||||
prop: 'supplierPrice',
|
||||
label: '申报价格(CNY)',
|
||||
align: 'center',
|
||||
format: v => v / 100,
|
||||
fixed: "right"
|
||||
},
|
||||
{
|
||||
prop: 'warehouseInventoryNum',
|
||||
label: '仓内可用库存',
|
||||
align: 'center',
|
||||
fixed: "right"
|
||||
},
|
||||
{
|
||||
prop: 'productTotalPrice',
|
||||
label: '货值(CNY)',
|
||||
align: 'center',
|
||||
fixed: "right"
|
||||
},
|
||||
|
||||
],
|
||||
jsonFields: {
|
||||
"商品名称": "productName",
|
||||
"SPU": "productId",
|
||||
"SKC": "productSkcId",
|
||||
"SKU ID": "productSkuId",
|
||||
"SKU属性": "className",
|
||||
"申报价格(CNY)": {
|
||||
"field": "supplierPrice",
|
||||
@@ -134,7 +186,8 @@ import { Message } from 'element-ui'
|
||||
"非VMI备货单数 - 在途单数": "notVmiOrderInfo.transportationNum",
|
||||
"非VMI备货单数 - 发货延迟": "notVmiOrderInfo.deliveryDelayNum",
|
||||
"非VMI备货单数 - 到货延迟": "notVmiOrderInfo.arrivalDelayNum",
|
||||
"备货逻辑": "purchaseConfig"
|
||||
"备货逻辑": "purchaseConfig",
|
||||
"货值(CNY)": "productTotalPrice",
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -180,7 +233,9 @@ import { Message } from 'element-ui'
|
||||
data.purchaseConfig = item.purchaseConfig;
|
||||
|
||||
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),
|
||||
warehouseInventoryNum: item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum}
|
||||
this.list.push(data);
|
||||
}
|
||||
}
|
||||
@@ -212,4 +267,9 @@ import { Message } from 'element-ui'
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.like {
|
||||
cursor: pointer;
|
||||
font-size: 25px;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -234,12 +234,16 @@
|
||||
pageSize: 100,
|
||||
currentPage: 1,
|
||||
step: 400,
|
||||
randomValue: 400,
|
||||
timer: [],
|
||||
loadMallIndex: 0,
|
||||
loadMode: 0, // 加载模式,0表示单个店铺加载,1表示一键加载
|
||||
robMode: 0, // 抢仓模式,0表示普通抢仓,1表示极速抢仓
|
||||
isCreateDeliveryBill: false,
|
||||
|
||||
// 网络超时次数
|
||||
networkErrorCount: 0,
|
||||
|
||||
successDlgShow: false,
|
||||
successMallId: '',
|
||||
successList: []
|
||||
@@ -314,6 +318,7 @@
|
||||
},
|
||||
|
||||
handleRobClick (e) {
|
||||
this.networkErrorCount = 0
|
||||
if (e === 'normal') {
|
||||
this.robMode = 0
|
||||
} else if (e === 'faster') {
|
||||
@@ -476,10 +481,13 @@
|
||||
if (this.isBegin) {
|
||||
setTimeout(() => {
|
||||
this.rob(sn, mallId)
|
||||
}, this.choosedList.length * this.step)
|
||||
}, this.choosedList.length * this.step + Math.floor((Math.random() * this.randomValue) + 1))
|
||||
}
|
||||
}
|
||||
}
|
||||
if (40002 == res.error_code) {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
createDeliveryBill(sn, mallId) {
|
||||
|
||||
Reference in New Issue
Block a user