diff --git a/src/api/mes/moldreturn.js b/src/api/mes/moldreturn.js new file mode 100644 index 0000000..e6c2cf3 --- /dev/null +++ b/src/api/mes/moldreturn.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +export function getMoldReturnPage(params = {}) { + return request({ + url: '/admin-api/erp/stock-in/page', + method: 'get', + params + }) +} + +export function getMoldReturnDetail(id) { + return request({ + url: '/admin-api/erp/stock-in/get', + method: 'get', + params: { id } + }) +} + +export function createMoldReturn(data) { + return request({ + url: '/admin-api/erp/stock-in/create', + method: 'post', + data + }) +} + +export function updateMoldReturn(data) { + return request({ + url: '/admin-api/erp/stock-in/update', + method: 'put', + data + }) +} + +export function updateMoldReturnStatus(id, status) { + return request({ + url: '/admin-api/erp/stock-in/update-status', + method: 'put', + params: { id, status } + }) +} + +export function deleteMoldReturn(ids = []) { + return request({ + url: '/admin-api/erp/stock-in/delete', + method: 'delete', + params: { ids: ids.join(',') } + }) +} diff --git a/src/locales/index.js b/src/locales/index.js index e49749c..e8da5a2 100644 --- a/src/locales/index.js +++ b/src/locales/index.js @@ -144,6 +144,53 @@ const messages = { confirmApprove: '确认审批出库单 {no} 吗?', approveSuccess: '审批成功' }, + moldReturn: { + moduleName: '模具入库', + subTitle: '按入库单号与状态快速筛选', + detailTitle: '模具入库详情', + basicInfo: '基础信息', + inNo: '入库单号', + inType: '入库类型', + inTime: '入库时间', + inTimeSingle: '入库日期', + inTimePlaceholder: '请选择入库日期', + warehouse: '仓库', + allWarehouse: '全部仓库', + warehousePlaceholder: '请选择仓库', + creator: '创建人', + status: '状态', + allStatus: '全部状态', + remark: '备注', + itemRemark: '明细备注', + attachment: '附件', + fileUrlPlaceholder: '请输入附件地址', + remarkPlaceholder: '请输入备注', + moldName: '模具', + moldCode: '模具编码', + moldStatus: '模具状态', + moldUseTime: '使用次数', + searchNo: '请输入入库单号', + searchCode: '请输入模具编码', + searchName: '请输入模具名称', + itemListTitle: '入库明细', + selectMold: '选择模具', + noItems: '暂无入库明细', + count: '数量', + noAuto: '系统自动生成', + createTitle: '新增模具入库', + editTitle: '编辑模具入库', + approve: '审批', + empty: '暂无模具入库数据', + noMoldData: '暂无可选模具', + loadEditFailed: '加载编辑数据失败', + validatorInTimeRequired: '入库日期不能为空', + validatorWarehouseRequired: '仓库不能为空', + validatorItemRequired: '请至少选择一个模具', + validatorCountRequired: '数量必须大于0', + confirmDelete: '确认删除入库单 {no} 吗?', + confirmApprove: '确认审批入库单 {no} 吗?', + approveSuccess: '审批成功' + }, mine: { clickLogin: '点击登录', username: '用户名:{name}', @@ -372,6 +419,53 @@ const messages = { confirmApprove: 'Approve stock-out {no}?', approveSuccess: 'Approved successfully' }, + moldReturn: { + moduleName: 'Mold Stock-in', + subTitle: 'Filter quickly by no and status', + detailTitle: 'Mold Stock-in Detail', + basicInfo: 'Basic Info', + inNo: 'Stock-in No', + inType: 'Stock-in Type', + inTime: 'Stock-in Time', + inTimeSingle: 'Stock-in Date', + inTimePlaceholder: 'Select stock-in 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', + searchNo: 'Enter stock-in no', + 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-in', + editTitle: 'Edit Mold Stock-in', + approve: 'Approve', + empty: 'No mold stock-in data', + noMoldData: 'No mold options', + loadEditFailed: 'Failed to load edit data', + validatorInTimeRequired: 'Stock-in date is required', + validatorWarehouseRequired: 'Warehouse is required', + validatorItemRequired: 'Select at least one mold', + validatorCountRequired: 'Count must be greater than 0', + confirmDelete: 'Delete stock-in {no}?', + confirmApprove: 'Approve stock-in {no}?', + approveSuccess: 'Approved successfully' + }, mine: { clickLogin: 'Tap to sign in', username: 'Username: {name}', @@ -517,7 +611,9 @@ const literalMap = { '否': 'functionCommon.no', '暂无待办任务': 'dashboard.noTodo', '模具出库': 'moldGet.moduleName', - '模具出库详情': 'moldGet.detailTitle' + '模具出库详情': 'moldGet.detailTitle', + '模具入库': 'moldReturn.moduleName', + '模具入库详情': 'moldReturn.detailTitle' } function applyTabBarLanguage() { diff --git a/src/pages.json b/src/pages.json index 309f25c..0a2963f 100644 --- a/src/pages.json +++ b/src/pages.json @@ -462,6 +462,20 @@ "navigationBarTitleText": "模具出库详情", "navigationStyle": "custom" } + }, + { + "path": "moldreturn/index", + "style": { + "navigationBarTitleText": "模具入库", + "navigationStyle": "custom" + } + }, + { + "path": "moldreturn/detail", + "style": { + "navigationBarTitleText": "模具入库详情", + "navigationStyle": "custom" + } } ] } diff --git a/src/pages/work.vue b/src/pages/work.vue index d036af2..2a6387b 100644 --- a/src/pages/work.vue +++ b/src/pages/work.vue @@ -239,11 +239,11 @@ {{ t('moldGet.moduleName') }} - + 📥 - 模具入库 + {{ t('moldReturn.moduleName') }} @@ -377,7 +377,7 @@ function handleClick(name) { '模具类型': '/pages_function/pages/moldType/index', '模具台账': '/pages_function/pages/moldLedger/index', moldGet: '/pages_function/pages/moldget/index', - '模具入库': '', + moldReturn: '/pages_function/pages/moldreturn/index', '上下模': '', '点检项库': '', '点检模板': '', diff --git a/src/pages_function/pages/moldreturn/detail.vue b/src/pages_function/pages/moldreturn/detail.vue new file mode 100644 index 0000000..f6e81bc --- /dev/null +++ b/src/pages_function/pages/moldreturn/detail.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/pages_function/pages/moldreturn/index.vue b/src/pages_function/pages/moldreturn/index.vue new file mode 100644 index 0000000..53f80e9 --- /dev/null +++ b/src/pages_function/pages/moldreturn/index.vue @@ -0,0 +1,627 @@ +