|
|
|
@ -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 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 加工中心输入校验 |
|
|
|
|