From d0b1dd4a7a3d8e123b51c89a29972d6c3d160c5f Mon Sep 17 00:00:00 2001 From: ljw <706814450@qq.com> Date: Wed, 4 Mar 2026 14:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wh/purchase-record/PurchaseRecord.vue | 110 +++++++++++++ .../purchase-record/PurchaseRecordDetail.vue | 64 ++++++++ .../wh/purchase-record/PurchaseRecordForm.vue | 139 ++++++++++++++++ src/pages/wh/purchase-record/page.ts | 3 + .../wh/purchase-record/purchase-record-api.ts | 22 +++ .../wh/purchase-record/purchase-record.d.ts | 149 ++++++++++++++++++ 6 files changed, 487 insertions(+) create mode 100644 src/pages/wh/purchase-record/PurchaseRecord.vue create mode 100644 src/pages/wh/purchase-record/PurchaseRecordDetail.vue create mode 100644 src/pages/wh/purchase-record/PurchaseRecordForm.vue create mode 100644 src/pages/wh/purchase-record/page.ts create mode 100644 src/pages/wh/purchase-record/purchase-record-api.ts create mode 100644 src/pages/wh/purchase-record/purchase-record.d.ts diff --git a/src/pages/wh/purchase-record/PurchaseRecord.vue b/src/pages/wh/purchase-record/PurchaseRecord.vue new file mode 100644 index 0000000..4af4aa6 --- /dev/null +++ b/src/pages/wh/purchase-record/PurchaseRecord.vue @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/wh/purchase-record/PurchaseRecordDetail.vue b/src/pages/wh/purchase-record/PurchaseRecordDetail.vue new file mode 100644 index 0000000..3461bd8 --- /dev/null +++ b/src/pages/wh/purchase-record/PurchaseRecordDetail.vue @@ -0,0 +1,64 @@ + + + + + + {{ detailData.sn }} + + + {{ detailData.handlerName }} + + + {{ detailData.supplierName }} + + + {{ detailData.productName }} + + + {{ detailData.spec }} + + + {{ detailData.quantity }} + + + {{ detailData.unit }} + + + {{ detailData.unitPrice }} + + + {{ detailData.totalAmount }} + + + {{ detailData.purchaseDate }} + + + {{ detailData.remark }} + + + + + + + diff --git a/src/pages/wh/purchase-record/PurchaseRecordForm.vue b/src/pages/wh/purchase-record/PurchaseRecordForm.vue new file mode 100644 index 0000000..1972948 --- /dev/null +++ b/src/pages/wh/purchase-record/PurchaseRecordForm.vue @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/wh/purchase-record/page.ts b/src/pages/wh/purchase-record/page.ts new file mode 100644 index 0000000..e35a0b4 --- /dev/null +++ b/src/pages/wh/purchase-record/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/wh/purchase-record/PurchaseRecord.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file diff --git a/src/pages/wh/purchase-record/purchase-record-api.ts b/src/pages/wh/purchase-record/purchase-record-api.ts new file mode 100644 index 0000000..908656a --- /dev/null +++ b/src/pages/wh/purchase-record/purchase-record-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: PurchaseRecordTypes.SearchPurchaseRecordParam) { + return get>('/purchase_record/paging', data) + }, + detail(id: string) { + return get('/purchase_record/detail', {id}) + }, + add(data: PurchaseRecordTypes.AddPurchaseRecordParam) { + return post('/purchase_record/add', data) + }, + modify(data: PurchaseRecordTypes.ModifyPurchaseRecordParam) { + return post('/purchase_record/modify', data) + }, + del(ids: string[]) { + return post('/purchase_record/del', ids) + }, +} diff --git a/src/pages/wh/purchase-record/purchase-record.d.ts b/src/pages/wh/purchase-record/purchase-record.d.ts new file mode 100644 index 0000000..8fc9fd5 --- /dev/null +++ b/src/pages/wh/purchase-record/purchase-record.d.ts @@ -0,0 +1,149 @@ +export {} + +declare global { + namespace PurchaseRecordTypes { + interface SearchPurchaseRecordParam extends G.PageParam { + // Id + id?: string + // 采购单号 + sn?: string + // 经办人Id + handlerId?: string + supplierName?: string + // 商品名称 + productName?: string + // 规格 + spec?: string + // 数量 + quantity?: string + // 单位 + unit?: string + // 单价 + unitPrice?: string + // 总金额 + totalAmount?: string + // 采购日期 + purchaseDate?: string + // 备注 + remark?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface SearchPurchaseRecordResult { + // Id + id?: string + // 采购单号 + sn?: string + // 经办人Id + handlerId?: string + supplierName?: string + // 商品名称 + productName?: string + // 规格 + spec?: string + // 数量 + quantity?: string + // 单位 + unit?: string + // 单价 + unitPrice?: string + // 总金额 + totalAmount?: string + // 采购日期 + purchaseDate?: string + // 备注 + remark?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface AddPurchaseRecordParam { + // Id + id?: string + // 采购单号 + sn?: string + // 经办人Id + handlerId?: string + supplierName?: string + // 商品名称 + productName?: string + // 规格 + spec?: string + // 数量 + quantity?: string + // 单位 + unit?: string + // 单价 + unitPrice?: string + // 总金额 + totalAmount?: string + // 采购日期 + purchaseDate?: string + // 备注 + remark?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface ModifyPurchaseRecordParam { + // Id + id?: string + // 采购单号 + sn?: string + // 经办人Id + handlerId?: string + supplierName?: string + // 商品名称 + productName?: string + // 规格 + spec?: string + // 数量 + quantity?: string + // 单位 + unit?: string + // 单价 + unitPrice?: string + // 总金额 + totalAmount?: string + // 采购日期 + purchaseDate?: string + // 备注 + remark?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + } +}