From 9ba65332782a7c0af2002a22c2373addef35c25a Mon Sep 17 00:00:00 2001
From: DOUDOU <877258667@qq.com>
Date: Tue, 11 Oct 2022 18:31:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../yieldReport/com_cutting_material.vue | 124 ++++++++++-
.../yieldReport/com_exception_reason.vue | 93 +++++++-
.../yieldReport/com_replace_material.vue | 155 +++++++++++++-
.../modules/yieldReport/com_replace_tool.vue | 202 ++++++++++++++++--
4 files changed, 541 insertions(+), 33 deletions(-)
diff --git a/src/views/modules/yieldReport/com_cutting_material.vue b/src/views/modules/yieldReport/com_cutting_material.vue
index af66a50..81ea79e 100644
--- a/src/views/modules/yieldReport/com_cutting_material.vue
+++ b/src/views/modules/yieldReport/com_cutting_material.vue
@@ -7,7 +7,7 @@
-
+
@@ -15,7 +15,7 @@
-
+
@@ -25,7 +25,7 @@
-
+
@@ -35,8 +35,9 @@
@@ -52,10 +53,26 @@ import {
printMaterialLabel,
} from "@/views/modules/yieldReport/print_roll_label.js"
+import {
+ searchSysLanguagePackList,
+ searchSysLanguageParam,
+ searchFunctionButtonList,
+ saveButtonList,
+ searchSysLanguage,
+ searchLanguageListByLanguageCode,
+ saveSysLanguageOne,
+ searchPageLanguageData,
+ removerLanguage,
+ saveSysLanguageList
+} from "@/api/sysLanguage.js";
+
+var functionId = 'C10000017';
+
export default {
data() {
return {
titleCon: '材料退料',
+ showDefault: false,
sfdcTimeList: [],
selectFlag: true,
scheduleData: {
@@ -109,6 +126,70 @@ export default {
showFlag: false
},
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: '材料退料',
+ rmRollNo: '材料卷号:',
+ transQty: '退料数量:',
+ bomItemNo: 'BOM序号:',
+ },
+ labelsList: [
+ {
+ functionId: functionId,
+ languageValue: '材料退料',
+ objectId: 'titleCon',
+ objectType: 'label',
+ tableId: '*'
+ }, {
+ functionId: functionId,
+ languageValue: '材料卷号:',
+ objectId: 'rmRollNo',
+ objectType: 'label',
+ tableId: '*'
+ }, {
+ functionId: functionId,
+ languageValue: '退料数量:',
+ objectId: 'transQty',
+ objectType: 'label',
+ tableId: '*'
+ }, {
+ functionId: functionId,
+ languageValue: 'BOM序号:',
+ objectId: 'bomItemNo',
+ objectType: 'label',
+ tableId: '*'
+ },
+ ],
+ queryLabel: {
+ functionId: functionId,
+ table_id: '*',
+ languageCode: this.$i18n.locale,
+ objectType: 'label'
+ },
}
},
methods: {
@@ -137,6 +218,8 @@ export default {
});
//清空当前的时间数据
this.timeArray = [];
+ //重置标题
+ this.titleCon = this.labels.titleCon;
},
/*关闭modal*/
@@ -189,13 +272,44 @@ 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.factoryList()
// this.getLanguageList()
+ this.getMultiLanguageList();//刷新多语言的信息
}
}
diff --git a/src/views/modules/yieldReport/com_exception_reason.vue b/src/views/modules/yieldReport/com_exception_reason.vue
index 095f984..c6ee64a 100644
--- a/src/views/modules/yieldReport/com_exception_reason.vue
+++ b/src/views/modules/yieldReport/com_exception_reason.vue
@@ -7,15 +7,15 @@
-
+
@@ -27,11 +27,62 @@ export default {
data() {
return {
titleCon: '异常原因',
+ showDefault: false,
pageData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
exceptionReason: ''
},
+ 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: '异常原因',
+ exceptionReason: '异常原因:',
+ },
+ labelsList: [
+ {
+ functionId: functionId,
+ languageValue: '异常原因',
+ objectId: 'titleCon',
+ objectType: 'label',
+ tableId: '*'
+ }, {
+ functionId: functionId,
+ languageValue: '异常原因:',
+ objectId: 'exceptionReason',
+ objectType: 'label',
+ tableId: '*'
+ },
+ ],
+ queryLabel: {
+ functionId: functionId,
+ table_id: '*',
+ languageCode: this.$i18n.locale,
+ objectType: 'label'
+ },
}
},
methods: {
@@ -43,7 +94,8 @@ export default {
this.$nextTick(() => {
this.$refs.exceptionReason.focus();
});
- //什么都不做
+ //重置标题
+ this.titleCon = this.labels.titleCon;
},
/*关闭modal*/
@@ -59,9 +111,40 @@ export default {
this.$emit('initExceptionReason', this.pageData.exceptionReason);
},
+ // 保存 默认配置 列
+ 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();//刷新多语言的信息
}
}
diff --git a/src/views/modules/yieldReport/com_replace_material.vue b/src/views/modules/yieldReport/com_replace_material.vue
index 021be29..c8c02e8 100644
--- a/src/views/modules/yieldReport/com_replace_material.vue
+++ b/src/views/modules/yieldReport/com_replace_material.vue
@@ -7,12 +7,12 @@