Browse Source

修复报表导出字段

dev
qb 2 months ago
parent
commit
4318b2166f
  1. 28
      src/views/cost/Costmanagementmainlinetrains/Mainlinetrainfare.vue
  2. 2
      src/views/reportforms/PackageAllTrunklineTimePageReport.vue
  3. 2
      src/views/reportforms/PackageStartTimePageReport.vue
  4. 2
      src/views/reportforms/PackageTransferTimePageReport.vue
  5. 2
      src/views/reportforms/UpdateWaybillQualityPageReport.vue
  6. 2
      src/views/reportforms/ZeroAllTrunklineTimePageReport.vue
  7. 2
      src/views/reportforms/ZeroStartTimePageReport.vue
  8. 2
      src/views/reportforms/ZeroTransferTimePageReport.vue

28
src/views/cost/Costmanagementmainlinetrains/Mainlinetrainfare.vue

@ -87,6 +87,26 @@
</el-row>
</div>
</basic-container>
<!-- 新增 && 编辑 -->
<el-dialog
v-model="details.popUpShow.addVisible"
width="780px"
:title="details.title"
destroy-on-close
>
<el-form ref="formRef" :model="details.form" label-width="5rem">
<el-form-item> </el-form-item>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button icon="CircleClose" @click="details.popUpShow.addVisible = false">取消</el-button>
<el-button icon="Position" type="primary" @click="handleSubmit"> 提交 </el-button>
</div>
</template>
</el-dialog>
<!-- 列表配置显示 -->
<edittablehead
@setcolum="setnewcolum"
@ -100,7 +120,7 @@
<script setup>
import { ref, reactive, toRefs, computed, onMounted, nextTick, watch } from 'vue';
import { columnList } from '@/option/Maininetrain/Mainlinetrainfare.js';
import { $_Maininetrain,$_Maininetrainexport } from '@/api/Costmanagementmainlinetrains/index.js';
import { $_Maininetrain, $_Maininetrainexport } from '@/api/Costmanagementmainlinetrains/index.js';
import { processRowPropertyName, setNodeHeight } from '@/utils/util';
import { ElMessageBox, ElMessage } from 'element-plus';
import { downloadXls, handleClearTableQuery, FileUpload, headers } from '@/utils/util';
@ -232,8 +252,8 @@ const timesc = (index, row) => {
/** 表格表头下拉框选择 */
const selectsc = (index, row) => {
processRowPropertyName(index, row, details.query);
console.log( details.query,);
console.log(details.query);
onLoad();
};
/** 表格表头复选框选择 */
@ -345,7 +365,7 @@ const exportExcel = () => {
details.loadingObj.list = true;
let data = {
...details.query,
carsNoType:'1',
carsNoType: '1',
};
console.log(data, '要提交的数据');
$_Maininetrainexport(data).then(res => {

2
src/views/reportforms/PackageAllTrunklineTimePageReport.vue

@ -489,7 +489,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '定制品干线时效报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

2
src/views/reportforms/PackageStartTimePageReport.vue

@ -492,7 +492,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '定制品发运时效报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

2
src/views/reportforms/PackageTransferTimePageReport.vue

@ -491,7 +491,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '定制品中转时效报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

2
src/views/reportforms/UpdateWaybillQualityPageReport.vue

@ -492,7 +492,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '改单质量报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

2
src/views/reportforms/ZeroAllTrunklineTimePageReport.vue

@ -492,7 +492,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '零担干线时效报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

2
src/views/reportforms/ZeroStartTimePageReport.vue

@ -492,7 +492,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '零担发运时效报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

2
src/views/reportforms/ZeroTransferTimePageReport.vue

@ -492,7 +492,7 @@ const ExportData = async () => {
const { status, data } = res;
if (status !== 200) return;
const time = new Date().getTime();
downloadXls(data, '审单及时率报表 -' + time + '.xlsx');
downloadXls(data, '零担中转时效报表 -' + time + '.xlsx');
} catch (error) {
console.log('error :>> ', error);
} finally {

Loading…
Cancel
Save