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 @@ + + + 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 + } + } +}