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