Browse Source

备货模块api更新

master_hella_20240701
chenfang 8 months ago
parent
commit
e33e319b1f
  1. 8
      src/api/wms/stockupMainJob/index.ts
  2. 8
      src/api/wms/stockupMainRecord/index.ts
  3. 8
      src/api/wms/stockupMainRequest/index.ts
  4. 29
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

8
src/api/wms/stockupMainJob/index.ts

@ -81,7 +81,13 @@ export const deleteStockupMainJob = async (id: number) => {
// 导出备货任务主 Excel // 导出备货任务主 Excel
export const exportStockupMainJob = async (params) => { 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 })
}
} }
// 下载用户导入模板 // 下载用户导入模板

8
src/api/wms/stockupMainRecord/index.ts

@ -63,7 +63,13 @@ export const deleteStockupMainRecord = async (id: number) => {
// 导出备货记录主 Excel // 导出备货记录主 Excel
export const exportStockupMainRecord = async (params) => { 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 })
}
} }
// 下载用户导入模板 // 下载用户导入模板

8
src/api/wms/stockupMainRequest/index.ts

@ -64,7 +64,13 @@ export const deleteStockupMainRequest = async (id: number) => {
// 导出备货申请主 Excel // 导出备货申请主 Excel
export const exportStockupMainRequest = async (params) => { 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 })
}
} }
// 下载用户导入模板 // 下载用户导入模板

29
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -133,8 +133,35 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) 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)
})
}
}
}) })
} }
// //

Loading…
Cancel
Save