丽知中台报表更新
This commit is contained in:
parent
6bb1807091
commit
240ae5dd2e
|
@ -114,14 +114,14 @@
|
|||
style=" margin: 5px 5px"
|
||||
>查询
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- @click="downLoad"-->
|
||||
<!-- :loading="loading"-->
|
||||
<!-- size="small"-->
|
||||
<!-- style=" margin: 5px 5px"-->
|
||||
<!-- >excel导出-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="downLoad"
|
||||
:loading="loading"
|
||||
size="small"
|
||||
style=" margin: 5px 5px"
|
||||
>excel导出
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
@click="reset"
|
||||
|
@ -362,39 +362,21 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async downLoad() {
|
||||
if (this.queryCriteria.business_date_start && this.queryCriteria.business_date_end) {
|
||||
let startDate = new Date(this.queryCriteria.business_date_start)
|
||||
let endDate = new Date(this.queryCriteria.business_date_end)
|
||||
let differenceInMillis = endDate - startDate
|
||||
let differenceInDays = differenceInMillis / (1000 * 60 * 60 * 24)
|
||||
// 判断差值是否在15天以内
|
||||
if (!isNaN(differenceInDays) && differenceInDays < 31) {
|
||||
} else {
|
||||
this.$vmNews('开始时间和结束时间范围请选择在30天内')
|
||||
return
|
||||
}
|
||||
} else {
|
||||
this.$vmNews('请选择开始时间和结束时间')
|
||||
return
|
||||
}
|
||||
let params = {
|
||||
...this.queryCriteria,
|
||||
...this.pageModel,
|
||||
pageSize: 9999,
|
||||
pageNum: 1
|
||||
}
|
||||
};
|
||||
this.openLoading('detail')
|
||||
const res = await authApi('busidataTocsalesServiceImpl', 'busidataTocsalesServiceImpl', 'queryToCSalesReportExcel', '', params)
|
||||
const res = await authApi("tocofsSaleoutServiceImplReport", "tocofsSaleoutServiceImplReport", "exportToCSalesReportExcel", "", params);
|
||||
|
||||
if (res.status == 200) {
|
||||
const response = await downFilesBasedFileNameFileTypeAPI(res.attribute)
|
||||
// console.log(res)
|
||||
const url = window.URL.createObjectURL(new Blob([response]), { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.setAttribute('download', 'toc正向流程报表.xlsx') // 设置下载的文件名
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
const url = window.URL.createObjectURL(new Blob([response]), {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'});
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.setAttribute('download', 'TOB销售核对表.xlsx'); // 设置下载的文件名
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
}
|
||||
return
|
||||
|
||||
|
|
|
@ -115,14 +115,14 @@
|
|||
style=" margin: 5px 5px"
|
||||
>查询
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- @click="downLoad"-->
|
||||
<!-- :loading="loading"-->
|
||||
<!-- size="small"-->
|
||||
<!-- style=" margin: 5px 5px"-->
|
||||
<!-- >excel导出-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="downLoad"
|
||||
:loading="loading"
|
||||
size="small"
|
||||
style=" margin: 5px 5px"
|
||||
>excel导出
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
@click="reset"
|
||||
|
@ -368,42 +368,18 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async downLoad() {
|
||||
if (this.queryCriteria.business_date_start && this.queryCriteria.business_date_end) {
|
||||
let startDate = new Date(this.queryCriteria.business_date_start)
|
||||
let endDate = new Date(this.queryCriteria.business_date_end)
|
||||
let differenceInMillis = endDate - startDate
|
||||
let differenceInDays = differenceInMillis / (1000 * 60 * 60 * 24)
|
||||
// 判断差值是否在15天以内
|
||||
if (!isNaN(differenceInDays) && differenceInDays < 31) {
|
||||
} else {
|
||||
this.$vmNews('开始时间和结束时间范围请选择在30天内')
|
||||
return
|
||||
}
|
||||
} else {
|
||||
this.$vmNews('请选择开始时间和结束时间')
|
||||
return
|
||||
}
|
||||
let params = {
|
||||
...this.queryCriteria,
|
||||
...this.pageModel,
|
||||
pageSize: 9999,
|
||||
pageNum: 1
|
||||
}
|
||||
this.openLoading('detail')
|
||||
const res = await authApi('busidataTocsalesServiceImpl', 'busidataTocsalesServiceImpl', 'queryToCSalesReportExcel', '', params)
|
||||
|
||||
if (res.status == 200) {
|
||||
const response = await downFilesBasedFileNameFileTypeAPI(res.attribute)
|
||||
// console.log(res)
|
||||
const response = await authApi('tocofsSaleoutServiceImplReport', 'tocofsSaleoutServiceImplReport', 'exportToCSalesReportExcel', '', params)
|
||||
const url = window.URL.createObjectURL(new Blob([response]), { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.setAttribute('download', 'toc正向流程报表.xlsx') // 设置下载的文件名
|
||||
link.setAttribute('download', 'TOB销售核对报表.xlsx') // 设置下载的文件名
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
}
|
||||
return
|
||||
|
||||
},
|
||||
reset() {
|
||||
this.pageModel.pageNum = 1
|
||||
|
|
|
@ -125,14 +125,14 @@
|
|||
style=" margin: 5px 5px"
|
||||
>查询
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- @click="downLoad"-->
|
||||
<!-- :loading="loading"-->
|
||||
<!-- size="small"-->
|
||||
<!-- style=" margin: 5px 5px"-->
|
||||
<!-- >excel导出-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="downLoad"
|
||||
:loading="loading"
|
||||
size="small"
|
||||
style=" margin: 5px 5px"
|
||||
>excel导出
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
@click="reset"
|
||||
|
@ -403,21 +403,6 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async downLoad() {
|
||||
if (this.queryCriteria.business_date_start && this.queryCriteria.business_date_end) {
|
||||
let startDate = new Date(this.queryCriteria.business_date_start)
|
||||
let endDate = new Date(this.queryCriteria.business_date_end)
|
||||
let differenceInMillis = endDate - startDate
|
||||
let differenceInDays = differenceInMillis / (1000 * 60 * 60 * 24)
|
||||
// 判断差值是否在15天以内
|
||||
if (!isNaN(differenceInDays) && differenceInDays < 31) {
|
||||
} else {
|
||||
this.$vmNews('开始时间和结束时间范围请选择在30天内')
|
||||
return
|
||||
}
|
||||
} else {
|
||||
this.$vmNews('请选择开始时间和结束时间')
|
||||
return
|
||||
}
|
||||
let params = {
|
||||
...this.queryCriteria,
|
||||
...this.pageModel,
|
||||
|
@ -425,20 +410,14 @@ export default {
|
|||
pageNum: 1
|
||||
}
|
||||
this.openLoading('detail')
|
||||
const res = await authApi('busidataTocsalesServiceImpl', 'busidataTocsalesServiceImpl', 'queryToCSalesReportExcel', '', params)
|
||||
|
||||
if (res.status == 200) {
|
||||
const response = await downFilesBasedFileNameFileTypeAPI(res.attribute)
|
||||
// console.log(res)
|
||||
const response = await authApi('tocofsSaleoutServiceImplReport', 'tocofsSaleoutServiceImplReport', 'exportToCReturnReportExcel', '', params)
|
||||
const url = window.URL.createObjectURL(new Blob([response]), { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.setAttribute('download', 'toc正向流程报表.xlsx') // 设置下载的文件名
|
||||
link.setAttribute('download', 'TOC退货核对报表.xlsx') // 设置下载的文件名
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
}
|
||||
return
|
||||
|
||||
},
|
||||
reset() {
|
||||
this.pageModel.pageNum = 1
|
||||
|
|
|
@ -140,14 +140,14 @@
|
|||
style="margin: 5px 5px"
|
||||
>查询
|
||||
</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- @click="downLoad"-->
|
||||
<!-- :loading="loading"-->
|
||||
<!-- size="small"-->
|
||||
<!-- style=" margin: 5px 5px"-->
|
||||
<!-- >excel导出-->
|
||||
<!-- </el-button>-->
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="downLoad"
|
||||
:loading="loading"
|
||||
size="small"
|
||||
style=" margin: 5px 5px"
|
||||
>excel导出
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
@click="reset"
|
||||
|
@ -401,52 +401,21 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async downLoad() {
|
||||
if (
|
||||
this.queryCriteria.business_date_start &&
|
||||
this.queryCriteria.business_date_end
|
||||
) {
|
||||
let startDate = new Date(this.queryCriteria.business_date_start);
|
||||
let endDate = new Date(this.queryCriteria.business_date_end);
|
||||
let differenceInMillis = endDate - startDate;
|
||||
let differenceInDays = differenceInMillis / (1000 * 60 * 60 * 24);
|
||||
// 判断差值是否在15天以内
|
||||
if (!isNaN(differenceInDays) && differenceInDays < 31) {
|
||||
} else {
|
||||
this.$vmNews("开始时间和结束时间范围请选择在30天内");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
this.$vmNews("请选择开始时间和结束时间");
|
||||
return;
|
||||
}
|
||||
let params = {
|
||||
...this.queryCriteria,
|
||||
...this.pageModel,
|
||||
pageSize: 9999,
|
||||
pageNum: 1,
|
||||
};
|
||||
this.openLoading("detail");
|
||||
const res = await authApi(
|
||||
"busidataTocsalesServiceImpl",
|
||||
"busidataTocsalesServiceImpl",
|
||||
"queryToCSalesReportExcel",
|
||||
"",
|
||||
params
|
||||
);
|
||||
|
||||
if (res.status == 200) {
|
||||
const response = await downFilesBasedFileNameFileTypeAPI(res.attribute);
|
||||
// console.log(res)
|
||||
const url = window.URL.createObjectURL(new Blob([response]), {
|
||||
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
});
|
||||
const link = document.createElement("a");
|
||||
link.href = url;
|
||||
link.setAttribute("download", "toc正向流程报表.xlsx"); // 设置下载的文件名
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
pageNum: 1
|
||||
}
|
||||
return;
|
||||
this.openLoading('detail')
|
||||
const response = await authApi('tocofsSaleoutServiceImplReport', 'tocofsSaleoutServiceImplReport', 'exportToCSalesReportExcel', '', params)
|
||||
const url = window.URL.createObjectURL(new Blob([response]), { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.setAttribute('download', 'TOC销售核对报表.xlsx') // 设置下载的文件名
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
return
|
||||
},
|
||||
reset() {
|
||||
this.pageModel.pageNum = 1;
|
||||
|
|
|
@ -40,7 +40,7 @@ module.exports = {
|
|||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: `http://hzya.ufyct.com:9067/`,
|
||||
target: `http://ufidahz.com.cn:9067/`,
|
||||
// target: `http://ufidahz.com.cn:9067/`,
|
||||
// target: `http://127.0.0.1:9081/`,
|
||||
// target: `http://192.168.2.78:9999`,
|
||||
// target: `http://192.168.2.85:9999`,
|
||||
|
@ -48,7 +48,7 @@ module.exports = {
|
|||
// target: `http://192.168.2.78:10086`,
|
||||
// target: `http://192.168.2.185:10086`,
|
||||
// target: `http://192.168.2.83:9999`,
|
||||
// target:'http://39.170.109.90:8081/',
|
||||
target:'http://39.170.109.90:8081/',
|
||||
// target:'http://192.168.2.75:1024/',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
|
|
Loading…
Reference in New Issue