提交 b273c54f authored 作者: lidongxu's avatar lidongxu

feat(supply): 供应链BI 列表接口定义

request 里的促销接口判断前缀要大于 0,因为 -1
上级 ef2a623a
......@@ -9,6 +9,7 @@ export * from './bi/livecate'
export * from './bi/product'
export * from './bi/sale'
export * from './bi/store'
export * from './jimu/index'
export * from './monitor/cache'
export * from './monitor/job'
export * from './monitor/jobLog'
......
import request from '@/utils/request'
// 获取报表列表
export function getReportListAPI() {
return request({
url: '/report/share/list'
})
}
\ No newline at end of file
......@@ -31,7 +31,7 @@ service.interceptors.request.use(config => {
// 是否需要防止数据重复提交
const isRepeatSubmit = (config.headers || {}).repeatSubmit === false
if (getToken() && !isToken) {
if (config.url.indexOf(promotionBaseURL)) {
if (config.url.indexOf(promotionBaseURL) >= 0) {
// 促销后台不能带 Bearer 前缀
config.headers['Authorization'] = getToken()
} else {
......
<template>
<div>
</div>
</template>
<script setup>
import { getReportListAPI } from '@/api'
const getReportList = async () => {
const res = await getReportListAPI()
console.log(res)
}
getReportList()
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
......@@ -221,7 +221,7 @@
<template #footer>
<div class="dialog-footer">
<p style="color: red; float: left;">如果表格有红色行,请根据错误提示修改本地表格重新上传</p>
<el-button @click="dialogVisible = false">关闭本弹窗</el-button>
<el-button @click="dialogVisible = false">取消上传</el-button>
<el-button type="primary"
:disabled="!confirmExcelUUID"
@click="confirmPlanBtn">
......@@ -692,7 +692,118 @@ const planTableList = ref([])
const dialogVisible = ref(false)
const confirmExcelUUID = ref('')
const confirmTableColumns = [
...columns.value,
{
label: '活动 ID',
prop: 'id',
width: 90,
// fixed: true
},
{
label: '归属人',
prop: 'employeeName',
width: 90,
fixed: true
},
{
label: '归属人工号',
prop: 'employeeNo',
width: 140
},
{
label: '经销商 ID',
prop: 'dealerId',
width: 120
},
{
label: '经销商',
prop: 'dealerName',
width: 220
},
{
label: '系统名称',
prop: 'lineName',
width: 100
},
{
label: '店铺编码',
prop: 'storeCode',
width: 160
},
{
label: '店铺名称',
prop: 'storeName',
width: 200
},
{
label: '活动日期',
prop: 'date',
width: 180
},
{
label: '活动状态',
prop: 'planStatus',
width: 100
},
{
label: '活动模式',
prop: 'pattern',
width: 100
},
{
label: '省份',
prop: 'province',
width: 100
},
{
label: '地址',
prop: 'addr',
width: 200
},
{
label: '上班时间',
prop: 'clockInTime',
width: 180
},
{
label: '下班时间',
prop: 'clockOutTime',
width: 180
},
{
label: '促销员薪资',
prop: 'salary',
width: 100
},
{
label: '杂费',
prop: 'incidentals',
width: 100
},
{
label: '战区',
prop: 'orgName',
width: 150
},
// {
// label: '城市',
// prop: 'city',
// width: 100
// },
{
label: '创建人',
prop: 'createBy',
width: 100
},
{
label: '最近修改人',
prop: 'modifyBy',
width: 100
},
{
label: '最后修改时间',
prop: 'modifyTime',
width: 250
},
{
label: '错误消息',
prop: 'errorMsg',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论