From 226b7009b0d0d7e158138df19bf9e3e0085bd378 Mon Sep 17 00:00:00 2001 From: zhongwenkai <3478244299@qq.com> Date: Wed, 17 Jun 2026 15:49:05 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=A4=87=E4=BB=B6=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/sparepartInbound.js | 9 + src/api/mes/sparepartOutbound.js | 9 + src/locales/zh-CN.js | 8 +- src/pages.json | 14 + .../pages/sparepartInbound/create.vue | 1179 +++++------------ .../pages/sparepartInbound/index.vue | 186 ++- .../sparepartInbound/sparepartConfirm.vue | 492 +++++++ .../sparepartInbound/sparepartSelect.vue | 12 +- .../pages/sparepartOutbound/create.vue | 926 +++---------- .../pages/sparepartOutbound/index.vue | 672 +++------- .../sparepartOutbound/sparepartConfirm.vue | 590 +++++++++ 11 files changed, 2005 insertions(+), 2092 deletions(-) create mode 100644 src/pages_function/pages/sparepartInbound/sparepartConfirm.vue create mode 100644 src/pages_function/pages/sparepartOutbound/sparepartConfirm.vue diff --git a/src/api/mes/sparepartInbound.js b/src/api/mes/sparepartInbound.js index c4ff7a8..dd0656b 100644 --- a/src/api/mes/sparepartInbound.js +++ b/src/api/mes/sparepartInbound.js @@ -17,6 +17,15 @@ export function getSparepartInboundPage(params = {}) { }) } +// 备件入库单提交审核(提交后变为待审核状态) +export function submitSparepartInbound(data) { + return request({ + url: '/admin-api/erp/stock-in/submit', + method: 'put', + data + }) +} + // 备件入库单审核(status: 20=通过, 1=驳回) export function auditSparepartInbound(data) { return request({ diff --git a/src/api/mes/sparepartOutbound.js b/src/api/mes/sparepartOutbound.js index 59404ae..0fafdd3 100644 --- a/src/api/mes/sparepartOutbound.js +++ b/src/api/mes/sparepartOutbound.js @@ -18,6 +18,15 @@ export function getSparepartOutboundPage(params = {}) { }) } +// 备件出库单提交审核 +export function submitSparepartOutbound(data) { + return request({ + url: '/admin-api/erp/stock-out/submit', + method: 'put', + data + }) +} + // 备件出库单审核(status: 20=通过, 1=驳回) export function auditSparepartOutbound(data) { return request({ diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index fcd1e24..58581db 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -1396,7 +1396,7 @@ export default { }, sparepartInbound: { moduleName: '备件入库', - tabPending: '待提交', + tabPending: '待入库', tabAuditing: '待审核', searchPlaceholder: '搜索入库单号', sparepartInfo: '备件信息', @@ -1404,7 +1404,7 @@ export default { creator: '创建人', quantity: '数量', reviewer: '审核人', - approve: '已通过', + approve: '已入库', reject: '驳回', confirmApprove: '确定审核通过该入库单吗?', confirmReject: '确定驳回该入库单吗?', @@ -1437,7 +1437,7 @@ export default { }, sparepartOutbound: { moduleName: '备件出库', - tabPending: '待提交', + tabPending: '待出库', tabAuditing: '待审核', searchPlaceholder: '搜索出库单号', sparepartInfo: '备件信息', @@ -1445,7 +1445,7 @@ export default { creator: '创建人', quantity: '数量', reviewer: '审核人', - approve: '已通过', + approve: '已出库', reject: '驳回', confirmApprove: '确定审核通过该出库单吗?', confirmReject: '确定驳回该出库单吗?', diff --git a/src/pages.json b/src/pages.json index 59bea2e..a9be7da 100644 --- a/src/pages.json +++ b/src/pages.json @@ -388,6 +388,13 @@ "navigationStyle": "custom" } }, + { + "path": "sparepartInbound/sparepartConfirm", + "style": { + "navigationBarTitleText": "确认备件入库", + "navigationStyle": "custom" + } + }, { "path": "sparepartOutbound/index", "style": { @@ -402,6 +409,13 @@ "navigationStyle": "custom" } }, + { + "path": "sparepartOutbound/sparepartConfirm", + "style": { + "navigationBarTitleText": "确认备件出库", + "navigationStyle": "custom" + } + }, { "path": "keypart/index", diff --git a/src/pages_function/pages/sparepartInbound/create.vue b/src/pages_function/pages/sparepartInbound/create.vue index c2d79e6..5d20c75 100644 --- a/src/pages_function/pages/sparepartInbound/create.vue +++ b/src/pages_function/pages/sparepartInbound/create.vue @@ -1,4 +1,4 @@ -n