|
|
@@ -1,63 +1,66 @@
|
|
|
<template>
|
|
|
- <ele-page flex-table>
|
|
|
- <page-search @search="reload"></page-search>
|
|
|
- <common-table
|
|
|
- ref="pageRef"
|
|
|
- :pageConfig="pageConfig"
|
|
|
- :columns="columns"
|
|
|
- :tools="false"
|
|
|
- show-summary
|
|
|
- :flex-table="false"
|
|
|
- >
|
|
|
- <template #toolbar="{ row }">
|
|
|
- <div>
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- plain
|
|
|
- v-permission="'statistic:arrivalSign:export'"
|
|
|
- @click="handleExportExcel(row)"
|
|
|
- >
|
|
|
- 导出EXCEL
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </common-table>
|
|
|
- </ele-page>
|
|
|
+ <ele-page flex-table>
|
|
|
+ <page-search @search="reload"></page-search>
|
|
|
+ <common-table
|
|
|
+ ref="pageRef"
|
|
|
+ :pageConfig="pageConfig"
|
|
|
+ :columns="columns"
|
|
|
+ :tools="false"
|
|
|
+ show-summary
|
|
|
+ :flex-table="false"
|
|
|
+ >
|
|
|
+ <template #toolbar="{ row }">
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ v-permission="'statistic:arrivalSign:export'"
|
|
|
+ @click="handleExportExcel(row)"
|
|
|
+ >
|
|
|
+ 导出EXCEL
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </common-table>
|
|
|
+ </ele-page>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
- import { ref, reactive } from 'vue';
|
|
|
- import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
|
- import pageSearch from './components/page-search.vue';
|
|
|
+ import { ref, reactive } from 'vue';
|
|
|
+ import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
|
+ import pageSearch from './components/page-search.vue';
|
|
|
|
|
|
- defineOptions({ name: 'arrivalSign' });
|
|
|
+ defineOptions({ name: 'arrivalSign' });
|
|
|
|
|
|
- /** 表格列配置 */
|
|
|
- const columns = ref([
|
|
|
- { type: 'index', label: '#', align: 'center', width: 80 },
|
|
|
- { label: '操作员', prop: 'godownName', align: 'center' },
|
|
|
- { label: '到仓签收包裹数量', prop: 'orderNum', align: 'center' },
|
|
|
- { label: '统计日期', prop: 'createTime', align: 'center' },
|
|
|
- { label: '仓库', prop: 'godownName', align: 'center' }
|
|
|
- ]);
|
|
|
+ /** 表格列配置 */
|
|
|
+ const columns = ref([
|
|
|
+ { type: 'index', label: '#', align: 'center', width: 80 },
|
|
|
+ { label: '操作员', prop: 'signUserName', align: 'center' },
|
|
|
+ { label: '到仓签收包裹数量', prop: 'statNum', align: 'center' },
|
|
|
+ { label: '统计日期', prop: 'statDate', align: 'center' },
|
|
|
+ { label: '仓库', prop: 'godownName', align: 'center' }
|
|
|
+ ]);
|
|
|
|
|
|
- /** 页面组件实例 */
|
|
|
- const pageRef = ref(null);
|
|
|
+ /** 页面组件实例 */
|
|
|
+ const pageRef = ref(null);
|
|
|
|
|
|
- const pageConfig = reactive({
|
|
|
- pageUrl: '/baseinfo/godown/pagelist',
|
|
|
- exportUrl: '/baseinfo/godown/export',
|
|
|
- fileName: '到仓签收统计',
|
|
|
- cacheKey: 'arrivalSignTable'
|
|
|
- });
|
|
|
+ const pageConfig = reactive({
|
|
|
+ pageUrl: '/app/ordersignstat/getOrderSignStat',
|
|
|
+ exportUrl: '/app/ordersignstat/getOrderSignStatExport',
|
|
|
+ fileName: '到仓签收统计',
|
|
|
+ cacheKey: 'arrivalSignTable',
|
|
|
+ params: {
|
|
|
+ statType: '2'
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
- //刷新表格
|
|
|
- function reload(where) {
|
|
|
- pageRef.value?.reload(where);
|
|
|
- }
|
|
|
+ //刷新表格
|
|
|
+ function reload(where) {
|
|
|
+ pageRef.value?.reload(where);
|
|
|
+ }
|
|
|
|
|
|
- //导出excel
|
|
|
- function handleExportExcel() {
|
|
|
- pageRef.value?.exportData('到仓签收统计');
|
|
|
- }
|
|
|
+ //导出excel
|
|
|
+ function handleExportExcel() {
|
|
|
+ pageRef.value?.exportData('到仓签收统计');
|
|
|
+ }
|
|
|
</script>
|