From c54eb9c8e45a33dfa35e33b3eaac2b6e0377fed4 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Thu, 27 Nov 2025 10:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/routing_create.vue | 44 ++++++++++++----------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/views/modules/part/routing_create.vue b/src/views/modules/part/routing_create.vue index 8f12f6c..85146e3 100644 --- a/src/views/modules/part/routing_create.vue +++ b/src/views/modules/part/routing_create.vue @@ -903,7 +903,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 80 + columnWidth: 60 }, { userId: this.$store.state.user.name, @@ -939,7 +939,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 100 + columnWidth: 80 }, { userId: this.$store.state.user.name, @@ -957,7 +957,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 260 + columnWidth: 360 }, { userId: this.$store.state.user.name, @@ -975,7 +975,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 100 + columnWidth: 60 }, { userId: this.$store.state.user.name, @@ -993,7 +993,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 100 + columnWidth: 60 }, { userId: this.$store.state.user.name, @@ -1011,7 +1011,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 100 + columnWidth: 60 }, { userId: this.$store.state.user.name, @@ -1029,7 +1029,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 100 + columnWidth: 60 }, // { // userId: this.$store.state.user.name, @@ -1846,7 +1846,7 @@ export default { } // 获取物料属性信息 this.loadPartItems(row.site, row.buNo, row.partNo, row.codeNo) - + // 查routing明细 queryRoutingDetail(this.modalData).then(({data}) => { if (data && data.code === 0) { @@ -2775,10 +2775,14 @@ export default { break case 'RFID绑定-TAL': case'RFID绑定-Paris': case'RFID绑定-MLI':case 'RFID编码': case 'RFID编码打印': formula = '人数/(UPH(每小时产量)×效率)×1KCT' - if (refSpeed && refEfficiency) { - const uph = refSpeed - const result = crewSize / (uph * refEfficiency) * 1000 - calculation = ` = ${formatNum(crewSize)}/(${formatNum(uph)}×${formatNum(refEfficiency)})×1000` + if (refEfficiency) { + const uph = this.partItemsMap['UPH-TAL'] || null + if (uph) { + const result = crewSize / (uph * refEfficiency) * 1000 + calculation = ` = ${formatNum(crewSize)}/(${formatNum(uph)}×${formatNum(refEfficiency)})×1000` + } else { + calculation = ` = ${formatNum(crewSize)}/(UPH-TAL×${formatNum(refEfficiency)})×1000` + } } break case 'RFID多条检测': @@ -2806,10 +2810,12 @@ export default { break case 'RFID后道检品': formula = '人数/UPH(每小时产量)×100%×1KCT' - if (refSpeed) { - const uph = refSpeed + const uph = this.partItemsMap['UPH-TAL'] || null + if (uph) { const result = crewSize / uph * 1 * 1000 - calculation = ` = ${formatNum(crewSize)}/${formatNum(uph)}×1.000×1000` + calculation = ` = ${formatNum(crewSize)}/${formatNum(uph)}×1×1000` + } else { + calculation = ` = ${formatNum(crewSize)}/UPH-TAL×1×1000` } break case 'RFID自动贴标': @@ -2838,11 +2844,9 @@ export default { break case 'Packaging': formula = '人数/(日产量/8小时/17人均摊)×1KCT' - if (refSpeed) { - const dailyOutput = refSpeed - const result = crewSize / (dailyOutput / 8 / 17) * 1000 - calculation = ` = ${formatNum(crewSize)}/(${formatNum(dailyOutput)}/8.000/17.000)×1000` - } + const dailyOutput = 10000000 + const result = crewSize / (dailyOutput / 8 / 17) * 1000 + calculation = ` = ${formatNum(crewSize)}/(${formatNum(dailyOutput)}/8/17)×1000` break default: return ''