From c95ea7db618c08e1950eb622b4ef62cfed72eacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Tue, 9 Jun 2026 17:55:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(mes/roll/grind):=20=E7=A3=A8=E8=BE=8A?= =?UTF-8?q?=E9=97=B4=E5=A2=9E=E5=8A=A0=E6=9C=BA=E7=BB=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/views/mes/roll/grind/index.vue | 28 ++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/klp-ui/src/views/mes/roll/grind/index.vue b/klp-ui/src/views/mes/roll/grind/index.vue index fe8362cd..d5e00a1c 100644 --- a/klp-ui/src/views/mes/roll/grind/index.vue +++ b/klp-ui/src/views/mes/roll/grind/index.vue @@ -39,6 +39,10 @@ 全部厂家 {{ mfr }} + + 全部机架 + {{ f }} + @@ -65,6 +69,7 @@ φ{{ r.currentDia != null ? r.currentDia : r.initialDia }}
{{ r.manufacturer }}
+
{{ r.frame }}
{{ r.lineName }}
暂无数据
@@ -89,6 +94,8 @@
轧辊编号{{ selectedRoll.rollNo }}
辊型{{ { WR: '工作辊', BR: '支撑辊', CR: '中间辊' }[selectedRoll.rollType] || '—' }}
+
机架{{ selectedRoll.frame || '—' }}
+
厂家{{ selectedRoll.manufacturer || '—' }}
材质{{ selectedRoll.material || '—' }}
初始辊径{{ selectedRoll.initialDia != null ? selectedRoll.initialDia + ' mm' : '—' }}
当前辊径{{ effectiveCurrentDia != null ? effectiveCurrentDia + ' mm' : '—' }}
@@ -464,6 +471,13 @@ /> + + + + + + + @@ -500,6 +514,7 @@ export default { filterNo: '', filterType: '', filterManufacturer: '', + filterFrame: '', selectedRollId: null, selectedRoll: null, @@ -558,6 +573,14 @@ export default { return [...set].sort() }, + frameOptions() { + const set = new Set() + this.allRolls.forEach(r => { + if (r.frame) set.add(r.frame) + }) + return [...set].sort() + }, + effectiveCurrentDia() { if (this.grindList.length > 0) { const latest = [...this.grindList].sort((a, b) => { @@ -615,7 +638,8 @@ export default { const matchNo = !this.filterNo || r.rollNo.includes(this.filterNo) const matchType = !this.filterType || r.rollType === this.filterType const matchMfr = !this.filterManufacturer || r.manufacturer === this.filterManufacturer - return matchNo && matchType && matchMfr + const matchFrame = !this.filterFrame || r.frame === this.filterFrame + return matchNo && matchType && matchMfr && matchFrame }) }, selectRoll(r) { @@ -742,6 +766,7 @@ export default { rollNo: undefined, rollType: this.filterType || undefined, manufacturer: this.filterManufacturer || '', + frame: '', initialDia: undefined, currentDia: undefined, minDia: undefined, @@ -764,6 +789,7 @@ export default { rollNo: data.rollNo, rollType: data.rollType, manufacturer: data.manufacturer || '', + frame: data.frame || '', initialDia: data.initialDia, currentDia: data.currentDia, minDia: data.minDia,