|
|
|
@ -7,54 +7,54 @@ |
|
|
|
label-width="80px"> |
|
|
|
<!-- 第一行信息 --> |
|
|
|
<el-form style="margin-top: -10px;"> |
|
|
|
<el-form-item label="订单号:" class="customer-item"> |
|
|
|
<el-form-item :label=labels.orderNo class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.orderNo" :readonly="true" style="width: 130px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料编码:" class="customer-item"> |
|
|
|
<el-form-item :label=labels.partNo class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.partNo" :readonly="true" style="width: 130px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料名称/规则:" class="customer-item"> |
|
|
|
<el-form-item :label=labels.partDesc class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.partDesc" :readonly="true" style="width: 200px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="派工单号:" class="customer-item"> |
|
|
|
<el-form-item :label=labels.seqNo class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.seqNo" :readonly="true" style="width: 80px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<!-- 第二行信息 --> |
|
|
|
<el-form> |
|
|
|
<el-form-item label="要求完工日期" class="customer-item"> |
|
|
|
<el-form-item :label=labels.needDate class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.planFinishTime" :readonly="true" style="width: 130px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="要求开工日期" class="customer-item"> |
|
|
|
<el-form-item :label=labels.planStartDate class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.planStartTime" :readonly="true" style="width: 130px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="原始派工单需求数量" class="customer-item"> |
|
|
|
<el-form-item :label=labels.lotSize class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.qtyRequiredOriginal" :readonly="true" style="width: 80px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="排产日期" class="customer-item"> |
|
|
|
<el-form-item :label=labels.scheduledDate class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.scheduledDate" :readonly="true" style="width: 80px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="班次" class="customer-item"> |
|
|
|
<el-form-item :label=labels.shiftNo class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.shiftNo" :readonly="true" style="width: 80px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<!-- 第三行信息 --> |
|
|
|
<el-form> |
|
|
|
<el-form-item label="前道工序" class="customer-item"> |
|
|
|
<el-form-item :label=labels.preItemNo class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.preItemDesc" :readonly="true" style="width: 180px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="后道工序" prop="languageDefault" class="customer-item"> |
|
|
|
<el-form-item :label=labels.nextItemNo prop="languageDefault" class="customer-item"> |
|
|
|
<el-input v-model="scheduleData.nextItemDesc" :readonly="true" style="width: 180px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="''" style="margin-left: -5px;" class="customer-item"> |
|
|
|
<el-checkbox style="margin-left: 30px; margin-top: 28px;" true-label="true" false-label="false" |
|
|
|
v-model="scheduleData.currentRollFlag">仅显示当前卷信息 |
|
|
|
v-model="scheduleData.currentRollFlag">{{labels.onlyCurrentRoll}} |
|
|
|
</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<!-- 第四行菜单 --> |
|
|
|
<fieldset class="customer-fieldset" style="width: 660px;"> |
|
|
|
<legend class="customer-legend">卷操作</legend> |
|
|
|
<legend class="customer-legend">{{labels.rollButtons}}</legend> |
|
|
|
<el-form> |
|
|
|
<el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;"> |
|
|
|
<span>{{ this.currentRollOps.rollNo }}</span> |
|
|
|
@ -63,39 +63,39 @@ |
|
|
|
<el-button class="customer-bun-mid" type="primary" @click="warnCreateNewRollConfirm" |
|
|
|
:disabled="buttonTags.createNewRollFlag" |
|
|
|
style="margin-left: 5px; margin-bottom: 5px;"> |
|
|
|
创建新卷 |
|
|
|
{{ buttons.newRollButton }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" @click="switchRollModal" |
|
|
|
:disabled="buttonTags.switchRollFlag" |
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
切换卷 |
|
|
|
{{buttons.switchRoll}} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" @click="separateRollModal" |
|
|
|
:disabled="buttonTags.separateRollFlag" |
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
创建分卷 |
|
|
|
{{buttons.separateRoll}} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishRollFlag" |
|
|
|
@click="finishRollModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
结束卷 |
|
|
|
{{ buttons.finishRoll }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag" |
|
|
|
@click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
合并卷 |
|
|
|
{{ buttons.mergeRoll }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag" |
|
|
|
@click="showFinishScheduleModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
结单 |
|
|
|
{{ buttons.finishSchedule }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -103,10 +103,10 @@ |
|
|
|
|
|
|
|
<!-- 列表展示区域 --> |
|
|
|
<fieldset class="customer-fieldset" style="margin-bottom: 10px; width: 660px; height: 310px;"> |
|
|
|
<legend class="customer-legend">列表信息</legend> |
|
|
|
<legend class="customer-legend">{{labels.listDesc}}</legend> |
|
|
|
<el-tabs v-model="activeTable" style="margin-top: -3px; width: 655px; height: 285px;" |
|
|
|
type="border-card" @tab-click="tabClick" class="customer-tab"> |
|
|
|
<el-tab-pane label="时间" name="sfdc_time"> |
|
|
|
<el-tab-pane :label=labels.timeList name="sfdc_time"> |
|
|
|
<el-table |
|
|
|
height="260" |
|
|
|
:data="sfdcTimeList" |
|
|
|
@ -131,7 +131,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="刀模板记录" name="sfdc_tool"> |
|
|
|
<el-tab-pane :label=labels.toolList name="sfdc_tool"> |
|
|
|
<el-table |
|
|
|
height="120" |
|
|
|
:data="orderToolList" |
|
|
|
@ -166,16 +166,16 @@ |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="75" |
|
|
|
:label="'操作'"> |
|
|
|
:label=labels.toolListOperation> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="customer-a" |
|
|
|
v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.rollNo != '*'" |
|
|
|
@click="replaceToolModal(scope.row)" |
|
|
|
>刀模替换</a> |
|
|
|
>{{labels.toolListReplace}}</a> |
|
|
|
<a class="customer-a" |
|
|
|
v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'Y' && scope.row.rollNo == '*'" |
|
|
|
@click="warnFinishToolConfirm(scope.row)" |
|
|
|
>结束使用</a> |
|
|
|
>{{labels.toolListFinish}}</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -196,7 +196,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="材料" name="sfdc_material"> |
|
|
|
<el-tab-pane :label=labels.materialList name="sfdc_material"> |
|
|
|
<el-table |
|
|
|
height="120" |
|
|
|
:data="orderBomList" |
|
|
|
@ -247,24 +247,24 @@ |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="115" |
|
|
|
:label="'操作'"> |
|
|
|
:label=labels.materialListOperation> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo != '*' && scope.row.sAPBOMItemNo >= 0 |
|
|
|
&& scope.row.finishedFlag == 'N' && scope.row.histType == '发料'" |
|
|
|
@click="replaceMaterialModal(scope.row)">换料</a> |
|
|
|
@click="replaceMaterialModal(scope.row)">{{labels.materialListReplace}}</a> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo == '*' && scope.row.sAPBOMItemNo >= 0 |
|
|
|
&& scope.row.finishedFlag == 'N' && scope.row.histType == '发料'" |
|
|
|
@click="cuttingMaterialModal(scope.row)" |
|
|
|
>下料</a> |
|
|
|
>{{labels.materialListCutting}}</a> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.sAPBOMItemNo >= 0 |
|
|
|
&& scope.row.histType == '发料' && scope.row.keyRMFlag == 'N'" |
|
|
|
@click="warnFinishMaterialWithNoRemainderConfirm(scope.row)" |
|
|
|
>生产结束</a> |
|
|
|
>{{labels.materialListFinish}}</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="生产卷的操作信息" name="sfdc_rollOps"> |
|
|
|
<el-tab-pane :label=labels.rollopsList name="sfdc_rollOps"> |
|
|
|
<el-table |
|
|
|
height="260" |
|
|
|
:data="sfdcRollOpsList" |
|
|
|
@ -289,7 +289,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="不良记录" name="sfdc_defect"> |
|
|
|
<el-tab-pane :label=labels.defectList name="sfdc_defect"> |
|
|
|
<el-table |
|
|
|
height="260" |
|
|
|
:data="sfdcDefectList" |
|
|
|
@ -317,7 +317,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="机器下机卷" name="sfdc_roll"> |
|
|
|
<el-tab-pane :label=labels.rollList name="sfdc_roll"> |
|
|
|
<el-table |
|
|
|
height="260" |
|
|
|
:data="materialRollList" |
|
|
|
@ -347,11 +347,11 @@ |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="115" |
|
|
|
:label="'操作'"> |
|
|
|
:label=labels.rollListOperation> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="customer-a" v-if="operatorData.operatorName != ''" |
|
|
|
@click="warnDeleteSfdcRollsConfirm(scope.row)" |
|
|
|
>删除卷</a> |
|
|
|
>{{labels.rollListDelete}}</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -361,64 +361,68 @@ |
|
|
|
<!-- 生产调机菜单 --> |
|
|
|
<fieldset class="customer-fieldset" |
|
|
|
style="margin-left: 680px; margin-top: -510px; width: 200px; height: 130px;"> |
|
|
|
<legend class="customer-legend">生产调机</legend> |
|
|
|
<legend class="customer-legend">{{labels.produceButtons}}</legend> |
|
|
|
<el-form> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" @click="refreshPageData" |
|
|
|
style="margin-left: 15px; margin-top: 20px; margin-bottom: 25px;"> |
|
|
|
刷新 |
|
|
|
{{ buttons.refreshButton }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bun-mid" type="primary" @click="switchOperatorModal" |
|
|
|
style="margin-left: 20px; margin-top: 20px;"> |
|
|
|
切换用户 |
|
|
|
{{ buttons.switchOperator }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 35px;"> |
|
|
|
<el-button class="customer-bun-mid controller-bun" type="primary" @click="startTuningModal" |
|
|
|
:disabled="buttonTags.tuningFlag" |
|
|
|
style="margin-left: 15px; margin-bottom: 5px;"> |
|
|
|
开始调机 |
|
|
|
{{ buttons.startTuning }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 35px;"> |
|
|
|
<el-button class="customer-bun-mid controller-bun" type="primary" @click="startProduceModal" |
|
|
|
:disabled="buttonTags.produceFlag" |
|
|
|
style="margin-left: 20px; margin-bottom: 5px;"> |
|
|
|
开始生产 |
|
|
|
{{ buttons.startProduce }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</fieldset> |
|
|
|
<!-- 不良 --> |
|
|
|
<fieldset class="customer-fieldset" style="margin-left: 680px; width: 200px; height: 80px;"> |
|
|
|
<legend class="customer-legend">不良</legend> |
|
|
|
<legend class="customer-legend">{{labels.defectButtons}}</legend> |
|
|
|
<el-form style="text-align: center;"> |
|
|
|
<el-form-item style="margin-top: 5px;"> |
|
|
|
<el-button class="customer-bun-mid controller-bun" @click="defectRollModal" type="primary" |
|
|
|
:disabled="buttonTags.defectFlag" |
|
|
|
style="margin-left: 0px; margin-top: 10px;"> |
|
|
|
报告不良 |
|
|
|
{{ buttons.reportDefect }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 5px;"> |
|
|
|
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
</fieldset> |
|
|
|
|
|
|
|
<!-- 扫描 --> |
|
|
|
<fieldset class="customer-fieldset" style="margin-left: 680px; width: 200px; height: 80px;"> |
|
|
|
<legend class="customer-legend">扫描</legend> |
|
|
|
<legend class="customer-legend">{{labels.scanButtons}}</legend> |
|
|
|
<el-form> |
|
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
|
<el-button class="customer-bun-mid controller-bun" type="primary" @click="produceToolModal" |
|
|
|
:disabled="buttonTags.toolFlag" style="margin-left: 15px; margin-top: 20px;"> |
|
|
|
刀模板 |
|
|
|
{{ buttons.toolButton }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
|
<el-button class="customer-bun-mid controller-bun" type="primary" @click="produceMaterialModal" |
|
|
|
:disabled="buttonTags.materialFlag" style="margin-left: 20px; margin-top: 20px;"> |
|
|
|
材料 |
|
|
|
{{ buttons.materialButton }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -427,12 +431,12 @@ |
|
|
|
<!-- 停机 --> |
|
|
|
<fieldset class="customer-fieldset" |
|
|
|
style="margin-left: 680px; width: 200px; height: 105px;"> |
|
|
|
<legend class="customer-legend">停机</legend> |
|
|
|
<legend class="customer-legend">{{labels.downTimeButtons}}</legend> |
|
|
|
<el-form style="text-align: center;"> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="customer-bunx-max controller-bun" type="primary" @click="produceDownModal" |
|
|
|
:disabled="buttonTags.downTimeFlag" style="margin-top: 10px;"> |
|
|
|
报告其他停机 |
|
|
|
{{ buttons.downTime }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -440,7 +444,7 @@ |
|
|
|
<!--其他操作--> |
|
|
|
<fieldset class="customer-fieldset" |
|
|
|
style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 105px;"> |
|
|
|
<legend class="customer-legend">其它操作</legend> |
|
|
|
<legend class="customer-legend">{{ buttons.otherOperation }}</legend> |
|
|
|
<el-form style="text-align: center;"> |
|
|
|
|
|
|
|
<el-form-item style="margin-top: 20px ; margin-left: 10px"> |
|
|
|
@ -453,21 +457,21 @@ |
|
|
|
<div style="text-align: right; margin: 0;width: 120px;" v-show="false"> |
|
|
|
<el-button type="primary" @click="finishPartRollModal" |
|
|
|
style=" width: 120px; margin-bottom: 5px; margin-left: 3PX"> |
|
|
|
产量报告 |
|
|
|
{{ buttons.preReport }} |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" @click="switchRollReverse" |
|
|
|
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; "> |
|
|
|
删除卷 |
|
|
|
{{ buttons.deleteRoll }} |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" @click="notOverFinishRollModal" |
|
|
|
:disabled="!buttonTags.createNewRollFlag" |
|
|
|
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; "> |
|
|
|
未生产下机拆卷 |
|
|
|
{{ buttons.notProduce }} |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<el-button type="primary" class="controller-bun" :disabled="buttonTags.otherFlag" |
|
|
|
style="width: 80px; margin-bottom: 5px; " @click="popoverFlag=false" |
|
|
|
slot="reference">其她操作 |
|
|
|
slot="reference">{{labels.otherButtons}} |
|
|
|
</el-button> |
|
|
|
</el-popover> |
|
|
|
</el-form-item> |
|
|
|
@ -622,11 +626,27 @@ import comCuttingMaterial from "./com_cutting_material"/*材料下料*/ |
|
|
|
import comProduceDown from "./com_produce_down";/*停机组件*/ |
|
|
|
import comFinishSchedule from "./com_finish_schedule";/*结束派工单组件*/ |
|
|
|
import notOverFinishRoll from "./not_over_finish_roll";/*生产过程的停机组件*/ |
|
|
|
|
|
|
|
import { |
|
|
|
searchSysLanguagePackList, |
|
|
|
searchSysLanguageParam, |
|
|
|
searchFunctionButtonList, |
|
|
|
saveButtonList, |
|
|
|
searchSysLanguage, |
|
|
|
searchLanguageListByLanguageCode, |
|
|
|
saveSysLanguageOne, |
|
|
|
searchPageLanguageData, |
|
|
|
removerLanguage, |
|
|
|
saveSysLanguageList |
|
|
|
} from "@/api/sysLanguage.js"; |
|
|
|
|
|
|
|
var functionId = 'C10000032'; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "com_produce_report_normal", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
titleCon: '', |
|
|
|
showDefault: false, |
|
|
|
popoverFlag: false, |
|
|
|
showNotOverFlag: false, |
|
|
|
showOperatorFlag: false, |
|
|
|
@ -2787,6 +2807,406 @@ export default { |
|
|
|
otherFlag: true, |
|
|
|
}, |
|
|
|
dataListLoading: false, |
|
|
|
buttons: { |
|
|
|
newRollButton: '创建新卷', |
|
|
|
switchRoll: '切换卷', |
|
|
|
separateRoll: '创建分卷', |
|
|
|
finishRoll: '结束卷', |
|
|
|
mergeRoll: '合并卷', |
|
|
|
finishSchedule: '结单', |
|
|
|
refreshButton: '刷新', |
|
|
|
switchOperator: '切换用户', |
|
|
|
startTuning: '开始调机', |
|
|
|
startProduce: '开始生产', |
|
|
|
reportDefect: '报告不良', |
|
|
|
toolButton: '刀模板', |
|
|
|
materialButton: '材料', |
|
|
|
downTime: '报告其他停机', |
|
|
|
otherOperation: '其他操作', |
|
|
|
preReport: '产量报告', |
|
|
|
deleteRoll: '删除卷', |
|
|
|
notProduce: '未生产下机拆卷', |
|
|
|
}, |
|
|
|
buttonList: [ |
|
|
|
{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '创建新卷', |
|
|
|
objectId: 'newRollButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '切换卷', |
|
|
|
objectId: 'switchRoll', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '创建分卷', |
|
|
|
objectId: 'separateRoll', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '结束卷', |
|
|
|
objectId: 'finishRoll', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '合并卷', |
|
|
|
objectId: 'mergeRoll', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '结单', |
|
|
|
objectId: 'finishSchedule', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '刷新', |
|
|
|
objectId: 'refreshButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '切换用户', |
|
|
|
objectId: 'switchOperator', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '开始调机', |
|
|
|
objectId: 'startTuning', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '开始生产', |
|
|
|
objectId: 'startProduce', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '报告不良', |
|
|
|
objectId: 'reportDefect', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '刀模板', |
|
|
|
objectId: 'toolButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '材料', |
|
|
|
objectId: 'materialButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '报告其他停机', |
|
|
|
objectId: 'downTime', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '其他操作', |
|
|
|
objectId: 'otherOperation', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '产量报告', |
|
|
|
objectId: 'preReport', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '删除卷', |
|
|
|
objectId: 'deleteRoll', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '未生产下机拆卷', |
|
|
|
objectId: 'notProduce', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
} |
|
|
|
], |
|
|
|
labels: { |
|
|
|
titleCon: '机台工作台', |
|
|
|
orderNo: '订单号', |
|
|
|
partNo: '物料编码', |
|
|
|
partDesc: '物料名称/规则', |
|
|
|
seqNo: '派工单号', |
|
|
|
needDate: '要求完工日期', |
|
|
|
planStartDate: '刷新', |
|
|
|
lotSize: '原始派工单需求数量', |
|
|
|
scheduledDate: ' 排产日期', |
|
|
|
shiftNo: '班次', |
|
|
|
preItemNo: '前道工序', |
|
|
|
nextItemNo: ' 后道工序', |
|
|
|
onlyCurrentRoll: '仅显示当前卷信息', |
|
|
|
rollButtons: '卷操作', |
|
|
|
listDesc: '列表信息', |
|
|
|
timeList: '时间', |
|
|
|
toolList: '刀模板记录', |
|
|
|
materialList: '材料', |
|
|
|
rollopsList: '生产卷操作信息', |
|
|
|
defectList: '不良记录', |
|
|
|
rollList: '机器下机卷', |
|
|
|
produceButtons: '生产调机', |
|
|
|
defectButtons: '不良', |
|
|
|
scanButtons: '扫描', |
|
|
|
downTimeButtons: '停机', |
|
|
|
otherButtons: '其他操作', |
|
|
|
toolListReplace: '刀模替换', |
|
|
|
toolListFinish: '结束使用', |
|
|
|
materialListReplace: '换料', |
|
|
|
materialListCutting: '下料', |
|
|
|
materialListFinish: '结束生产', |
|
|
|
rollListDelete: '删除卷', |
|
|
|
toolListOperation: '操作', |
|
|
|
materialListOperation: '操作', |
|
|
|
rollListOperation: '操作', |
|
|
|
}, |
|
|
|
labelsList: [ |
|
|
|
{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '机台工作台', |
|
|
|
objectId: 'titleCon', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '订单号', |
|
|
|
objectId: 'orderNo', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '物料编码', |
|
|
|
objectId: 'partNo', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '物料名称/规则', |
|
|
|
objectId: 'partDesc', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '派工单号', |
|
|
|
objectId: 'seqNo', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '要求完工日期', |
|
|
|
objectId: 'needDate', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '要求开工日期', |
|
|
|
objectId: 'planStartDate', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '原始派工单需求数量', |
|
|
|
objectId: 'lotSize', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '排产日期', |
|
|
|
objectId: 'scheduledDate', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '班次', |
|
|
|
objectId: 'shiftNo', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '前道工序', |
|
|
|
objectId: 'preItemNo', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '后道工序', |
|
|
|
objectId: 'nextItemNo', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '仅显示当前卷信息', |
|
|
|
objectId: 'onlyCurrentRoll', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '卷操作', |
|
|
|
objectId: 'rollButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '列表信息', |
|
|
|
objectId: 'listDesc', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '时间', |
|
|
|
objectId: 'timeList', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '刀模板记录', |
|
|
|
objectId: 'toolList', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
},{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '材料', |
|
|
|
objectId: 'materialList', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '生产卷操作信息', |
|
|
|
objectId: 'rollopsList', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '不良记录', |
|
|
|
objectId: 'defectList', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '机器下机卷', |
|
|
|
objectId: 'rollList', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '生产调机', |
|
|
|
objectId: 'produceButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '不良', |
|
|
|
objectId: 'defectButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '扫描', |
|
|
|
objectId: 'scanButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '停机', |
|
|
|
objectId: 'downTimeButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '其他操作', |
|
|
|
objectId: 'otherButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '刀模替换', |
|
|
|
objectId: 'toolListReplace', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '结束使用', |
|
|
|
objectId: 'toolListFinish', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '不良', |
|
|
|
objectId: 'defectButtons', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '换料', |
|
|
|
objectId: 'materialListReplace', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '下料', |
|
|
|
objectId: 'materialListCutting', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '生产结束', |
|
|
|
objectId: 'materialListFinish', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '删除卷', |
|
|
|
objectId: 'rollListDelete', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '操作', |
|
|
|
objectId: 'toolListOperation', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '操作', |
|
|
|
objectId: 'materialListOperation', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '操作', |
|
|
|
objectId: 'rollListOperation', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, |
|
|
|
], |
|
|
|
queryButton: { |
|
|
|
functionId: functionId, |
|
|
|
table_id: '*', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'button' |
|
|
|
}, |
|
|
|
queryLabel: { |
|
|
|
functionId: functionId, |
|
|
|
table_id: '*', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'label' |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -3081,7 +3501,7 @@ export default { |
|
|
|
this.scheduleData.resourceDesc = data.row.resourceDesc; |
|
|
|
this.scheduleData.preItemNo = data.row.preItemNo; |
|
|
|
//设置弹窗的标题 |
|
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.itemDesc + ' ' |
|
|
|
this.titleCon = this.labels.titleCon + ' - ' + data.row.itemDesc + ' ' |
|
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
|
}) |
|
|
|
//刷新页面的卷信息 |
|
|
|
@ -3181,7 +3601,7 @@ export default { |
|
|
|
this.operatorData = JSON.parse(JSON.stringify(operatorData)); |
|
|
|
//切换当前账户的信息 |
|
|
|
//设置弹窗的标题 |
|
|
|
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + '' |
|
|
|
this.titleCon = this.labels.titleCon+' - ' + this.scheduleData.workCenterDesc + '' |
|
|
|
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
|
//刷新菜单 |
|
|
|
}, |
|
|
|
@ -3196,7 +3616,7 @@ export default { |
|
|
|
this.operatorData.operatorName = ''; |
|
|
|
this.operatorData.showFlag = false; |
|
|
|
//刷新标题 |
|
|
|
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' ' |
|
|
|
this.titleCon = this.labels.titleCon + ' - ' + this.scheduleData.workCenterDesc + ' ' |
|
|
|
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -3566,10 +3986,43 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 保存 默认配置 列 |
|
|
|
async saveMultiLanguage() { |
|
|
|
// 保存页面 button label title 属性 |
|
|
|
let buttons = this.buttonList; |
|
|
|
let labels = this.labelsList; |
|
|
|
await saveButtonList(buttons) |
|
|
|
await saveButtonList(labels) |
|
|
|
this.getMultiLanguageList() |
|
|
|
}, |
|
|
|
|
|
|
|
getMultiLanguageList() { |
|
|
|
//首先查询当前按钮的多语言 |
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data) != '{}') { |
|
|
|
this.buttons = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
//其次查询当前标签的多语言 |
|
|
|
searchFunctionButtonList(this.queryLabel).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data) != '{}') { |
|
|
|
this.labels = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
// this.factoryList() |
|
|
|
// this.getLanguageList() |
|
|
|
this.getMultiLanguageList();//刷新多语言的信息 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|