feat(mes): add VO and service for managing MES arrival notice and arrival notice line
parent
b6e875c6bb
commit
87d24ab7a4
|
|
@ -0,0 +1,61 @@
|
||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// MES 到货通知单 VO
|
||||||
|
export interface WmArrivalNoticeVO {
|
||||||
|
id: number
|
||||||
|
code: string
|
||||||
|
name: string
|
||||||
|
purchaseOrderCode: string
|
||||||
|
vendorId: number
|
||||||
|
vendorCode: string
|
||||||
|
vendorName: string
|
||||||
|
arrivalDate: string
|
||||||
|
contactName: string
|
||||||
|
contactTelephone: string
|
||||||
|
status: number
|
||||||
|
remark: string
|
||||||
|
createTime: string
|
||||||
|
}
|
||||||
|
|
||||||
|
// MES 到货通知单 API
|
||||||
|
export const WmArrivalNoticeApi = {
|
||||||
|
// 查询到货通知单分页
|
||||||
|
getArrivalNoticePage: async (params: any) => {
|
||||||
|
return await request.get({ url: '/mes/wm/arrival-notice/page', params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询到货通知单详情
|
||||||
|
getArrivalNotice: async (id: number) => {
|
||||||
|
return await request.get({ url: '/mes/wm/arrival-notice/get?id=' + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增到货通知单
|
||||||
|
createArrivalNotice: async (data: WmArrivalNoticeVO) => {
|
||||||
|
return await request.post({ url: '/mes/wm/arrival-notice/create', data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改到货通知单
|
||||||
|
updateArrivalNotice: async (data: WmArrivalNoticeVO) => {
|
||||||
|
return await request.put({ url: '/mes/wm/arrival-notice/update', data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除到货通知单
|
||||||
|
deleteArrivalNotice: async (id: number) => {
|
||||||
|
return await request.delete({ url: '/mes/wm/arrival-notice/delete?id=' + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 提交到货通知单
|
||||||
|
submitArrivalNotice: async (id: number) => {
|
||||||
|
return await request.put({ url: '/mes/wm/arrival-notice/submit?id=' + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 审批到货通知单
|
||||||
|
approveArrivalNotice: async (id: number) => {
|
||||||
|
return await request.put({ url: '/mes/wm/arrival-notice/approve?id=' + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出到货通知单 Excel
|
||||||
|
exportArrivalNotice: async (params: any) => {
|
||||||
|
return await request.download({ url: '/mes/wm/arrival-notice/export-excel', params })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,47 @@
|
||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// MES 到货通知单行 VO
|
||||||
|
export interface WmArrivalNoticeLineVO {
|
||||||
|
id: number
|
||||||
|
noticeId: number
|
||||||
|
itemId: number
|
||||||
|
itemCode: string
|
||||||
|
itemName: string
|
||||||
|
specification: string
|
||||||
|
unitMeasureName: string
|
||||||
|
arrivalQuantity: number
|
||||||
|
qualifiedQuantity: number
|
||||||
|
iqcCheckFlag: boolean
|
||||||
|
iqcId: number
|
||||||
|
iqcCode: string
|
||||||
|
remark: string
|
||||||
|
createTime: string
|
||||||
|
}
|
||||||
|
|
||||||
|
// MES 到货通知单行 API
|
||||||
|
export const WmArrivalNoticeLineApi = {
|
||||||
|
// 查询到货通知单行分页
|
||||||
|
getArrivalNoticeLinePage: async (params: any) => {
|
||||||
|
return await request.get({ url: '/mes/wm/arrival-notice-line/page', params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询到货通知单行详情
|
||||||
|
getArrivalNoticeLine: async (id: number) => {
|
||||||
|
return await request.get({ url: '/mes/wm/arrival-notice-line/get?id=' + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增到货通知单行
|
||||||
|
createArrivalNoticeLine: async (data: WmArrivalNoticeLineVO) => {
|
||||||
|
return await request.post({ url: '/mes/wm/arrival-notice-line/create', data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改到货通知单行
|
||||||
|
updateArrivalNoticeLine: async (data: WmArrivalNoticeLineVO) => {
|
||||||
|
return await request.put({ url: '/mes/wm/arrival-notice-line/update', data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除到货通知单行
|
||||||
|
deleteArrivalNoticeLine: async (id: number) => {
|
||||||
|
return await request.delete({ url: '/mes/wm/arrival-notice-line/delete?id=' + id })
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue