diff --git a/src/views/modules/production-inbound/index.vue b/src/views/modules/production-inbound/index.vue index 0984d1b..60d0a56 100644 --- a/src/views/modules/production-inbound/index.vue +++ b/src/views/modules/production-inbound/index.vue @@ -2,8 +2,8 @@
-
上一页
-
生产入库
+
上一页
+
{{ functionTitle }}
🏠首页
@@ -36,11 +36,6 @@
-
- -

包装创建

-
-
@@ -146,11 +141,6 @@
-
- -

装托盘

-
-
@@ -209,11 +199,6 @@
-
- -

入库登记

-
-
@@ -281,11 +266,6 @@
-
- -

退库操作

-
-
@@ -479,6 +459,16 @@ export default { scannedUnits: [] } }, + computed: { + functionTitle() { + if (!this.selectedFunction) return '生产入库'; + if (this.selectedFunction === 'package') return '包装创建'; + if (this.selectedFunction === 'pallet') return '装托盘'; + if (this.selectedFunction === 'register') return '入库登记'; + if (this.selectedFunction === 'return') return '退库操作'; + return '生产入库'; + } + }, methods: { selectFunction(func) { this.selectedFunction = func @@ -486,8 +476,12 @@ export default { }, goBack() { - this.selectedFunction = null - this.resetAll() + if (!this.selectedFunction) { + this.$router.push('/') + } else { + this.selectedFunction = null + this.resetAll() + } }, resetAll() { @@ -1033,31 +1027,6 @@ export default { color: #666; } -/* PDA头部 */ -.pda-header { - display: flex; - align-items: center; - margin-bottom: 20px; - padding: 10px 0; - border-bottom: 2px solid #007bff; -} - -.back-btn { - background: #6c757d; - color: white; - border: none; - padding: 8px 12px; - border-radius: 4px; - margin-right: 15px; - cursor: pointer; -} - -.pda-header h2 { - margin: 0; - color: #007bff; - font-size: 20px; -} - /* 输入区域 */ .input-section, .notify-info, .scan-section, .records-section, .return-type-section { background: white; @@ -1082,8 +1051,8 @@ export default { } .reset-btn { - background: #ffc107; - color: #212529; + background: #17b3a3; + color: white; border: none; padding: 6px 12px; border-radius: 4px; @@ -1118,7 +1087,7 @@ export default { } .scan-btn, .confirm-btn, .print-btn, .remove-btn { - background: #007bff; + background: #17b3a3; color: white; border: none; padding: 10px 15px; @@ -1129,7 +1098,7 @@ export default { } .scan-btn:hover, .confirm-btn:hover, .print-btn:hover { - background: #0056b3; + background: #13998c; } .remove-btn { @@ -1142,7 +1111,7 @@ export default { background: #c82333; } -.confirm-btn:disabled { +.confirm-btn:disabled, .print-btn:disabled { background: #6c757d; cursor: not-allowed; } diff --git a/src/views/modules/production-issue/production-issue-pda.vue b/src/views/modules/production-issue/production-issue-pda.vue index 7966d60..3b26a32 100644 --- a/src/views/modules/production-issue/production-issue-pda.vue +++ b/src/views/modules/production-issue/production-issue-pda.vue @@ -2,8 +2,8 @@
-
上一页
-
生产发料
+
上一页
+
{{ functionTitle }}
🏠首页
@@ -30,11 +30,6 @@
-
- -

直接发料

-
-
@@ -148,11 +143,6 @@
-
- -

拣选装托盘

-
-
@@ -236,11 +226,6 @@
-
- -

申请单发料

-
-
@@ -430,6 +415,15 @@ export default { issueQty: null } }, + computed: { + functionTitle() { + if (!this.selectedFunction) return '生产发料'; + if (this.selectedFunction === 'direct') return '直接发料'; + if (this.selectedFunction === 'picking') return '拣选装托盘'; + if (this.selectedFunction === 'request') return '申请单发料'; + return '生产发料'; + } + }, methods: { selectFunction(func) { this.selectedFunction = func @@ -437,8 +431,12 @@ export default { }, goBack() { - this.selectedFunction = null - this.resetAll() + if (!this.selectedFunction) { + this.$router.push('/') + } else { + this.selectedFunction = null + this.resetAll() + } }, resetAll() { @@ -827,31 +825,6 @@ export default { color: #666; } -/* PDA头部 */ -.pda-header { - display: flex; - align-items: center; - margin-bottom: 20px; - padding: 10px 0; - border-bottom: 2px solid #007bff; -} - -.back-btn { - background: #6c757d; - color: white; - border: none; - padding: 8px 12px; - border-radius: 4px; - margin-right: 15px; - cursor: pointer; -} - -.pda-header h2 { - margin: 0; - color: #007bff; - font-size: 20px; -} - /* 输入区域 */ .input-section, .materials-section, .scan-section, .pallet-info, .print-section { background: white; @@ -876,8 +849,8 @@ export default { } .reset-btn { - background: #ffc107; - color: #212529; + background: #17b3a3; + color: white; border: none; padding: 6px 12px; border-radius: 4px; @@ -910,7 +883,7 @@ export default { } .scan-btn, .confirm-btn, .print-btn { - background: #007bff; + background: #17b3a3; color: white; border: none; padding: 10px 15px; @@ -921,7 +894,7 @@ export default { } .scan-btn:hover, .confirm-btn:hover, .print-btn:hover { - background: #0056b3; + background: #13998c; } .confirm-btn:disabled, .print-btn:disabled { diff --git a/src/views/modules/production-issue/productionReturnPDA.vue b/src/views/modules/production-issue/productionReturnPDA.vue index 1d81964..1ca8476 100644 --- a/src/views/modules/production-issue/productionReturnPDA.vue +++ b/src/views/modules/production-issue/productionReturnPDA.vue @@ -2,8 +2,8 @@
-
上一页
-
生产订单退料
+
上一页
+
{{ functionTitle }}
🏠首页
@@ -24,11 +24,6 @@
-
- -

直接退料

-
-
@@ -197,11 +192,6 @@
-
- -

基于申请单退料

-
-
@@ -427,6 +417,14 @@ export default { returnQty: null } }, + computed: { + functionTitle() { + if (!this.selectedFunction) return '生产订单退料'; + if (this.selectedFunction === 'direct') return '直接退料'; + if (this.selectedFunction === 'request') return '基于申请单退料'; + return '生产订单退料'; + } + }, methods: { selectFunction(func) { this.selectedFunction = func @@ -434,8 +432,12 @@ export default { }, goBack() { - this.selectedFunction = null - this.resetAll() + if (!this.selectedFunction) { + this.$router.push('/') + } else { + this.selectedFunction = null + this.resetAll() + } }, resetAll() { @@ -839,31 +841,6 @@ export default { color: #666; } -/* PDA头部 */ -.pda-header { - display: flex; - align-items: center; - margin-bottom: 20px; - padding: 10px 0; - border-bottom: 2px solid #dc3545; -} - -.back-btn { - background: #6c757d; - color: white; - border: none; - padding: 8px 12px; - border-radius: 4px; - margin-right: 15px; - cursor: pointer; -} - -.pda-header h2 { - margin: 0; - color: #dc3545; - font-size: 20px; -} - /* 输入区域 */ .input-section, .materials-section, .scan-section, .issue-records-section, .return-input-section { background: white; @@ -888,8 +865,8 @@ export default { } .reset-btn { - background: #ffc107; - color: #212529; + background: #17b3a3; + color: white; border: none; padding: 6px 12px; border-radius: 4px; @@ -921,8 +898,8 @@ export default { font-size: 16px; } -.scan-btn, .confirm-btn { - background: #dc3545; +.scan-btn, .confirm-btn, .print-btn { + background: #17b3a3; color: white; border: none; padding: 10px 15px; @@ -932,11 +909,11 @@ export default { white-space: nowrap; } -.scan-btn:hover, .confirm-btn:hover { - background: #c82333; +.scan-btn:hover, .confirm-btn:hover, .print-btn:hover { + background: #13998c; } -.confirm-btn:disabled { +.confirm-btn:disabled, .print-btn:disabled { background: #6c757d; cursor: not-allowed; }