From 70b5a12d53de98e3897c63b285a8fcd1c516f383 Mon Sep 17 00:00:00 2001
From: "YEJIAXING-PC\\lenovo" <591141169@qq.com>
Date: Thu, 13 Mar 2025 08:45:13 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E8=A1=A5=E5=85=85=E5=89=8D=E7=AB=AF?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/repleinshDeliCount/index.ts | 59 +++++
.../repleinshDeliCount/index.vue | 244 ++++++++++++++++++
.../repleinshDeliCount.data.ts | 126 +++++++++
.../repleinshRequestMain.data.ts | 12 +
4 files changed, 441 insertions(+)
create mode 100644 src/api/wms/repleinshDeliCount/index.ts
create mode 100644 src/views/wms/basicDataManage/repleinshDeliCount/index.vue
create mode 100644 src/views/wms/basicDataManage/repleinshDeliCount/repleinshDeliCount.data.ts
diff --git a/src/api/wms/repleinshDeliCount/index.ts b/src/api/wms/repleinshDeliCount/index.ts
new file mode 100644
index 000000000..338a2eac4
--- /dev/null
+++ b/src/api/wms/repleinshDeliCount/index.ts
@@ -0,0 +1,59 @@
+import request from '@/config/axios'
+
+export interface RepleinshDeliCountVO {
+ id: number
+ model: string
+ itemCode: string
+ timer: Date
+ currentDeliDate: Date
+ currentDeli: number
+ consumeQty: number
+ delayDeliDate: Date
+ delayDeli: number
+ nextDeliTimer: Date
+ remark: string
+ available: string
+ siteId: string
+ concurrencyStamp: string
+}
+
+// 查询补料便次计算列表
+export const getRepleinshDeliCountPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/repleinsh-deli-count/senior', data })
+ } else {
+ return await request.get({ url: `/wms/repleinsh-deli-count/page`, params })
+ }
+}
+
+// 查询补料便次计算详情
+export const getRepleinshDeliCount = async (id: number) => {
+ return await request.get({ url: `/wms/repleinsh-deli-count/get?id=` + id })
+}
+
+// 新增补料便次计算
+export const createRepleinshDeliCount = async (data: RepleinshDeliCountVO) => {
+ return await request.post({ url: `/wms/repleinsh-deli-count/create`, data })
+}
+
+// 修改补料便次计算
+export const updateRepleinshDeliCount = async (data: RepleinshDeliCountVO) => {
+ return await request.put({ url: `/wms/repleinsh-deli-count/update`, data })
+}
+
+// 删除补料便次计算
+export const deleteRepleinshDeliCount = async (id: number) => {
+ return await request.delete({ url: `/wms/repleinsh-deli-count/delete?id=` + id })
+}
+
+// 导出补料便次计算 Excel
+export const exportRepleinshDeliCount = async (params) => {
+ return await request.download({ url: `/wms/repleinsh-deli-count/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/repleinsh-deli-count/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/views/wms/basicDataManage/repleinshDeliCount/index.vue b/src/views/wms/basicDataManage/repleinshDeliCount/index.vue
new file mode 100644
index 000000000..9fe8ccc35
--- /dev/null
+++ b/src/views/wms/basicDataManage/repleinshDeliCount/index.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.code }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wms/basicDataManage/repleinshDeliCount/repleinshDeliCount.data.ts b/src/views/wms/basicDataManage/repleinshDeliCount/repleinshDeliCount.data.ts
new file mode 100644
index 000000000..55ab2bb17
--- /dev/null
+++ b/src/views/wms/basicDataManage/repleinshDeliCount/repleinshDeliCount.data.ts
@@ -0,0 +1,126 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+
+// 表单校验
+export const RepleinshDeliCountRules = reactive({
+ itemCode: [required],
+ timer: [required],
+ currentDeliDate: [required],
+ currentDeli: [required],
+ consumeQty: [required],
+ delayDeliDate: [required],
+ delayDeli: [required],
+})
+
+export const RepleinshDeliCount = useCrudSchemas(reactive([
+ {
+ label: '受入号',
+ field: 'model',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '物料代码',
+ field: 'itemCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '计时器时间',
+ field: 'timer',
+ sort: 'custom',
+ isSearch: false,
+ },
+ {
+ label: '计算便次日期',
+ field: 'currentDeliDate',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ 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: 'currentDeli',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ },
+ {
+ label: '总数',
+ field: 'consumeQty',
+ sort: 'custom',
+ isSearch: false,
+ },
+ {
+ label: '延迟便次日期',
+ field: 'delayDeliDate',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ 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: 'delayDeli',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ },
+ {
+ label: '下一便次开始时间',
+ field: 'nextDeliTimer',
+ sort: 'custom',
+ isSearch: false,
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ 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,
+ },
+]))
diff --git a/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts b/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
index d91138b3d..e651f2b5c 100644
--- a/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
+++ b/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
@@ -69,6 +69,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive([
}
}
},
+ {
+ label: '来源',
+ field: 'sourceType',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isForm: false,
+ isTable: true,
+ isDetail: true
+ },
+
{
label: '从库区类型范围',
field: 'fromAreaTypes',