|
|
@ -489,18 +489,15 @@ |
|
|
|
|
|
|
|
|
<!-- 子明细新增模态框 --> |
|
|
<!-- 子明细新增模态框 --> |
|
|
<el-dialog title="工序" :close-on-click-modal="false" v-drag :visible.sync="componentSaveModal" width="500px"> |
|
|
<el-dialog title="工序" :close-on-click-modal="false" v-drag :visible.sync="componentSaveModal" width="500px"> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
<el-form-item :label="'工序编码'" prop="operationNo" :rules="componentRules.operationNo"> |
|
|
<el-form-item :label="'工序编码'" prop="operationNo" :rules="componentRules.operationNo"> |
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.operationNo" |
|
|
|
|
|
style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.operationNo" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'工序名称'" prop="operationName" :rules="componentRules.operationName"> |
|
|
<el-form-item :label="'工序名称'" prop="operationName" :rules="componentRules.operationName"> |
|
|
<el-input v-model="componentData.operationName" style="width: 221px"></el-input> |
|
|
<el-input v-model="componentData.operationName" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
<el-form-item prop="workCenterNo" :rules="componentRules.workCenterNo"> |
|
|
<el-form-item prop="workCenterNo" :rules="componentRules.workCenterNo"> |
|
|
<span style="cursor: pointer" slot="label" @click="queryWorkCenter"><a herf="#">加工中心编码</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="queryWorkCenter"><a herf="#">加工中心编码</a></span> |
|
|
<el-input v-model="componentData.workCenterNo" @blur="workCenterBlur(119)" style="width: 103px"></el-input> |
|
|
<el-input v-model="componentData.workCenterNo" @blur="workCenterBlur(119)" style="width: 103px"></el-input> |
|
|
@ -512,48 +509,36 @@ |
|
|
<el-input v-model="componentData.workCenterDesc" disabled style="width: 221px"></el-input> |
|
|
<el-input v-model="componentData.workCenterDesc" disabled style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
<el-form-item :label="'机器调机时间'" prop="machSetupTime" :rules="componentRules.machSetupTime"> |
|
|
<el-form-item :label="'机器调机时间'" prop="machSetupTime" :rules="componentRules.machSetupTime"> |
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.machSetupTime" |
|
|
|
|
|
@change="changeMachSetupTime" style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.machSetupTime" @change="changeMachSetupTime" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'人工调机时间'" prop="laborSetupTime" :rules="componentRules.laborSetupTime"> |
|
|
<el-form-item :label="'人工调机时间'" prop="laborSetupTime" :rules="componentRules.laborSetupTime"> |
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.laborSetupTime" |
|
|
|
|
|
style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.laborSetupTime" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
<el-form-item style="margin-left: 235px" prop="setupLaborClassNo" :rules="componentRules.setupLaborClassNo"> |
|
|
<el-form-item style="margin-left: 235px" prop="setupLaborClassNo" :rules="componentRules.setupLaborClassNo"> |
|
|
<span style="cursor: pointer" slot="label" @click="queryWorkerLevel1()"><a |
|
|
<span style="cursor: pointer" slot="label" @click="queryWorkerLevel1()"><a |
|
|
herf="#">调机过程中人员等级</a></span> |
|
|
herf="#">调机过程中人员等级</a></span> |
|
|
<el-input v-model="componentData.setupLaborClassNo" @blur="setupLaborClassBlur(118)" |
|
|
|
|
|
style="width: 90px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="componentData.setupLaborClassNo" @blur="setupLaborClassBlur(118)" style="width: 90px"></el-input> |
|
|
<el-input v-model="componentData.setupLaborClassDesc" disabled style="width: 127px"></el-input> |
|
|
<el-input v-model="componentData.setupLaborClassDesc" disabled style="width: 127px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
<el-form-item :label="'调机过程中人数'" style="margin-left: 235px" prop="setupCrewSize" |
|
|
|
|
|
:rules="componentRules.setupCrewSize"> |
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.setupCrewSize" |
|
|
|
|
|
style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
|
|
|
<el-form-item :label="'调机过程中人数'" style="margin-left: 235px" prop="setupCrewSize" :rules="componentRules.setupCrewSize"> |
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.setupCrewSize" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<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-form-item :label="'机器单位产出'" prop="machRunFactor" :rules="componentRules.machRunFactor"> |
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.machRunFactor" |
|
|
|
|
|
@change="changeMachRunFactor" style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.machRunFactor" @change="changeMachRunFactor" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'人工单位产出'" prop="laborRunFactor" :rules="componentRules.laborRunFactor"> |
|
|
<el-form-item :label="'人工单位产出'" prop="laborRunFactor" :rules="componentRules.laborRunFactor"> |
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.laborRunFactor" |
|
|
|
|
|
style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.laborRunFactor" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
<el-form-item :label="'产出单位'" prop="runTimeCode" :rules="componentRules.runTimeCode"> |
|
|
<el-form-item :label="'产出单位'" prop="runTimeCode" :rules="componentRules.runTimeCode"> |
|
|
<el-select v-model="componentData.runTimeCode" clearable style="width: 221px"> |
|
|
<el-select v-model="componentData.runTimeCode" clearable style="width: 221px"> |
|
|
<el-option label="单位/小时" value="Units/Hour"></el-option> |
|
|
<el-option label="单位/小时" value="Units/Hour"></el-option> |
|
|
@ -568,43 +553,36 @@ |
|
|
<el-input v-model="componentData.laborClassDesc" disabled style="width: 127px"></el-input> |
|
|
<el-input v-model="componentData.laborClassDesc" disabled style="width: 127px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" |
|
|
|
|
|
style="margin-left: 5px"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
<el-form-item :label="'效率%'" prop="efficiencyFactor" :rules="componentRules.efficiencyFactor"> |
|
|
<el-form-item :label="'效率%'" prop="efficiencyFactor" :rules="componentRules.efficiencyFactor"> |
|
|
<el-input-number :controls="false" :step="0" min="0" max="100" v-model="componentData.efficiencyFactor" |
|
|
|
|
|
style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" min="0" max="100" v-model="componentData.efficiencyFactor" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'生产过程中人数'" prop="crewSize" :rules="componentRules.crewSize"> |
|
|
<el-form-item :label="'生产过程中人数'" prop="crewSize" :rules="componentRules.crewSize"> |
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.crewSize" |
|
|
|
|
|
style="width: 221px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.crewSize" style="width: 221px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px"> |
|
|
<el-form-item :label="'外协采购料号'"> |
|
|
<el-form-item :label="'外协采购料号'"> |
|
|
<el-input v-model="componentData.outsideOpItem" :readonly="componentData.workCenterType !== '外部'" |
|
|
|
|
|
style="width: 456px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="componentData.outsideOpItem" :readonly="componentData.workCenterType !== '外部'" style="width: 456px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px"> |
|
|
<el-form-item label="备注"> |
|
|
<el-form-item label="备注"> |
|
|
<el-input type="textarea" v-model="componentData.noteText" :rows="3" resize='none' show-word-limit |
|
|
|
|
|
style="width: 456px;height: 20px"></el-input> |
|
|
|
|
|
|
|
|
<el-input type="textarea" v-model="componentData.noteText" :rows="3" resize='none' show-word-limit style="width: 456px;height: 20px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:35px;margin-top:65px;text-align:center"> |
|
|
<el-footer style="height:35px;margin-top:65px;text-align:center"> |
|
|
<el-button v-if="componentData.flag === '1'" type="primary" @click="componentDataSave(true)">应用</el-button> |
|
|
|
|
|
<el-button type="primary" @click="componentDataSave(false)">保存</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="componentData.flag === '1'" type="primary" :loading="saveComponentLoading" @click="componentDataSave(true)">应用</el-button> |
|
|
|
|
|
<el-button type="primary" :loading="saveComponentLoading" @click="componentDataSave(false)">保存</el-button> |
|
|
<el-button type="primary" @click="componentSaveModal = false">关闭</el-button> |
|
|
<el-button type="primary" @click="componentSaveModal = false">关闭</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- routingTool 新增模态框 --> |
|
|
<!-- routingTool 新增模态框 --> |
|
|
<el-dialog title="工艺工具" :close-on-click-modal="false" v-drag :visible.sync="saveRoutingToolModal" width="500px"> |
|
|
<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 :inline="true" label-position="top" :model="routingToolData" :rules="RoutingToolRules" style="margin-left: 5px"> |
|
|
<el-form-item :label="'替代'" prop="alternativeNo" :rules="RoutingToolRules.alternativeNo"> |
|
|
<el-form-item :label="'替代'" prop="alternativeNo" :rules="RoutingToolRules.alternativeNo"> |
|
|
<el-select v-model="routingToolData.alternativeNo" placeholder="请选择" |
|
|
|
|
|
:disabled="saveRoutingToolDisableModal" style="width: 464px"> |
|
|
|
|
|
|
|
|
<el-select v-model="routingToolData.alternativeNo" placeholder="请选择" :disabled="saveRoutingToolDisableModal" style="width: 464px"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="i in alternativeList" |
|
|
v-for="i in alternativeList" |
|
|
:key="i.alternativeNo" |
|
|
:key="i.alternativeNo" |
|
|
@ -619,32 +597,25 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</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 style="cursor: pointer" slot="label" v-if="saveRoutingToolDisableModal === false" |
|
|
|
|
|
@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" |
|
|
|
|
|
@change="routingToolOperationBlur()" 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-input v-model="routingToolData.operationName" disabled style="width: 340px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</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" slot="label" v-if="!saveRoutingToolDisableModal" |
|
|
|
|
|
@click="queryToolList()"><a>工具</a></span> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" v-if="!saveRoutingToolDisableModal" @click="queryToolList()"><a>工具</a></span> |
|
|
<span v-else slot="label">工具</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.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> |
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="routingToolData" style="margin-left: 5px"> |
|
|
<el-form-item :label="'工具数量'" prop="toolQty" :rules="RoutingToolRules.toolQty"> |
|
|
<el-form-item :label="'工具数量'" prop="toolQty" :rules="RoutingToolRules.toolQty"> |
|
|
<el-input-number :controls="false" :step="0" v-model="routingToolData.toolQty" |
|
|
|
|
|
style="width: 120px"></el-input-number> |
|
|
|
|
|
|
|
|
<el-input-number :controls="false" :step="0" v-model="routingToolData.toolQty" style="width: 120px"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'备注'"> |
|
|
<el-form-item :label="'备注'"> |
|
|
<el-input v-model="routingToolData.remark" style="width: 340px;margin-left: -10px"></el-input> |
|
|
<el-input v-model="routingToolData.remark" style="width: 340px;margin-left: -10px"></el-input> |
|
|
@ -657,8 +628,7 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- copyRouting --> |
|
|
<!-- copyRouting --> |
|
|
<el-dialog title="Copy Structure Revision" :close-on-click-modal="false" v-drag :visible.sync="copyRoutingModelFlag" |
|
|
|
|
|
width="450px"> |
|
|
|
|
|
|
|
|
<el-dialog title="Copy Structure Revision" :close-on-click-modal="false" v-drag :visible.sync="copyRoutingModelFlag" width="450px"> |
|
|
<fieldset style="width: 426px"> |
|
|
<fieldset style="width: 426px"> |
|
|
<legend>Source Revision</legend> |
|
|
<legend>Source Revision</legend> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
@ -682,12 +652,10 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="生效日期"> |
|
|
<el-form-item label="生效日期"> |
|
|
<el-date-picker style="width: 185px" v-model="modalData.phaseInDate" readonly type="date" |
|
|
|
|
|
value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
|
|
|
|
<el-date-picker style="width: 185px" v-model="modalData.phaseInDate" readonly type="date" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="失效日期"> |
|
|
<el-form-item label="失效日期"> |
|
|
<el-date-picker style="width: 185px" v-model="modalData.phaseOutDate" readonly type="date" |
|
|
|
|
|
value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
|
|
|
|
<el-date-picker style="width: 185px" v-model="modalData.phaseOutDate" readonly type="date" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -714,19 +682,16 @@ |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
<fieldset style="width: 426px"> |
|
|
<fieldset style="width: 426px"> |
|
|
<legend>Destination Revision</legend> |
|
|
<legend>Destination Revision</legend> |
|
|
<el-form :inline="true" label-position="top" :model="copyRoutingData" |
|
|
|
|
|
style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="copyRoutingData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" @click="queryCopyPartModal"><a herf="#">物料编码</a></span> |
|
|
<span slot="label" @click="queryCopyPartModal"><a herf="#">物料编码</a></span> |
|
|
<el-input v-model="copyRoutingData.partNo" @change="copyRoutingTypeChange" @blur="copyPartBlur" |
|
|
|
|
|
style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="copyRoutingData.partNo" @change="copyRoutingTypeChange" @blur="copyPartBlur" style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'物料名称'"> |
|
|
<el-form-item :label="'物料名称'"> |
|
|
<el-input v-model="copyRoutingData.partDesc" disabled style="width: 249px"></el-input> |
|
|
<el-input v-model="copyRoutingData.partDesc" disabled style="width: 249px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="copyRoutingData" |
|
|
|
|
|
style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="copyRoutingData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="Site"> |
|
|
<el-form-item label="Site"> |
|
|
<el-input v-model="copyRoutingData.site" disabled style="width: 85px"></el-input> |
|
|
<el-input v-model="copyRoutingData.site" disabled style="width: 85px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -741,15 +706,12 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="copyRoutingData" |
|
|
|
|
|
style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="copyRoutingData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="生效日期"> |
|
|
<el-form-item label="生效日期"> |
|
|
<el-date-picker style="width: 185px" v-model="copyRoutingData.phaseInDate" type="date" |
|
|
|
|
|
value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker> |
|
|
|
|
|
|
|
|
<el-date-picker style="width: 185px" v-model="copyRoutingData.phaseInDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="失效日期"> |
|
|
<el-form-item label="失效日期"> |
|
|
<el-date-picker style="width: 185px" v-model="copyRoutingData.phaseOutDate" type="date" |
|
|
|
|
|
value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker> |
|
|
|
|
|
|
|
|
<el-date-picker style="width: 185px" v-model="copyRoutingData.phaseOutDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
@ -760,8 +722,7 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- copyAlternative --> |
|
|
<!-- copyAlternative --> |
|
|
<el-dialog title="Copy Alternate" :close-on-click-modal="false" v-drag :visible.sync="copyAlternativeModelFlag" |
|
|
|
|
|
width="450px"> |
|
|
|
|
|
|
|
|
<el-dialog title="Copy Alternate" :close-on-click-modal="false" v-drag :visible.sync="copyAlternativeModelFlag" width="450px"> |
|
|
<fieldset style="width: 426px"> |
|
|
<fieldset style="width: 426px"> |
|
|
<legend>Source Revision</legend> |
|
|
<legend>Source Revision</legend> |
|
|
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
@ -1350,6 +1311,7 @@ export default { |
|
|
workCenterModelFlag: false, |
|
|
workCenterModelFlag: false, |
|
|
workerLevelModelFlag1: false, |
|
|
workerLevelModelFlag1: false, |
|
|
workerLevelModelFlag2: false, |
|
|
workerLevelModelFlag2: false, |
|
|
|
|
|
saveComponentLoading: false, |
|
|
// 初始页签 |
|
|
// 初始页签 |
|
|
detailTable: 'routing_detail', |
|
|
detailTable: 'routing_detail', |
|
|
subDetailTable: 'routing_sub_detail', |
|
|
subDetailTable: 'routing_sub_detail', |
|
|
@ -4168,6 +4130,7 @@ export default { |
|
|
this.$message.warning('请填写生产过程中人数!') |
|
|
this.$message.warning('请填写生产过程中人数!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
this.saveComponentLoading = true |
|
|
if (this.componentData.flag === '1') { |
|
|
if (this.componentData.flag === '1') { |
|
|
saveRoutingComponent(this.componentData).then(({data}) => { |
|
|
saveRoutingComponent(this.componentData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
@ -4177,36 +4140,42 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.componentSaveModal = false |
|
|
this.componentSaveModal = false |
|
|
} |
|
|
} |
|
|
|
|
|
this.saveComponentLoading = false |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '操作成功', |
|
|
message: '操作成功', |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
duration: 1500, |
|
|
duration: 1500, |
|
|
onClose: () => { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onClose: () => {} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.saveComponentLoading = false |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
this.saveComponentLoading = false |
|
|
}) |
|
|
}) |
|
|
} else if (this.componentData.flag === '2') { |
|
|
} else if (this.componentData.flag === '2') { |
|
|
updateRoutingComponent(this.componentData).then(({data}) => { |
|
|
updateRoutingComponent(this.componentData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.subDetailList = data.rows |
|
|
this.subDetailList = data.rows |
|
|
this.componentSaveModal = false |
|
|
this.componentSaveModal = false |
|
|
|
|
|
this.saveComponentLoading = false |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '操作成功', |
|
|
message: '操作成功', |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
duration: 1500, |
|
|
duration: 1500, |
|
|
onClose: () => { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onClose: () => {} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.saveComponentLoading = false |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
this.saveComponentLoading = false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|