diff --git a/src/api/wms/backflushDetailbQad/index.ts b/src/api/wms/backflushDetailbQad/index.ts new file mode 100644 index 000000000..096cc33a9 --- /dev/null +++ b/src/api/wms/backflushDetailbQad/index.ts @@ -0,0 +1,50 @@ +import request from '@/config/axios' + +export interface BackflushDetailbQadVO { + qty: number + productreceiptNumber: string + parentItemCode: string + itemCode: string + status: number +} + +// 查询制品收货记录子表QAD返回数据列表 +export const getBackflushDetailbQadPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/backflush-detailb-qad/senior', data }) + } else { + return await request.get({ url: `/wms/backflush-detailb-qad/page`, params }) + } +} + +// 查询制品收货记录子表QAD返回数据详情 +export const getBackflushDetailbQad = async (id: number) => { + return await request.get({ url: `/wms/backflush-detailb-qad/get?id=` + id }) +} + +// 新增制品收货记录子表QAD返回数据 +export const createBackflushDetailbQad = async (data: BackflushDetailbQadVO) => { + return await request.post({ url: `/wms/backflush-detailb-qad/create`, data }) +} + +// 修改制品收货记录子表QAD返回数据 +export const updateBackflushDetailbQad = async (data: BackflushDetailbQadVO) => { + return await request.put({ url: `/wms/backflush-detailb-qad/update`, data }) +} + +// 删除制品收货记录子表QAD返回数据 +export const deleteBackflushDetailbQad = async (id: number) => { + return await request.delete({ url: `/wms/backflush-detailb-qad/delete?id=` + id }) +} + +// 导出制品收货记录子表QAD返回数据 Excel +export const exportBackflushDetailbQad = async (params) => { + return await request.download({ url: `/wms/backflush-detailb-qad/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/backflush-detailb-qad/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/agvManage/backflushDetailbQad/backflushDetailbQad.data.ts b/src/views/wms/agvManage/backflushDetailbQad/backflushDetailbQad.data.ts new file mode 100644 index 000000000..8cf4a2e33 --- /dev/null +++ b/src/views/wms/agvManage/backflushDetailbQad/backflushDetailbQad.data.ts @@ -0,0 +1,77 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const BackflushDetailbQadRules = reactive({ + qty: [required], + productreceiptNumber: [required], + parentItemCode: [required], + itemCode: [required], + status: [required], +}) + +export const BackflushDetailbQad = useCrudSchemas(reactive([ + { + label: '数量', + field: 'qty', + sort: 'custom', + }, + { + label: '制品收货记录单据号', + field: 'productreceiptNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '父物品代码', + field: 'parentItemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '物品代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + }, + { + label: '创建者Id', + field: 'creator', + sort: 'custom', + isForm: false, + }, + { + label: '执行状态0未执行1成功2失败', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/agvManage/backflushDetailbQad/index.vue b/src/views/wms/agvManage/backflushDetailbQad/index.vue new file mode 100644 index 000000000..38c711b8d --- /dev/null +++ b/src/views/wms/agvManage/backflushDetailbQad/index.vue @@ -0,0 +1,244 @@ + + +