|
|
@ -320,7 +320,7 @@ |
|
|
<el-input v-model="partData.partNo" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="partData.partNo" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'物料名称'"> |
|
|
<el-form-item :label="'物料名称'"> |
|
|
<el-input v-model="partData.partDesc" clearable style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="partData.partDesc" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="queryPartList">查询</el-button> |
|
|
<el-button type="primary" @click="queryPartList">查询</el-button> |
|
|
@ -372,7 +372,7 @@ |
|
|
<el-input v-model="operationData.operationNo" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="operationData.operationNo" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'工序名称'"> |
|
|
<el-form-item :label="'工序名称'"> |
|
|
<el-input v-model="operationData.operationName" clearable style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="operationData.operationName" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="queryOperationList()">查询</el-button> |
|
|
<el-button type="primary" @click="queryOperationList()">查询</el-button> |
|
|
@ -400,6 +400,62 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
<el-footer style="height:30px;margin-top:10px;text-align:center"> |
|
|
|
|
|
<el-button type="primary" @click="componentPartModelFlag = false">关闭</el-button> |
|
|
|
|
|
</el-footer> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 工具态框 --> |
|
|
|
|
|
<el-dialog title="工具清单" :close-on-click-modal="false" v-drag :visible.sync="toolModelFlag" width="520px"> |
|
|
|
|
|
<div class="rq"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="toolData"> |
|
|
|
|
|
<el-form-item :label="'工具编码'"> |
|
|
|
|
|
<el-input v-model="toolData.toolId" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'工具名称'"> |
|
|
|
|
|
<el-input v-model="toolData.toolDescription" clearable style="width: 200px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="' '"> |
|
|
|
|
|
<el-button type="primary" @click="queryToolList">查询</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:height="300" |
|
|
|
|
|
:data="toolList" |
|
|
|
|
|
@row-dblclick="doubleClickTool" |
|
|
|
|
|
border |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in toolColumnList" :key="index" |
|
|
|
|
|
:sortable="item.columnSortable" |
|
|
|
|
|
:prop="item.columnProp" |
|
|
|
|
|
:header-align="item.headerAlign" |
|
|
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
|
|
:align="item.align" |
|
|
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
|
|
:min-width="item.columnWidth" |
|
|
|
|
|
:label="item.columnLabel"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<!-- 分页插件 --> |
|
|
|
|
|
<el-pagination |
|
|
|
|
|
style="margin-top: 5px" |
|
|
|
|
|
@size-change="sizeChangeHandle3" |
|
|
|
|
|
@current-change="currentChangeHandle3" |
|
|
|
|
|
:current-page="pageIndex3" |
|
|
|
|
|
:page-sizes="[20, 50, 100, 200, 500]" |
|
|
|
|
|
:page-size="pageSize3" |
|
|
|
|
|
:total="totalPage3" |
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
|
|
|
</el-pagination> |
|
|
|
|
|
</div> |
|
|
|
|
|
<el-footer style="height:35px;margin-top: 10px;text-align:center"> |
|
|
|
|
|
<el-button type="primary" @click="toolModelFlag=false">关闭</el-button> |
|
|
|
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 子明细新增模态框 --> |
|
|
<!-- 子明细新增模态框 --> |
|
|
@ -509,7 +565,7 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
<el-form-item prop="operationNo" :rules="RoutingToolRules.operationNo"> |
|
|
<el-form-item prop="operationNo" :rules="RoutingToolRules.operationNo"> |
|
|
<span v-if="saveRoutingToolDisableModal === false" slot="label" @click="queryOperationList()"><a>工序</a></span> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" v-if="saveRoutingToolDisableModal === false" @click="queryOperationList()"><a>工序</a></span> |
|
|
<span v-else slot="label">工序</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" style="width: 120px"></el-input> |
|
|
<el-input v-model="routingToolData.operationName" disabled style="width: 340px"></el-input> |
|
|
<el-input v-model="routingToolData.operationName" disabled style="width: 340px"></el-input> |
|
|
@ -517,9 +573,9 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
<el-form-item prop="toolId" :rules="RoutingToolRules.toolId"> |
|
|
<el-form-item prop="toolId" :rules="RoutingToolRules.toolId"> |
|
|
<span style="cursor: pointer" v-if="!saveRoutingToolDisableModal" slot="label" @click="getBaseList(122)"><a>工具</a></span> |
|
|
|
|
|
<span style="cursor: pointer" v-else slot="label">工具</span> |
|
|
|
|
|
<el-input v-model="routingToolData.toolId" :disabled="saveRoutingToolDisableModal" style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" v-if="!saveRoutingToolDisableModal" @click="queryToolList()"><a>工具</a></span> |
|
|
|
|
|
<span v-else slot="label">工具</span> |
|
|
|
|
|
<el-input v-model="routingToolData.toolId" :disabled="saveRoutingToolDisableModal" @change="routingToolBlur(122)" style="width: 120px"></el-input> |
|
|
<el-input v-model="routingToolData.toolDescription" disabled style="width: 340px"></el-input> |
|
|
<el-input v-model="routingToolData.toolDescription" disabled style="width: 340px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -915,6 +971,7 @@ import { |
|
|
copyAlternative, // 复制alternative |
|
|
copyAlternative, // 复制alternative |
|
|
toBecomeOfficialRouting, // 转正式Routing |
|
|
toBecomeOfficialRouting, // 转正式Routing |
|
|
queryMaxOperationNo, // 查询最大工序号 |
|
|
queryMaxOperationNo, // 查询最大工序号 |
|
|
|
|
|
queryToolList, // 获取工具集合 |
|
|
} from '@/api/part/routingManagement.js' |
|
|
} from '@/api/part/routingManagement.js' |
|
|
import { |
|
|
import { |
|
|
routingSearchAlternative, // routing 替代列表查询 |
|
|
routingSearchAlternative, // routing 替代列表查询 |
|
|
@ -998,6 +1055,9 @@ export default { |
|
|
pageIndex2: 1, |
|
|
pageIndex2: 1, |
|
|
pageSize2: 20, |
|
|
pageSize2: 20, |
|
|
totalPage2: 0, |
|
|
totalPage2: 0, |
|
|
|
|
|
pageIndex3: 1, |
|
|
|
|
|
pageSize3: 20, |
|
|
|
|
|
totalPage3: 0, |
|
|
pageIndex4: 1, |
|
|
pageIndex4: 1, |
|
|
pageSize4: 20, |
|
|
pageSize4: 20, |
|
|
totalPage4: 0, |
|
|
totalPage4: 0, |
|
|
@ -1109,6 +1169,13 @@ export default { |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 10 |
|
|
limit: 10 |
|
|
}, |
|
|
}, |
|
|
|
|
|
toolData: { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
toolId: '', |
|
|
|
|
|
toolDescription: '', |
|
|
|
|
|
page: 1, |
|
|
|
|
|
limit: 10 |
|
|
|
|
|
}, |
|
|
operationData: { |
|
|
operationData: { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
partNo: '', |
|
|
partNo: '', |
|
|
@ -1254,6 +1321,7 @@ export default { |
|
|
alternativeList: [], |
|
|
alternativeList: [], |
|
|
workGuidelineList: [], |
|
|
workGuidelineList: [], |
|
|
copyPartList: [], |
|
|
copyPartList: [], |
|
|
|
|
|
toolList: [], |
|
|
// ======== 列表表头 ======== |
|
|
// ======== 列表表头 ======== |
|
|
columnList: [ |
|
|
columnList: [ |
|
|
{ |
|
|
{ |
|
|
@ -1481,6 +1549,7 @@ export default { |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
columnProp: 'operationName', |
|
|
columnProp: 'operationName', |
|
|
@ -1493,6 +1562,7 @@ export default { |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
columnSubDetailList: [ |
|
|
columnSubDetailList: [ |
|
|
@ -2273,6 +2343,30 @@ export default { |
|
|
columnWidth: 150 |
|
|
columnWidth: 150 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
toolColumnList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'toolId', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: '工具编码', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'toolDescription', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: '工具名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
// ======== 必填规则 ======== |
|
|
// ======== 必填规则 ======== |
|
|
rules: { |
|
|
rules: { |
|
|
partNo: [ |
|
|
partNo: [ |
|
|
@ -2522,6 +2616,7 @@ export default { |
|
|
workGuidelineDisableModal: false, |
|
|
workGuidelineDisableModal: false, |
|
|
headerSaveFlag: false, |
|
|
headerSaveFlag: false, |
|
|
copyPartModelFlag: false, |
|
|
copyPartModelFlag: false, |
|
|
|
|
|
toolModelFlag: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -2572,65 +2667,59 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// ======== 分页相关方法 ======== |
|
|
// ======== 分页相关方法 ======== |
|
|
/** |
|
|
|
|
|
* 每页数 |
|
|
|
|
|
* @param val |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// 每页数 |
|
|
sizeChangeHandle (val) { |
|
|
sizeChangeHandle (val) { |
|
|
this.pageSize = val |
|
|
this.pageSize = val |
|
|
this.pageIndex = 1 |
|
|
this.pageIndex = 1 |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
|
|
|
* 当前页 |
|
|
|
|
|
* @param val |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 当前页 |
|
|
currentChangeHandle (val) { |
|
|
currentChangeHandle (val) { |
|
|
this.pageIndex = val |
|
|
this.pageIndex = val |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 每页数 |
|
|
|
|
|
* @param val |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// 每页数 |
|
|
sizeChangeHandle2 (val) { |
|
|
sizeChangeHandle2 (val) { |
|
|
this.pageSize2 = val |
|
|
this.pageSize2 = val |
|
|
this.pageIndex2 = 1 |
|
|
this.pageIndex2 = 1 |
|
|
this.queryPartList() |
|
|
this.queryPartList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 当前页 |
|
|
|
|
|
* @param val |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// 当前页 |
|
|
currentChangeHandle2 (val) { |
|
|
currentChangeHandle2 (val) { |
|
|
this.pageIndex2 = val |
|
|
this.pageIndex2 = val |
|
|
this.queryPartList() |
|
|
this.queryPartList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 每页数 |
|
|
|
|
|
* @param val |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// 每页数 |
|
|
|
|
|
sizeChangeHandle3 (val) { |
|
|
|
|
|
this.pageSize3 = val |
|
|
|
|
|
this.pageIndex3 = 1 |
|
|
|
|
|
this.queryToolList() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 当前页 |
|
|
|
|
|
currentChangeHandle3 (val) { |
|
|
|
|
|
this.pageIndex3 = val |
|
|
|
|
|
this.queryToolList() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 每页数 |
|
|
sizeChangeHandle4 (val) { |
|
|
sizeChangeHandle4 (val) { |
|
|
this.pageSize4 = val |
|
|
this.pageSize4 = val |
|
|
this.pageIndex4 = 1 |
|
|
this.pageIndex4 = 1 |
|
|
this.queryCopyPartModal() |
|
|
this.queryCopyPartModal() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 当前页 |
|
|
|
|
|
* @param val |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// 当前页 |
|
|
currentChangeHandle4 (val) { |
|
|
currentChangeHandle4 (val) { |
|
|
this.pageIndex4 = val |
|
|
this.pageIndex4 = val |
|
|
this.queryCopyPartModal() |
|
|
this.queryCopyPartModal() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* copy物料列表 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// copy物料列表 |
|
|
queryCopyPartModal () { |
|
|
queryCopyPartModal () { |
|
|
this.copyPartData.limit = this.pageSize4 |
|
|
this.copyPartData.limit = this.pageSize4 |
|
|
this.copyPartData.page = this.pageIndex4 |
|
|
this.copyPartData.page = this.pageIndex4 |
|
|
@ -2650,9 +2739,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* copy物料查询列表 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// copy物料查询列表 |
|
|
queryCopyPartList () { |
|
|
queryCopyPartList () { |
|
|
this.copyPartData.limit = this.pageSize4 |
|
|
this.copyPartData.limit = this.pageSize4 |
|
|
this.copyPartData.page = this.pageIndex4 |
|
|
this.copyPartData.page = this.pageIndex4 |
|
|
@ -3453,6 +3540,47 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 查工具列表 |
|
|
|
|
|
queryToolList () { |
|
|
|
|
|
this.toolData.limit = this.pageSize3 |
|
|
|
|
|
this.toolData.page = this.pageIndex3 |
|
|
|
|
|
queryToolList(this.toolData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.toolList = data.page.list |
|
|
|
|
|
this.pageIndex3 = data.page.currPage |
|
|
|
|
|
this.pageSize3 = data.page.pageSize |
|
|
|
|
|
this.totalPage3 = data.page.totalCount |
|
|
|
|
|
this.toolModelFlag = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 安全代码输入校验 |
|
|
|
|
|
routingToolBlur (tagNo) { |
|
|
|
|
|
let tempData = { |
|
|
|
|
|
tagno: tagNo, |
|
|
|
|
|
conditionSql: " and tool_id = '" + this.routingToolData.toolId + "'" + " and site = '" + this.routingToolData.site + "'" |
|
|
|
|
|
} |
|
|
|
|
|
verifyData(tempData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
if (data.baseListData.length > 0) { |
|
|
|
|
|
this.routingToolData.toolId = data.baseListData[0].tool_id |
|
|
|
|
|
this.routingToolData.toolDescription = data.baseListData[0].tool_description |
|
|
|
|
|
} else { |
|
|
|
|
|
this.routingToolData.toolDescription = '' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 双击选中工具 |
|
|
|
|
|
doubleClickTool (row) { |
|
|
|
|
|
this.routingToolData.toolId = row.toolId |
|
|
|
|
|
this.routingToolData.toolDescription = row.toolDescription |
|
|
|
|
|
this.toolModelFlag = false |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 替代列表 |
|
|
* 替代列表 |
|
|
*/ |
|
|
*/ |
|
|
|