From e33e319b1ff8c46193b5ba0987764ba05e39e13a Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 19 Mar 2024 19:01:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7=E6=A8=A1=E5=9D=97api?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/stockupMainJob/index.ts | 8 ++++- src/api/wms/stockupMainRecord/index.ts | 8 ++++- src/api/wms/stockupMainRequest/index.ts | 8 ++++- .../stockup/stockupMainRequest/index.vue | 29 ++++++++++++++++++- 4 files changed, 49 insertions(+), 4 deletions(-) diff --git a/src/api/wms/stockupMainJob/index.ts b/src/api/wms/stockupMainJob/index.ts index 182e49185..b9dffb7ff 100644 --- a/src/api/wms/stockupMainJob/index.ts +++ b/src/api/wms/stockupMainJob/index.ts @@ -81,7 +81,13 @@ export const deleteStockupMainJob = async (id: number) => { // 导出备货任务主 Excel export const exportStockupMainJob = async (params) => { - return await request.download({ url: `/wms/stockup-main-job/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/stockup-main-job/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/stockup-main-job/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/stockupMainRecord/index.ts b/src/api/wms/stockupMainRecord/index.ts index 4a13e6c95..cc3952c54 100644 --- a/src/api/wms/stockupMainRecord/index.ts +++ b/src/api/wms/stockupMainRecord/index.ts @@ -63,7 +63,13 @@ export const deleteStockupMainRecord = async (id: number) => { // 导出备货记录主 Excel export const exportStockupMainRecord = async (params) => { - return await request.download({ url: `/wms/stockup-main-record/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/stockup-main-record/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/stockup-main-record/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/stockupMainRequest/index.ts b/src/api/wms/stockupMainRequest/index.ts index f84d52e2a..a14539008 100644 --- a/src/api/wms/stockupMainRequest/index.ts +++ b/src/api/wms/stockupMainRequest/index.ts @@ -64,7 +64,13 @@ export const deleteStockupMainRequest = async (id: number) => { // 导出备货申请主 Excel export const exportStockupMainRequest = async (params) => { - return await request.download({ url: `/wms/stockup-main-request/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/stockup-main-request/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/stockup-main-request/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue index 2947840a4..df54d6c80 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue @@ -132,9 +132,36 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } } else { const setV = {} + setV[formField] = val[0][searchField] + if(formField == 'deliverPlanNumber') { + setV['deliverPlanNumber'] = val[0]['number'] + if(setV['deliverPlanNumber'] != null){ + isShowButton.value = false + } + setV['customerCode'] = val[0]['customerCode'] + // 获取子表数据 getBomDisassemble + DeliverPlanDetailApi.selectDetailByMasterID(val[0]['id']) + .then(res => { + res.forEach(item => { + item.qty = item.planQty + }) + if (res) tableData.value = res + // 修改 tableform 属性 + DeliverRequestDetail.allSchemas.tableFormColumns.map(item => { + if(item.field == 'itemCode') { + item.isInpuFocusShow = false + item.tableForm.isInpuFocusShow = false + item.tableForm.disabled = true + } + if(item.field == 'uom') { + item.tableForm.disabled = true + } + }) setV[formField] = val[0][searchField] formRef.setValues(setV) - } + }) + } + } }) } // 查询页面返回——详情