|
|
@ -14,8 +14,9 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<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> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
@ -30,12 +31,29 @@ import comExceptionReason from "./com_exception_reason";//异常远远 |
|
|
import { |
|
|
import { |
|
|
checkSwitchSfdcRoll,/*校验是否可以切换卷*/ |
|
|
checkSwitchSfdcRoll,/*校验是否可以切换卷*/ |
|
|
switchSfdcRoll,/*执行切换卷的操作*/ |
|
|
switchSfdcRoll,/*执行切换卷的操作*/ |
|
|
} 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 = 'C10000003'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "com_merge_roll", |
|
|
name: "com_merge_roll", |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
titleCon: '切换卷', |
|
|
titleCon: '切换卷', |
|
|
|
|
|
showDefault: false, |
|
|
scheduleData: { |
|
|
scheduleData: { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
username: this.$store.state.user.name, |
|
|
username: this.$store.state.user.name, |
|
|
@ -79,6 +97,56 @@ export default { |
|
|
seqNo: '', |
|
|
seqNo: '', |
|
|
showFlag: false |
|
|
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: { |
|
|
components: { |
|
|
@ -101,6 +169,7 @@ export default { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.newRollNo.focus(); |
|
|
this.$refs.newRollNo.focus(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.titleCon = this.labels.componentTitle;//重置标题 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*关闭modal*/ |
|
|
/*关闭modal*/ |
|
|
@ -158,10 +227,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() { |
|
|
created() { |
|
|
// this.factoryList() |
|
|
// this.factoryList() |
|
|
// this.getLanguageList() |
|
|
// this.getLanguageList() |
|
|
|
|
|
this.getMultiLanguageList()//刷新按钮 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|