From 4633d12cd534c9e991f6e2bd256c192fbe687199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E9=A3=9E?= Date: Fri, 14 Mar 2025 16:35:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/StockIn/index.ts | 2 +- src/api/StockOut/index.ts | 2 +- .../Query/BasicQuery/materialBoxStockedQuery/index.vue | 10 +++++++++- src/views/stockOut/shipRequestReserve/index.vue | 6 +++--- src/views/stocked/NoOrMoveLibrary/index.vue | 3 ++- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/api/StockIn/index.ts b/src/api/StockIn/index.ts index 72bb20c..fe56053 100644 --- a/src/api/StockIn/index.ts +++ b/src/api/StockIn/index.ts @@ -94,7 +94,7 @@ export function PurInSendERPByCharge(ChangeParams: any) { export function CommitMove(ChangeParams: any) { return request({ - url: '/api/location/CommitMove2', + url: '/api/api/location/CommitMove2', method: 'post', data: ChangeParams, }); diff --git a/src/api/StockOut/index.ts b/src/api/StockOut/index.ts index 16187df..fb2c6ef 100644 --- a/src/api/StockOut/index.ts +++ b/src/api/StockOut/index.ts @@ -109,7 +109,7 @@ export function Commit4CToERP(data: any) { * */ export function RejectsAndExpCheck(data: any) { return request({ - url: '/api/api/SaleOut/RejectsAndExpCheck', + url: '/api/SaleOut/RejectsAndExpCheck', method: 'post', data: data, }); diff --git a/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue b/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue index 3730543..3779e98 100644 --- a/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue +++ b/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue @@ -564,6 +564,14 @@ }) } function exportExcel() { + let paramsObjet = state.queryParams.params; + const parmlist = Object.keys(paramsObjet).filter((key: any) => key !== 'SITENAME') + const allEmpty = parmlist.every(el => !(paramsObjet as any)[el] || (paramsObjet as any)[el] == '') + if(allEmpty) { + proxy.$ElMessage.warning('最少有一个查询条件!'); + return; + } + state.queryParams.version = 'WEB00033' getQueryList(state.queryParams).then((res: any) => { if (res.data.length > 0) { @@ -572,7 +580,7 @@ proxy.$ElMessage.warning('当前查询没有数据可以导出'); } }); - } + } const getSummaries = (param: any) => { const { columns, data } = param diff --git a/src/views/stockOut/shipRequestReserve/index.vue b/src/views/stockOut/shipRequestReserve/index.vue index e1ba6e7..4aadacd 100644 --- a/src/views/stockOut/shipRequestReserve/index.vue +++ b/src/views/stockOut/shipRequestReserve/index.vue @@ -77,8 +77,8 @@ - +