Browse Source

多语言

master
DOUDOU 3 years ago
parent
commit
b3cd3a8297
  1. 2
      src/views/modules/yieldReport/com_produce_report_normal.vue
  2. 449
      src/views/modules/yieldReport/com_split_order_finish_roll.vue
  3. 565
      src/views/modules/yieldReport/com_split_order_report.vue
  4. 113
      src/views/modules/yieldReport/com_split_order_switch_roll.vue

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

@ -3563,6 +3563,7 @@ export default {
this.scheduleData.seqNo = seqNo;
this.currentRollOps.seqNo = seqNo;
this.operatorData = operatorData;
this.getMultiLanguageList()//
//
this.sfdcTimeList = [];
this.sfdcToolList = [];
@ -4136,7 +4137,6 @@ export default {
created() {
// this.factoryList()
// this.getLanguageList()
this.getMultiLanguageList()//
}
}

449
src/views/modules/yieldReport/com_split_order_finish_roll.vue

@ -7,7 +7,7 @@
<!-- 菜单信息 -->
<el-row>
<el-col :span="24">
<el-form-item :label="'当前时间'">
<el-form-item :label=labels.currentTime>
<el-date-picker disabled="disabled" style="width: 145px;"
v-model="pageData.reportedTime"
format="yyyy-MM-dd HH:mm:ss"
@ -16,60 +16,59 @@
</el-date-picker>
</el-form-item>
<el-form-item class="customer-button">
<el-button class="customer-bun-min" type="primary" style="margin-left: 10px; margin-bottom: 5px;">
列表</el-button>
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button>
</el-form-item>
<el-form-item class="customer-button">
<el-button class="customer-bun-min" type="primary" @click="refreshPageData" style="margin-left: 10px; margin-bottom: 5px;">
刷新</el-button>
{{buttons.refreshButton}}</el-button>
</el-form-item>
<el-form-item class="customer-button">
<el-button class="customer-bun-min" type="primary" @click="finishRollBun" style="margin-left: 10px; margin-bottom: 5px;">
结束卷</el-button>
{{buttons.finishRoll}}</el-button>
</el-form-item>
<el-form-item class="customer-button">
<el-button class="customer-bun-min" type="primary" @click="closeDialog" style="margin-left: 10px; margin-bottom: 5px;">
关闭</el-button>
{{buttons.closeButton}}</el-button>
</el-form-item>
</el-col>
</el-row>
<!-- 卷数量统计 班次信息 -->
<el-form>
<fieldset class="customer-fieldset" style="width: 495px;">
<legend>卷数量统计</legend>
<legend>{{labels.rollQtySum}}</legend>
<el-form-item class="customer-item">
<el-checkbox disabled="disabled" style="margin-top: 15px;" true-label="Y" false-label="N"
v-model="pageData.reportedFlag">是否报告产量</el-checkbox>
v-model="pageData.reportedFlag">{{labels.whetherReport}}</el-checkbox>
</el-form-item>
<el-form-item class="customer-item" label="总良品数量:" style="margin-top: -10px;">
<el-form-item class="customer-item" :label=labels.approvedQty style="margin-top: -10px;">
<!--<el-input v-model="pageData.approvedQty" type="number" @blur="checkValidApprovedQty"-->
<el-input v-if="this.preItemNo<=0" v-model="pageData.approvedQty" @blur="checkValidApprovedQty" type="number" style="width: 80px;" ></el-input>
<el-input v-if="this.preItemNo>0" disabled class="customer-input-color-red" v-model="pageData.approvedQty" @blur="checkValidApprovedQty" type="number" style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item class="customer-item" label="总不良品数量:" style="margin-top: -10px;">
<el-form-item class="customer-item" :label=labels.defectedQty style="margin-top: -10px;">
<el-input v-model="pageData.defectedQty" :disabled="showNumFlag" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="总数量" style="margin-top: -10px;">
<el-form-item class="customer-item" :label=labels.totalQty style="margin-top: -10px;">
<el-input v-model="pageData.totalQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="其他卷数量:" style="margin-top: -10px;">
<el-form-item class="customer-item" :label=labels.otherRollQty style="margin-top: -10px;">
<el-input v-model="pageData.otherRollQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
</fieldset>
<!-- 操作员信息和班次信息 -->
<fieldset class="customer-fieldset"
style="margin-left: 500px; margin-top: -70px; width: 400px;">
<legend>人员排程班次信息</legend>
<el-form-item class="customer-item" label="操作员:">
<legend>{{labels.operatorScheduleInfo}}</legend>
<el-form-item class="customer-item" :label=labels.operatorId>
<el-input v-model="operatorData.operatorId" disabled="disabled" style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item class="customer-item" label="操作员姓名:">
<el-form-item class="customer-item" :label=labels.operatorName>
<el-input v-model="operatorData.operatorName" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="排产日期:">
<el-form-item class="customer-item" :label=labels.scheduledDate>
<el-input v-model="pageData.scheduledDate" disabled="disabled" style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item class="customer-item" label="班次:">
<el-form-item class="customer-item" :label=labels.shiftNo>
<el-input v-model="pageData.shiftDesc" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-button type="info" :disabled="buttonTags.selectShiftFlag" plain @click="selectSchduleShiftModal"
@ -81,18 +80,18 @@
</el-form>
<!-- 卷生产时间统计产量报告 -->
<el-form style="margin-top: 5px;">
<fieldset class="customer-fieldset" style="width: 320px;">
<legend>卷生产时间统计</legend>
<fieldset class="customer-fieldset" style="width: 320px; margin-top: -10px;">
<legend>{{labels.rollTimeSum}}</legend>
<!-- 调机时间 -->
<el-row>
<el-row style="margin-top: -10px;">
<el-col :span="24">
<el-form-item label="总调机时间:">
<el-form-item :label=labels.totalTuningTime >
<el-input v-model="pageData.totalSetupTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item label="总调机过程停机时间:">
<el-form-item :label=labels.totalTuningDownTime >
<el-input v-model="pageData.totalDowntimeTimeSetup" class="customer-input-color-red" readonly="readonly" style="width: 100px;"></el-input>
</el-form-item>
<el-form-item label="净调机时间:" >
<el-form-item :label=labels.totalPureTuningTime >
<el-input v-model="pageData.totalPureSetupTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
</el-col>
@ -100,13 +99,13 @@
<!-- 生产时间 -->
<el-row>
<el-col :span="24">
<el-form-item label="总生产时间">
<el-form-item :label=labels.totalProdTime>
<el-input v-model="pageData.totalProdTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="总生产过程停机时间:">
<el-form-item :label=labels.totalProdDownTime>
<el-input v-model="pageData.totalDowntimeTimeProd" class="customer-input-color-red" readonly="readonly" style="width: 100px;"></el-input>
</el-form-item>
<el-form-item label="净生产时间:" >
<el-form-item :label=labels.totalPureProdTime >
<el-input v-model="pageData.totalPureProdTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
</el-col>
@ -114,13 +113,13 @@
<!-- 制造时间 -->
<el-row>
<el-col :span="24">
<el-form-item label="总制造时间:">
<el-form-item :label=labels.totalManufTime>
<el-input v-model="pageData.totalManufactureTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="总制造过程停机时间:">
<el-form-item :label=labels.totalManufDownTime>
<el-input v-model="pageData.totalManufactureDowntimeTime" class="customer-input-color-red" readonly="readonly" style="width: 100px;"></el-input>
</el-form-item>
<el-form-item label="净制造时间:" >
<el-form-item :label=labels.totalPureManufTime>
<el-input v-model="pageData.totalPureManufactureTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
</el-col>
@ -128,25 +127,25 @@
</fieldset>
<!-- 产量报告 -->
<fieldset class="customer-fieldset"
style="margin-left: 325px; margin-top: -165px; width: 575px;">
style="margin-left: 325px; margin-top: -143px; width: 575px;">
<legend>产量报告</legend>
<legend>{{ labels.produceReport }}</legend>
<!-- 开工时间 -->
<el-row>
<el-col :span="24">
<el-form-item label="开工时间">
<el-form-item :label=labels.startTime>
<el-input v-model="pageData.eventTime" disabled="disabled" style="width: 130px;"></el-input>
</el-form-item>
<el-form-item label="完工时间">
<el-form-item :label=labels.finishTime>
<el-input v-model="pageData.tillTime" disabled="disabled" style="width: 130px;"></el-input>
</el-form-item>
<el-form-item label="生产时间" >
<el-form-item :label=labels.prodTime >
<el-input v-model="pageData.sfdcProdTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="调机时间" >
<el-form-item :label=labels.tuningTime>
<el-input v-model="pageData.sfdcSetupTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="制造时间" >
<el-form-item :label=labels.manufTime>
<el-input v-model="pageData.sfdcManufactureTime" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
</el-col>
@ -154,19 +153,19 @@
<!-- 合格数量 -->
<el-row>
<el-col :span="24">
<el-form-item label="合格数量">
<el-form-item :label=labels.sfdcApprovedQty>
<el-input v-model="pageData.sfdcApprovedQty" class="customer-input-color-red" readonly="readonly" style="width: 130px;"></el-input>
</el-form-item>
<el-form-item label="不合格数量">
<el-form-item :label=labels.sfdcDefectedQty>
<el-input v-model="pageData.defectedQty" class="customer-input-color-red" readonly="readonly" style="width: 130px;"></el-input>
</el-form-item>
<el-form-item label="报告数量" >
<el-form-item :label=labels.sfdcReportedQty >
<el-input v-model="pageData.sfdcReportedQty" class="customer-input-color-red" readonly="readonly" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="调机停机">
<el-form-item :label=labels.tuningDown>
<el-input v-model="pageData.sfdcSetupDownTime" style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="生产调机" >
<el-form-item :label=labels.manufTuning >
<el-input v-model="pageData.sfdcProdSetupTime" style="width: 80px;"></el-input>
</el-form-item>
</el-col>
@ -174,10 +173,10 @@
<!-- 备注 -->
<el-row>
<el-col :span="24">
<el-form-item label="备注">
<el-form-item :label=labels.remark>
<el-input v-model="pageData.remark" style="width: 430px;"></el-input>
</el-form-item>
<el-form-item label="停机时间">
<el-form-item :label=labels.downTime>
<el-input v-model="pageData.sfdcDownTime" style="width: 80px;"></el-input>
</el-form-item>
</el-col>
@ -187,7 +186,7 @@
<!-- 主材料 -->
<el-form>
<fieldset class="customer-fieldset" style="width: 830px;">
<legend>主材料</legend>
<legend>{{labels.primaryMaterial}}</legend>
<el-table
height="180"
:data="sfdcMaterialList"
@ -255,11 +254,27 @@ import {
getSORoutingPreviousOperationItemNo,
getSplitOrderCurrentRollReportedQty,
} from '@/api/yieldReport/com_finish_roll.js';
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
var functionId = 'C10000034';
export default {
name: "com_finish_roll",
data() {
return {
titleCon: '分切-结束卷',
showDefault: false,
showExceptionFlag: false,
showShiftFlag: false,
showNumFlag:false,
@ -513,6 +528,315 @@ export default {
selectShiftFlag: true,
},
dataListLoading: false,
buttons: {
refreshButton: '刷新',
finishRoll: '结束卷',
closeButton: '关闭',
},
buttonList: [
{
functionId: functionId,
languageValue: '刷新',
objectId: 'refreshButton',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '结束卷',
objectId: 'finishRoll',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '关闭',
objectId: 'closeButton',
objectType: 'button',
tableId: '*'
},
],
queryButton: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'button'
},
labels: {
titleCon: '结束卷操作 ',
seqNoName: '派工单号:',
currentTime: '当前时间',
rollQtySum: '卷数量统计',
whetherReport: '是否报告产量',
approvedQty: '总良品数量',
defectedQty: '总不良品数量',
totalQty: '总数量',
otherRollQty: '其他卷数量',
operatorScheduleInfo: '人员排程班次信息',
operatorId: '操作员',
operatorName: '操作员姓名',
scheduledDate: '排产日期',
shiftNo: '班次',
rollTimeSum: '卷生产时间统计',
totalTuningTime: '总调机时间',
totalTuningDownTime: '总调机过程停机时间',
totalPureTuningTime: '净调机时间',
totalProdTime: '总生产时间',
totalProdDownTime: '总生产过程停机时间',
totalPureProdTime: '净生产时间',
totalManufTime: '总制造时间',
totalManufDownTime: '总制造过程停机时间 ',
totalPureManufTime: '净制造时间:',
produceReport: '产量报告',
startTime: '开工时间',
finishTime: '完工时间',
prodTime: '生产时间',
tuningTime: '调机时间',
manufTime: '制造时间',
sfdcApprovedQty: '合格数量',
sfdcDefectedQty: '不合格数量',
sfdcReportedQty: '报告数量',
tuningDown: '调机停机',
manufTuning: '生产调机',
remark: '备注',
downTime: '停机时间',
primaryMaterial: '主材料 ',
},
labelsList: [
{
functionId: functionId,
languageValue: '结束卷操作 ',
objectId: 'titleCon',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '派工单号:',
objectId: 'seqNoName',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '当前时间',
objectId: 'currentTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '卷数量统计 ',
objectId: 'rollQtySum',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '是否报告产量 ',
objectId: 'whetherReport',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总良品数量',
objectId: 'approvedQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总不良品数量',
objectId: 'defectedQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总数量',
objectId: 'totalQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '其他卷数量',
objectId: 'otherRollQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '人员排程班次信息',
objectId: 'operatorScheduleInfo',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '操作员',
objectId: 'operatorId',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '操作员姓名',
objectId: 'operatorName',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '排产日期',
objectId: 'scheduledDate',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '班次',
objectId: 'shiftNo',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '卷生产时间统计',
objectId: 'rollTimeSum',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总调机时间',
objectId: 'totalTuningTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总调机过程停机时间',
objectId: 'totalTuningDownTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '净调机时间',
objectId: 'totalPureTuningTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总生产时间',
objectId: 'totalProdTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总生产过程停机时间',
objectId: 'totalProdDownTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '净生产时间',
objectId: 'totalPureProdTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总制造时间',
objectId: 'totalManufTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '总制造过程停机时间',
objectId: 'totalManufDownTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '净制造时间',
objectId: 'totalPureManufTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '产量报告',
objectId: 'roduceReport',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '开工时间 ',
objectId: 'startTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '完工时间:',
objectId: 'finishTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '生产时间',
objectId: 'prodTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '调机时间',
objectId: 'tuningTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '制造时间',
objectId: 'manufTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '合格数量',
objectId: 'sfdcApprovedQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '不合格数量',
objectId: 'sfdcDefectedQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '报告数量',
objectId: 'sfdcReportedQty',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '调机停机',
objectId: 'tuningDown',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '生产调机 ',
objectId: 'manufTuning',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '备注',
objectId: 'remark',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '停机时间',
objectId: 'downTime',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '主材料',
objectId: 'primaryMaterial',
objectType: 'label',
tableId: '*'
},
],
queryLabel: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'label'
},
}
},
components: {
@ -554,8 +878,7 @@ export default {
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
//
this.titleCon = '结束卷-操作 \
派工单号:'+scheduleData.seqNo;
this.titleCon = this.labels.titleCon+this.labels.seqNoName+scheduleData.seqNo;
//
this.pageData.exceptionFlag = 'N';
this.pageData.exceptionReason = '';
@ -895,10 +1218,42 @@ export default {
this.pageData.remark = username+"更改了班次."
},
//
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();//
}
}

