Browse Source

备件收货修改

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
f1d1b90bcf
  1. 11
      src/api/wms/purchasereceiptJobDetail/index.ts
  2. 13
      src/api/wms/purchasereceiptRecordDetail/index.ts
  3. 11
      src/api/wms/purchasereceiptRequestDetail/index.ts
  4. 2
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue
  5. 2
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue
  6. 4
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

11
src/api/wms/purchasereceiptJobDetail/index.ts

@ -44,6 +44,17 @@ export const getPurchasereceiptJobDetailPage = async (params) => {
} }
} }
// 查询备件收货任务子列表
export const getPurchasereceiptJobDetailPageSapre = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-job-detail/seniorSpare', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-job-detail/pageSpare`, params })
}
}
// 查询采购收货任务子详情 // 查询采购收货任务子详情
export const getPurchasereceiptJobDetail = async (id: number) => { export const getPurchasereceiptJobDetail = async (id: number) => {
return await request.get({ url: `/wms/purchasereceipt-job-detail/get?id=` + id }) return await request.get({ url: `/wms/purchasereceipt-job-detail/get?id=` + id })

13
src/api/wms/purchasereceiptRecordDetail/index.ts

@ -60,6 +60,19 @@ export const getPurchasereceiptRecordDetailPage = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params })
} }
} }
// 查询备件收货记录子列表
export const getPurchasereceiptRecordDetailPageSpare = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSpare', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSpare`, params })
}
}
export const getPurchasereceiptRecordDetailPageSCP = async (params) => { export const getPurchasereceiptRecordDetailPageSCP = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch

11
src/api/wms/purchasereceiptRequestDetail/index.ts

@ -46,6 +46,17 @@ export const getPurchasereceiptRequestDetailPage = async (params) => {
} }
} }
// 查询备件收货申请子列表
export const getPurchasereceiptRequestDetailPageSpare = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-request-detail/seniorSpare', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-request-detail/pageSpare`, params })
}
}
// 查询采购收货申请子详情 // 查询采购收货申请子详情
export const getPurchasereceiptRequestDetail = async (id: number) => { export const getPurchasereceiptRequestDetail = async (id: number) => {
return await request.get({ url: `/wms/purchasereceipt-request-detail/get?id=` + id }) return await request.get({ url: `/wms/purchasereceipt-request-detail/get?id=` + id })

2
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

@ -129,7 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const Echo = [] const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage // getListApi: PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPageSapre //
}) })
// //

2
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue

@ -91,7 +91,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage// getListApi: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSpare//
}) })
// //

4
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -130,7 +130,7 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref([...PurchasereceiptRequestMain.allSchemas.tableColumns,...PurchasereceiptRequestDetail.allSchemas.tableMainColumns]) const tableColumns = ref([...PurchasereceiptRequestMain.allSchemas.tableColumns,...PurchasereceiptRequestDetail.allSchemas.tableMainColumns])
const apiPage = ref(PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage) const apiPage = ref(PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPageSpare)
const detailAllSchemas = ref(PurchasereceiptRequestDetail.allSchemas) const detailAllSchemas = ref(PurchasereceiptRequestDetail.allSchemas)
@ -243,7 +243,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage // getListApi: PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPageSpare //
}) })
// //

Loading…
Cancel
Save