From 59cf4660cf2c87fea12efdd75336c0430e02128c Mon Sep 17 00:00:00 2001 From: 18110972313 <780768673@qq.com> Date: Sat, 10 May 2025 16:05:59 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=87=BA=E5=85=A5=E5=BA=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E6=A0=B9=E6=8D=AE=E4=BD=9C=E4=B8=9A=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=B1=95=E7=A4=BA=E5=88=97=E8=A1=A8=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E5=B9=B6=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StockQuery/StockTransaction/index.vue | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/views/Query/StockQuery/StockTransaction/index.vue b/src/views/Query/StockQuery/StockTransaction/index.vue index bfc60c6..5bfaf83 100644 --- a/src/views/Query/StockQuery/StockTransaction/index.vue +++ b/src/views/Query/StockQuery/StockTransaction/index.vue @@ -77,7 +77,7 @@
搜索 - 导出 + 导出 重置
@@ -99,7 +99,8 @@ - + + { materialTableConfig.value.column = [ + { header: "作业类型", field: "LASTEVENTNAME", hide: false , width: '150px'}, { header: "标签", field: "MATERIALPACKINGNAME", hide: false, width: '320px' }, { header: "批次", field: "CHARGE", hide: false, width: '200px' }, { header: "料号", field: "MATERIALSPECNAME", hide: false , width: '100px'}, + { header: "品名", field: "DESC_CN", hide: false , width: '100px'}, { header: "规格", field: "DESCRIPTION", hide: false, width: '200px' }, { header: "阶段", field: "PHASE", hide: false, width: '100px' }, //入库 + { header: "入库组织编码", field: "INERPFACTORY", hide: false, width: '100px' }, { header: "入库组织", field: "INERPFACTORYDESC", hide: false, width: '100px' }, - { header: "入库仓库", field: "INLOCATIONDESC", hide: false, width: '150px' }, + { header: "入库仓库编码", field: "INERPLOCATION", hide: false, width: '150px' }, + { header: "入库仓库", field: "INERPLOCATIONDESC", hide: false, width: '150px' }, + { header: "入库货位编码", field: "INLOCATION", hide: false, width: '150px' }, { header: "入库货位", field: "INLOCATIONNAME", hide: false, width: '150px' }, //出库 + { header: "出库组织编码", field: "OUTERPFACTORY", hide: false, width: '100px' }, { header: "出库组织", field: "OUTERPFACTORYDESC", hide: false, width: '100px' }, - { header: "出库仓库", field: "OUTLOCATIONDESC", hide: false, width: '150px' }, + { header: "出库仓库编码", field: "OUTERPLOCATION", hide: false, width: '150px' }, + { header: "出库仓库", field: "OUTERPLOCATIONDESC", hide: false, width: '150px' }, + { header: "出库货位编码", field: "OUTLOCATION", hide: false, width: '150px' }, { header: "出库货位", field: "OUTLOCATIONNAME", hide: false, width: '150px' }, // 无来源转库、货位调整 /* { header: "转出组织", field: "TRANSFEROUTERPFACTORYDESC", hide: false, width: '100px' }, @@ -225,7 +234,6 @@ onMounted(() => { { header: "作业凭证", field: "UNDOID", hide: false, width: '120px' }, { header: "操作人", field: "LASTEVENTUSER", hide: false, width: '120px' }, { header: "操作时间", field: "LASTEVENTTIME", hide: false , width: '150px' }, - { header: "测试操作事件", field: "LASTEVENTNAME", hide: false , width: '150px' }, /* { header: "组织", field: "ERPFACTORYDESC", hide: false, width: '100px' }, { header: "仓库", field: "LOCATIONDESC", hide: false, width: '150px' }, @@ -505,6 +513,16 @@ function formatDate(param: any) { const day = String(param.getDate()).padStart(2, '0'); return `${year}${month}${day}`; } + +function exportTransactionExcel() { + if (state.list.length > 0) { + state.loading = false + exportDataToExcel(state.list, '出入库报表') + } else { + state.loading = false + proxy.$ElMessage.warning('当前查询没有数据可以导出'); + } +}