|
|
@ -85,7 +85,7 @@ |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
|
|
|
|
|
|
<!-- routing新增/编辑模态框 --> |
|
|
<!-- routing新增/编辑模态框 --> |
|
|
<el-dialog :close-on-click-modal="false" v-drag :before-close="closeModalX" :visible.sync="modalFlag" width="1000px"> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" v-drag :before-close="closeModalX" :visible.sync="modalFlag" width="1110px"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 5px"> |
|
|
<el-form-item prop="partNo" :rules="rules.partNo"> |
|
|
<el-form-item prop="partNo" :rules="rules.partNo"> |
|
|
<span v-if="!modalDisableFlag" slot="label" @click="queryPartList()"><a herf="#">物料编码</a></span> |
|
|
<span v-if="!modalDisableFlag" slot="label" @click="queryPartList()"><a herf="#">物料编码</a></span> |
|
|
@ -96,36 +96,34 @@ |
|
|
<el-input v-model="modalData.partDesc" disabled style="width: 221px"></el-input> |
|
|
<el-input v-model="modalData.partDesc" disabled style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'工艺类型'" prop="routingType" :rules="rules.routingType"> |
|
|
<el-form-item :label="'工艺类型'" prop="routingType" :rules="rules.routingType"> |
|
|
<el-select v-model="modalData.routingType" :disabled="modalDisableFlag" style="width: 142px"> |
|
|
|
|
|
|
|
|
<el-select v-model="modalData.routingType" :disabled="modalDisableFlag" style="width: 221px"> |
|
|
<el-option label="制造" value="manufacturing"></el-option> |
|
|
<el-option label="制造" value="manufacturing"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="开始时间" prop="phaseInDate" :rules="rules.phaseInDate"> |
|
|
|
|
|
|
|
|
<el-form-item label="开始日期" prop="phaseInDate" :rules="rules.phaseInDate"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
style="width: 221px" |
|
|
style="width: 221px" |
|
|
v-model="modalData.phaseInDate" |
|
|
v-model="modalData.phaseInDate" |
|
|
type="datetime" |
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
|
format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
|
placeholder="请选择时间" |
|
|
|
|
|
|
|
|
type="date" |
|
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
|
placeholder="请选择日期" |
|
|
:editable=false> |
|
|
:editable=false> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="结束时间" prop="phaseOutDate" :rules="rules.phaseOutDate"> |
|
|
|
|
|
|
|
|
<el-form-item label="结束日期" prop="phaseOutDate" :rules="rules.phaseOutDate"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
style="width: 221px" |
|
|
style="width: 221px" |
|
|
v-model="modalData.phaseOutDate" |
|
|
v-model="modalData.phaseOutDate" |
|
|
type="datetime" |
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
|
format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
|
placeholder="请选择时间" |
|
|
|
|
|
|
|
|
type="date" |
|
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
|
placeholder="请选择日期" |
|
|
:editable=false> |
|
|
:editable=false> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'Routing版本号'" prop="routingRevision" :rules="rules.routingRevision"> |
|
|
<el-form-item :label="'Routing版本号'" prop="routingRevision" :rules="rules.routingRevision"> |
|
|
<el-input v-model="modalData.routingRevision" :disabled="modalDisableFlag" style="width: 142px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.routingRevision" :disabled="modalDisableFlag" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-if="!modalDisableFlag"> |
|
|
<el-form-item v-if="!modalDisableFlag"> |
|
|
<el-button :loading="saveHeaderLoading" type="primary" @click="saveRoutingHeader()" style="margin-top: 23px;width: 142px">保存</el-button> |
|
|
<el-button :loading="saveHeaderLoading" type="primary" @click="saveRoutingHeader()" style="margin-top: 23px;width: 142px">保存</el-button> |
|
|
@ -133,10 +131,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-input type="textarea" v-model="modalData.noteText" :rows="3" resize='none' maxlength="300" show-word-limit style="width: 925px;height: 20px"></el-input> |
|
|
|
|
|
|
|
|
<el-input type="textarea" v-model="modalData.noteText" :rows="3" resize='none' show-word-limit style="width: 1082px;height: 20px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-tabs v-model="detailTable" style="margin-top: 65px; width: 100%; min-height: 120px" type="border-card" @tab-click="tabDetailClick" class="detail-tab"> |
|
|
|
|
|
|
|
|
<el-tabs v-model="detailTable" style="margin-top: 50px; width: 100%; min-height: 120px" type="border-card" @tab-click="tabDetailClick" class="detail-tab"> |
|
|
<!-- Routing明细信息页签 --> |
|
|
<!-- Routing明细信息页签 --> |
|
|
<el-tab-pane label="Product Structure" name="routing_detail"> |
|
|
<el-tab-pane label="Product Structure" name="routing_detail"> |
|
|
<el-form label-position="top" style="margin-top: -10px"> |
|
|
<el-form label-position="top" style="margin-top: -10px"> |
|
|
@ -157,12 +155,12 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'替代名称'"> |
|
|
<el-form-item :label="'替代名称'"> |
|
|
<el-input v-model="detailData.alternativeDescription" disabled style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="detailData.alternativeDescription" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px"> |
|
|
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px"> |
|
|
<el-form-item label="备注"> |
|
|
<el-form-item label="备注"> |
|
|
<el-input type="textarea" v-model="detailData.detailNoteText" :rows="3" resize='none' maxlength="300" show-word-limit style="width: 925px;height: 20px"></el-input> |
|
|
|
|
|
|
|
|
<el-input type="textarea" v-model="detailData.detailNoteText" :rows="3" resize='none' show-word-limit style="width: 1073px;height: 20px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
@ -323,75 +321,79 @@ |
|
|
<!-- 子明细新增模态框 --> |
|
|
<!-- 子明细新增模态框 --> |
|
|
<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 prop="operationId" :rules="componentRules.operationId"> |
|
|
|
|
|
<span v-if="!componentDisableFlag" slot="label" @click="queryOperationList()"><a herf="#">工序号</a></span> |
|
|
|
|
|
<span v-if="componentDisableFlag" slot="label">工序号</span> |
|
|
|
|
|
<el-input v-model="componentData.operationId" :disabled="componentDisableFlag" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<!-- <el-form-item prop="operationId" :rules="componentRules.operationId">--> |
|
|
|
|
|
<!-- <span v-if="!componentDisableFlag" slot="label" @click="queryOperationList()"><a herf="#">工序号</a></span>--> |
|
|
|
|
|
<!-- <span v-if="componentDisableFlag" slot="label">工序号</span>--> |
|
|
|
|
|
<!-- <el-input v-model="componentData.operationId" :disabled="componentDisableFlag" style="width: 221px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
<el-form-item :label="'工序编码'" prop="operationNo" :rules="componentRules.operationNo"> |
|
|
|
|
|
<el-input v-model="componentData.operationNo" :disabled="componentDisableFlag" style="width: 221px"></el-input> |
|
|
</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" disabled style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="componentData.operationName" :disabled="componentDisableFlag" 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="operationNo" :rules="componentRules.operationNo"> |
|
|
|
|
|
<el-input v-model="componentData.operationNo" :disabled="componentDisableFlag" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" @click="getBaseList(103)"><a herf="#">加工中心</a></span> |
|
|
|
|
|
<el-input v-model="componentData.workCenterDesc" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<span slot="label" @click="getBaseList(119)"><a herf="#">加工中心编码</a></span> |
|
|
|
|
|
<el-input v-model="componentData.workCenterNo" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'加工中心名称'"> |
|
|
|
|
|
<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" style="margin-left: 5px"> |
|
|
<el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px"> |
|
|
<el-form-item :label="'机器效率'"> |
|
|
|
|
|
<el-input v-model="componentData.efficiencyFactor" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'机器效率%'"> |
|
|
|
|
|
<el-input class="numInput" v-model="componentData.efficiencyFactor" @input="handleInputB(componentData.efficiencyFactor,1)" type="number" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'机器运行速度'"> |
|
|
<el-form-item :label="'机器运行速度'"> |
|
|
<el-input v-model="componentData.machRunFactor" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input class="numInput" v-model="componentData.machRunFactor" @input="handleInput(componentData.machRunFactor,1)" type="number" style="width: 221px"></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 v-model="componentData.machSetupTime" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input class="numInput" v-model="componentData.machSetupTime" @input="handleInput(componentData.machSetupTime,2)" type="number" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'时长单位'"> |
|
|
|
|
|
<el-select v-model="componentData.runTimeCode" clearable style="width: 221px"> |
|
|
|
|
|
<el-option label="单位/小时" value="A"></el-option> |
|
|
|
|
|
<el-option label="小时/单位" value="B"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
<el-form-item :label="'调机过程中人数'"> |
|
|
|
|
|
<el-input class="numInput" v-model="componentData.setupCrewSize" @input="handleInput(componentData.setupCrewSize,3)" type="number" style="width: 221px"></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-input v-model="componentData.laborRunFactor" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" @click="getBaseList(118, 2)"><a herf="#">调机时的人员等级</a></span> |
|
|
|
|
|
<el-input v-model="componentData.setupLaborClassDesc" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'人工生产速度'"> |
|
|
|
|
|
<el-input v-model="componentData.laborSetupTime" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'人工效率%'"> |
|
|
|
|
|
<el-input class="numInput" v-model="componentData.laborRunFactor" @input="handleInputB(componentData.laborRunFactor,2)" type="number" style="width: 221px"></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 v-model="componentData.crewSize" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input class="numInput" v-model="componentData.crewSize" @input="handleInput(componentData.crewSize,4)" type="number" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'调机过程中人数'"> |
|
|
|
|
|
<el-input v-model="componentData.setupCrewSize" type="number" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'人工生产速度'"> |
|
|
|
|
|
<el-input class="numInput" v-model="componentData.laborSetupTime" @input="handleInput(componentData.laborSetupTime,5)" type="number" style="width: 221px"></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> |
|
|
|
|
|
<span slot="label" @click="getBaseList(118, 1)"><a herf="#">人员等级</a></span> |
|
|
|
|
|
<el-input v-model="componentData.laborClassDesc" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item :label="'外协采购料号'"> |
|
|
<el-form-item :label="'外协采购料号'"> |
|
|
<el-input v-model="componentData.outsideOpItem" style="width: 221px"></el-input> |
|
|
<el-input v-model="componentData.outsideOpItem" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'机台'"> |
|
|
|
|
|
<el-input v-model="componentData.machineNo" style="width: 221px"></el-input> |
|
|
|
|
|
</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> |
|
|
|
|
|
<span slot="label" @click="getBaseList(118, 1)"><a herf="#">人员等级</a></span> |
|
|
|
|
|
<el-input v-model="componentData.laborClassDesc" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'时长单位'"> |
|
|
|
|
|
<el-select v-model="componentData.runTimeCode" clearable style="width: 221px"> |
|
|
|
|
|
<el-option label="单位/小时" value="A"></el-option> |
|
|
|
|
|
<el-option label="小时/单位" value="B"></el-option> |
|
|
|
|
|
<el-option label="小时" value="C"></el-option> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" @click="getBaseList(118, 2)"><a herf="#">调机时的人员等级</a></span> |
|
|
|
|
|
<el-input v-model="componentData.setupLaborClassDesc" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'机台'"> |
|
|
|
|
|
<el-input v-model="componentData.machineNo" style="width: 221px"></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"> |
|
|
@ -795,24 +797,6 @@ export default { |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
columnSubDetailList: [ |
|
|
columnSubDetailList: [ |
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 104003, |
|
|
|
|
|
serialNumber: '104003Table2OperationId', |
|
|
|
|
|
tableId: '104003Table2', |
|
|
|
|
|
tableName: 'Routing工序表', |
|
|
|
|
|
columnProp: 'operationId', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '工序号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 80 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 104003, |
|
|
functionId: 104003, |
|
|
@ -1319,7 +1303,7 @@ export default { |
|
|
routingRevision: '', |
|
|
routingRevision: '', |
|
|
routingType: '', |
|
|
routingType: '', |
|
|
noteText: '', |
|
|
noteText: '', |
|
|
phaseInDate: '', |
|
|
|
|
|
|
|
|
phaseInDate: new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, ''), |
|
|
phaseOutDate: '', |
|
|
phaseOutDate: '', |
|
|
createBy: this.$store.state.user.name |
|
|
createBy: this.$store.state.user.name |
|
|
} |
|
|
} |
|
|
@ -1398,14 +1382,14 @@ export default { |
|
|
operationId: '', |
|
|
operationId: '', |
|
|
operationNo: '', |
|
|
operationNo: '', |
|
|
operationName: '', |
|
|
operationName: '', |
|
|
efficiencyFactor: '', |
|
|
|
|
|
|
|
|
efficiencyFactor: 100, |
|
|
machRunFactor: '', |
|
|
machRunFactor: '', |
|
|
machSetupTime: '', |
|
|
machSetupTime: '', |
|
|
runTimeCode: '', |
|
|
runTimeCode: '', |
|
|
laborRunFactor: '', |
|
|
|
|
|
|
|
|
laborRunFactor: 100, |
|
|
laborSetupTime: '', |
|
|
laborSetupTime: '', |
|
|
crewSize: '', |
|
|
crewSize: '', |
|
|
setupCrewSize: '', |
|
|
|
|
|
|
|
|
setupCrewSize: 1, |
|
|
outsideOpItem: '', |
|
|
outsideOpItem: '', |
|
|
machineNo: '', |
|
|
machineNo: '', |
|
|
workCenterNo: '', |
|
|
workCenterNo: '', |
|
|
@ -1790,14 +1774,14 @@ export default { |
|
|
this.$message.warning('请填写主记录Routing版本号!') |
|
|
this.$message.warning('请填写主记录Routing版本号!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.componentData.operationId === '' || this.componentData.operationId == null) { |
|
|
|
|
|
this.$message.warning('请选择工序号!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.componentData.operationNo === '' || this.componentData.operationNo == null) { |
|
|
if (this.componentData.operationNo === '' || this.componentData.operationNo == null) { |
|
|
this.$message.warning('请填写工序编码!') |
|
|
this.$message.warning('请填写工序编码!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.componentData.operationName === '' || this.componentData.operationName == null) { |
|
|
|
|
|
this.$message.warning('请选择工序名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (this.componentData.flag === '1') { |
|
|
if (this.componentData.flag === '1') { |
|
|
this.saveComponentLoading = true |
|
|
this.saveComponentLoading = true |
|
|
saveRoutingComponent(this.componentData).then(({data}) => { |
|
|
saveRoutingComponent(this.componentData).then(({data}) => { |
|
|
@ -2054,6 +2038,47 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// ======= 正则校验 ======= |
|
|
|
|
|
handleInput (value, type) { |
|
|
|
|
|
// 大于等于0,且只能输入4位小数 |
|
|
|
|
|
let val = value.replace(/^\D*([0-9]\d*\.?\d{0,4})?.*$/,'$1') |
|
|
|
|
|
if (val == null || val == undefined || val == '') { |
|
|
|
|
|
val = 0 |
|
|
|
|
|
} |
|
|
|
|
|
if (type === 1) { |
|
|
|
|
|
this.modalData.machRunFactor = val |
|
|
|
|
|
} else if (type === 2) { |
|
|
|
|
|
this.detailData.machSetupTime = val |
|
|
|
|
|
} else if (type === 3) { |
|
|
|
|
|
this.saveDetailData.setupCrewSize = val |
|
|
|
|
|
} else if (type === 4) { |
|
|
|
|
|
this.componentData.crewSize = val |
|
|
|
|
|
} else if (type === 5) { |
|
|
|
|
|
this.componentData.laborSetupTime = val |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
handleInputB (value, type) { |
|
|
|
|
|
const reg = /^(([1-9]?\d{0,1}(\.\d{1,2})?)|100|100\.(0){1,2})$/ |
|
|
|
|
|
if (type === 1) { |
|
|
|
|
|
if (reg.test(value) === true) { |
|
|
|
|
|
this.componentData.efficiencyFactor = value |
|
|
|
|
|
} else if (value > 100) { |
|
|
|
|
|
this.componentData.efficiencyFactor = 100 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.componentData.efficiencyFactor = 0 |
|
|
|
|
|
} |
|
|
|
|
|
} else if (type === 2) { |
|
|
|
|
|
if (reg.test(value) === true) { |
|
|
|
|
|
this.componentData.laborRunFactor = value |
|
|
|
|
|
} else if (value > 100) { |
|
|
|
|
|
this.componentData.laborRunFactor = 100 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.componentData.laborRunFactor = 0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// ======== chooseList相关方法 ======== |
|
|
// ======== chooseList相关方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 获取基础数据列表S |
|
|
* 获取基础数据列表S |
|
|
@ -2065,9 +2090,6 @@ export default { |
|
|
this.tagNo1 = type |
|
|
this.tagNo1 = type |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
let strVal = '' |
|
|
let strVal = '' |
|
|
if (val === 117) { |
|
|
|
|
|
strVal = this.componentData.issueToLoc |
|
|
|
|
|
} |
|
|
|
|
|
if (val === 118) { |
|
|
if (val === 118) { |
|
|
if(type === 1) { |
|
|
if(type === 1) { |
|
|
strVal = this.componentData.laborClassNo |
|
|
strVal = this.componentData.laborClassNo |
|
|
@ -2075,6 +2097,9 @@ export default { |
|
|
strVal = this.componentData.setupLaborClassNo |
|
|
strVal = this.componentData.setupLaborClassNo |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (val === 119) { |
|
|
|
|
|
strVal = this.componentData.workCenterNo |
|
|
|
|
|
} |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -2083,10 +2108,6 @@ export default { |
|
|
* @param val |
|
|
* @param val |
|
|
*/ |
|
|
*/ |
|
|
getBaseData (val) { |
|
|
getBaseData (val) { |
|
|
if (this.tagNo === 117) { |
|
|
|
|
|
this.componentData.issueToLoc = val.location_id |
|
|
|
|
|
this.componentData.issueToLocName = val.location_name |
|
|
|
|
|
} |
|
|
|
|
|
if (this.tagNo === 118) { |
|
|
if (this.tagNo === 118) { |
|
|
if (this.tagNo1 === 1) { |
|
|
if (this.tagNo1 === 1) { |
|
|
this.componentData.laborClassNo = val.level_id |
|
|
this.componentData.laborClassNo = val.level_id |
|
|
@ -2096,6 +2117,10 @@ export default { |
|
|
this.componentData.setupLaborClassDesc = val.level_desc |
|
|
this.componentData.setupLaborClassDesc = val.level_desc |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.tagNo === 119) { |
|
|
|
|
|
this.componentData.workCenterNo = val.work_center_no |
|
|
|
|
|
this.componentData.workCenterDesc = val.work_center_desc |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// ======== 导出相关方法 ======== |
|
|
// ======== 导出相关方法 ======== |
|
|
@ -2133,14 +2158,16 @@ export default { |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
/deep/ .detail-tab .el-tabs__content { |
|
|
/deep/ .detail-tab .el-tabs__content { |
|
|
height: 180px; |
|
|
|
|
|
|
|
|
height: 165px; |
|
|
padding: 15px 0px 0px 0px; |
|
|
padding: 15px 0px 0px 0px; |
|
|
} |
|
|
} |
|
|
/deep/ .sub_detail-tab .el-tabs__content { |
|
|
/deep/ .sub_detail-tab .el-tabs__content { |
|
|
height: 280px; |
|
|
height: 280px; |
|
|
padding: 0px; |
|
|
padding: 0px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.numInput /deep/ .el-input__inner{ |
|
|
|
|
|
text-align: right; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|