|
|
@ -2,7 +2,7 @@ |
|
|
<div class="mod-config"> |
|
|
<div class="mod-config"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" style="" @click="getSearchModal()"><a herf="#">{{labels.partNo}}</a></span> |
|
|
|
|
|
|
|
|
<span slot="label" style="" @click="getSearchModal()"><a herf="#">{{ labels.partNo }}</a></span> |
|
|
<el-input v-model="mainData.partNo" readonly style="width: 130px"></el-input> |
|
|
<el-input v-model="mainData.partNo" readonly style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="labels.spec"> |
|
|
<el-form-item :label="labels.spec"> |
|
|
@ -13,9 +13,11 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="labels.site"> |
|
|
<el-form-item :label="labels.site"> |
|
|
<el-input v-model="mainData.site" readonly style="width: 130px"></el-input> |
|
|
<el-input v-model="mainData.site" readonly style="width: 130px"></el-input> |
|
|
<el-button @click="getPartDetail()" type="primary" style="margin-left: 2px;margin-top: 0px">{{buttons.getPartDetail}} |
|
|
|
|
|
|
|
|
<el-button @click="getPartDetail()" type="primary" style="margin-left: 2px;margin-top: 0px"> |
|
|
|
|
|
{{ buttons.getPartDetail }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="changeStatus()" type="primary" style="margin-left: 2px;margin-top: 0px">{{buttons.changeStatus}} |
|
|
|
|
|
|
|
|
<el-button @click="changeStatus()" type="primary" style="margin-left: 2px;margin-top: 0px"> |
|
|
|
|
|
{{ buttons.changeStatus }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -34,7 +36,8 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="labels.umid"> |
|
|
<el-form-item :label="labels.umid"> |
|
|
<el-input v-model="mainData.umid" readonly style="width: 130px"></el-input> |
|
|
<el-input v-model="mainData.umid" readonly style="width: 130px"></el-input> |
|
|
<el-button @click="tongBuOrder()" type="primary" style="margin-left: 2px;margin-top: 0px">{{buttons.tongBuOrder}} |
|
|
|
|
|
|
|
|
<el-button @click="tongBuOrder()" type="primary" style="margin-left: 2px;margin-top: 0px"> |
|
|
|
|
|
{{ buttons.tongBuOrder }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -49,23 +52,31 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="labels.repairFlag" style="margin-left: 20px"> |
|
|
<el-form-item :label="labels.repairFlag" style="margin-left: 20px"> |
|
|
<el-checkbox style="margin-left: 0px" disabled v-model="mainData.repairFlag"></el-checkbox> |
|
|
<el-checkbox style="margin-left: 0px" disabled v-model="mainData.repairFlag"></el-checkbox> |
|
|
<el-button @click="setDefault()" type="primary" style="margin-left: 58px;margin-top: 0px">{{buttons.setDefault}}</el-button> |
|
|
|
|
|
<el-button @click="copyRouting()" type="primary" style="margin-left: 2px;margin-top: 0px">{{buttons.copyRouting}} |
|
|
|
|
|
|
|
|
<el-button @click="setDefault()" type="primary" style="margin-left: 58px;margin-top: 0px"> |
|
|
|
|
|
{{ buttons.setDefault }} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button @click="copyRouting()" type="primary" style="margin-left: 2px;margin-top: 0px"> |
|
|
|
|
|
{{ buttons.copyRouting }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-tabs v-model="activeName"> |
|
|
<el-tabs v-model="activeName"> |
|
|
<el-tab-pane :label="labels.detail" name="first"> |
|
|
<el-tab-pane :label="labels.detail" name="first"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-button @click="addRoutingDetail()" type="primary" :disabled = "authAdd" style="margin-left: 2px;margin-top: 0px">{{buttons.add}} |
|
|
|
|
|
|
|
|
<el-button @click="addRoutingDetail()" type="primary" :disabled="authAdd" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.add }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="editRoutingDetail()" type="primary" :disabled = "authEdit" style="margin-left: 2px;margin-top: 0px">{{buttons.update}} |
|
|
|
|
|
|
|
|
<el-button @click="editRoutingDetail()" type="primary" :disabled="authEdit" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.update }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="deleteRoutingDetail()" type="primary" :disabled = "authDelete" style="margin-left: 2px;margin-top: 0px">{{buttons.delete}} |
|
|
|
|
|
|
|
|
<el-button @click="deleteRoutingDetail()" type="primary" :disabled="authDelete" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.delete }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="jumpWorkCenter()" type="primary" :disabled = "!jumpFlag" style="margin-left: 2px;margin-top: 0px">{{buttons.workCenter}} |
|
|
|
|
|
|
|
|
<el-button @click="jumpWorkCenter()" type="primary" :disabled="!jumpFlag" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.workCenter }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="getResourceModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{buttons.availableResource}} |
|
|
|
|
|
|
|
|
<el-button @click="getResourceModel()" type="primary" style="margin-left: 2px;margin-top: 0px"> |
|
|
|
|
|
{{ buttons.availableResource }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -87,7 +98,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -96,13 +107,17 @@ |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane :label="labels.toolDetail" name="second"> |
|
|
<el-tab-pane :label="labels.toolDetail" name="second"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-button @click="addRoutingTool()" type="primary" :disabled = "authAdd" style="margin-left: 2px;margin-top: 0px">{{buttons.add}} |
|
|
|
|
|
|
|
|
<el-button @click="addRoutingTool()" type="primary" :disabled="authAdd" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.add }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="editRoutingTool()" type="primary" :disabled = "authEdit" style="margin-left: 2px;margin-top: 0px">{{buttons.update}} |
|
|
|
|
|
|
|
|
<el-button @click="editRoutingTool()" type="primary" :disabled="authEdit" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.update }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="deleteRoutingTool()" type="primary" :disabled = "authDelete" style="margin-left: 2px;margin-top: 0px">{{buttons.delete}} |
|
|
|
|
|
|
|
|
<el-button @click="deleteRoutingTool()" type="primary" :disabled="authDelete" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.delete }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button @click="jumpToolInfo()" type="primary" :disabled = "!jumpFlag2" style="margin-left: 2px;margin-top: 0px">{{buttons.toolDetail}} |
|
|
|
|
|
|
|
|
<el-button @click="jumpToolInfo()" type="primary" :disabled="!jumpFlag2" |
|
|
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.toolDetail }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -124,7 +139,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -136,8 +151,8 @@ |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form-item :label="labels.partNo"> |
|
|
<el-form-item :label="labels.partNo"> |
|
|
<el-input v-model="searchPartNo" style="width: 130px"></el-input> |
|
|
<el-input v-model="searchPartNo" style="width: 130px"></el-input> |
|
|
<el-button @click="searchRoutingWithPartNo()" type="primary">{{buttons.search}}</el-button> |
|
|
|
|
|
<el-button @click="addRoutingHeaderModel()" :disabled = "authAdd" type="primary">{{buttons.add}}</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="searchRoutingWithPartNo()" type="primary">{{ buttons.search }}</el-button> |
|
|
|
|
|
<el-button @click="addRoutingHeaderModel()" :disabled="authAdd" type="primary">{{ buttons.add }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -153,8 +168,10 @@ |
|
|
width="150" |
|
|
width="150" |
|
|
:label="labels.do"> |
|
|
:label="labels.do"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<a type="text" size="small" v-if="!authEdit" @click="editRoutingHeaderModel(scope.row)">{{buttons.update}}</a> |
|
|
|
|
|
<a type="text" size="small" v-if="!authDelete" @click="deleteRoutingHeaderData(scope.row)">{{buttons.delete}}</a> |
|
|
|
|
|
|
|
|
<a type="text" size="small" v-if="!authEdit" |
|
|
|
|
|
@click="editRoutingHeaderModel(scope.row)">{{ buttons.update }}</a> |
|
|
|
|
|
<a type="text" size="small" v-if="!authDelete" |
|
|
|
|
|
@click="deleteRoutingHeaderData(scope.row)">{{ buttons.delete }}</a> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
@ -168,17 +185,18 @@ |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="modelFlag = false">{{buttons.close}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="modelFlag = false">{{ buttons.close }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog title="维护工艺路线明细" :close-on-click-modal="false" v-drag :visible.sync="detailmodelFlag" width="620px"> |
|
|
|
|
|
|
|
|
<el-dialog title="维护工艺路线明细" :close-on-click-modal="false" v-drag :visible.sync="detailmodelFlag" |
|
|
|
|
|
width="620px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: 0px;"> |
|
|
<el-form-item :label="labels.itemNo"> |
|
|
<el-form-item :label="labels.itemNo"> |
|
|
<el-input v-model="detailData.itemNo" :disabled="detailmodelInputFlag" style="width: 130px;text-align: right" |
|
|
<el-input v-model="detailData.itemNo" :disabled="detailmodelInputFlag" style="width: 130px;text-align: right" |
|
|
@ -188,7 +206,7 @@ |
|
|
<el-input v-model="detailData.operationDesc" style="width: 130px"></el-input> |
|
|
<el-input v-model="detailData.operationDesc" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" style="" @click="getBaseList(24,0)"><a herf="#">{{labels.workCenterNo}}</a></span> |
|
|
|
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(24,0)"><a herf="#">{{ labels.workCenterNo }}</a></span> |
|
|
<el-input v-model="detailData.workCenterNo" style="width: 130px"></el-input> |
|
|
<el-input v-model="detailData.workCenterNo" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="labels.machSetupTime"> |
|
|
<el-form-item :label="labels.machSetupTime"> |
|
|
@ -229,11 +247,12 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="saveRoutingDetailData()">{{buttons.save}}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="detailmodelFlag = false">{{buttons.close}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveRoutingDetailData()">{{ buttons.save }}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="detailmodelFlag = false">{{ buttons.close }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :title="labels.updateRoutingTool" :close-on-click-modal="false" v-drag :visible.sync="ToolmodelFlag" width="480px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="labels.updateRoutingTool" :close-on-click-modal="false" v-drag :visible.sync="ToolmodelFlag" |
|
|
|
|
|
width="480px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: 0px;"> |
|
|
<el-form-item :label="labels.itemNo"> |
|
|
<el-form-item :label="labels.itemNo"> |
|
|
<el-select v-model="toolData.itemNo" @change="getOperationDesc()" :disabled="toolmodelInputFlag" |
|
|
<el-select v-model="toolData.itemNo" @change="getOperationDesc()" :disabled="toolmodelInputFlag" |
|
|
@ -251,7 +270,7 @@ |
|
|
<el-input v-model="toolData.operationDesc" disabled style="width: 130px;text-align: right"></el-input> |
|
|
<el-input v-model="toolData.operationDesc" disabled style="width: 130px;text-align: right"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" style="" @click="getBaseList(70,0)"><a herf="#">{{labels.toolID}}</a></span> |
|
|
|
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(70,0)"><a herf="#">{{ labels.toolID }}</a></span> |
|
|
<el-input v-model="toolData.toolID" @change="getToolDesc()" :disabled="toolmodelInputFlag" |
|
|
<el-input v-model="toolData.toolID" @change="getToolDesc()" :disabled="toolmodelInputFlag" |
|
|
style="width: 130px;text-align: right"></el-input> |
|
|
style="width: 130px;text-align: right"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -273,14 +292,15 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="saveRoutingTool()">{{buttons.save}}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="ToolmodelFlag = false">{{buttons.close}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveRoutingTool()">{{ buttons.save }}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="ToolmodelFlag = false">{{ buttons.close }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :title="labels.availableResource" :close-on-click-modal="false" v-drag :visible.sync="routingModelFlag" width="800px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="labels.availableResource" :close-on-click-modal="false" v-drag :visible.sync="routingModelFlag" |
|
|
|
|
|
width="800px"> |
|
|
<el-container> |
|
|
<el-container> |
|
|
<el-main style="width: 300px"> |
|
|
<el-main style="width: 300px"> |
|
|
<span style="">{{labels.chooseableResource}}</span> |
|
|
|
|
|
|
|
|
<span style="">{{ labels.chooseableResource }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="300px" |
|
|
height="300px" |
|
|
:data="resourceList1" |
|
|
:data="resourceList1" |
|
|
@ -300,7 +320,7 @@ |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -309,14 +329,14 @@ |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 100px"> |
|
|
<el-main style="width: 100px"> |
|
|
<div style="margin-top: 100px"> |
|
|
<div style="margin-top: 100px"> |
|
|
<el-button type="primary" @click="addResource()">{{buttons.addResource}}>></el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="addResource()">{{ buttons.addResource }}>></el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 20px"> |
|
|
<div style="margin-top: 20px"> |
|
|
<el-button type="primary" @click="deleteResource()">{{buttons.deleteResource}}<<</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deleteResource()">{{ buttons.deleteResource }}<<</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 300px"> |
|
|
<el-main style="width: 300px"> |
|
|
<span style="">{{labels.choosedResource}}</span> |
|
|
|
|
|
|
|
|
<span style="">{{ labels.choosedResource }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="300px" |
|
|
height="300px" |
|
|
:data="resourceList2" |
|
|
:data="resourceList2" |
|
|
@ -336,7 +356,7 @@ |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -380,7 +400,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="partFlag = false">{{buttons.close}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="partFlag = false">{{ buttons.close }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :title="labels.更改状态" :close-on-click-modal="false" v-drag :visible.sync="statusFlag" width="240px"> |
|
|
<el-dialog :title="labels.更改状态" :close-on-click-modal="false" v-drag :visible.sync="statusFlag" width="240px"> |
|
|
@ -393,16 +413,17 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="saveStatus()">{{buttons.save}}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="statusFlag = false">{{buttons.close}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveStatus()">{{ buttons.save }}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="statusFlag = false">{{ buttons.close }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :title="labels.copyRouting" :close-on-click-modal="false" v-drag :visible.sync="copyRoutingModelFlag" width="600px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="labels.copyRouting" :close-on-click-modal="false" v-drag :visible.sync="copyRoutingModelFlag" |
|
|
|
|
|
width="600px"> |
|
|
<el-container> |
|
|
<el-container> |
|
|
<el-main style="width: 450px;margin-top: -20px"> |
|
|
<el-main style="width: 450px;margin-top: -20px"> |
|
|
<fieldset style="margin-left: 0px; margin-top: 0px; width: 420px;"> |
|
|
<fieldset style="margin-left: 0px; margin-top: 0px; width: 420px;"> |
|
|
<legend>{{labels.oldRouting}}</legend> |
|
|
|
|
|
|
|
|
<legend>{{ labels.oldRouting }}</legend> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -8px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -8px;"> |
|
|
<el-form-item :label="labels.partNo3"> |
|
|
<el-form-item :label="labels.partNo3"> |
|
|
<el-input v-model="copyRoutingData.partNo" disabled style="width: 120px;text-align: right"></el-input> |
|
|
<el-input v-model="copyRoutingData.partNo" disabled style="width: 120px;text-align: right"></el-input> |
|
|
@ -426,7 +447,7 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
<fieldset style="margin-left: 0px; margin-top: 0px; width: 420px;"> |
|
|
<fieldset style="margin-left: 0px; margin-top: 0px; width: 420px;"> |
|
|
<legend>{{labels.newRouting}}</legend> |
|
|
|
|
|
|
|
|
<legend>{{ labels.newRouting }}</legend> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -8px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -8px;"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" style="" @click="getBaseList(5,1)"><a herf="#">工艺路线编码:</a></span> |
|
|
<span slot="label" style="" @click="getBaseList(5,1)"><a herf="#">工艺路线编码:</a></span> |
|
|
@ -459,7 +480,7 @@ |
|
|
<el-main style="width: 140px"> |
|
|
<el-main style="width: 140px"> |
|
|
<div style="width: 115px;"> |
|
|
<div style="width: 115px;"> |
|
|
<el-checkbox style="margin-left: 0px" v-model="copyRoutingData.oldFlag"></el-checkbox> |
|
|
<el-checkbox style="margin-left: 0px" v-model="copyRoutingData.oldFlag"></el-checkbox> |
|
|
<span style="font-size: 11px">{{labels.oldFlag}} </span> |
|
|
|
|
|
|
|
|
<span style="font-size: 11px">{{ labels.oldFlag }} </span> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<span style="font-size: 11px;width: 115px"> |
|
|
<span style="font-size: 11px;width: 115px"> |
|
|
@ -468,23 +489,24 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div style="width: 115px;margin-top: 15px"> |
|
|
<div style="width: 115px;margin-top: 15px"> |
|
|
<el-checkbox style="margin-left: 0px" v-model="copyRoutingData.toolFlag"></el-checkbox> |
|
|
<el-checkbox style="margin-left: 0px" v-model="copyRoutingData.toolFlag"></el-checkbox> |
|
|
<span style="font-size: 11px">{{labels.toolFlag}} </span> |
|
|
|
|
|
|
|
|
<span style="font-size: 11px">{{ labels.toolFlag }} </span> |
|
|
</div> |
|
|
</div> |
|
|
<div style="width: 115px;margin-top: 15px"> |
|
|
<div style="width: 115px;margin-top: 15px"> |
|
|
<el-checkbox style="margin-left: 0px" v-model="copyRoutingData.resourceFlag"></el-checkbox> |
|
|
<el-checkbox style="margin-left: 0px" v-model="copyRoutingData.resourceFlag"></el-checkbox> |
|
|
<span style="font-size: 11px">{{labels.resourceFlag}} </span> |
|
|
|
|
|
|
|
|
<span style="font-size: 11px">{{ labels.resourceFlag }} </span> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
</el-container> |
|
|
</el-container> |
|
|
<el-footer style="height:40px;margin-top: 0px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 0px;text-align:center"> |
|
|
<el-button type="primary" @click="saveCopyRouting()">{{buttons.save}}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="copyRoutingModelFlag = false">{{buttons.close}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveCopyRouting()">{{ buttons.save }}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="copyRoutingModelFlag = false">{{ buttons.close }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :title="labels.updateRouting" :close-on-click-modal="false" v-drag :visible.sync="routingHeaderModelFlag" width="480px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="labels.updateRouting" :close-on-click-modal="false" v-drag :visible.sync="routingHeaderModelFlag" |
|
|
|
|
|
width="480px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 0px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 0px;margin-top: -5px;"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" style="" @click="getBaseList(5,2)"><a herf="#">{{labels.partNo3}}</a></span> |
|
|
|
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(5,2)"><a herf="#">{{ labels.partNo3 }}</a></span> |
|
|
<el-input v-model="routingHeaderData.partNo" :disabled="routingHeaderInputFlag" |
|
|
<el-input v-model="routingHeaderData.partNo" :disabled="routingHeaderInputFlag" |
|
|
style="width: 130px;text-align: right"></el-input> |
|
|
style="width: 130px;text-align: right"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -540,7 +562,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="saveRoutingHeaderData()">{{buttons.save}}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveRoutingHeaderData()">{{ buttons.save }}</el-button> |
|
|
<el-button type="primary" @click="routingHeaderModelFlag = false">{buttons.close}}</el-button> |
|
|
<el-button type="primary" @click="routingHeaderModelFlag = false">{buttons.close}}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
@ -549,7 +571,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
|
|
|
|
|
|
import { |
|
|
searchRoutingWithPartNo, |
|
|
searchRoutingWithPartNo, |
|
|
searchRoutingDetailData, |
|
|
searchRoutingDetailData, |
|
|
saveRoutingDetailData, |
|
|
saveRoutingDetailData, |
|
|
@ -571,15 +593,16 @@ |
|
|
setDefault, |
|
|
setDefault, |
|
|
saveRoutingHeaderData, |
|
|
saveRoutingHeaderData, |
|
|
deleteRoutingHeaderData |
|
|
deleteRoutingHeaderData |
|
|
} from "@/api/base/site.js" |
|
|
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
|
|
import { |
|
|
|
|
|
|
|
|
} from "@/api/base/site.js" |
|
|
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
|
|
import { |
|
|
|
|
|
|
|
|
searchFunctionButtonList, |
|
|
searchFunctionButtonList, |
|
|
|
|
|
|
|
|
} from "@/api/sysLanguage.js" |
|
|
|
|
|
var functionId='103006'; |
|
|
|
|
|
export default { |
|
|
|
|
|
|
|
|
} from "@/api/sysLanguage.js" |
|
|
|
|
|
|
|
|
|
|
|
var functionId = '103006'; |
|
|
|
|
|
export default { |
|
|
name: "maintainProductRouting", |
|
|
name: "maintainProductRouting", |
|
|
components: { |
|
|
components: { |
|
|
Chooselist |
|
|
Chooselist |
|
|
@ -587,124 +610,124 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
labels: { |
|
|
labels: { |
|
|
site:'工厂编号:', |
|
|
|
|
|
partNo:'物料编码:', |
|
|
|
|
|
spec:'物料名称/规格型号:', |
|
|
|
|
|
status:'状态:', |
|
|
|
|
|
routingType:'工艺路线类型:', |
|
|
|
|
|
revNo:'版本号:', |
|
|
|
|
|
phaseInDate:'启用日期:', |
|
|
|
|
|
phaseOutDate:'停用日期:', |
|
|
|
|
|
umid:'计量单位:', |
|
|
|
|
|
remark:'备注:', |
|
|
|
|
|
defaultflag:'默认:', |
|
|
|
|
|
repairFlag:'修复版本:', |
|
|
|
|
|
detail:'明细', |
|
|
|
|
|
toolDetail:'工具清单', |
|
|
|
|
|
dataList:'数据表', |
|
|
|
|
|
do:'操作', |
|
|
|
|
|
itemNo:'工序号:', |
|
|
|
|
|
operationDesc:'工序名称:', |
|
|
|
|
|
workCenterNo:'加工中心编码:', |
|
|
|
|
|
machSetupTime:'准备时间:', |
|
|
|
|
|
machRunFactor:'单位产出量:', |
|
|
|
|
|
factorUnit:'产出单位:', |
|
|
|
|
|
jjgzUnitPrice:'计价单价:', |
|
|
|
|
|
jjgzUnitFactor:'单位:', |
|
|
|
|
|
efficiency:'效率:', |
|
|
|
|
|
crewsize:'操作工人数:', |
|
|
|
|
|
updateRoutingTool:'维护工艺路线工具', |
|
|
|
|
|
toolID:'工具编号:', |
|
|
|
|
|
toolDescription:'工具名称:', |
|
|
|
|
|
spec2:'规格型号:', |
|
|
|
|
|
toolQty:'工具数量:', |
|
|
|
|
|
availableResource:'可用机台', |
|
|
|
|
|
chooseableResource:'可选机台', |
|
|
|
|
|
choosedResource:'已选机台:', |
|
|
|
|
|
partDescription:'物料名称:', |
|
|
|
|
|
createDate:'新增日期:', |
|
|
|
|
|
active:'在用:', |
|
|
|
|
|
configurationTemplateID:'客户名称:', |
|
|
|
|
|
partNo2:'客户产品料号:', |
|
|
|
|
|
partDesc:'物料信息:', |
|
|
|
|
|
oneandtime:'单位/小时', |
|
|
|
|
|
time:'小时', |
|
|
|
|
|
one:'件', |
|
|
|
|
|
changeStatus:'更改状态', |
|
|
|
|
|
test:'试验', |
|
|
|
|
|
product:'投产', |
|
|
|
|
|
stopUse:'停用', |
|
|
|
|
|
copyRouting:'复制产品工艺路线', |
|
|
|
|
|
oldRouting:'源产品工艺路线', |
|
|
|
|
|
partNo3:'工艺路线编码:', |
|
|
|
|
|
partDescription2:'工艺路线名称:', |
|
|
|
|
|
newRouting:'新产品工艺路线', |
|
|
|
|
|
chooseDate:'选择日期', |
|
|
|
|
|
oldFlag:'自动停用早期所有版本:', |
|
|
|
|
|
toolFlag:'复制工具信息:', |
|
|
|
|
|
resourceFlag:'复制可用机台:', |
|
|
|
|
|
updateRouting:'维护工艺路线', |
|
|
|
|
|
yes:'是', |
|
|
|
|
|
no:'否', |
|
|
|
|
|
error:'错误', |
|
|
|
|
|
true:'确定', |
|
|
|
|
|
inRoutingNo:'请输入工艺路线号!', |
|
|
|
|
|
inRevNo:'请输入版本号!', |
|
|
|
|
|
inPhaseInDate:'请选择启用日期!', |
|
|
|
|
|
doYes:'操作成功!', |
|
|
|
|
|
cancel:'取消', |
|
|
|
|
|
deleteRoutingAsk:'是否删除此工艺路线的所有数据?', |
|
|
|
|
|
point:'提示', |
|
|
|
|
|
inPartNo:'请选择物料编码!', |
|
|
|
|
|
inItemNo:'请输入工序号!', |
|
|
|
|
|
inOperationDesc:'请输入工序名称!', |
|
|
|
|
|
inMachSetupTime:'请输入准备时间!', |
|
|
|
|
|
inWorkCenterNo:'请输入加工中心编码!', |
|
|
|
|
|
inJjgzUnitPrice:'请输入计价单价!', |
|
|
|
|
|
inCrewsize:'请输入操作员人数!', |
|
|
|
|
|
inEfficiency:'请输入效率!', |
|
|
|
|
|
efficiencyAsk:'效率必须大于0!', |
|
|
|
|
|
inRoutingItem:'请选择工艺路线工序!', |
|
|
|
|
|
deleteItemAsk:'是否删除此工艺路线工序?', |
|
|
|
|
|
inAvailableResource:'请选择可选机台:', |
|
|
|
|
|
inTool:'请选择工具!', |
|
|
|
|
|
chooseItem:'请选择工序号!', |
|
|
|
|
|
inToolId:'请输入工具编号!', |
|
|
|
|
|
inToolQty:'请输入工具数量!', |
|
|
|
|
|
deleteToolAsk:'是否删除此工具信息?', |
|
|
|
|
|
deleteResourceAsk:'是否删除机台', |
|
|
|
|
|
chooseResourceCan:'请选择可选机台', |
|
|
|
|
|
partNoNot:'该物料编码不存在', |
|
|
|
|
|
partNoNO1:'该物料状态为', |
|
|
|
|
|
partNoNO2:',不需要修改!', |
|
|
|
|
|
cannottongbu:'特殊订单无法同步!', |
|
|
|
|
|
orderAsk:'确定要把该工艺路线同步到该产品的未开工生产订单上吗?', |
|
|
|
|
|
orderContinue:'个生产订单将会被同步是否继续?', |
|
|
|
|
|
inNewPartNo:'请输入新物料号!', |
|
|
|
|
|
inNewRevNo:'请输入新版本号!', |
|
|
|
|
|
inNewPhaseInDate:'请选择新启用日期!', |
|
|
|
|
|
defaultflagAsk:'是否将此工艺路线版本设为默认?', |
|
|
|
|
|
|
|
|
site: '工厂编号:', |
|
|
|
|
|
partNo: '物料编码:', |
|
|
|
|
|
spec: '物料名称/规格型号:', |
|
|
|
|
|
status: '状态:', |
|
|
|
|
|
routingType: '工艺路线类型:', |
|
|
|
|
|
revNo: '版本号:', |
|
|
|
|
|
phaseInDate: '启用日期:', |
|
|
|
|
|
phaseOutDate: '停用日期:', |
|
|
|
|
|
umid: '计量单位:', |
|
|
|
|
|
remark: '备注:', |
|
|
|
|
|
defaultflag: '默认:', |
|
|
|
|
|
repairFlag: '修复版本:', |
|
|
|
|
|
detail: '明细', |
|
|
|
|
|
toolDetail: '工具清单', |
|
|
|
|
|
dataList: '数据表', |
|
|
|
|
|
do: '操作', |
|
|
|
|
|
itemNo: '工序号:', |
|
|
|
|
|
operationDesc: '工序名称:', |
|
|
|
|
|
workCenterNo: '加工中心编码:', |
|
|
|
|
|
machSetupTime: '准备时间:', |
|
|
|
|
|
machRunFactor: '单位产出量:', |
|
|
|
|
|
factorUnit: '产出单位:', |
|
|
|
|
|
jjgzUnitPrice: '计价单价:', |
|
|
|
|
|
jjgzUnitFactor: '单位:', |
|
|
|
|
|
efficiency: '效率:', |
|
|
|
|
|
crewsize: '操作工人数:', |
|
|
|
|
|
updateRoutingTool: '维护工艺路线工具', |
|
|
|
|
|
toolID: '工具编号:', |
|
|
|
|
|
toolDescription: '工具名称:', |
|
|
|
|
|
spec2: '规格型号:', |
|
|
|
|
|
toolQty: '工具数量:', |
|
|
|
|
|
availableResource: '可用机台', |
|
|
|
|
|
chooseableResource: '可选机台', |
|
|
|
|
|
choosedResource: '已选机台:', |
|
|
|
|
|
partDescription: '物料名称:', |
|
|
|
|
|
createDate: '新增日期:', |
|
|
|
|
|
active: '在用:', |
|
|
|
|
|
configurationTemplateID: '客户名称:', |
|
|
|
|
|
partNo2: '客户产品料号:', |
|
|
|
|
|
partDesc: '物料信息:', |
|
|
|
|
|
oneandtime: '单位/小时', |
|
|
|
|
|
time: '小时', |
|
|
|
|
|
one: '件', |
|
|
|
|
|
changeStatus: '更改状态', |
|
|
|
|
|
test: '试验', |
|
|
|
|
|
product: '投产', |
|
|
|
|
|
stopUse: '停用', |
|
|
|
|
|
copyRouting: '复制产品工艺路线', |
|
|
|
|
|
oldRouting: '源产品工艺路线', |
|
|
|
|
|
partNo3: '工艺路线编码:', |
|
|
|
|
|
partDescription2: '工艺路线名称:', |
|
|
|
|
|
newRouting: '新产品工艺路线', |
|
|
|
|
|
chooseDate: '选择日期', |
|
|
|
|
|
oldFlag: '自动停用早期所有版本:', |
|
|
|
|
|
toolFlag: '复制工具信息:', |
|
|
|
|
|
resourceFlag: '复制可用机台:', |
|
|
|
|
|
updateRouting: '维护工艺路线', |
|
|
|
|
|
yes: '是', |
|
|
|
|
|
no: '否', |
|
|
|
|
|
error: '错误', |
|
|
|
|
|
true: '确定', |
|
|
|
|
|
inRoutingNo: '请输入工艺路线号!', |
|
|
|
|
|
inRevNo: '请输入版本号!', |
|
|
|
|
|
inPhaseInDate: '请选择启用日期!', |
|
|
|
|
|
doYes: '操作成功!', |
|
|
|
|
|
cancel: '取消', |
|
|
|
|
|
deleteRoutingAsk: '是否删除此工艺路线的所有数据?', |
|
|
|
|
|
point: '提示', |
|
|
|
|
|
inPartNo: '请选择物料编码!', |
|
|
|
|
|
inItemNo: '请输入工序号!', |
|
|
|
|
|
inOperationDesc: '请输入工序名称!', |
|
|
|
|
|
inMachSetupTime: '请输入准备时间!', |
|
|
|
|
|
inWorkCenterNo: '请输入加工中心编码!', |
|
|
|
|
|
inJjgzUnitPrice: '请输入计价单价!', |
|
|
|
|
|
inCrewsize: '请输入操作员人数!', |
|
|
|
|
|
inEfficiency: '请输入效率!', |
|
|
|
|
|
efficiencyAsk: '效率必须大于0!', |
|
|
|
|
|
inRoutingItem: '请选择工艺路线工序!', |
|
|
|
|
|
deleteItemAsk: '是否删除此工艺路线工序?', |
|
|
|
|
|
inAvailableResource: '请选择可选机台:', |
|
|
|
|
|
inTool: '请选择工具!', |
|
|
|
|
|
chooseItem: '请选择工序号!', |
|
|
|
|
|
inToolId: '请输入工具编号!', |
|
|
|
|
|
inToolQty: '请输入工具数量!', |
|
|
|
|
|
deleteToolAsk: '是否删除此工具信息?', |
|
|
|
|
|
deleteResourceAsk: '是否删除机台', |
|
|
|
|
|
chooseResourceCan: '请选择可选机台', |
|
|
|
|
|
partNoNot: '该物料编码不存在', |
|
|
|
|
|
partNoNO1: '该物料状态为', |
|
|
|
|
|
partNoNO2: ',不需要修改!', |
|
|
|
|
|
cannottongbu: '特殊订单无法同步!', |
|
|
|
|
|
orderAsk: '确定要把该工艺路线同步到该产品的未开工生产订单上吗?', |
|
|
|
|
|
orderContinue: '个生产订单将会被同步是否继续?', |
|
|
|
|
|
inNewPartNo: '请输入新物料号!', |
|
|
|
|
|
inNewRevNo: '请输入新版本号!', |
|
|
|
|
|
inNewPhaseInDate: '请选择新启用日期!', |
|
|
|
|
|
defaultflagAsk: '是否将此工艺路线版本设为默认?', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
buttons:{ |
|
|
|
|
|
search:'查询', |
|
|
|
|
|
getPartDetail:'物料信息', |
|
|
|
|
|
changeStatus:'更改状态', |
|
|
|
|
|
download:'导出', |
|
|
|
|
|
tongBuOrder:'同步工艺路线到订单', |
|
|
|
|
|
setDefault:'设为默认', |
|
|
|
|
|
copyRouting:'复制产品工艺路线', |
|
|
|
|
|
add:'新增', |
|
|
|
|
|
close:'关闭', |
|
|
|
|
|
update:'修改', |
|
|
|
|
|
delete:'删除', |
|
|
|
|
|
workCenter:'加工中心', |
|
|
|
|
|
availableResource:'可用机台', |
|
|
|
|
|
toolDetail:'工具信息', |
|
|
|
|
|
save:'保存', |
|
|
|
|
|
addResource:'添加机台', |
|
|
|
|
|
deleteResource:'删除机台', |
|
|
|
|
|
|
|
|
buttons: { |
|
|
|
|
|
search: '查询', |
|
|
|
|
|
getPartDetail: '物料信息', |
|
|
|
|
|
changeStatus: '更改状态', |
|
|
|
|
|
download: '导出', |
|
|
|
|
|
tongBuOrder: '同步工艺路线到订单', |
|
|
|
|
|
setDefault: '设为默认', |
|
|
|
|
|
copyRouting: '复制产品工艺路线', |
|
|
|
|
|
add: '新增', |
|
|
|
|
|
close: '关闭', |
|
|
|
|
|
update: '修改', |
|
|
|
|
|
delete: '删除', |
|
|
|
|
|
workCenter: '加工中心', |
|
|
|
|
|
availableResource: '可用机台', |
|
|
|
|
|
toolDetail: '工具信息', |
|
|
|
|
|
save: '保存', |
|
|
|
|
|
addResource: '添加机台', |
|
|
|
|
|
deleteResource: '删除机台', |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
queryButton: { |
|
|
queryButton: { |
|
|
@ -1585,8 +1608,8 @@ |
|
|
authAdd: false, |
|
|
authAdd: false, |
|
|
authDelete: false, |
|
|
authDelete: false, |
|
|
menuId: this.$route.meta.menuId, |
|
|
menuId: this.$route.meta.menuId, |
|
|
jumpFlag:true, |
|
|
|
|
|
jumpFlag2:true, |
|
|
|
|
|
|
|
|
jumpFlag: true, |
|
|
|
|
|
jumpFlag2: true, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
@ -1689,7 +1712,7 @@ |
|
|
if (data && data.code == 200) { |
|
|
if (data && data.code == 200) { |
|
|
this.searchRoutingWithPartNo(); |
|
|
this.searchRoutingWithPartNo(); |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg,this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -2040,7 +2063,7 @@ |
|
|
this.resourceList2 = data.rows |
|
|
this.resourceList2 = data.rows |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg,this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -2217,12 +2240,12 @@ |
|
|
}, |
|
|
}, |
|
|
deleteResource() { |
|
|
deleteResource() { |
|
|
if (this.currentRow4 == null) { |
|
|
if (this.currentRow4 == null) { |
|
|
this.$alert(this.labels.chooseResourceCan,this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(this.labels.chooseResourceCan, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
this.$confirm(this.labels.deleteResourceAsk,this.labels.point, { |
|
|
|
|
|
|
|
|
this.$confirm(this.labels.deleteResourceAsk, this.labels.point, { |
|
|
confirmButtonText: this.labels.true, |
|
|
confirmButtonText: this.labels.true, |
|
|
cancelButtonText: this.labels.cancel, |
|
|
cancelButtonText: this.labels.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -2257,7 +2280,7 @@ |
|
|
}, |
|
|
}, |
|
|
jumpWorkCenter() { |
|
|
jumpWorkCenter() { |
|
|
if (this.currentRow == null) { |
|
|
if (this.currentRow == null) { |
|
|
this.$alert( this.labels.inRoutingItem, this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(this.labels.inRoutingItem, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
@ -2320,7 +2343,7 @@ |
|
|
}, |
|
|
}, |
|
|
saveStatus() { |
|
|
saveStatus() { |
|
|
if (this.status == this.mainData.status) { |
|
|
if (this.status == this.mainData.status) { |
|
|
this.$alert(this.labels.partNoNO1+ this.status + this.labels.partNoNO2, this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(this.labels.partNoNO1 + this.status + this.labels.partNoNO2, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
@ -2363,7 +2386,7 @@ |
|
|
}) |
|
|
}) |
|
|
this.$message.success(this.labels.doYes) |
|
|
this.$message.success(this.labels.doYes) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg,this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -2395,7 +2418,7 @@ |
|
|
} |
|
|
} |
|
|
checkRoutingAndOrder(inData).then(({data}) => { |
|
|
checkRoutingAndOrder(inData).then(({data}) => { |
|
|
if (data && data.code == 200) { |
|
|
if (data && data.code == 200) { |
|
|
this.$confirm( data.obj + this.labels.orderContinue, this.labels.point, { |
|
|
|
|
|
|
|
|
this.$confirm(data.obj + this.labels.orderContinue, this.labels.point, { |
|
|
confirmButtonText: this.labels.true, |
|
|
confirmButtonText: this.labels.true, |
|
|
cancelButtonText: this.labels.cancel, |
|
|
cancelButtonText: this.labels.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -2411,7 +2434,7 @@ |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg,this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -2514,7 +2537,6 @@ |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
this.$message.success(this.labels.doYes) |
|
|
this.$message.success(this.labels.doYes) |
|
|
|
|
|
|
|
|
let row = { |
|
|
let row = { |
|
|
partNo: this.copyRoutingData.partNo1, |
|
|
partNo: this.copyRoutingData.partNo1, |
|
|
site: this.mainData.site, |
|
|
site: this.mainData.site, |
|
|
@ -2522,7 +2544,7 @@ |
|
|
} |
|
|
} |
|
|
this.tableHanddle(row) |
|
|
this.tableHanddle(row) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg,this.labels.error, { |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.labels.error, { |
|
|
confirmButtonText: this.labels.true |
|
|
confirmButtonText: this.labels.true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -2549,7 +2571,7 @@ |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
this.$confirm( this.labels.defaultflagAsk, this.labels.point, { |
|
|
|
|
|
|
|
|
this.$confirm(this.labels.defaultflagAsk, this.labels.point, { |
|
|
confirmButtonText: this.labels.true, |
|
|
confirmButtonText: this.labels.true, |
|
|
cancelButtonText: this.labels.cancel, |
|
|
cancelButtonText: this.labels.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -2574,12 +2596,12 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
//获取按钮的权限数据 |
|
|
//获取按钮的权限数据 |
|
|
getButtonAuthData(){ |
|
|
|
|
|
let updateFlag = this.isAuth(this.menuId+":revise"); |
|
|
|
|
|
let fullControFlag = this.isAuth(this.menuId+":fullContro"); |
|
|
|
|
|
let deleteFlag = this.isAuth(this.menuId+":remove"); |
|
|
|
|
|
|
|
|
getButtonAuthData() { |
|
|
|
|
|
let updateFlag = this.isAuth(this.menuId + ":revise"); |
|
|
|
|
|
let fullControFlag = this.isAuth(this.menuId + ":fullContro"); |
|
|
|
|
|
let deleteFlag = this.isAuth(this.menuId + ":remove"); |
|
|
//处理页面的权限数据 |
|
|
//处理页面的权限数据 |
|
|
this.authEdit = !updateFlag ||!fullControFlag; |
|
|
|
|
|
|
|
|
this.authEdit = !updateFlag || !fullControFlag; |
|
|
this.authAdd = !fullControFlag; |
|
|
this.authAdd = !fullControFlag; |
|
|
this.authDelete = !deleteFlag; |
|
|
this.authDelete = !deleteFlag; |
|
|
|
|
|
|
|
|
@ -2622,7 +2644,7 @@ |
|
|
this.getButtonAuthData(); |
|
|
this.getButtonAuthData(); |
|
|
this.getMultiLanguageList()//刷新按钮 |
|
|
this.getMultiLanguageList()//刷新按钮 |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|