Browse Source

feat: [模板管理] 双语配置

lkf
memorylkf 3 months ago
parent
commit
8c67f71a98
8 changed files with 60 additions and 23 deletions
  1. +4
    -1
      src/lang/en.js
  2. +0
    -4
      src/lang/en/template/commonTemplate.js
  3. +20
    -0
      src/lang/en/template/sp.js
  4. +4
    -1
      src/lang/zh.js
  5. +0
    -4
      src/lang/zh/template/commonTemplate.js
  6. +19
    -0
      src/lang/zh/template/sp.js
  7. +5
    -5
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue
  8. +8
    -8
      src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js

+ 4
- 1
src/lang/en.js View File

@ -13,6 +13,8 @@ import user from './en/system/user'
import template from './en/system/template'
// 公共模板语言配置
import commonTemplate from './en/template/commonTemplate'
//色谱模板
import sp from './en/template/sp'
// 试验管理
import study from './en/business/study/study'
@ -169,6 +171,7 @@ export default {
}
},
template: {
common: commonTemplate
common: commonTemplate,
sp: sp
}
}

+ 0
- 4
src/lang/en/template/commonTemplate.js View File

@ -30,10 +30,6 @@ export default {
targetActVolume: 'Target Solution Actual Volume',
effectivePeriod: 'Effective Period',
expireDate: 'Expiry Date',
clpbh: 'Analysis Batch Number',
rqcz: 'Container Material',
clsj: 'Work Time',
xzjz: 'Select substrate',
// 占位符
remarkPlaceholder: 'Please enter remarks',

+ 20
- 0
src/lang/en/template/sp.js View File

@ -0,0 +1,20 @@
//色谱
export default {
// 生物样品分析方法学样品制备表-准确度与精密度
sp008: {
title:
'Bioanalytical Methods Sample Preparation Record(Accuracy and Precision)',
clpbh: 'Analysis Batch Number',
rqcz: 'Container Material',
clsj: 'Work Time',
xzjz: 'Select substrate',
bh: 'Serial Number',
ysry: 'Preset solution',
sjry: 'Actual solution',
yjryxql: 'Expected Solution Extraction Volume',
sjryxql: 'Actual Solution Extraction Volume',
yjjzxql: 'Expected Blank Substrate Extraction Volume',
sjjzxql: 'Actual Blank Substrate Extraction Volume',
hhwznd: 'Target Solution Concentration'
}
}

+ 4
- 1
src/lang/zh.js View File

@ -13,6 +13,8 @@ import user from './zh/system/user'
import template from './zh/system/template'
// 公共模板语言配置
import commonTemplate from './zh/template/commonTemplate'
//色谱模板
import sp from './en/template/sp'
// 试验管理
import study from './zh/business/study/study'
@ -164,6 +166,7 @@ export default {
}
},
template: {
common: commonTemplate
common: commonTemplate,
sp: sp
}
}

+ 0
- 4
src/lang/zh/template/commonTemplate.js View File

@ -30,10 +30,6 @@ export default {
targetActVolume: '目标溶液实际体积',
effectivePeriod: '有效周期',
expireDate: '失效日',
clpbh: '处理批编号',
rqcz: '容器材质',
clsj: '处理时间',
xzjz: '选择基质',
// 占位符
remarkPlaceholder: '请输入备注',

+ 19
- 0
src/lang/zh/template/sp.js View File

@ -0,0 +1,19 @@
//色谱
export default {
// 生物样品分析方法学样品制备表-准确度与精密度
sp008: {
title: '生物样品分析方法学样品制备表(准确度与精密度)',
clpbh: '处理批编号',
rqcz: '容器材质',
clsj: '处理时间',
xzjz: '选择基质',
bh: '编号',
ysry: '预设溶液',
sjry: '实际溶液',
yjryxql: '预计溶液吸取量',
sjryxql: '实际溶液吸取量',
yjjzxql: '预计基质吸取量',
sjjzxql: '实际基质吸取量',
hhwznd: '化合物终浓度'
}
}

+ 5
- 5
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

@ -3,7 +3,7 @@
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.templateMc ||
'生物样品分析方法学样品制备表-准确度与精密度' }}<img src="@/assets/images/detail-title.png" /></div>
$t('template.sp.sp008.title') }}<img src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPcakge fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" ref="baseInfoRef"
@ -136,7 +136,7 @@ export default {
},
//
clpbg: {
label: 'template.common.clpbh',
label: 'template.sp.sp008.clpbh',
type: "input",
fillType: "actFill",
maxlength: 50
@ -168,7 +168,7 @@ export default {
},
{
type: "cellItem",
label: 'template.common.rqcz',
label: 'template.sp.sp008.rqcz',
config: {
rqcz: {
type: "input",
@ -179,7 +179,7 @@ export default {
},
{
type: "cellItem",
label: 'template.common.clsj',
label: 'template.sp.sp008.clsj',
config: {
startDate: {
label: 'template.common.startTime',
@ -199,7 +199,7 @@ export default {
type: "step",
config: {
jz: {
label: 'template.common.xzjz',
label: 'template.sp.sp008.xzjz',
type: "input",
fillType: "preFill",
subType: "clickable",

+ 8
- 8
src/views/business/comps/template/formConfig/SWYPFXFFXYPZBBTableConfig.js View File

@ -2,7 +2,7 @@
export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
return [
{
label: '编号',
label: 'template.sp.sp008.bh',
prop: 'bh',
bodyType: 'select',
bodyOptions: $this.getDictOptions('business_jmdyzqdyp'),
@ -12,21 +12,21 @@ export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
width: 280
},
{
label: '预设溶液',
label: 'template.sp.sp008.ysry',
prop: 'ysry',
bodyType: 'input',
bodyFillType: 'preFill',
width: 280
},
{
label: '实际溶液',
label: 'template.sp.sp008.sjry',
prop: 'sjry',
bodyType: 'clickable',
bodyFillType: 'actFill',
width: 280
},
{
label: '预计溶液吸取量',
label: 'template.sp.sp008.yjryxql',
prop: 'yjryxql',
width: 280,
headerSelectKey: 'yjryxqlUnit',
@ -37,7 +37,7 @@ export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
bodyMaxlength: 10
},
{
label: '实际溶液吸取量',
label: 'template.sp.sp008.sjryxql',
prop: 'sjryxql',
width: 280,
headerSelectKey: 'sjryxqlUnit',
@ -49,7 +49,7 @@ export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
compareTo: 'yjryxql'
},
{
label: '预计基质吸取量',
label: 'template.sp.sp008.yjjzxql',
prop: 'yjjzxql',
width: 280,
headerSelectKey: 'yjjzxqlUnit',
@ -60,7 +60,7 @@ export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
bodyMaxlength: 10
},
{
label: '实际基质吸取量',
label: 'template.sp.sp008.sjjzxql',
prop: 'sjjzxql',
width: 280,
headerSelectKey: 'sjjzxqlUnit',
@ -72,7 +72,7 @@ export const getSWYPFXFFXYPZBBTableConfig = ($this) => {
compareTo: 'yjjzxql'
},
{
label: '化合物终浓度',
label: 'template.sp.sp008.hhwznd',
prop: 'hhwznd',
width: 280,
headerSelectKey: 'hhwzndUnit',

Loading…
Cancel
Save