From 130ecfc07adad201f2cc11679635ae9ddcde80ba Mon Sep 17 00:00:00 2001
From: wuteng <419274783@qq.com>
Date: Wed, 25 Feb 2026 09:34:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AF=BC=E5=87=BA=E6=88=90?=
=?UTF-8?q?=E6=9C=AC=E5=AF=BC=E5=87=BA=E5=BC=82=E5=B8=B8=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../emisTmsCostFee/BatchImportCostFee.vue | 58 ++++++++++++++++++-
1 file changed, 56 insertions(+), 2 deletions(-)
diff --git a/src/views/emis/emisTmsCostFee/BatchImportCostFee.vue b/src/views/emis/emisTmsCostFee/BatchImportCostFee.vue
index d02f5ac0..fcba613b 100644
--- a/src/views/emis/emisTmsCostFee/BatchImportCostFee.vue
+++ b/src/views/emis/emisTmsCostFee/BatchImportCostFee.vue
@@ -25,6 +25,16 @@
@click="handleDelete"
>删除
+
+ 导出异常数据
+
@@ -168,6 +178,7 @@ export default {
// 运单列表表格数据
orderList: [],
tmpDataList: [],
+ tmpErrorList:[],
selectionList:[],
selectionIndexList: [],
@@ -282,7 +293,7 @@ export default {
prop: key
}));
// 转换费用类型
- that.feeItemMap=new Map();;
+ that.feeItemMap=new Map();
for(let i=0;i item.uploadStatus === -1);
this.tmpDataList=[];
this.openUploadForm = false;
@@ -672,6 +684,7 @@ export default {
})
})
that.$refs.multipleTable.clearSelection();
+ that.tmpErrorList = that.orderList.filter(item => item.uploadStatus === -1);
}).then(() => {
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
@@ -681,7 +694,7 @@ export default {
getIndex($index) {
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + $index + 1
},
- //指定列求和
+ //指定列求和
getSummaries(param) {
const { columns, data } = param;
const sums = [];
@@ -713,6 +726,47 @@ export default {
}
});
return sums;
+ },
+ handleExport(){
+ const loadingInstance = this.$loading({
+ text: '正在导出...'
+ })
+ this.exportData(this.tmpErrorList,loadingInstance);
+ },
+ exportData(selData, loadingInstance) {
+ const curList = selData
+ import('@/vendor/Export2Excel').then(excel => {
+ // const exportParam = this.$refs.multipleTable.getExportParam();
+ const tHeader = ['状态','异常信息',...this.dynamicCol.map(item => item.label)];
+ const filterVal = ['uploadStatus','errorInfo',...this.dynamicCol.map(item => item.prop)];
+ const data = this.formatJson(filterVal, curList, selData)
+ excel.export_json_to_excel({
+ header: tHeader,
+ data,
+ filename: '寄件运单列表',
+ autoWidth: true
+ })
+ loadingInstance.close()
+ })
+ },
+ formatJson(filterVal, jsonData, resData) {
+ let index = 0
+ return jsonData.map(v => filterVal.map(j => {
+
+ if (j === 'index') {
+ return ++index
+ }
+ if(j === 'uploadStatus'){
+ if(v[j] === -1){
+ return '异常'
+ }else if(v[j] === 0){
+ return '待处理'
+ }else{
+ return '成功'
+ }
+ }
+ return v[j]
+ }))
}
}
};