Browse Source

计算公式显示

java8
han\hanst 5 months ago
parent
commit
c54eb9c8e4
  1. 44
      src/views/modules/part/routing_create.vue

44
src/views/modules/part/routing_create.vue

@ -903,7 +903,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 60
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -939,7 +939,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 80
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -957,7 +957,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 260
columnWidth: 360
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -975,7 +975,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 60
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -993,7 +993,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 60
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1011,7 +1011,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 60
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1029,7 +1029,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 60
}, },
// { // {
// userId: this.$store.state.user.name, // userId: this.$store.state.user.name,
@ -1846,7 +1846,7 @@ export default {
} }
// //
this.loadPartItems(row.site, row.buNo, row.partNo, row.codeNo) this.loadPartItems(row.site, row.buNo, row.partNo, row.codeNo)
// routing // routing
queryRoutingDetail(this.modalData).then(({data}) => { queryRoutingDetail(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -2775,10 +2775,14 @@ export default {
break break
case 'RFID绑定-TAL': case'RFID绑定-Paris': case'RFID绑定-MLI':case 'RFID编码': case 'RFID编码打印': case 'RFID绑定-TAL': case'RFID绑定-Paris': case'RFID绑定-MLI':case 'RFID编码': case 'RFID编码打印':
formula = '人数/(UPH(每小时产量)×效率)×1KCT' 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 break
case 'RFID多条检测': case 'RFID多条检测':
@ -2806,10 +2810,12 @@ export default {
break break
case 'RFID后道检品': case 'RFID后道检品':
formula = '人数/UPH(每小时产量)×100%×1KCT' formula = '人数/UPH(每小时产量)×100%×1KCT'
if (refSpeed) {
const uph = refSpeed
const uph = this.partItemsMap['UPH-TAL'] || null
if (uph) {
const result = crewSize / uph * 1 * 1000 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 break
case 'RFID自动贴标': case 'RFID自动贴标':
@ -2838,11 +2844,9 @@ export default {
break break
case 'Packaging': case 'Packaging':
formula = '人数/(日产量/8小时/17人均摊)×1KCT' 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 break
default: default:
return '' return ''

Loading…
Cancel
Save