Browse Source

正常报工的多语言初始化

master
DOUDOU 3 years ago
parent
commit
e4efa2e22b
  1. 554
      src/views/modules/yieldReport/com_produce_report_normal.vue

554
src/views/modules/yieldReport/com_produce_report_normal.vue

@ -8,54 +8,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,40 +63,38 @@
<el-form-item>
<el-button class="customer-bun-mid" type="primary" @click="warnCreateNewRollConfirm"
:disabled="buttonTags.createNewRollFlag"
style="margin-left: 5px; margin-bottom: 5px;">
创建新卷
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;">
切换卷
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>
@ -104,10 +102,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"
@ -132,7 +130,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"
@ -172,11 +170,11 @@
<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
@ -197,7 +195,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"
@ -252,20 +250,20 @@
<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"
@ -290,7 +288,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"
@ -318,7 +316,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="sfdcRollList"
@ -352,13 +350,13 @@
<template slot-scope="scope">
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"
@click="warnReopenSfdcRollsConfirm(scope.row)"
>重打开</a>
>{{labels.rollListReopen}}</a>
<a class="customer-a" v-if="operatorData.operatorName != ''"
@click="warnDeleteSfdcRollsConfirm(scope.row)"
>删除卷</a>
>{{labels.rollListDelete}}</a>
<a class="customer-a" v-if="operatorData.operatorName != ''"
@click="printSfdcFlowLabel(scope.row)"
>打印卷标签</a>
>{{labels.rollListPrint }}</a>
(printList);
</template>
</el-table-column>
@ -369,64 +367,66 @@
<!-- 生产调机菜单 -->
<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-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>
@ -435,12 +435,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>
@ -448,7 +448,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">
@ -461,21 +461,21 @@
<div style="text-align: right; margin: 0;width: 120px;">
<el-button type="primary" v-if="this.scheduleData.preItemNo <= 0" @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.finishScheduleFlag"
style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag=true"
slot="reference">其它操作
slot="reference">{{labels.otherButtons}}
</el-button>
</el-popover>
</el-form-item>
@ -619,6 +619,20 @@ import {
printSfdcLabel,
} from "@/views/modules/yieldReport/print_roll_label.js"
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
/*引入组件*/
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/
import comSwitchRoll from "./com_switch_roll";/*切换卷操作*/
@ -637,10 +651,12 @@ 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";/*生产过程的停机组件*/
var functionId = 'C10000002';
export default {
data() {
return {
titleCon: '',
showDefault: true,
popoverFlag: false,
showNotOverFlag: false,
showOperatorFlag: false,
@ -2890,6 +2906,398 @@ export default {
otherBunFlag: false,
},
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: {
reportPageName: '机台工作台',
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: '结束生产',
rollListReopen: '重打开',
rollListDelete: '删除卷',
rollListPrint: '打印卷标签',
},
labelsList: [
{
functionId: functionId,
languageValue: '机台工作台',
objectId: 'reportPageName',
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: 'rollListReopen',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '删除卷',
objectId: 'rollListDelete',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '打印卷标签',
objectId: 'rollListPrint',
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: {
@ -3169,7 +3577,7 @@ export default {
this.scheduleData.resourceDesc = data.row.resourceDesc;
this.scheduleData.preItemNo = data.row.preItemNo;
//
this.titleCon = '机台工作台' + ' - ' + data.row.itemDesc + ' '
this.titleCon = this.labels.reportPageName + ' - ' + data.row.itemDesc + ' '
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')';
})
//
@ -3181,7 +3589,7 @@ export default {
await this.refreshCurrentTabTable();
//
await this.refreshPageButtons();
//await this.refreshPageButtons();
},
@ -3278,7 +3686,8 @@ export default {
notInitOperatorData() {
//
this.showOperatorFlag = false;
$(".controller-bun").addClass("disabled-bun");
this.buttonTags.finishRollFlag =
//$(".controller-bun").addClass("disabled-bun");
//
this.operatorData.operatorId = '';
this.operatorData.operatorName = '';
@ -3298,7 +3707,7 @@ export default {
//
this.showOperatorFlag = true;
this.$nextTick(() => {
this.$refs.comSwitchOperator.init();
this.$refs.comSwitchOperator.init(0);
});
},
@ -3671,11 +4080,42 @@ 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()//
}
}

Loading…
Cancel
Save