Browse Source

新增报表部分字段,新增部分页面导出

dev
qb 1 month ago
parent
commit
7947298e84
  1. 17
      src/option/reportforms/OrderAllTime.js
  2. 35
      src/option/reportforms/PackageStartTimePageReport.js
  3. 11
      src/option/reportforms/PackageTransferTimePageReport.js
  4. 7
      src/views/distribution/artery/VehicleArrivalManagement.vue
  5. 7
      src/views/distribution/artery/VehicleStowage.vue
  6. 8
      src/views/distribution/artery/abnormalList.vue
  7. 25
      src/views/distribution/artery/addTripartiteTransfer.vue
  8. 5
      src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue
  9. 4
      src/views/reportforms/PackageAllTrunklineTimePageReport.vue
  10. 7
      src/views/reportforms/PackageStartTimePageReport.vue
  11. 7
      src/views/reportforms/PackageTransferTimePageReport.vue
  12. 82
      src/views/waybill/ChangeOrder.vue
  13. 43
      src/views/waybill/WarehousingByTrainNumber.vue
  14. 8
      src/views/waybill/WaybillOrderList.vue
  15. 11
      src/views/waybill/orderPackageList.vue

17
src/option/reportforms/OrderAllTime.js

@ -81,6 +81,23 @@ export const columnList = [
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'serviceTypeName',
label: '订单类型',
type: 1,
values: '',
width: '150',
checkarr: [
{ label: '商配', value: 1 },
{ label: '市配', value: 2 },
{ label: '自提', value: 3 },
{ label: '三方中转', value: 4 },
],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'departureWarehouseName',
label: '始发仓',

35
src/option/reportforms/PackageStartTimePageReport.js

@ -94,6 +94,18 @@ export const columnList = [
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'noOutNum',
label: '未发运件数',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'onTimeNum',
label: '准时发运数',
@ -106,6 +118,18 @@ export const columnList = [
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'noOutOverNum',
label: '未发运超时件数',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'onTimeRate',
label: '准时发运率',
@ -128,4 +152,15 @@ export const columnList = [
sortable: true,
head: false,
},
{
prop: 'hoursTime',
label: '标准时效(小时)',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
];

11
src/option/reportforms/PackageTransferTimePageReport.js

@ -151,4 +151,15 @@ export const columnList = [
sortable: true,
head: false,
},
{
prop: 'hoursTime',
label: '标准时效(小时)',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
];

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

@ -185,6 +185,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>
@ -732,6 +733,7 @@ import { ElMessage, ElMessageBox } from 'element-plus';
import print from '@/utils/print';
import { exportExcelByDom } from '@/utils/export';
import { dateNow } from '@/utils/date';
import { exportExcel } from '@/utils/exportData';
const ArteryPrintTemplateV2 = defineAsyncComponent(
() => import('@/components/ArteryPrintTemplateV2/ArteryPrintTemplateV2.vue')
@ -1883,6 +1885,11 @@ const handleShowVehicleImgs = ({ row }) => {
},
});
};
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '到车 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

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

@ -166,6 +166,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>
@ -664,6 +665,7 @@ import { ElMessage, ElMessageBox } from 'element-plus';
import print from '@/utils/print';
import { dateNow } from '@/utils/date';
import { exportExcelByDom } from '@/utils/export';
import { exportExcel } from '@/utils/exportData';
const ArteryPrintTemplateV2 = defineAsyncComponent(
() => import('@/components/ArteryPrintTemplateV2/ArteryPrintTemplateV2.vue')
@ -1690,6 +1692,11 @@ const handleExportAbnormal = () => {
const time = new Date().getTime();
exportExcelByDom(abnormalOrderTableNode.value.$el, '异常数据' + ' - ' + time + '.xlsx');
};
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '车辆配载 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

8
src/views/distribution/artery/abnormalList.vue

@ -489,14 +489,6 @@ const currentChange = current => {
onLoad();
};
/** 弹出层开启前清除数据 */
const beforeClose = done => {
done();
details.form = {};
details.selectionList = [];
details.view = false;
};
/** 处理异常 */
const handleAnException = async ({ row }) => {
details.abnormalInfo = { ...row };

25
src/views/distribution/artery/addTripartiteTransfer.vue

@ -42,25 +42,6 @@
<el-button type="primary" @click="handleAddCarrier" icon="Plus" />
</div>
<el-form-item label="经办人" prop="operator">
<!-- <el-select
v-model="form.operator"
filterable
:teleported="false"
remote
reserve-keyword
placeholder="经办人"
@change="val => carrierNameChange(val, index)"
:remote-method="remoteMethod"
:loading="details.loadingObj.loading"
:disabled="index === 0"
>
<el-option
v-for="val in details.carrierNameOptions"
:key="val.operator"
:label="val.operator"
:value="val.carrierId"
/>
</el-select> -->
<el-input v-model="form.operator" />
</el-form-item>
<el-form-item label="送货方式" prop="deliveryType">
@ -1105,12 +1086,6 @@ const handleAddWaybill = () => {
_orderMap.push(item.orderCode + ',' + item.waybillNo);
details.newData.push(item);
}
// details.selectionList.forEach(val => {
// val.planNum = val.stockNum;
// val.loadingNum = 0;
// details.newData.push(val);
// });
details.orderCodeList = [...new Set([...details.orderCodeList, ..._orderMap])];
console.log('details.orderCodeList :>> ', details.orderCodeList);

5
src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue

@ -96,6 +96,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>
@ -381,6 +382,7 @@ import {
getObjType,
} from '@/utils/util';
import { dateNow } from '@/utils/date';
import { exportExcel } from '@/utils/exportData';
export default {
data() {
@ -1114,6 +1116,9 @@ export default {
: (this.loadingObj.pageLoading = false);
}
},
handleExportData() {
exportExcel(this.columnList, this.data, '干线提货 - ' + new Date().getTime());
},
},
activated() {
if (this.$store.state.isRefresh.refreshObj.addArteryDistrilbutionBillLadingList) {

4
src/views/reportforms/PackageAllTrunklineTimePageReport.vue

@ -24,7 +24,7 @@
</el-select>
</el-form-item>
<el-form-item label="工厂推送时间">
<el-form-item :label="details.tabStatus === 'order' ? '工厂推送时间' : '运单创建时间'">
<el-date-picker
v-model="query.timeArr"
type="daterange"
@ -372,7 +372,7 @@ const init = () => {
// onLoad();
};
init();
// init();
/** 查询品牌 */
const handleFindBrand = async () => {

7
src/views/reportforms/PackageStartTimePageReport.vue

@ -24,7 +24,10 @@
</el-select>
</el-form-item>
<el-form-item label="暂存单创建时间" label-width="120px">
<el-form-item
label-width="120px"
:label="details.tabStatus === 'order' ? '暂存单创建时间' : '运单创建时间'"
>
<el-date-picker
v-model="query.timeArr"
type="daterange"
@ -372,7 +375,7 @@ const init = () => {
// onLoad();
};
init();
// init();
/** 查询品牌 */
const handleFindBrand = async () => {

7
src/views/reportforms/PackageTransferTimePageReport.vue

@ -24,7 +24,10 @@
</el-select>
</el-form-item>
<el-form-item label="包件入库时间">
<el-form-item
label-width="120px"
:label="details.tabStatus === 'order' ? '包件入库时间' : '零担入库时间'"
>
<el-date-picker
v-model="query.timeArr"
type="daterange"
@ -372,7 +375,7 @@ const init = () => {
// onLoad();
};
init();
// init();
/** 查询品牌 */
const handleFindBrand = async () => {

82
src/views/waybill/ChangeOrder.vue

@ -53,49 +53,48 @@
</div>
<!-- 控件模块 -->
<el-row>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<!-- <el-button type="primary" icon="Download" @click="handleExport">导出</el-button> -->
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button>
</div>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<!-- <el-button type="primary" icon="Download" @click="handleExport">导出</el-button> -->
</div>
</el-row>
<!-- 头部右侧按钮模块 -->
<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="Search" @click="searchHide" circle></el-button>
</div>
</div>
<!-- 表格 -->
<el-row>
<!-- 列表模块 -->
<tablecmt
:columnList="details.columnList"
:tableData="data"
:loading="loadingObj.list"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '运单号'">
<el-text @click="handleGoWaybillDetails(slotProps.scope)">
{{ slotProps.scope.row.waybillNo }}
</el-text>
</template>
<template v-else-if="slotProps.scope.column.label === '操作'">
<el-button type="text" @click="handleShowPackageOrderList(slotProps.scope)">
查看
</el-button>
</template>
<!-- 列表模块 -->
<tablecmt
:columnList="details.columnList"
:tableData="data"
:loading="loadingObj.list"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '运单号'">
<el-text @click="handleGoWaybillDetails(slotProps.scope)">
{{ slotProps.scope.row.waybillNo }}
</el-text>
</template>
</tablecmt>
</el-row>
<template v-else-if="slotProps.scope.column.label === '操作'">
<el-button type="text" @click="handleShowPackageOrderList(slotProps.scope)">
查看
</el-button>
</template>
</template>
</tablecmt>
<!-- 分页模块 -->
<el-row class="el-fy">
@ -522,6 +521,11 @@ const handleExport = () => {
exportExcel(details.columnList, details.data, '改单 - ' + new Date().getTime());
});
};
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '改单 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

43
src/views/waybill/WarehousingByTrainNumber.vue

@ -28,26 +28,25 @@
</div>
<!-- 控件模块 -->
<el-row>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button
type="primary"
icon="Van"
v-if="permissionObj.WarehousingByTrainNumber_batchIncoming"
@click="handleBatchPutInStorage"
>批量入库</el-button
>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button>
</div>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button
type="primary"
icon="Van"
v-if="permissionObj.WarehousingByTrainNumber_batchIncoming"
@click="handleBatchPutInStorage"
>批量入库</el-button
>
</div>
</el-row>
<!-- 头部右侧按钮模块 -->
<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="Search" @click="searchHide" circle></el-button>
</div>
</div>
<!-- 表格 -->
<tablecmt
@ -121,6 +120,7 @@ import { columnList } from '@/option/waybill/WarehousingByTrainNumber';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
//
const $router = useRouter();
@ -411,6 +411,11 @@ const handleIsSelect = val => {
return false;
}
};
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, renderData.value, '按车次入库 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

8
src/views/waybill/WaybillOrderList.vue

@ -125,6 +125,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="Search" @click="searchHide" circle></el-button>
@ -333,7 +334,7 @@ import { ElMessage, ElMessageBox } from 'element-plus';
import { getToken } from '@/utils/auth';
import { getListName } from '@/api/basicdata/basicdataVehicle';
import type { UploadProps, UploadUserFile } from 'element-plus';
import { utils } from 'sortablejs';
import { exportExcel } from '@/utils/exportData';
const $store = useStore();
@ -1037,6 +1038,11 @@ getListName({ name: '' }).then(res => {
};
});
});
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '运单列表 - ' + new Date().getTime());
};
</script>
<style scoped lang="scss">

11
src/views/waybill/orderPackageList.vue

@ -72,6 +72,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="Search" @click="searchHide" circle></el-button>
@ -334,6 +335,7 @@ import { flowNodeColumnList } from '@/option/waybill/orderPackageListDetails.js'
import { useRouter } from 'vue-router';
import print from '@/utils/print';
import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
const Tableexportcomponent = defineAsyncComponent(
() => import('@/components/Tableexportcomponent/Tableexportcomponent.vue')
);
@ -918,6 +920,15 @@ const handleShowFlowNode = async ({ row }) => {
details.loadingObj.pageLoading = false;
}
};
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(
details.packageListColumnList,
details.packageListData,
'订单明细 - ' + new Date().getTime()
);
};
</script>
<style scoped lang="scss">

Loading…
Cancel
Save