|
|
|
@ -72,7 +72,7 @@ |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="checkOutToBom(scope.row.partNo)">切换Bom</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="checkOutToBom(scope.row.partNo)">切换BOM</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -427,7 +427,7 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
|
<el-form-item :label="'机器单位产出'" prop="machRunFactor" :rules="componentRules.machRunFactor"> |
|
|
|
<el-input class="inlineNumber numInput" v-model="componentData.machRunFactor" @input="handleInput(componentData.machRunFactor,1)" type="number" style="width: 221px"></el-input> |
|
|
|
<el-input class="inlineNumber numInput" v-model="componentData.machRunFactor" @input="handleInput(componentData.machRunFactor,1)" @change="changeMachRunFactor" type="number" style="width: 221px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'人工单位产出'" prop="laborRunFactor" :rules="componentRules.laborRunFactor"> |
|
|
|
<el-input class="inlineNumber numInput" v-model="componentData.laborRunFactor" @input="handleInput(componentData.laborRunFactor,5)" type="number" style="width: 221px"></el-input> |
|
|
|
@ -475,20 +475,17 @@ |
|
|
|
<el-dialog title="工艺工具" :close-on-click-modal="false" v-drag :visible.sync="saveRoutingToolModal" width="500px"> |
|
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
|
<el-form-item :label="'替代'" prop="alternativeNo" :rules="RoutingToolRules.alternativeNo"> |
|
|
|
<el-select v-model="routingToolData.alternativeNo" placeholder="请选择" :disabled="saveRoutingToolDisableModal" style="width: 330px"> |
|
|
|
<el-select v-model="routingToolData.alternativeNo" placeholder="请选择" :disabled="saveRoutingToolDisableModal" style="width: 464px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in alternativeList" |
|
|
|
:key = "i.alternativeNo" |
|
|
|
:label = "i.alternativeDescription" |
|
|
|
:value = "i.alternativeNo"> |
|
|
|
<span style="float: left;width: 100px">{{ i.alternativeNo }}</span> |
|
|
|
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">{{ i.alternativeDescription }}</span> |
|
|
|
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 150px">{{ i.alternativeDescription }}</span> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'工具数量'" prop="toolQty" :rules="RoutingToolRules.toolQty"> |
|
|
|
<el-input class="inlineNumber numInput" v-model="routingToolData.toolQty" type="number" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
|
<el-form-item prop="operationNo" :rules="RoutingToolRules.operationNo"> |
|
|
|
@ -507,8 +504,11 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" style="margin-left: 5px"> |
|
|
|
<el-form-item :label="'工具数量'" prop="toolQty" :rules="RoutingToolRules.toolQty"> |
|
|
|
<el-input class="inlineNumber numInput" v-model="routingToolData.toolQty" type="number" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'备注'"> |
|
|
|
<el-input v-model="routingToolData.remark" style="width: 462px"></el-input> |
|
|
|
<el-input v-model="routingToolData.remark" style="width: 340px;margin-left: -10px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top:25px;text-align:center"> |
|
|
|
@ -2448,6 +2448,7 @@ export default { |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
officialFlag: 'N' |
|
|
|
} |
|
|
|
this.detailTable = 'routing_detail' |
|
|
|
this.detailDataList = [] |
|
|
|
this.subDetailList = [] |
|
|
|
this.headerSaveFlag = true |
|
|
|
@ -2482,6 +2483,7 @@ export default { |
|
|
|
this.detailDataList = data.rows.detailList |
|
|
|
this.subDetailList = data.rows.componentList |
|
|
|
this.detailData = data.rows.detailData |
|
|
|
this.detailTable = 'routing_detail' |
|
|
|
this.modalDisableFlag = true |
|
|
|
this.modalFlag = true |
|
|
|
} else { |
|
|
|
@ -2625,8 +2627,8 @@ export default { |
|
|
|
efficiencyFactor: 100, |
|
|
|
machRunFactor: '', |
|
|
|
machSetupTime: '', |
|
|
|
runTimeCode: '', |
|
|
|
laborRunFactor: 100, |
|
|
|
runTimeCode: 'A', |
|
|
|
laborRunFactor: '', |
|
|
|
laborSetupTime: '', |
|
|
|
crewSize: 1, |
|
|
|
setupCrewSize: 1, |
|
|
|
@ -3990,6 +3992,11 @@ export default { |
|
|
|
this.componentData.laborSetupTime = this.componentData.machSetupTime |
|
|
|
}, |
|
|
|
|
|
|
|
// 机器单位产出改变 |
|
|
|
changeMachRunFactor () { |
|
|
|
this.componentData.laborRunFactor = this.componentData.machRunFactor |
|
|
|
}, |
|
|
|
|
|
|
|
// ======== 导出相关方法 ======== |
|
|
|
/** |
|
|
|
* 导出excel |
|
|
|
|