diff --git a/src/api/wms/saleShipmentDetailRecord/index.ts b/src/api/wms/saleShipmentDetailRecord/index.ts new file mode 100644 index 000000000..4f22239d0 --- /dev/null +++ b/src/api/wms/saleShipmentDetailRecord/index.ts @@ -0,0 +1,65 @@ +import request from '@/config/axios' + +export interface SaleShipmentDetailRecordVO { + id: number + soNumber: string + soLine: string + fromOwnerCode: string + packingNumber: string + batch: string + inventoryStatus: string + fromLocationCode: string + masterId: number + number: string + itemCode: string + itemName: string + itemDesc1: string + itemDesc2: string + projectCode: string + qty: number + uom: string + remark: string + concurrencyStamp: string + siteId: number +} + +// 查询销售发运记录子列表 +export const getSaleShipmentDetailRecordPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/sale-shipment-detail-record/senior', data }) + } else { + return await request.get({ url: `/wms/sale-shipment-detail-record/page`, params }) + } +} + +// 查询销售发运记录子详情 +export const getSaleShipmentDetailRecord = async (id: number) => { + return await request.get({ url: `/wms/sale-shipment-detail-record/get?id=` + id }) +} + +// 新增销售发运记录子 +export const createSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => { + return await request.post({ url: `/wms/sale-shipment-detail-record/create`, data }) +} + +// 修改销售发运记录子 +export const updateSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => { + return await request.put({ url: `/wms/sale-shipment-detail-record/update`, data }) +} + +// 删除销售发运记录子 +export const deleteSaleShipmentDetailRecord = async (id: number) => { + return await request.delete({ url: `/wms/sale-shipment-detail-record/delete?id=` + id }) +} + +// 导出销售发运记录子 Excel +export const exportSaleShipmentDetailRecord = async (params) => { + return await request.download({ url: `/wms/sale-shipment-detail-record/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/sale-shipment-detail-record/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/saleShipmentMain/index.ts b/src/api/wms/saleShipmentMain/index.ts index e03719231..c8768bea2 100644 --- a/src/api/wms/saleShipmentMain/index.ts +++ b/src/api/wms/saleShipmentMain/index.ts @@ -61,4 +61,34 @@ export const exportSaleShipmentMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/sale-shipment-main-request/get-import-template' }) +} + +// 关闭-销售发运申请 +export const closeSaleShipmentMain = async (id) => { + return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id }) +} + +// 重新添加-销售发运申请 +export const reAddSaleShipmentMain = async (id) => { + return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id }) +} + +// 提交审批-销售发运申请 +export const submitSaleShipmentMain = async (id) => { + return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id }) +} + +// 审批驳回-销售发运申请 +export const refusedSaleShipmentMain = async (id) => { + return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id }) +} + +// 审批通过-销售发运申请 +export const agreeSaleShipmentMain = async (id) => { + return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id }) +} + +// 处理-销售发运申请 +export const handleSaleShipmentMain = async (id) => { + return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id }) } \ No newline at end of file diff --git a/src/api/wms/saleShipmentMainRecord/index.ts b/src/api/wms/saleShipmentMainRecord/index.ts new file mode 100644 index 000000000..60a87d971 --- /dev/null +++ b/src/api/wms/saleShipmentMainRecord/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface SaleShipmentMainRecordVO { + id: number + requestNumber: string + customerCode: string + invoiceTime: Date + executeTime: Date + available: string + departmentCode: string + number: string + businessType: string + extraProperties: string + siteId: string +} + +// 查询销售发运记录主列表 +export const getSaleShipmentMainRecordPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/sale-shipment-main-record/senior', data }) + } else { + return await request.get({ url: `/wms/sale-shipment-main-record/page`, params }) + } +} + +// 查询销售发运记录主详情 +export const getSaleShipmentMainRecord = async (id: number) => { + return await request.get({ url: `/wms/sale-shipment-main-record/get?id=` + id }) +} + +// 新增销售发运记录主 +export const createSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => { + return await request.post({ url: `/wms/sale-shipment-main-record/create`, data }) +} + +// 修改销售发运记录主 +export const updateSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => { + return await request.put({ url: `/wms/sale-shipment-main-record/update`, data }) +} + +// 删除销售发运记录主 +export const deleteSaleShipmentMainRecord = async (id: number) => { + return await request.delete({ url: `/wms/sale-shipment-main-record/delete?id=` + id }) +} + +// 导出销售发运记录主 Excel +export const exportSaleShipmentMainRecord = async (params) => { + return await request.download({ url: `/wms/sale-shipment-main-record/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/sale-shipment-main-record/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts index 623f4d311..28c996130 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts @@ -364,6 +364,14 @@ export const SaleDetail = useCrudSchemas(reactive([ table: { width: 150 }, + tableForm:{ + isInpuFocusShow: true, // 开启查询弹窗 + searchListPlaceholder: '请选择包装规格代码', + searchField: 'code', + searchTitle: '包装规格信息', + searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类 + searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 + }, form: { // labelMessage: '信息提示说明!!!', componentProps: { diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue new file mode 100644 index 000000000..97a295c57 --- /dev/null +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue @@ -0,0 +1,224 @@ + + + diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts new file mode 100644 index 000000000..ba4ba4a2b --- /dev/null +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts @@ -0,0 +1,278 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const SaleShipmentMainRecordRules = reactive({ +}) + +export const SaleShipmentMainRecord = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '客户代码', + field: 'customerCode', + sort: 'custom', + isSearch: true, + }, + { + label: '发票时间', + field: 'invoiceTime', + 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')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '执行时间', + field: 'executeTime', + 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')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + isSearch: true, + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true, + }, + + { + label: '业务类型', + field: 'businessType', + 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: 'siteId', + sort: 'custom', + isSearch: true, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const SaleShipmentDetailRecordRules = reactive({ +}) + +export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '销售订单号', + field: 'soNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '销售订单行', + field: 'soLine', + sort: 'custom', + isSearch: true, + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isSearch: true, + }, + { + label: '包装号', + field: 'packingNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + }, + { + label: '库存状态', + field: 'inventoryStatus', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '从库位代码', + field: 'fromLocationCode', + sort: 'custom', + isSearch: true, + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '物品代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '物品名称', + field: 'itemName', + sort: 'custom', + isSearch: true, + }, + { + label: '物品描述1', + field: 'itemDesc1', + sort: 'custom', + isSearch: true, + }, + { + label: '物品描述2', + field: 'itemDesc2', + sort: 'custom', + isSearch: true, + }, + { + label: '项目代码', + field: 'projectCode', + sort: 'custom', + isSearch: true, + }, + { + label: '数量', + field: 'qty', + sort: 'custom', + isSearch: true, + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + isSearch: true, + }, + { + label: '备注', + field: 'remark', + 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: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue index cb188aa14..9821f5356 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue @@ -77,7 +77,7 @@ /> - +