Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

hella_online_20241011
gaojs 2 months ago
parent
commit
21950cf366
  1. 12
      src/api/wms/containerMainRequest/index.ts
  2. 9
      src/api/wms/containerRecordMain/index.ts
  3. 10
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts
  4. 2
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue
  5. 10
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts
  6. 10
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

12
src/api/wms/containerMainRequest/index.ts

@ -47,7 +47,7 @@ export const exportContainerMainRequest = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) return await request.download({ url: `/wms/container-main-request/export-excel`, params })
} }
@ -59,7 +59,7 @@ export const exportInitialContainerMainRequest = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) return await request.download({ url: `/wms/container-main-request/export-excel`, params })
} }
@ -71,7 +71,7 @@ export const exportScrapContainerMainRequest = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) return await request.download({ url: `/wms/container-main-request/export-excel`, params })
} }
@ -83,7 +83,7 @@ export const exportMoveContainerMainRequest = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) return await request.download({ url: `/wms/container-main-request/export-excel`, params })
} }
@ -95,7 +95,7 @@ export const exportReturnContainerMainRequest = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) return await request.download({ url: `/wms/container-main-request/export-excel`, params })
} }
@ -107,7 +107,7 @@ export const exportDeliverContainerMainRequest = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) return await request.download({ url: `/wms/container-main-request/export-excel`, params })
} }

9
src/api/wms/containerRecordMain/index.ts

@ -47,7 +47,14 @@ export const deleteContainerRecordMain = async (id: number) => {
// 导出器具管理记录主 Excel // 导出器具管理记录主 Excel
export const exportContainerRecordMain = async (params) => { export const exportContainerRecordMain = async (params) => {
return await request.download({ url: `/wms/container-record-main/export-excel`, params }) // return await request.download({ url: `/wms/container-record-main/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.downloadPost({ url: '/wms/container-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/container-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

10
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts

@ -92,11 +92,11 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'mainRemark',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: false isTable: true
}, },
{ {
label: '部门', label: '部门',
@ -501,10 +501,10 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isTable: false isTable: true
}, },
{ {
label: '创建时间', label: '创建时间',

2
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -143,7 +143,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:`wms:{routeName.value}:create`}), // // defaultButtons.defaultAddBtn({hasPermi:`wms:{routeName.value}:create`}), //
defaultButtons.defaultExportBtn({hasPermi:`wms:{routeName.value}:export`}), // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

10
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts

@ -96,11 +96,11 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'mainRemark',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable:false, isTable:true,
}, },
{ {
label: '部门', label: '部门',
@ -468,10 +468,10 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isTable:false, isTable:true,
}, },
{ {
label: '创建时间', label: '创建时间',

10
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

@ -92,11 +92,11 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'mainRemark',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: false isTable: true
}, },
{ {
label: '部门', label: '部门',
@ -502,10 +502,10 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isTable: false isTable: true
}, },
{ {
label: '创建时间', label: '创建时间',

Loading…
Cancel
Save