Browse Source

2024-09-26

RFQ 功能优化
java8
fengyuan_yang 1 year ago
parent
commit
0c09e25a1f
  1. 16
      src/views/modules/part/routingManagement.vue

16
src/views/modules/part/routingManagement.vue

@ -396,10 +396,10 @@
</el-form>
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
<el-form-item :label="'机器处理时间'">
<el-input-number :controls="false" :step="0" v-model="componentData.machCycleTime" @change="changeMachCycleTime" style="width: 221px"></el-input-number>
<el-input-number :controls="false" :step="0" :precision="2" v-model="componentData.machCycleTime" @change="changeMachCycleTime" style="width: 221px"></el-input-number>
</el-form-item>
<el-form-item :label="'人工处理时间'">
<el-input-number :controls="false" :step="0" v-model="componentData.laborCycleTime" @change="changeLaborCycleTime" style="width: 221px"></el-input-number>
<el-input-number :controls="false" :step="0" :precision="2" v-model="componentData.laborCycleTime" @change="changeLaborCycleTime" style="width: 221px"></el-input-number>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
@ -3516,7 +3516,11 @@ export default {
//
this.componentData.laborCycleTime = this.componentData.machCycleTime
//
this.componentData.machRunFactor = 1/this.componentData.machCycleTime
if (this.componentData.machCycleTime != 0) {
this.componentData.machRunFactor = 1/this.componentData.machCycleTime
} else {
this.componentData.machRunFactor = 0
}
//
this.componentData.laborRunFactor = this.componentData.machRunFactor
},
@ -3524,7 +3528,11 @@ export default {
//
changeLaborCycleTime () {
//
this.componentData.laborRunFactor = 1/this.componentData.laborCycleTime
if (this.componentData.laborCycleTime == 0) {
this.componentData.laborRunFactor = 0
} else {
this.componentData.laborRunFactor = 1/this.componentData.laborCycleTime
}
},
//

Loading…
Cancel
Save