565
src/views/modules/yieldReport/com_split_order_report.vue

@ -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();//
}
}

113
src/views/modules/yieldReport/com_split_order_switch_roll.vue

@ -7,15 +7,16 @@
<!-- 半成品卷卷号 -->
<el-row>
<el-col :span="24" style="margin-left: 35px;">
<el-form-item :label="'卷号:'">
<el-form-item :label=labels.sfdcRoll>
<el-input ref="newRollNo" v-model="pageData.newRollNo" style="width: 120px;" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="switchRollBun"> </el-button>
<el-button type="primary" @click="closeDialog" style="margin-bottom: 10px;">关闭</el-button>
<el-button type="primary" @click="switchRollBun">{{ buttons.confirmButton }}</el-button>
<el-button type="primary" @click="closeDialog" style="margin-bottom: 10px;">{{ buttons.closeButton }}</el-button>
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button>
</span>
</el-dialog>
@ -30,12 +31,28 @@ import comExceptionReason from "./com_exception_reason";//异常远远
import {
checkSplitScheduleSwitchRoll,/*校验是否可以切换卷*/
splitScheduleSwitchRoll,/*执行切换卷的操作*/
} from '@/api/yieldReport/com_switch_roll.js'
} from '@/api/yieldReport/com_switch_roll.js';
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
saveButtonList,
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne,
searchPageLanguageData,
removerLanguage,
saveSysLanguageList
} from "@/api/sysLanguage.js";
var functionId = 'C10000033';
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '切换卷',
showDefault: false,
scheduleData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
@ -79,6 +96,56 @@ export default {
seqNo: '',
showFlag: 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: {
componentTitle: '切换卷',
sfdcRoll: '卷号:',
},
labelsList: [
{
functionId: functionId,
languageValue: '切换卷',
objectId: 'componentTitle',
objectType: 'label',
tableId: '*'
}, {
functionId: functionId,
languageValue: '卷号:',
objectId: 'sfdcRoll',
objectType: 'label',
tableId: '*'
},
],
queryLabel: {
functionId: functionId,
table_id: '*',
languageCode: this.$i18n.locale,
objectType: 'label'
},
}
},
components: {
@ -101,6 +168,9 @@ export default {
this.$nextTick(() => {
this.$refs.newRollNo.focus();
});
//
this.titleCon = this.labels.titleCon;
},
/*关闭modal*/
@ -161,10 +231,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();//
}
}

Loading…
Cancel
Save