Browse Source

多语言

master
DOUDOU 3 years ago
parent
commit
453058424d
  1. 16
      src/views/modules/yieldReport/com_exception_reason.vue
  2. 29
      src/views/modules/yieldReport/com_produce_report_normal.vue
  3. 100
      src/views/modules/yieldReport/com_select_shift.vue
  4. 140
      src/views/modules/yieldReport/otherReport/bulk_inspection.vue
  5. 471
      src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue

16
src/views/modules/yieldReport/com_exception_reason.vue

@ -22,8 +22,22 @@
</template>
<script>
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
var functionId = 'C10000020';
export default {
name: "com_exception_reason",
data() {
return {
titleCon: '异常原因',

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

@ -165,7 +165,7 @@
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 != '*'"
@ -246,7 +246,7 @@
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 == '发料'"
@ -346,7 +346,7 @@
header-align="center"
align="center"
width="150"
:label="'操作'">
:label=labels.rollListOperation>
<template slot-scope="scope">
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"
@click="warnReopenSfdcRollsConfirm(scope.row)"
@ -357,7 +357,6 @@
<a class="customer-a" v-if="operatorData.operatorName != ''"
@click="printSfdcFlowLabel(scope.row)"
>{{labels.rollListPrint }}</a>
(printList);
</template>
</el-table-column>
</el-table>
@ -3072,6 +3071,9 @@ export default {
rollListReopen: '重打开',
rollListDelete: '删除卷',
rollListPrint: '打印卷标签',
toolListOperation: '操作',
materialListOperation: '操作',
rollListOperation: '操作',
},
labelsList: [
{
@ -3284,6 +3286,24 @@ export default {
objectId: 'rollListPrint',
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: {
@ -4112,6 +4132,7 @@ export default {
},
},
created() {
// this.factoryList()
// this.getLanguageList()

100
src/views/modules/yieldReport/com_select_shift.vue

@ -37,8 +37,9 @@
</fieldset>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="updateScheduleAndShift"> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
<el-button type="primary" @click="updateScheduleAndShift">{{buttons.confirmButton }}</el-button>
<el-button type="primary" @click="closeDialog">{{buttons.closeButton }}</el-button>
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button>
</span>
</el-dialog>
</div>
@ -48,11 +49,28 @@
import {
getScheduleShiftWithSelect,
} from '@/api/yieldReport/com_select_shift.js';
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
var functionId = 'C10000023';
export default {
name: "com_select_shift",
data() {
return {
titleCon: '班次选择',
showDefault: false,
currentShiftRow: {},
pageData: {
site: this.$store.state.user.site,
@ -177,6 +195,49 @@ export default {
}
],
dataListLoading: false,
buttons: {
confirmButton: '确定',
closeButton: '关闭',
},
buttonList: [
{
functionId: functionId,
languageValue: '确定',
objectId: 'confirmButton',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '关闭',
objectId: 'closeButton',
objectType: 'button',
tableId: '*'
},
],
queryButton: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'button'
},
labels: {
titleCon: '班次选择',
},
labelsList: [
{
functionId: functionId,
languageValue: '班次选择',
objectId: 'titleCon',
objectType: 'label',
tableId: '*'
},
],
queryLabel: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'label'
},
}
},
methods: {
@ -186,6 +247,9 @@ export default {
this.pageData = JSON.parse(JSON.stringify(pageData));
//
this.refreshPageData();
//
this.titleCon = this.labels.titleCon;
},
/*关闭modal*/
@ -220,10 +284,40 @@ export default {
this.closeDialog();
},
//
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.getMultiLanguageList();//
}
}

140
src/views/modules/yieldReport/otherReport/bulk_inspection.vue

@ -4,7 +4,7 @@
v-drag
@close="closeDialog"
width="600px"
title="批量直接送检"
:title=titleCon
:close-on-click-modal="false"
:visible.sync="visible">
<el-row style="margin-top: 0px">
@ -15,7 +15,7 @@
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" style="margin-top: 24px" @click="getDataList">查询</el-button>
<el-button type="primary" style="margin-top: 24px" @click="getDataList">{{buttons.searchButton}}</el-button>
</el-form-item>
</el-form>
</el-col>
@ -72,8 +72,9 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForInspection">送检</el-button>
<el-button @click="visible = false" type="primary">关闭</el-button>
<el-button type="primary" @click="submitForInspection">{{buttons.inspectionButton}}</el-button>
<el-button @click="visible = false" type="primary">{{buttons.closeButton}}</el-button>
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button>
</span>
</el-dialog>
<!-- 班次选择组件 -->
@ -95,9 +96,26 @@ import {
getScheduleShiftData,/*LR 新增查询班次的方法*/
} from "@/api/yieldReport/produce_report_normal.js";
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
var functionId = 'C10000022';
export default {
data() {
return {
titleCon: '批量直接送检',
showDefault: false,
currentDate: '',
repairOrderFlag: '',
shift: '',
@ -145,6 +163,84 @@ export default {
fixed: false
}
],
buttons: {
inspectionButton: '送检',
searchButton: '查询',
closeButton: '关闭',
},
buttonList: [
{
functionId: functionId,
languageValue: '送检',
objectId: 'inspectionButton',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '查询',
objectId: 'searchButton',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '关闭',
objectId: 'closeButton',
objectType: 'button',
tableId: '*'
},
],
queryButton: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'button'
},
labels: {
titleCon: '批量直接送检',
rollNo: '卷号:',
scheduleShiftInfo: '排程班次信息',
scheduledDate: '排程日期:',
shitNo: '班次:',
},
labelsList: [
{
functionId: functionId,
languageValue: '批量直接送检',
objectId: 'titleCon',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '卷号:',
objectId: 'rollNo',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '排程班次信息:',
objectId: 'scheduleShiftInfo',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '排程日期:',
objectId: 'scheduledDate',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '班次:',
objectId: 'shitNo',
objectType: 'label',
tableId: '*'
},
],
queryLabel: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'label'
},
}
},
components: {
@ -172,6 +268,8 @@ export default {
this.searchScheduleDateShift();
//
this.searchScheduleShiftData();
//
this.titleCon = this.labels.titleCon;
},
//
getDataList() {
@ -265,9 +363,41 @@ export default {
this.currentDate = scheduleDate.substring(0, 10);
this.shift = shiftDesc;
},
//
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.getMultiLanguageList();//
}
}
</script>

471
src/views/modules/yieldReport/otherReport/fqc_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: 330px; height: 60px">
<legend class="customer-legend">卷操作</legend>
<legend class="customer-legend">{{labels.rollButtons}}</legend>
<el-form style="margin-top: 5px">
<el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;">
<span>{{ this.currentRollOps.rollNo }}</span>
@ -64,14 +64,14 @@
<el-button class="customer-bun-mid" type="primary" @click="switchRollModal"
:disabled="buttonTags.scannerRollFlag"
style="margin-left: 5px; margin-bottom: 5px;">
扫描卷
{{ buttons.scanRoll }}
</el-button>
</el-form-item>
<el-form-item>
<el-button class="customer-bun-mid" type="primary" @click="finishRollModal"
:disabled="buttonTags.switchRollFlag"
style="margin-left: 10px; margin-bottom: 5px;">
结束卷
{{ buttons.finishRoll }}
</el-button>
</el-form-item>
@ -79,15 +79,15 @@
</fieldset>
<!-- 第四行菜单- fqc成品卷奥做 -->
<fieldset class="customer-fieldset" style="width: 330px; margin-top: -60px;margin-left: 340px;height: 60px">
<legend class="customer-legend">FQC成品卷操作</legend>
<legend class="customer-legend">{{labels.fqcSfdcOperation}}</legend>
<el-form>
<el-form-item style="margin-top: -10px ;">
<span slot="label" type="label">每卷数量</span>
<span slot="label" type="label">{{labels.perRollQty}}</span>
<el-input style="width: 80px" oninput="value=value.replace(/[^0-9]/g,'')" v-model="createRoll.rollQty">
</el-input>
</el-form-item>
<el-form-item style="margin-top: -10px ;">
<span slot="label" type="label">卷数</span>
<span slot="label" type="label">{{labels.rollNums}}</span>
<el-input class="customer-bun-mid" oninput="value=value.replace(/[^0-9]/g,'')"
v-model="createRoll.rollNums">
</el-input>
@ -97,14 +97,14 @@
<el-button class="customer-bun-mid" type="primary" @click="separateRollModal"
:disabled="buttonTags.separateRollFlag"
>
创建分卷
{{buttons.separateRoll}}
</el-button>
</el-form-item>
<el-form-item style="margin-top: -12px ;">
<span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
<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>
@ -112,10 +112,10 @@
</fieldset>
<!-- 列表展示区域 -->
<fieldset class="customer-fieldset" style="margin-bottom: 10px; width: 870px; height: 300px;">
<legend class="customer-legend">列表信息</legend>
<legend class="customer-legend">{{labels.listDesc}}</legend>
<el-tabs v-model="activeTable" style="margin-top: -3px; width: 870px;"
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="250"
:data="sfdcTimeList"
@ -140,7 +140,7 @@
</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="250"
:data="sfdcRollOpsList"
@ -165,7 +165,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-form>
<el-form-item style="margin-top: 0px ;">
<span slot="label" type="label">报告日期</span>
@ -193,14 +193,14 @@
<el-form-item style="margin-top: 0px ;">
<span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px" @click="getBaseList(89)"> </span>
<el-button class="customer-bun-mid" type="primary" @click="saveHarmful">
保存
{{buttons.saveButton}}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 0px ;">
<span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag"
@click="getInspectionDefectCodeList" style="margin-left: 10px; margin-bottom: 5px;">
批量录入
{{buttons.batchSaveButton}}
</el-button>
</el-form-item>
@ -231,7 +231,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="250"
:data="sfdcRollList"
@ -261,17 +261,17 @@
header-align="center"
align="center"
width="115"
:label="'操作'">
:label=labels.rollListOperation>
<template slot-scope="scope">
<a v-if="scope.row.virtualRollFlag=='N'" class="customer-a"
@click="rollPrintLabel(scope.row)"
>打印</a>
>{{labels.rollListPrint}}</a>
<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>
</template>
</el-table-column>
</el-table>
@ -281,24 +281,24 @@
<!-- 生产调机菜单 -->
<fieldset class="customer-fieldset"
style="margin-left: 680px; margin-top: -510px; width: 200px; height: 200px;">
<legend class="customer-legend">生产调机</legend>
<legend class="customer-legend">{{labels.produceTuning}}</legend>
<el-form>
<el-form-item style="margin-left: 10px; margin-top: 20px">
<el-button class="customer-bun-mid" type="primary" @click="refreshPageData"
style="width: 80px; ">
刷新
{{buttons.refreshButton}}
</el-button>
</el-form-item>
<el-form-item style="margin-left: 100px; margin-top: -20px">
<el-button class="customer-bun-mid" type="primary" @click="switchOperatorModal" style="width: 80px;">
切换用户
{{buttons.switchOperator}}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 0px;margin-left: 10px;">
<el-button class="customer-bun-mid" type="primary" @click="startProduceModal"
:disabled="buttonTags.produceFlag"
style=" margin-bottom: 5px;width: 80px;">
开始生产
{{buttons.startProduce}}
</el-button>
</el-form-item>
@ -306,9 +306,13 @@
<el-button class="customer-bun-mid" type="primary" @click="bulkInspection"
:disabled="buttonTags.bulkInspectionFlag"
style=" width: 80px; margin-bottom: 5px; ">
批量直接送检
{{buttons.batchInspection}}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 20px ; margin-left: 10px">
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button>
</el-form-item>
<el-form-item style="margin-top: 20px ; margin-left: 10px">
<el-popover
placement="right"
@ -319,12 +323,12 @@
<div style="text-align: right; margin: 0;width: 120px;">
<el-button type="primary" @click="notOverFinishRollModal"
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; ">
未生产下机拆卷
{{buttons.notProduce}}
</el-button>
</div>
<el-button type="primary" style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag=true"
:disabled="buttonTags.otherFlag"
slot="reference">其它操作
slot="reference">{{buttons.otherOperation}}
</el-button>
</el-popover>
</el-form-item>
@ -332,7 +336,7 @@
<el-form-item style="margin-top: -106px;margin-left: 100px;">
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag"
@click="showFinishScheduleModal" style="width: 80px;">
结单
{{buttons.finishSchedule}}
</el-button>
</el-form-item>
</el-form>
@ -508,11 +512,28 @@ import defectList from "./defectList";/*结束派工单组件*/
import bulkInspection from "./bulk_inspection.vue";/*结束派工单组件*/
import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
import notOverFinishRoll from "../not_over_finish_roll";/*结束派工单组件*/
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
var functionId = 'C10000021';
/*生产过程的停机组件*/
export default {
data() {
return {
titleCon: '',
showDefault: false,
popoverFlag: false,
showNotOverFlag:false,
showOperatorFlag: false,
@ -2790,7 +2811,338 @@ export default {
defectCode: '',
defectQty: '',
defectDesc: ''
}
},
buttons: {
scanRoll: '扫描卷',
finishRoll: '结束卷',
separateRoll: '创建分卷',
mergeRoll: '合并卷',
refreshButton: '刷新',
switchOperator: '切换用户',
startProduce: '开始生产',
batchInspection: '批量直接送检',
finishSchedule: '结单',
otherOperation: '其他操作',
notProduce: '未生产下机拆卷',
saveButton: '保存',
batchSaveButton: '批量录入',
},
buttonList: [
{
functionId: functionId,
languageValue: '扫描卷',
objectId: 'scanRoll',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '结束卷',
objectId: 'finishRoll',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '创建分卷',
objectId: 'separateRoll',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '合并卷',
objectId: 'mergeRoll',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '刷新',
objectId: 'refreshButton',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '切换用户',
objectId: 'switchOperator',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '开始生产',
objectId: 'startProduce',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '批量直接送检',
objectId: 'batchInspection',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '结单',
objectId: 'finishSchedule',
objectType: 'button',
tableId: '*'
},{
functionId: functionId,
languageValue: '其他操作',
objectId: 'otherOperation',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '未生产下机拆卷',
objectId: 'notProduce',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '保存',
objectId: 'saveButton',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '批量插入',
objectId: 'batchSaveButton',
objectType: 'button',
tableId: '*'
},
],
labels: {
titleCon: '机台工作台',
orderNo: '订单号',
partNo: '物料编码',
partDesc: '物料名称/规则',
seqNo: '派工单号',
needDate: '要求完工日期',
planStartDate: '要求开工日期',
lotSize: '原始派工单需求数量',
scheduledDate: ' 排产日期',
shiftNo: '班次',
preItemNo: '前道工序',
nextItemNo: ' 后道工序',
onlyCurrentRoll: '仅显示当前卷信息',
rollButtons: '卷操作',
fqcSfdcOperation: 'FQC成品卷操作',
perRollQty: '每卷数量',
rollNums: '卷数',
produceTuning: '生产调机',
listDesc: '列表信息',
timeList: '时间',
rollopsList: '生产卷操作信息',
defectList: '不良记录',
rollList: '机器下机卷',
reportDate: '报告日期',
defectCode: '不良代码',
defectDesc: '不良原因',
defectQty: '不良数',
rollListReopen: '重打开',
rollListDelete: '删除卷',
rollListPrint: '打印卷标签',
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: 'FQC成品卷操作',
objectId: 'fqcSfdcOperation',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '每卷数量',
objectId: 'perRollQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '卷数',
objectId: 'rollNums',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '生产调机',
objectId: 'produceTuning',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '列表信息',
objectId: 'listDesc',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '时间',
objectId: 'timeList',
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: 'reportDate',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '不良代码',
objectId: 'defectCode',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '不良原因',
objectId: 'defectDesc',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '不良数量',
objectId: 'defectQty',
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: '*'
}, {
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'
},
}
},
watch: {
@ -3144,7 +3496,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 + ')';
})
//
@ -3251,7 +3603,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 + ')';
//
},
@ -3677,12 +4029,45 @@ export default {
},
closeDialog(){
Object.assign(this.$data, this.$options.data.call(this));
}
},
//
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