Browse Source

新增部分导出,新增部分字段

dev
qb 4 days ago
parent
commit
9677940b89
  1. 2
      src/option/reportforms/PackageStartTimePageReport.js
  2. 2
      src/option/reportforms/PackageTransferTimePageReport.js
  3. 2
      src/utils/exportData.js
  4. 9
      src/views/basicdata/brand/ThreePartyMallManagement.vue
  5. 6
      src/views/basicdata/brand/basicClient.vue
  6. 7
      src/views/distribution/artery/TripartiteTransfer.vue

2
src/option/reportforms/PackageStartTimePageReport.js

@ -119,7 +119,7 @@ export const columnList = [
},
{
prop: 'avgTime',
label: '平均发运时效',
label: '平均发运时效(小时)',
type: 1,
values: '',
width: '150',

2
src/option/reportforms/PackageTransferTimePageReport.js

@ -142,7 +142,7 @@ export const columnList = [
},
{
prop: 'avgTime',
label: '平均中转时效',
label: '平均中转时效(小时)',
type: 1,
values: '',
width: '150',

2
src/utils/exportData.js

@ -7,7 +7,7 @@ export function exportExcel(columnList = [], listData = [], name = 'excel') {
const headers = [];
const blackArr = ['序号', '复选框', '操作'];
const blackArr = ['序号', '复选框', '操作', '全选'];
const data = [];

9
src/views/basicdata/brand/ThreePartyMallManagement.vue

@ -21,6 +21,7 @@
<div class="avue-crud__left"></div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button>
@ -134,6 +135,7 @@ import { downloadXls, handleClearTableQuery } from '@/utils/util';
import { useStore } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { exportExcel } from '@/utils/exportData';
const $router = useRouter(); //
const $useStore = useStore(); //
const $route = useRoute(); //
@ -406,7 +408,7 @@ const handleSubmit = async () => {
}
};
//
const ViewDelete = (row) => {
const ViewDelete = row => {
ElMessageBox.confirm('是否确认删除数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -423,6 +425,11 @@ const ViewDelete = (row) => {
})
.catch(() => {});
};
/** 导出表格 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '三方商场 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

6
src/views/basicdata/brand/basicClient.vue

@ -68,6 +68,7 @@
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div>
@ -599,6 +600,7 @@ import { Base64 } from 'js-base64';
import dayjs from 'dayjs';
import { exportBlob } from '@/api/common';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
import { exportExcel } from '@/utils/exportData';
export default {
components: {
@ -2004,6 +2006,10 @@ export default {
console.log(msgData, 'msgData');
this.$message.warning(msgData.msg || '上传失败');
},
/** 列表导出 */
handleExportData() {
exportExcel(this.columnList, this.data, '客户信息 - ' + new Date().getTime());
},
},
};
</script>

7
src/views/distribution/artery/TripartiteTransfer.vue

@ -172,6 +172,7 @@
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button>
@ -508,6 +509,7 @@ import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js';
import { dateNow } from '@/utils/date';
import { exportExcelByDom } from '@/utils/export';
import print from '@/utils/print';
import { exportExcel } from '@/utils/exportData';
//
const $router = useRouter();
@ -1513,6 +1515,11 @@ const handleSubmitSiginImg = async () => {
details.loadingObj.pageLoading = false;
}
};
/** 导出表格 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '三方中转 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

Loading…
Cancel
Save