From 60bc94dff8d22718e31c7868c84b2cda6a16468a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 6 Sep 2024 11:13:52 +0800 Subject: [PATCH] =?UTF-8?q?HL-5833=20=E6=B6=88=E8=80=97qad=E5=9B=9E?= =?UTF-8?q?=E4=BC=A0=E6=95=B0=E6=8D=AE=E5=89=8D=E7=AB=AF=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/backflushDetailbQad/index.ts | 50 ++++ .../backflushDetailbQad.data.ts | 77 ++++++ .../agvManage/backflushDetailbQad/index.vue | 244 ++++++++++++++++++ 3 files changed, 371 insertions(+) create mode 100644 src/api/wms/backflushDetailbQad/index.ts create mode 100644 src/views/wms/agvManage/backflushDetailbQad/backflushDetailbQad.data.ts create mode 100644 src/views/wms/agvManage/backflushDetailbQad/index.vue 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 @@ + + +