Browse Source

复制工艺路线后,工艺路线界面显示为新料号的信息 2022年12月20日 sxm

master
[li_she] 3 years ago
parent
commit
75171f0c99
  1. 66
      src/views/modules/base/maintainProductRouting.vue

66
src/views/modules/base/maintainProductRouting.vue

@ -13,9 +13,11 @@
</el-form-item>
<el-form-item :label="labels.site">
<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 @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-form-item>
</el-form>
@ -34,7 +36,8 @@
</el-form-item>
<el-form-item :label="labels.umid">
<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-form-item>
</el-form>
@ -49,23 +52,31 @@
</el-form-item>
<el-form-item :label="labels.repairFlag" style="margin-left: 20px">
<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-form-item>
</el-form>
<el-tabs v-model="activeName">
<el-tab-pane :label="labels.detail" name="first">
<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 @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 @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 @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 @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-form>
<el-table
@ -96,13 +107,17 @@
</el-tab-pane>
<el-tab-pane :label="labels.toolDetail" name="second">
<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 @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 @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 @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-form>
<el-table
@ -153,8 +168,10 @@
width="150"
:label="labels.do">
<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>
</el-table-column>
<el-table-column
@ -178,7 +195,8 @@
<el-button type="primary" @click="modelFlag = false">{{ buttons.close }}</el-button>
</el-footer>
</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-item :label="labels.itemNo">
<el-input v-model="detailData.itemNo" :disabled="detailmodelInputFlag" style="width: 130px;text-align: right"
@ -233,7 +251,8 @@
<el-button type="primary" @click="detailmodelFlag = false">{{ buttons.close }}</el-button>
</el-footer>
</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-item :label="labels.itemNo">
<el-select v-model="toolData.itemNo" @change="getOperationDesc()" :disabled="toolmodelInputFlag"
@ -277,7 +296,8 @@
<el-button type="primary" @click="ToolmodelFlag = false">{{ buttons.close }}</el-button>
</el-footer>
</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-main style="width: 300px">
<span style="">{{ labels.chooseableResource }}</span>
@ -398,7 +418,8 @@
</el-footer>
</el-form>
</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-main style="width: 450px;margin-top: -20px">
<fieldset style="margin-left: 0px; margin-top: 0px; width: 420px;">
@ -481,7 +502,8 @@
<el-button type="primary" @click="copyRoutingModelFlag = false">{{ buttons.close }}</el-button>
</el-footer>
</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-item>
<span slot="label" style="" @click="getBaseList(5,2)"><a herf="#">{{ labels.partNo3 }}</a></span>
@ -578,6 +600,7 @@
searchFunctionButtonList,
} from "@/api/sysLanguage.js"
var functionId = '103006';
export default {
name: "maintainProductRouting",
@ -2514,7 +2537,6 @@
})
this.$message.success(this.labels.doYes)
let row = {
partNo: this.copyRoutingData.partNo1,
site: this.mainData.site,

Loading…
Cancel
Save