This commit is contained in:
liushiwei
2023-09-05 23:28:50 +08:00
parent 37bafe6279
commit b9991b4af2
4 changed files with 72 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
<template>
<ai-list class="list" v-loading="isLoading">
<ai-list class="list" v-loading="isLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
<ai-title
slot="title"
title="销售数据"
@@ -290,6 +290,23 @@ import { Message } from 'element-ui'
return a.productTotalPrice - b.productTotalPrice
}
},
{
prop: 'purchaseConfig',
label: '备货逻辑',
align: 'center',
fixed: "right",
sortable: true,
'sort-method': (a, b) => {
if (a.purchaseConfig > b.purchaseConfig) {
return 1
} else if (a.purchaseConfig == b.purchaseConfig) {
return 0
} else {
return -1
}
}
},
]
},
@@ -338,7 +355,13 @@ import { Message } from 'element-ui'
align: 'center',
sortable: true,
'sort-method': (a, b) => {
return new Number(a[dateStr]) - new Number(b[dateStr])
if (a > b) {
return 1
} else if (a == b) {
return 0
} else {
return -1
}
}})
}
@@ -422,7 +445,13 @@ import { Message } from 'element-ui'
align: 'center',
sortable: true,
'sort-method': (a, b) => {
return new Number(a[dateStr]) - new Number(b[dateStr])
if (a > b) {
return 1
} else if (a == b) {
return 0
} else {
return -1
}
}})
}