From 654fb630b1b902aa5ba9b387cd80cf0107fb8ac9 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Thu, 10 Oct 2024 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=8D=A2=E8=B4=A7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/purchaseBarterRecordDetail/index.ts | 27 +++ .../purchaseBarterRecord/index.vue | 158 ++++++++++++++++++ .../purchaseBarterRecordMain.data.ts | 95 +++++++++++ 3 files changed, 280 insertions(+) create mode 100644 src/api/wms/purchaseBarterRecordDetail/index.ts create mode 100644 src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue create mode 100644 src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts diff --git a/src/api/wms/purchaseBarterRecordDetail/index.ts b/src/api/wms/purchaseBarterRecordDetail/index.ts new file mode 100644 index 000000000..91bd582f9 --- /dev/null +++ b/src/api/wms/purchaseBarterRecordDetail/index.ts @@ -0,0 +1,27 @@ +import request from '@/config/axios' + +export interface PurchaseBarterRecordDetailVO { + masterId: number + itemCode: string + itemName: string + uom: string + batch: string + packUnit: string + qty: number + reason: string +} + +// 查询采购换货申请明细列表 +export const getPurchaseBarterRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchase-barter-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/purchase-barter-record-detail/page`, params }) + } +} + +export async function exportPurchaseBarterRecord(params: any) { + +} diff --git a/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue new file mode 100644 index 000000000..6fcd4a008 --- /dev/null +++ b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue @@ -0,0 +1,158 @@ + + + diff --git a/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts new file mode 100644 index 000000000..7a0f30cca --- /dev/null +++ b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts @@ -0,0 +1,95 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +export const PurchaseBarterRecordMain = useCrudSchemas(reactive([ + { + label: '记录单号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 180, + fixed: 'left' + } + }, + { + label: '申请单号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 180, + } + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + isForm: false, + dictType: DICT_TYPE.REQUEST_STATUS, + dictClass: 'string', + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + isSearch: true, + }, + { + label: '供应商名称', + field: 'supplierName', + sort: 'custom', + isSearch: false, + } +])) + +export const PurchaseBarterRecordDetail = useCrudSchemas(reactive([ + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + isSearch: false, + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + isSearch: false, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + isSearch: false, + }, + { + label: '换货数量', + field: 'qty', + sort: 'custom', + isSearch: false, + }, + { + label: '换货原因 ', + field: 'reason', + sort: 'custom', + isSearch: false, + }, +])) +