From e3dec8568ede79f241f455aa2d62ee014e4a815d Mon Sep 17 00:00:00 2001 From: hwj Date: Fri, 3 Apr 2026 16:09:13 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E6=A8=A1?= =?UTF-8?q?=E5=85=B7=E5=87=BA=E5=BA=93=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/mold.js | 8 + src/api/mes/moldget.js | 63 ++ src/locales/index.js | 110 +- src/pages.json | 14 + src/pages/work.vue | 9 +- src/pages_function/pages/moldget/detail.vue | 220 ++++ src/pages_function/pages/moldget/index.vue | 1007 +++++++++++++++++++ 7 files changed, 1427 insertions(+), 4 deletions(-) create mode 100644 src/api/mes/moldget.js create mode 100644 src/pages_function/pages/moldget/detail.vue create mode 100644 src/pages_function/pages/moldget/index.vue diff --git a/src/api/mes/mold.js b/src/api/mes/mold.js index 8459cac..03f54d0 100644 --- a/src/api/mes/mold.js +++ b/src/api/mes/mold.js @@ -64,6 +64,14 @@ export function getMoldPage(params = {}) { }) } +export function getMoldList(params = {}) { + return request({ + url: '/admin-api/erp/mold-brand/mold/list', + method: 'get', + params + }) +} + export function createMoldBrand(data) { return request({ url: '/admin-api/erp/mold-brand/create', diff --git a/src/api/mes/moldget.js b/src/api/mes/moldget.js new file mode 100644 index 0000000..44fdb21 --- /dev/null +++ b/src/api/mes/moldget.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +export function getMoldGetPage(params = {}) { + return request({ + url: '/admin-api/erp/stock-out/page', + method: 'get', + params + }) +} + +export function getMoldGetDetail(id) { + return request({ + url: '/admin-api/erp/stock-out/get', + method: 'get', + params: { id } + }) +} + +export function createMoldGet(data) { + return request({ + url: '/admin-api/erp/stock-out/create', + method: 'post', + data + }) +} + +export function updateMoldGet(data) { + return request({ + url: '/admin-api/erp/stock-out/update', + method: 'put', + data + }) +} + +export function updateMoldGetStatus(id, status) { + return request({ + url: '/admin-api/erp/stock-out/update-status', + method: 'put', + params: { id, status } + }) +} + +export function deleteMoldGet(ids = []) { + return request({ + url: '/admin-api/erp/stock-out/delete', + method: 'delete', + params: { ids: ids.join(',') } + }) +} + +export function getWarehouseSimpleList() { + return request({ + url: '/admin-api/erp/warehouse/simple-list', + method: 'get' + }) +} + +export function getSimpleUserList() { + return request({ + url: '/admin-api/system/user/simple-list', + method: 'get' + }) +} diff --git a/src/locales/index.js b/src/locales/index.js index c711275..e49749c 100644 --- a/src/locales/index.js +++ b/src/locales/index.js @@ -91,6 +91,59 @@ const messages = { yes: '是', no: '否' }, + moldGet: { + moduleName: '模具出库', + subTitle: '按出库单号与状态快速筛选', + detailTitle: '模具出库详情', + basicInfo: '基础信息', + outNo: '出库单号', + outType: '出库类型', + outTime: '出库时间', + outTimeSingle: '出库日期', + outTimePlaceholder: '请选择出库日期', + warehouse: '仓库', + allWarehouse: '全部仓库', + warehousePlaceholder: '请选择仓库', + creator: '创建人', + status: '状态', + allStatus: '全部状态', + remark: '备注', + itemRemark: '明细备注', + attachment: '附件', + fileUrlPlaceholder: '请输入附件地址', + remarkPlaceholder: '请输入备注', + moldName: '模具', + moldCode: '模具编码', + moldStatus: '模具状态', + moldUseTime: '使用次数', + machineName: '使用设备', + isEnable: '是否启用', + createTime: '创建时间', + searchNo: '请输入出库单号', + searchMold: '请输入模具编码或名称', + searchCode: '请输入模具编码', + searchName: '请输入模具名称', + itemListTitle: '出库明细', + selectMold: '选择模具', + noItems: '暂无出库明细', + count: '数量', + noAuto: '系统自动生成', + createTitle: '新增模具出库', + editTitle: '编辑模具出库', + edit: '编辑', + delete: '删除', + approve: '审批', + empty: '暂无模具出库数据', + noMoldData: '暂无可选模具', + loadEditFailed: '加载编辑数据失败', + validatorOutTimeRequired: '出库日期不能为空', + validatorWarehouseRequired: '仓库不能为空', + validatorItemRequired: '请至少选择一个模具', + validatorCountRequired: '数量必须大于0', + confirmDelete: '确认删除出库单 {no} 吗?', + confirmApprove: '确认审批出库单 {no} 吗?', + approveSuccess: '审批成功' + }, mine: { clickLogin: '点击登录', username: '用户名:{name}', @@ -266,6 +319,59 @@ const messages = { yes: 'Yes', no: 'No' }, + moldGet: { + moduleName: 'Mold Stock-out', + subTitle: 'Filter quickly by no and status', + detailTitle: 'Mold Stock-out Detail', + basicInfo: 'Basic Info', + outNo: 'Stock-out No', + outType: 'Stock-out Type', + outTime: 'Stock-out Time', + outTimeSingle: 'Stock-out Date', + outTimePlaceholder: 'Select stock-out date', + warehouse: 'Warehouse', + allWarehouse: 'All Warehouses', + warehousePlaceholder: 'Select warehouse', + creator: 'Creator', + status: 'Status', + allStatus: 'All Status', + remark: 'Remark', + itemRemark: 'Item Remark', + attachment: 'Attachment', + fileUrlPlaceholder: 'Enter attachment URL', + remarkPlaceholder: 'Enter remark', + moldName: 'Mold', + moldCode: 'Mold Code', + moldStatus: 'Mold Status', + moldUseTime: 'Use Time', + machineName: 'Machine', + isEnable: 'Enabled', + createTime: 'Created At', + searchNo: 'Enter stock-out no', + searchMold: 'Enter mold code or name', + searchCode: 'Enter mold code', + searchName: 'Enter mold name', + itemListTitle: 'Item List', + selectMold: 'Select Mold', + noItems: 'No items', + count: 'Count', + noAuto: 'Generated automatically', + createTitle: 'Create Mold Stock-out', + editTitle: 'Edit Mold Stock-out', + edit: 'Edit', + delete: 'Delete', + approve: 'Approve', + empty: 'No mold stock-out data', + noMoldData: 'No mold options', + loadEditFailed: 'Failed to load edit data', + validatorOutTimeRequired: 'Stock-out date is required', + validatorWarehouseRequired: 'Warehouse is required', + validatorItemRequired: 'Select at least one mold', + validatorCountRequired: 'Count must be greater than 0', + confirmDelete: 'Delete stock-out {no}?', + confirmApprove: 'Approve stock-out {no}?', + approveSuccess: 'Approved successfully' + }, mine: { clickLogin: 'Tap to sign in', username: 'Username: {name}', @@ -409,7 +515,9 @@ const literalMap = { '图片上传失败': 'functionCommon.uploadImageFailed', '是': 'functionCommon.yes', '否': 'functionCommon.no', - '暂无待办任务': 'dashboard.noTodo' + '暂无待办任务': 'dashboard.noTodo', + '模具出库': 'moldGet.moduleName', + '模具出库详情': 'moldGet.detailTitle' } function applyTabBarLanguage() { diff --git a/src/pages.json b/src/pages.json index 4b400e1..309f25c 100644 --- a/src/pages.json +++ b/src/pages.json @@ -448,6 +448,20 @@ "navigationBarTitleText": "模具台账详情", "navigationStyle": "custom" } + }, + { + "path": "moldget/index", + "style": { + "navigationBarTitleText": "模具出库", + "navigationStyle": "custom" + } + }, + { + "path": "moldget/detail", + "style": { + "navigationBarTitleText": "模具出库详情", + "navigationStyle": "custom" + } } ] } diff --git a/src/pages/work.vue b/src/pages/work.vue index a1b3ed7..d036af2 100644 --- a/src/pages/work.vue +++ b/src/pages/work.vue @@ -233,11 +233,11 @@ 模具台账 - + 📤 - 模具出库 + {{ t('moldGet.moduleName') }} @@ -334,6 +334,9 @@ + + diff --git a/src/pages_function/pages/moldget/index.vue b/src/pages_function/pages/moldget/index.vue new file mode 100644 index 0000000..936757a --- /dev/null +++ b/src/pages_function/pages/moldget/index.vue @@ -0,0 +1,1007 @@ +