|
|
|
@ -412,7 +412,7 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 工具态框 --> |
|
|
|
<el-dialog title="工具清单" :close-on-click-modal="false" v-drag :visible.sync="toolModelFlag" width="520px"> |
|
|
|
<el-dialog title="工具清单" :close-on-click-modal="false" v-drag :visible.sync="toolModelFlag" width="570px"> |
|
|
|
<div class="rq"> |
|
|
|
<el-form :inline="true" label-position="top" :model="toolData"> |
|
|
|
<el-form-item :label="'工具编码'"> |
|
|
|
@ -426,7 +426,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="300" |
|
|
|
:height="250" |
|
|
|
:data="toolList" |
|
|
|
@row-dblclick="doubleClickTool" |
|
|
|
border |
|
|
|
@ -456,6 +456,7 @@ |
|
|
|
:page-sizes="[20, 50, 100, 200, 500]" |
|
|
|
:page-size="pageSize3" |
|
|
|
:total="totalPage3" |
|
|
|
:pager-count="3" |
|
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
@ -573,7 +574,7 @@ |
|
|
|
<el-form-item prop="operationNo" :rules="RoutingToolRules.operationNo"> |
|
|
|
<span style="cursor: pointer" slot="label" v-if="saveRoutingToolDisableModal === false" @click="queryOperationList()"><a>工序</a></span> |
|
|
|
<span v-else slot="label">工序</span> |
|
|
|
<el-input v-model="routingToolData.operationNo" :disabled="saveRoutingToolDisableModal" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="routingToolData.operationNo" :disabled="saveRoutingToolDisableModal" @change="routingToolOperationBlur()" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="routingToolData.operationName" disabled style="width: 340px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -981,6 +982,7 @@ import { |
|
|
|
toBecomeOfficialRouting, // 转正式Routing |
|
|
|
queryMaxOperationNo, // 查询最大工序号 |
|
|
|
queryToolList, // 获取工具集合 |
|
|
|
queryLaborClassByWorkCenterNo, // 通过加工中心查人员等级 |
|
|
|
} from '@/api/part/routingManagement.js' |
|
|
|
import { |
|
|
|
routingSearchAlternative, // routing 替代列表查询 |
|
|
|
@ -3611,7 +3613,30 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 安全代码输入校验 |
|
|
|
// 工序输入校验 |
|
|
|
routingToolOperationBlur () { |
|
|
|
let tempData = { |
|
|
|
site: this.routingToolData.site, |
|
|
|
partNo: this.routingToolData.partNo, |
|
|
|
routingRevision: this.routingToolData.routingRevision, |
|
|
|
routingType: this.routingToolData.routingType, |
|
|
|
alternativeNo: this.routingToolData.alternativeNo, |
|
|
|
operationNo: this.routingToolData.operationNo |
|
|
|
} |
|
|
|
queryOperationListByAlternative(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.routingToolData.operationId = data.rows[0].operationId |
|
|
|
this.routingToolData.operationNo = data.rows[0].operationNo |
|
|
|
this.routingToolData.operationName = data.rows[0].operationName |
|
|
|
} else { |
|
|
|
this.routingToolData.operationName = '' |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 工具输入校验 |
|
|
|
routingToolBlur (tagNo) { |
|
|
|
let tempData = { |
|
|
|
tagno: tagNo, |
|
|
|
@ -4659,6 +4684,7 @@ export default { |
|
|
|
this.componentData.workCenterNo = val.work_center_no |
|
|
|
this.componentData.workCenterDesc = val.work_center_desc |
|
|
|
this.componentData.workCenterType = val.work_center_type |
|
|
|
this.getLaborClassByWorkCenter() |
|
|
|
} |
|
|
|
if (this.tagNo === 122) { |
|
|
|
this.routingToolData.toolId = val.tool_id |
|
|
|
@ -4666,6 +4692,24 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 通过加工中心查人员等级 |
|
|
|
getLaborClassByWorkCenter () { |
|
|
|
let tempData = { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
levelId: this.componentData.workCenterNo |
|
|
|
} |
|
|
|
queryLaborClassByWorkCenterNo(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.componentData.laborClassNo = data.rows[0].levelId |
|
|
|
this.componentData.laborClassDesc = data.rows[0].levelDesc |
|
|
|
this.componentData.setupLaborClassNo = data.rows[0].levelId |
|
|
|
this.componentData.setupLaborClassDesc = data.rows[0].levelDesc |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 机器调机时间改变 |
|
|
|
changeMachSetupTime () { |
|
|
|
this.componentData.laborSetupTime = this.componentData.machSetupTime |
|
|
|
@ -4689,6 +4733,7 @@ export default { |
|
|
|
this.componentData.workCenterNo = data.baseListData[0].work_center_no |
|
|
|
this.componentData.workCenterDesc = data.baseListData[0].work_center_desc |
|
|
|
this.componentData.workCenterType = data.baseListData[0].work_center_type |
|
|
|
this.getLaborClassByWorkCenter() |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|