预算和指标填报上传样式修改
This commit is contained in:
@@ -112,6 +112,7 @@ import inputArea from './inputArea.vue' // 导入输入组件
|
||||
import { publicFormatter } from '@/utils/dict';
|
||||
import {getAccessToken, getTenantId} from '@/utils/auth'
|
||||
import axios from 'axios';
|
||||
import moment from 'moment';
|
||||
export default {
|
||||
name: 'ProductionStatus',
|
||||
components: {
|
||||
@@ -481,13 +482,14 @@ export default {
|
||||
pageSize: 1000,
|
||||
template:1,
|
||||
pageNo: this.form.pageNo,
|
||||
timeDim:this.form.timeDim
|
||||
timeDim:this.timeType === 'month'?2:3
|
||||
}).then(response => {
|
||||
let fileName = '';
|
||||
let factoryName = this.levelLList.filter(item => item.id == this.form.levelId)[0].name;
|
||||
if (this.timeType === 'month') {
|
||||
fileName = '月度预算导入模板.xls';
|
||||
fileName = factoryName+'_月_预算导入模板.xls';
|
||||
}else{
|
||||
fileName = '年度预算导入模板.xls';
|
||||
fileName = factoryName+'_年_预算导入模板.xls';
|
||||
}
|
||||
this.$download.excel(response, fileName);
|
||||
});
|
||||
@@ -500,7 +502,7 @@ export default {
|
||||
pageSize: 1000,
|
||||
template:0,
|
||||
pageNo: this.form.pageNo,
|
||||
timeDim:this.form.timeDim
|
||||
timeDim:this.timeType === 'month'?2:3
|
||||
}).then(response => {
|
||||
let mon = this.timeType=== 'month'?moment(this.form.endTime).format('YYYYMM'):moment(this.form.endTime).format('YYYY');
|
||||
let factoryName = this.levelLList.filter(item => item.id == this.form.levelId)[0].name;
|
||||
|
||||
Reference in New Issue
Block a user