Commit 98fc57a3 by liangjianmin

feat(orderTrack): 优化根据公司ID设置语言选项逻辑

- 猎芯科技及其分公司支持中文语言选项
- 其他公司支持中文和英文双语选项
- 设定默认语言选择为中文
- 更新注释说明公司ID对应关系及语言支持规则
parent 5b06db9e
Showing with 6 additions and 3 deletions
......@@ -401,18 +401,21 @@
this.infos = res.data.purchase_info;
this.tableData = res.data.purchase_item_list || [];
this.contractData = res.data.pur_contract_list || [];
// 1猎芯科技,2深茂电子
if (this.infos.company_id == 1) {
// 根据公司类型设置语言选项
// 公司ID:1-猎芯科技,7-猎芯科技分公司,2-深茂电子
if (this.infos.company_id == 1 || this.infos.company_id == 7) {
// 猎芯科技及其分公司只支持中文
this.langOptions = [
{ label: '中文', value: 1 }
];
this.selectedLang = 1;
} else {
// 其他公司支持中英文双语
this.langOptions = [
{ label: '中文', value: 2 },
{ label: '英文', value: 3 }
];
this.selectedLang = 2;
this.selectedLang = 2; // 默认选择中文
}
} else {
this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment