From d5f6cc51fe6110a0a8572e1b8c783f4ac562daff Mon Sep 17 00:00:00 2001 From: wanghao Date: Mon, 6 Jan 2025 18:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E9=80=81=E8=B4=A7?= =?UTF-8?q?=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/deliveryNote/index.ts | 63 +++++ src/api/wms/deliveryNote/types.ts | 151 ++++++++++++ src/views/wms/deliveryNote/index.vue | 344 +++++++++++++++++++++++++++ 3 files changed, 558 insertions(+) create mode 100644 src/api/wms/deliveryNote/index.ts create mode 100644 src/api/wms/deliveryNote/types.ts create mode 100644 src/views/wms/deliveryNote/index.vue diff --git a/src/api/wms/deliveryNote/index.ts b/src/api/wms/deliveryNote/index.ts new file mode 100644 index 0000000..c07d8d3 --- /dev/null +++ b/src/api/wms/deliveryNote/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DeliveryNoteVO, DeliveryNoteForm, DeliveryNoteQuery } from '@/api/wms/deliveryNote/types'; + +/** + * 查询送货单管理列表 + * @param query + * @returns {*} + */ + +export const listDeliveryNote = (query?: DeliveryNoteQuery): AxiosPromise => { + return request({ + url: '/wms/deliveryNote/list', + method: 'get', + params: query + }); +}; + +/** + * 查询送货单管理详细 + * @param deliveryNoteId + */ +export const getDeliveryNote = (deliveryNoteId: string | number): AxiosPromise => { + return request({ + url: '/wms/deliveryNote/' + deliveryNoteId, + method: 'get' + }); +}; + +/** + * 新增送货单管理 + * @param data + */ +export const addDeliveryNote = (data: DeliveryNoteForm) => { + return request({ + url: '/wms/deliveryNote', + method: 'post', + data: data + }); +}; + +/** + * 修改送货单管理 + * @param data + */ +export const updateDeliveryNote = (data: DeliveryNoteForm) => { + return request({ + url: '/wms/deliveryNote', + method: 'put', + data: data + }); +}; + +/** + * 删除送货单管理 + * @param deliveryNoteId + */ +export const delDeliveryNote = (deliveryNoteId: string | number | Array) => { + return request({ + url: '/wms/deliveryNote/' + deliveryNoteId, + method: 'delete' + }); +}; diff --git a/src/api/wms/deliveryNote/types.ts b/src/api/wms/deliveryNote/types.ts new file mode 100644 index 0000000..61f687d --- /dev/null +++ b/src/api/wms/deliveryNote/types.ts @@ -0,0 +1,151 @@ +export interface DeliveryNoteVO { + /** + * 送货单表主键 + */ + deliveryNoteId: string | number; + + /** + * 采购订单编号 + */ + poNo: string; + + /** + * 租户号 + */ + tenantId: string | number; + + /** + * 送货单编码 + */ + deliveryNoteCode: string; + + /** + * 创建人 + */ + createBy: string; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 客户名称(默认值) + */ + customerName: string; + + /** + * 联系人 + */ + contacts: string; + + /** + * 联系电话 + */ + contactsIpone: string; + + /** + * 送货单状态(0待发货,1已发货,2已交货) + */ + deliveryNoteState: string; + + /** + * 更新时间 + */ + updateTime: string; + + /** + * 打印次数 + */ + printQty: number; + + /** + * 车牌号 + */ + licensePlate: string; + +} + +export interface DeliveryNoteForm extends BaseEntity { + /** + * 送货单表主键 + */ + deliveryNoteId?: string | number; + + /** + * 采购订单编号 + */ + poNo?: string; + + /** + * 客户名称(默认值) + */ + customerName?: string; + + /** + * 联系人 + */ + contacts?: string; + + /** + * 联系电话 + */ + contactsIpone?: string; + + /** + * 打印次数 + */ + printQty?: number; + + /** + * 车牌号 + */ + licensePlate?: string; + +} + +export interface DeliveryNoteQuery extends PageQuery { + + /** + * 送货单表主键 + */ + deliveryNoteId?: string | number; + + /** + * 采购订单编号 + */ + poNo?: string; + + /** + * 租户号 + */ + tenantId?: string | number; + + /** + * 送货单编码 + */ + deliveryNoteCode?: string; + + /** + * 送货单状态(0待发货,1已发货,2已交货) + */ + deliveryNoteState?: string; + + /** + * 打印次数 + */ + printQty?: number; + + /** + * 车牌号 + */ + licensePlate?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/deliveryNote/index.vue b/src/views/wms/deliveryNote/index.vue new file mode 100644 index 0000000..c39f1f2 --- /dev/null +++ b/src/views/wms/deliveryNote/index.vue @@ -0,0 +1,344 @@ + + +