Browse Source

Merge branch 'dev' into pre-production

pre-production
pref_mail@163.com 3 days ago
parent
commit
4f7063fccd
  1. 13
      src/api/waybill/ChangeOrder.js
  2. 46
      src/option/finance/WaybillAudit.js
  3. 12
      src/option/reportforms/OrderAllTime.js
  4. 11
      src/option/reportforms/PackageAllTrunklineTimePageReport.js
  5. 2
      src/option/reportforms/PackageStartTimePageReport.js
  6. 37
      src/option/reportforms/PackageTransferTimePageReport.js
  7. 21
      src/option/waybill/WaybillOrderList.js
  8. 2
      src/utils/exportData.js
  9. 9
      src/views/basicdata/brand/ThreePartyMallManagement.vue
  10. 6
      src/views/basicdata/brand/basicClient.vue
  11. 7
      src/views/distribution/artery/TripartiteTransfer.vue
  12. 25
      src/views/distribution/deliverylist/distributionDeliveryList.vue
  13. 56
      src/views/waybill/ChangeOrder.vue

13
src/api/waybill/ChangeOrder.js

@ -12,3 +12,16 @@ export const postFindUpdateWaybillList = data => {
data, data,
}); });
}; };
/**
* 导出
* @param {Object} data
* @returns
*/
export const postUpdateWaybillQualityExport = data => {
return request({
url: '/api/logpm-trunkline/openOrder/updateWaybillQualityExport',
method: 'post',
data,
});
};

46
src/option/finance/WaybillAudit.js

