diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index d907c04..b8cb4ab 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -35,7 +35,7 @@ const props = defineProps({ pageSizes: { type: Array as PropType, default() { - return [10, 20, 30, 50]; + return [10, 20, 30, 50, 100, 500]; } }, layout: { diff --git a/src/views/Query/StockQuery/StockTransaction/index.vue b/src/views/Query/StockQuery/StockTransaction/index.vue index 2e745cc..5bfaf83 100644 --- a/src/views/Query/StockQuery/StockTransaction/index.vue +++ b/src/views/Query/StockQuery/StockTransaction/index.vue @@ -8,7 +8,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' }, + /* { header: "转出组织", field: "TRANSFEROUTERPFACTORYDESC", hide: false, width: '100px' }, { header: "转出仓库", field: "TRANSFEROUTLOCATIONDESC", hide: false, width: '150px' }, { header: "转出货位", field: "TRANSFEROUTLOCATIONNAME", hide: false, width: '150px' }, { header: "转入组织", field: "TRANSFERINERPFACTORYDESC", hide: false, width: '100px' }, { header: "转入仓库", field: "TRANSFERINLOCATIONDESC", hide: false, width: '150px' }, - { header: "转入货位", field: "TRANSFERINLOCATIONNAME", hide: false, width: '150px' }, + { header: "转入货位", field: "TRANSFERINLOCATIONNAME", hide: false, width: '150px' },*/ { header: "数量", field: "MATERIALQUANTITY", hide: false, width: '100px' }, { header: "单位", field: "FNAME", hide: false, width: '100px' }, { header: "入库单号", field: "RECEIVEREQUESTNAME", 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' }, @@ -245,7 +253,7 @@ onMounted(() => { */ ] getPRINTLIST() - handleQuery() + //handleQuery() updateTableHeight(); window.addEventListener('resize', handleResize); @@ -301,6 +309,11 @@ function handleQuery() { for (let i = 0; i < state.queryParams.RECEIVEREQUESTNAMETYPE.length; i++) { loactionString = loactionString + state.queryParams.RECEIVEREQUESTNAMETYPE[i] + ',' } + /* + if (loactionString == '') { + loactionString = 'BarCodeToTransferIn,allocateStockIn,receiveMesShippInfo,Assign'; + } + */ let erpFactoryString = '' for (let i = 0; i < state.queryParams.ERPFACTORY.length; i++) { erpFactoryString = erpFactoryString + state.queryParams.ERPFACTORY[i] + ',' @@ -430,7 +443,9 @@ function exportExcel() { function resetQuery() { queryFormRef.value.resetFields(); setDefaultDates(); - handleQuery(); + //handleQuery(); + state.list = []; + state.page.total = 0; } /** @@ -498,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('当前查询没有数据可以导出'); + } +}