From 0716f6c463442943d7b869b5bafb4bd4b5c2248b Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Thu, 6 Mar 2025 08:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=8A=E4=BE=9B=E5=BA=94=E5=95=86=E5=9C=B0?= =?UTF-8?q?=E7=82=B9=E5=8F=97=E5=85=A5=E5=8F=B7=E4=BE=BF=E6=AC=A1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=A1=A8=E3=80=8B=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/deliveryCalendar/index.ts | 55 ++++ src/api/wms/supplierAddressModelDeli/index.ts | 56 ++++ .../deliveryCalendar/deliveryCalendar.data.ts | 88 +++++++ .../supplierManage/deliveryCalendar/index.vue | 244 +++++++++++++++++ .../supplierAddressModelDeli/index.vue | 247 ++++++++++++++++++ .../supplierAddressModelDeli.data.ts | 143 ++++++++++ 6 files changed, 833 insertions(+) create mode 100644 src/api/wms/deliveryCalendar/index.ts create mode 100644 src/api/wms/supplierAddressModelDeli/index.ts create mode 100644 src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts create mode 100644 src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue create mode 100644 src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue create mode 100644 src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/supplierAddressModelDeli.data.ts diff --git a/src/api/wms/deliveryCalendar/index.ts b/src/api/wms/deliveryCalendar/index.ts new file mode 100644 index 000000000..46dce36b5 --- /dev/null +++ b/src/api/wms/deliveryCalendar/index.ts @@ -0,0 +1,55 @@ +import request from '@/config/axios' + +export interface DeliveryCalendarVO { + id: number + supplierCode: string + supplierAddress: string + model: string + day: Date + shift: string + remark: string + available: string + siteId: string + concurrencyStamp: number +} + +// 查询送货日历列表 +export const getDeliveryCalendarPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/delivery-calendar/senior', data }) + } else { + return await request.get({ url: `/wms/delivery-calendar/page`, params }) + } +} + +// 查询送货日历详情 +export const getDeliveryCalendar = async (id: number) => { + return await request.get({ url: `/wms/delivery-calendar/get?id=` + id }) +} + +// 新增送货日历 +export const createDeliveryCalendar = async (data: DeliveryCalendarVO) => { + return await request.post({ url: `/wms/delivery-calendar/create`, data }) +} + +// 修改送货日历 +export const updateDeliveryCalendar = async (data: DeliveryCalendarVO) => { + return await request.put({ url: `/wms/delivery-calendar/update`, data }) +} + +// 删除送货日历 +export const deleteDeliveryCalendar = async (id: number) => { + return await request.delete({ url: `/wms/delivery-calendar/delete?id=` + id }) +} + +// 导出送货日历 Excel +export const exportDeliveryCalendar = async (params) => { + return await request.download({ url: `/wms/delivery-calendar/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/delivery-calendar/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/supplierAddressModelDeli/index.ts b/src/api/wms/supplierAddressModelDeli/index.ts new file mode 100644 index 000000000..5b45ab3e5 --- /dev/null +++ b/src/api/wms/supplierAddressModelDeli/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface SupplierAddressModelDeliVO { + id: number + supplierCode: string + supplierAddress: string + model: string + yearAndMonth: string + shift: string + deliNo: number + remark: string + available: string + siteId: string + concurrencyStamp: number +} + +// 查询供应商地点受入号便次配置列表 +export const getSupplierAddressModelDeliPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/supplier-address-model-deli/senior', data }) + } else { + return await request.get({ url: `/wms/supplier-address-model-deli/page`, params }) + } +} + +// 查询供应商地点受入号便次配置详情 +export const getSupplierAddressModelDeli = async (id: number) => { + return await request.get({ url: `/wms/supplier-address-model-deli/get?id=` + id }) +} + +// 新增供应商地点受入号便次配置 +export const createSupplierAddressModelDeli = async (data: SupplierAddressModelDeliVO) => { + return await request.post({ url: `/wms/supplier-address-model-deli/create`, data }) +} + +// 修改供应商地点受入号便次配置 +export const updateSupplierAddressModelDeli = async (data: SupplierAddressModelDeliVO) => { + return await request.put({ url: `/wms/supplier-address-model-deli/update`, data }) +} + +// 删除供应商地点受入号便次配置 +export const deleteSupplierAddressModelDeli = async (id: number) => { + return await request.delete({ url: `/wms/supplier-address-model-deli/delete?id=` + id }) +} + +// 导出供应商地点受入号便次配置 Excel +export const exportSupplierAddressModelDeli = async (params) => { + return await request.download({ url: `/wms/supplier-address-model-deli/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/supplier-address-model-deli/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts new file mode 100644 index 000000000..5176ade05 --- /dev/null +++ b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts @@ -0,0 +1,88 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' +import * as SupplierApi from '@/api/wms/supplier' +import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' + +// 表单校验 +export const DeliveryCalendarRules = reactive({ + day: [required], + shift: [required], + concurrencyStamp: [required] +}) + +export const DeliveryCalendar = useCrudSchemas( + reactive([ + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + isSearch: true, + table: { + width: 150, + fixed: 'left' + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '供应商信息', // 查询弹窗标题 + searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 + searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ], + verificationParams: [ + { + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true + } + ] // 失去焦点校验参数 + } + } + }, + { + label: '供应商名称', + field: 'supplierName', + sort: 'custom', + isSearch: true + }, + { + label: '供应商地点', + field: 'supplierAddress', + sort: 'custom', + isSearch: true + }, + { + label: '受入号', + field: 'model', + sort: 'custom', + isSearch: true + }, + { + label: '日期', + field: 'day', + sort: 'custom', + isSearch: true + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } + ]) +) diff --git a/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue new file mode 100644 index 000000000..049912b60 --- /dev/null +++ b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue b/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue new file mode 100644 index 000000000..a62e4efeb --- /dev/null +++ b/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue @@ -0,0 +1,247 @@ + + + diff --git a/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/supplierAddressModelDeli.data.ts b/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/supplierAddressModelDeli.data.ts new file mode 100644 index 000000000..8dd2a4e6c --- /dev/null +++ b/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/supplierAddressModelDeli.data.ts @@ -0,0 +1,143 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' +import * as SupplierApi from '@/api/wms/supplier' +import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' + +// 表单校验 +export const SupplierAddressModelDeliRules = reactive({ + yearAndMonth: [required], + shift: [required], + deliNo: [required], + concurrencyStamp: [required] +}) + +export const SupplierAddressModelDeli = useCrudSchemas( + reactive([ + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + isSearch: true, + table: { + width: 150, + fixed: 'left' + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '供应商信息', // 查询弹窗标题 + searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 + searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ], + verificationParams: [ + { + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true + } + ] // 失去焦点校验参数 + } + } + }, + { + label: '供应商名称', + field: 'supplierName', + isForm: true, + form: { + componentProps: { + disabled: true + } + }, + table: { + width: 250 + } + }, + { + label: '供应商地点', + field: 'supplierAddress', + sort: 'custom', + isSearch: true + }, + { + label: '年月', + field: 'yearAndMonth', + sort: 'custom', + isSearch: true + }, + { + label: '受入号', + field: 'model', + sort: 'custom', + isSearch: true + }, + { + label: '班次', + field: 'shift', + dictType: DICT_TYPE.SHIFT, + dictClass: 'string', + isTable: true, + isDetail: true, + sort: 'custom', + table: { + width: 150 + }, + isTableForm: true, + tableForm: { + type: 'Select' + } + }, + { + label: '便次数', + field: 'deliNo', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '创建时间', + field: 'createTime', + isForm: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: { width: '100%' }, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x' + } + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } + ]) +)