@ -289,7 +289,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'freightFee', prop: 'freightFee',
@ -302,7 +301,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
// { // {
// prop: 'templateType', // prop: 'templateType',
@ -337,7 +335,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'warehouseFee', prop: 'warehouseFee',
@ -350,7 +347,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'warehouseManagementFee', prop: 'warehouseManagementFee',
@ -363,7 +359,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'warehouseSortingFee', prop: 'warehouseSortingFee',
@ -376,7 +371,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'warehouseOprationFee', prop: 'warehouseOprationFee',
@ -389,7 +383,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryServiceFee', prop: 'deliveryServiceFee',
@ -402,7 +395,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryFee', prop: 'deliveryFee',
@ -415,7 +407,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryHandlingFee', prop: 'deliveryHandlingFee',
@ -428,7 +419,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliverySortingFee', prop: 'deliverySortingFee',
@ -441,7 +431,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryUpfloorFee', prop: 'deliveryUpfloorFee',
@ -454,7 +443,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryMoveFee', prop: 'deliveryMoveFee',
@ -467,7 +455,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
// { // {
// prop: 'deliveryLine', // prop: 'deliveryLine',
@ -491,7 +478,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryLineFee', prop: 'deliveryLineFee',
@ -504,7 +490,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'installFee', prop: 'installFee',
@ -517,7 +502,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'insuranceFee', prop: 'insuranceFee',
@ -530,7 +514,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'claimingValue', prop: 'claimingValue',
@ -543,7 +526,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'otherFee', prop: 'otherFee',
@ -556,7 +538,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'rebate', prop: 'rebate',
@ -569,7 +550,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'thirdOperationFee', prop: 'thirdOperationFee',
@ -582,7 +562,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'shipperName', prop: 'shipperName',
@ -788,7 +767,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'dpay', prop: 'dpay',
@ -801,7 +779,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'hpay', prop: 'hpay',
@ -814,7 +791,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'ypay', prop: 'ypay',
@ -827,7 +803,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
@ -841,7 +816,6 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true, isshowSummary: true,
}, },
{ {
prop: 'deliveryTime', prop: 'deliveryTime',
@ -856,7 +830,7 @@ export const columnList = [
}, },
{ {
prop: 'signTime', prop: 'signTime',
label: "签收时间", label: '签收时间',
type: 1, type: 1,
values: '', values: '',
width: '150', width: '150',
@ -868,7 +842,7 @@ export const columnList = [
{ {
prop: 'signUserName', prop: 'signUserName',
label: "签收人", label: '签收人',
type: 1, type: 1,
values: '', values: '',
width: '150', width: '150',
@ -880,7 +854,7 @@ export const columnList = [
{ {
prop: 'deliveryDriverName', prop: 'deliveryDriverName',
label: "配送司机", label: '配送司机',
type: 1, type: 1,
values: '', values: '',
width: '150', width: '150',
@ -912,6 +886,20 @@ export const columnList = [
// sortable: true, // sortable: true,
// head: false, // head: false,
// }, // },
{
prop: 'updateStatusName',
label: '改单状态',
type: 1,
values: '',
width: '130',
checkarr: [
{ label: '未改单', value: '0' },
{ label: '已改单', value: '1' },
],
fixed: false,
isshowSummary: false,
sortable: true,
},
{ {
prop: 'checkStatusName', prop: 'checkStatusName',
label: '审核状态', label: '审核状态',

12
src/option/reportforms/OrderAllTime.js

@ -324,4 +324,16 @@ export const columnList = [
head: false, head: false,
isshowSummary: true, //开启统计 isshowSummary: true, //开启统计
}, },
{
prop: 'dayTime',
label: '标准时效(天)',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
]; ];

11
src/option/reportforms/PackageAllTrunklineTimePageReport.js

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

2
src/option/reportforms/PackageStartTimePageReport.js

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

37
src/option/reportforms/PackageTransferTimePageReport.js

@ -47,6 +47,17 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
}, },
{
prop: 'warehouseName',
label: '中转仓',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{ {
prop: 'brand', prop: 'brand',
label: '品牌', label: '品牌',
@ -82,6 +93,18 @@ export const columnList = [
head: false, head: false,
isshowSummary: true, //开启统计 isshowSummary: true, //开启统计
}, },
{
prop: 'noOutNum',
label: '未出库件数',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
{ {
prop: 'outOnTimeNum', prop: 'outOnTimeNum',
label: '中转准时出库件数', label: '中转准时出库件数',
@ -94,6 +117,18 @@ export const columnList = [
head: false, head: false,
isshowSummary: true, //开启统计 isshowSummary: true, //开启统计
}, },
{
prop: 'noOutOverNum',
label: '未出库超时件数',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
{ {
prop: 'outOnTimeRate', prop: 'outOnTimeRate',
label: '中转准时出库率', label: '中转准时出库率',
@ -107,7 +142,7 @@ export const columnList = [
}, },
{ {
prop: 'avgTime', prop: 'avgTime',
label: '平均中转时效', label: '平均中转时效(小时)',
type: 1, type: 1,
values: '', values: '',
width: '150', width: '150',

21
src/option/waybill/WaybillOrderList.js

@ -389,9 +389,9 @@ export const columnList = [
isshowSummary: true, isshowSummary: true,
sortable: true, sortable: true,
}, */ }, */
/* { {
prop: 'carrierName', prop: 'installFee',
label: '总费用', label: '安装费',
type: 1, type: 1,
values: '', values: '',
width: '130', width: '130',
@ -399,7 +399,7 @@ export const columnList = [
fixed: false, fixed: false,
isshowSummary: true, isshowSummary: true,
sortable: true, sortable: true,
}, */ },
{ {
prop: 'claimingValue', prop: 'claimingValue',
label: '申明价值', label: '申明价值',
@ -876,17 +876,20 @@ export const columnList = [
isshowSummary: false, isshowSummary: false,
sortable: true, sortable: true,
}, */ }, */
/* { {
prop: 'carrierName', prop: 'updateStatusName',
label: '冻结状态', label: '改单状态',
type: 1, type: 1,
values: '', values: '',
width: '130', width: '130',
checkarr: [], checkarr: [
{ label: '未改单', value: '0' },
{ label: '已改单', value: '1' },
],
fixed: false, fixed: false,
isshowSummary: false, isshowSummary: false,
sortable: true, sortable: true,
}, */ },
{ {
prop: 'checkStatusName', prop: 'checkStatusName',
label: '审核状态', label: '审核状态',

2
src/utils/exportData.js

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

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

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

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

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

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

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

25
src/views/distribution/deliverylist/distributionDeliveryList.vue

@ -699,7 +699,7 @@ export default {
getVehicleList(1, 10, '').then(res => { getVehicleList(1, 10, '').then(res => {
const data = res.data.data; const data = res.data.data;
let po = []; let po = [];
data.records.forEach(item => { data.forEach(item => {
let a = { let a = {
dictKey: item.id, dictKey: item.id,
dictValue: item.vehicleNub, dictValue: item.vehicleNub,
@ -707,7 +707,7 @@ export default {
po.push(a); po.push(a);
}); });
this.vehicleData = po; this.vehicleData = po;
rv(res.data.data.records); rv(res.data.data);
}); });
}); });
}, },
@ -716,17 +716,16 @@ export default {
getDriverList(1, 10, '').then(res => { getDriverList(1, 10, '').then(res => {
const data = res.data.data; const data = res.data.data;
let po = []; let po = [];
if (data.records?.length) {
data.records.forEach(item => { data.forEach(item => {
let a = { let a = {
dictKey: item.id, dictKey: item.id,
dictValue: item.name, dictValue: item.name,
}; };
po.push(a); po.push(a);
}); });
this.driverData = po; this.driverData = po;
rv(res.data.data.records); rv(res.data.data);
}
}); });
}); });
}, },

56
src/views/waybill/ChangeOrder.vue

@ -1,6 +1,6 @@
<template> <template>
<basic-container> <basic-container>
<div class="avue-crud"> <div class="avue-crud" v-loading="details.loadingObj.pageLoading">
<!-- 搜索模块 --> <!-- 搜索模块 -->
<div v-h5uShow="!search"> <div v-h5uShow="!search">
<!-- 查询模块 --> <!-- 查询模块 -->
@ -56,7 +56,9 @@
<el-row> <el-row>
<div class="avue-crud__header"> <div class="avue-crud__header">
<!-- 头部左侧按钮模块 --> <!-- 头部左侧按钮模块 -->
<div class="avue-crud__left"></div> <div class="avue-crud__left">
<!-- <el-button type="primary" icon="Download" @click="handleExport">导出</el-button> -->
</div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
@ -212,9 +214,13 @@ import {
handleClearTableQuery, handleClearTableQuery,
} from '@/utils/util'; } from '@/utils/util';
import { columnList, viewColumnList } from '@/option/waybill/ChangeOrder'; import { columnList, viewColumnList } from '@/option/waybill/ChangeOrder';
import { postFindUpdateWaybillList } from '@/api/waybill/ChangeOrder'; import {
postFindUpdateWaybillList,
postUpdateWaybillQualityExport,
} from '@/api/waybill/ChangeOrder';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { ElMessage } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -265,6 +271,7 @@ const details = reactive<any>({
/** 列表加载loading */ /** 列表加载loading */
list: false, list: false,
packageListLoading: false, packageListLoading: false,
pageLoading: false,
}, },
/** 列表复选框选中的数据 */ /** 列表复选框选中的数据 */
selectionList: [], selectionList: [],
@ -474,6 +481,47 @@ const handleGoWaybillDetails = ({ row }) => {
}, },
}); });
}; };
/** 导出 */
const handleExport = () => {
ElMessageBox.confirm('确认导出', '提示', {
type: 'warning',
}).then(async () => {
// try {
// details.loadingObj.pageLoading = true;
// const submitData = { ...details.query };
// //
// if (getObjType(details.query.openTime) === 'array' && details.query.openTime.length > 0) {
// submitData.openTimeStartStr = details.query.openTime[0];
// submitData.openTimeEndStr = details.query.openTime[1];
// }
// //
// if (getObjType(details.query.applyTime) === 'array' && details.query.applyTime.length > 0) {
// submitData.applyTimeStartStr = details.query.applyTime[0];
// submitData.applyTimeEndStr = details.query.applyTime[1];
// }
// //
// if (getObjType(details.query.checkTime) === 'array' && details.query.checkTime.length > 0) {
// submitData.checkTimeStartStr = details.query.checkTime[0];
// submitData.checkTimeEndStr = details.query.checkTime[1];
// }
// const res = await postUpdateWaybillQualityExport(submitData);
// const { status, data } = res;
// if (status !== 200) return;
// downloadXls(data, ' - ' + new Date().getTime() + '.xlsx');
// } catch (error) {
// console.log('error :>> ', error);
// } finally {
// details.loadingObj.pageLoading = false;
// }
exportExcel(details.columnList, details.data, '改单 - ' + new Date().getTime());
});
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

Loading…
Cancel
Save