|
|
|
@ -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();//刷新多语言的信息 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|