diff --git a/src/api/qms/inspectionQ1/index.ts b/src/api/qms/inspectionQ1/index.ts new file mode 100644 index 000000000..dab41fa63 --- /dev/null +++ b/src/api/qms/inspectionQ1/index.ts @@ -0,0 +1,67 @@ +import request from '@/config/axios' + +export interface Q1VO { + id: number + number: string + customerCode: string + costCode: string + itemCode: string + qty: number + uom: string + code: string + priority: number + responUser: string + claimAmount: number + claimReason: number + claimTime: Date + handleTime: Date + desc: string + status: string + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询Q1通知单列表 +export const getQ1Page = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = { ...params } + return await request.post({ url: '/qms/inspectionQ1/senior', data }) + } else { + return await request.get({ url: `/qms/inspectionQ1/page`, params }) + } +} + +// 查询Q1通知单详情 +export const getQ1 = async (id: number) => { + return await request.get({ url: `/qms/inspectionQ1/get?id=` + id }) +} + +// 新增Q1通知单 +export const createQ1 = async (data: Q1VO) => { + return await request.post({ url: `/qms/inspectionQ1/create`, data }) +} + +// 修改Q1通知单 +export const updateQ1 = async (data: Q1VO) => { + return await request.put({ url: `/qms/inspectionQ1/update`, data }) +} + +// 删除Q1通知单 +export const deleteQ1 = async (id: number) => { + return await request.delete({ url: `/qms/inspectionQ1/delete?id=` + id }) +} + +// 导出Q1通知单 Excel +export const exportQ1 = async (params) => { + return await request.download({ url: `/qms/inspectionQ1/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/qms/inspectionQ1/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/qms/inspectionQ2/index.ts b/src/api/qms/inspectionQ2/index.ts new file mode 100644 index 000000000..19d1f6f40 --- /dev/null +++ b/src/api/qms/inspectionQ2/index.ts @@ -0,0 +1,68 @@ +import request from '@/config/axios' + +export interface Q2VO { + id: number + number: string + supplierCode: string + itemCode: string + q1Number: string + purchaseReceiptNumber: string + qty: number + uom: string + code: string + desc: string + priority: number + responUser: string + claimAmount: number + costCode: string + claimTime: Date + handleTime: Date + status: string + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询Q2通知单列表 +export const getQ2Page = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = { ...params } + return await request.post({ url: '/qms/inspectionQ2/senior', data }) + } else { + return await request.get({ url: `/qms/inspectionQ2/page`, params }) + } +} + +// 查询Q2通知单详情 +export const getQ2 = async (id: number) => { + return await request.get({ url: `/qms/inspectionQ2/get?id=` + id }) +} + +// 新增Q2通知单 +export const createQ2 = async (data: Q2VO) => { + return await request.post({ url: `/qms/inspectionQ2/create`, data }) +} + +// 修改Q2通知单 +export const updateQ2 = async (data: Q2VO) => { + return await request.put({ url: `/qms/inspectionQ2/update`, data }) +} + +// 删除Q2通知单 +export const deleteQ2 = async (id: number) => { + return await request.delete({ url: `/qms/inspectionQ2/delete?id=` + id }) +} + +// 导出Q2通知单 Excel +export const exportQ2 = async (params) => { + return await request.download({ url: `/qms/inspectionQ2/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/qms/inspectionQ2/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/qms/inspectionQ3/index.ts b/src/api/qms/inspectionQ3/index.ts new file mode 100644 index 000000000..616376561 --- /dev/null +++ b/src/api/qms/inspectionQ3/index.ts @@ -0,0 +1,68 @@ +import request from '@/config/axios' + +export interface Q3VO { + id: number + number: string + q1Number: string + itemCode: string + qty: number + code: string + uom: string + desc: string + defectLocation: string + defectType: string + problemReason: string + priority: number + responUser: string + amount: number + costCode: string + handleTime: Date + status: string + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询Q3通知单列表 +export const getQ3Page = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = { ...params } + return await request.post({ url: '/qms/inspectionQ3/senior', data }) + } else { + return await request.get({ url: `/qms/inspectionQ3/page`, params }) + } +} + +// 查询Q3通知单详情 +export const getQ3 = async (id: number) => { + return await request.get({ url: `/qms/inspectionQ3/get?id=` + id }) +} + +// 新增Q3通知单 +export const createQ3 = async (data: Q3VO) => { + return await request.post({ url: `/qms/inspectionQ3/create`, data }) +} + +// 修改Q3通知单 +export const updateQ3 = async (data: Q3VO) => { + return await request.put({ url: `/qms/inspectionQ3/update`, data }) +} + +// 删除Q3通知单 +export const deleteQ3 = async (id: number) => { + return await request.delete({ url: `/qms/inspectionQ3/delete?id=` + id }) +} + +// 导出Q3通知单 Excel +export const exportQ3 = async (params) => { + return await request.download({ url: `/qms/inspectionQ3/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/qms/inspectionQ3/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/productionlineitem/index.ts b/src/api/wms/productionlineitem/index.ts index 430a0e9e5..31efb8954 100644 --- a/src/api/wms/productionlineitem/index.ts +++ b/src/api/wms/productionlineitem/index.ts @@ -72,3 +72,7 @@ export const importTemplate = () => { export const getProductionLineCodelistByCodes = async (params) => { return await request.get({ url: `/wms/productionlineitem/listByCodes`, params }) } + +export const selectItemCodeToProductionLineCode = async (itemCode: String) => { + return await request.get({ url: `/wms/productionlineitem/selectItemCodeToProductionLineCode?itemCode=` + itemCode }) +} \ No newline at end of file diff --git a/src/api/wms/relegateRequestMain/index.ts b/src/api/wms/relegateRequestMain/index.ts index 03e02454a..84a8a9f0d 100644 --- a/src/api/wms/relegateRequestMain/index.ts +++ b/src/api/wms/relegateRequestMain/index.ts @@ -95,4 +95,9 @@ export const agree = (id) => { // 处理 export const handle = (id) => { return request.put({ url: '/wms/relegate-request-main/handle?id=' + id }) +} + +// 创建标签 +export const relegateCreateLabel = async (data: RelegateRequestMainVO) => { + return await request.post({ url: `/wms/relegate-request-main/relegateCreateLabel`, data }) } \ No newline at end of file diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue index a4cb50c64..c69a2b4cd 100644 --- a/src/components/ImportForm/src/ImportForm.vue +++ b/src/components/ImportForm/src/ImportForm.vue @@ -34,6 +34,18 @@
{{t('ts.将文件拖到此处,或')}}{{t('ts.点击上传')}}