调整
This commit is contained in:
@@ -32,6 +32,36 @@
|
|||||||
</json-excel>
|
</json-excel>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</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
|
<ai-table
|
||||||
:isShowPagination="false"
|
:isShowPagination="false"
|
||||||
:tableData="list"
|
:tableData="list"
|
||||||
@@ -62,6 +92,8 @@ import { Message } from 'element-ui'
|
|||||||
{
|
{
|
||||||
prop: 'productName',
|
prop: 'productName',
|
||||||
label: '商品名称',
|
label: '商品名称',
|
||||||
|
"show-overflow-tooltip": true,
|
||||||
|
width: '300px',
|
||||||
align: 'left'
|
align: 'left'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -75,15 +107,14 @@ import { Message } from 'element-ui'
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'className',
|
prop: 'productSkuId',
|
||||||
label: 'SKU属性',
|
label: 'SKU ID',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'supplierPrice',
|
prop: 'className',
|
||||||
label: '申报价格(CNY)',
|
label: 'SKU属性',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
format: v => v / 100
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'isVerifyPrice',
|
prop: 'isVerifyPrice',
|
||||||
@@ -91,11 +122,32 @@ import { Message } from 'element-ui'
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
format: v => v ? '核价通过': '核价未通过 / 无法备货'
|
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: {
|
jsonFields: {
|
||||||
"商品名称": "productName",
|
"商品名称": "productName",
|
||||||
"SPU": "productId",
|
"SPU": "productId",
|
||||||
"SKC": "productSkcId",
|
"SKC": "productSkcId",
|
||||||
|
"SKU ID": "productSkuId",
|
||||||
"SKU属性": "className",
|
"SKU属性": "className",
|
||||||
"申报价格(CNY)": {
|
"申报价格(CNY)": {
|
||||||
"field": "supplierPrice",
|
"field": "supplierPrice",
|
||||||
@@ -134,7 +186,8 @@ import { Message } from 'element-ui'
|
|||||||
"非VMI备货单数 - 在途单数": "notVmiOrderInfo.transportationNum",
|
"非VMI备货单数 - 在途单数": "notVmiOrderInfo.transportationNum",
|
||||||
"非VMI备货单数 - 发货延迟": "notVmiOrderInfo.deliveryDelayNum",
|
"非VMI备货单数 - 发货延迟": "notVmiOrderInfo.deliveryDelayNum",
|
||||||
"非VMI备货单数 - 到货延迟": "notVmiOrderInfo.arrivalDelayNum",
|
"非VMI备货单数 - 到货延迟": "notVmiOrderInfo.arrivalDelayNum",
|
||||||
"备货逻辑": "purchaseConfig"
|
"备货逻辑": "purchaseConfig",
|
||||||
|
"货值(CNY)": "productTotalPrice",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -180,7 +233,9 @@ import { Message } from 'element-ui'
|
|||||||
data.purchaseConfig = item.purchaseConfig;
|
data.purchaseConfig = item.purchaseConfig;
|
||||||
|
|
||||||
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),
|
||||||
|
warehouseInventoryNum: item.skuQuantityDetailList[j].inventoryNumInfo.warehouseInventoryNum}
|
||||||
this.list.push(data);
|
this.list.push(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,4 +267,9 @@ import { Message } from 'element-ui'
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.like {
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 25px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -234,12 +234,16 @@
|
|||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
step: 400,
|
step: 400,
|
||||||
|
randomValue: 400,
|
||||||
timer: [],
|
timer: [],
|
||||||
loadMallIndex: 0,
|
loadMallIndex: 0,
|
||||||
loadMode: 0, // 加载模式,0表示单个店铺加载,1表示一键加载
|
loadMode: 0, // 加载模式,0表示单个店铺加载,1表示一键加载
|
||||||
robMode: 0, // 抢仓模式,0表示普通抢仓,1表示极速抢仓
|
robMode: 0, // 抢仓模式,0表示普通抢仓,1表示极速抢仓
|
||||||
isCreateDeliveryBill: false,
|
isCreateDeliveryBill: false,
|
||||||
|
|
||||||
|
// 网络超时次数
|
||||||
|
networkErrorCount: 0,
|
||||||
|
|
||||||
successDlgShow: false,
|
successDlgShow: false,
|
||||||
successMallId: '',
|
successMallId: '',
|
||||||
successList: []
|
successList: []
|
||||||
@@ -314,6 +318,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleRobClick (e) {
|
handleRobClick (e) {
|
||||||
|
this.networkErrorCount = 0
|
||||||
if (e === 'normal') {
|
if (e === 'normal') {
|
||||||
this.robMode = 0
|
this.robMode = 0
|
||||||
} else if (e === 'faster') {
|
} else if (e === 'faster') {
|
||||||
@@ -476,10 +481,13 @@
|
|||||||
if (this.isBegin) {
|
if (this.isBegin) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.rob(sn, mallId)
|
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) {
|
createDeliveryBill(sn, mallId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user