Browse Source

fix:[模板管理]修改

lkf
15881625488@163.com 3 months ago
parent
commit
52b7a7bc13
6 changed files with 82 additions and 37 deletions
  1. +4
    -1
      src/lang/en.js
  2. +23
    -2
      src/lang/en/template/gsp.js
  3. +4
    -1
      src/lang/zh.js
  4. +22
    -0
      src/lang/zh/template/gsp.js
  5. +16
    -18
      src/views/business/comps/template/comps/gsp/MJYLQSQD.vue
  6. +13
    -15
      src/views/business/comps/template/comps/gsp/SYWZPZJHB.vue

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

@ -15,6 +15,8 @@ import template from './en/system/template'
import commonTemplate from './en/template/commonTemplate'
//色谱模板
import sp from './en/template/sp'
//供试品模板
import gspmb from './en/template/gsp'
// 试验管理
import study from './en/business/study/study'
@ -172,6 +174,7 @@ export default {
},
template: {
common: commonTemplate,
sp: sp
sp: sp,
gsp: gspmb
}
}

+ 23
- 2
src/lang/en/template/gsp.js View File

@ -2,12 +2,33 @@
export default {
// 试验物质配制计划表
SYWZPZJHB: {
title:
'试验物质配制计划表',
title:'试验物质配制计划表',
jhxx:'Plan Information',
tbsm:'Special Note',
lqsj:'领取时间',
fxsj:'分析时间',
sywz:'试验物质',
pzpl:'配置频率',
gyzjhzb:'给药剂量或组别',
pznd:'配制浓度',
pztj:'配制体积',
},
// 麻醉/精神药品配制/领取申请单
MJYLQSQD: {
title: '麻醉/精神药品配制/领取申请单',
jbxx:'Basic Information',
qxzsyhbm:'请选择试验/部门',
sybhhbmmc:'试验编号或部门名称',
sd:'SD/部长',
sywzmc:'试验物质名称',
gyjl:'给药剂量',
xynd:'需要浓度',
xyl:'需要量',
xysj:'需要时间',
yjghsj:'预计归还时间',
dwzs:'动物种属',
dwpjtz:'动物平均体重',
dwsl:'动物数量',
},
}

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

@ -15,6 +15,8 @@ import template from './zh/system/template'
import commonTemplate from './zh/template/commonTemplate'
//色谱模板
import sp from './zh/template/sp'
//供试品模板
import gspmb from './zh/template/gsp'
// 试验管理
import study from './zh/business/study/study'
@ -167,6 +169,7 @@ export default {
},
template: {
common: commonTemplate,
sp: sp
sp: sp,
gsp: gspmb,
}
}

+ 22
- 0
src/lang/zh/template/gsp.js View File

@ -3,10 +3,32 @@ export default {
// 试验物质配制计划表
SYWZPZJHB: {
title: '试验物质配制计划表',
jhxx:'计划信息',
tbsm:'特别说明',
lqsj:'领取时间',
fxsj:'分析时间',
sywz:'试验物质',
pzpl:'配置频率',
gyzjhzb:'给药剂量或组别',
pznd:'配制浓度',
pztj:'配制体积',
},
// 麻醉/精神药品配制/领取申请单
MJYLQSQD: {
title: '麻醉/精神药品配制/领取申请单',
jbxx:'基本信息',
qxzsyhbm:'请选择试验/部门',
sybhhbmmc:'试验编号或部门名称',
sd:'SD/部长',
sywzmc:'试验物质名称',
gyjl:'给药剂量',
xynd:'需要浓度',
xyl:'需要量',
xysj:'需要时间',
yjghsj:'预计归还时间',
dwzs:'动物种属',
dwpjtz:'动物平均体重',
dwsl:'动物数量',
},
}

+ 16
- 18
src/views/business/comps/template/comps/gsp/MJYLQSQD.vue View File

@ -3,21 +3,19 @@
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc ||
$t('template.gsp.SYWZPZJHB.title') }}<img src="@/assets/images/detail-title.png" /></div>
$t('template.gsp.MJYLQSQD.title') }}<img src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<LineLabel label="基本信息" />
<LineLabel label="template.gsp.MJYLQSQD.jbxx" />
<div class="template-form-item">
<BaseInfoFormPcakge @clickable="onClickSybh" ref="baseInfoRef" :formConfig="baseInfoFormConfig"
:formData="formData" />
</div>
<BaseInfoFormPcakge label="备注" ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
<BaseInfoFormPcakge label="template.common.remark" ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
</div>
<SelectReagentDialog type="MJYLQSQD" selectedCode="sn" title="请选择试验/部门" :searchForm="searchForm"
<SelectReagentDialog type="MJYLQSQD" selectedCode="sn" title="template.gsp.MJYLQSQD.qxzsyhbm" :searchForm="searchForm"
:columns="columns" @submit="onDialogSubmit" :listApi="public_studyList" ref="selectReagentDialogRef">
</SelectReagentDialog>
</div>
@ -74,7 +72,7 @@ export default {
type: "textarea",
fillType: "actFill",
span: 1,
placeholder: "请输入备注",
placeholder: "template.common.remarkPlaceholder",
maxlength: 1000,
rows: 5
}
@ -89,60 +87,60 @@ export default {
type: "step",
config: {
syNo: {
label: "试验编号或部门名称",
label: "template.gsp.MJYLQSQD.sybhhbmmc",
type: "clickable",
fillType: "actFill",
},
SD: {
label: "SD/部长",
label: "template.gsp.MJYLQSQD.sd",
type: "input",
fillType: "actFill",
},
sywzmc: {
label: "试验物质名称",
label: "template.gsp.MJYLQSQD.sywzmc",
type: "select",
fillType: "actFill",
otherCode: "sywzmcOther",
options: this.getDictOptions('business_sywzmc'),
},
gyjl: {
label: "给药剂量",
label: "template.gsp.MJYLQSQD.gyjl",
type: "select",
fillType: "actFill",
otherCode: "gyjlOther",
options: this.getDictOptions('business_gyjl'),
},
xynd: {
label: "需要浓度",
label: "template.gsp.MJYLQSQD.xynd",
type: "select",
fillType: "actFill",
otherCode: "xyndOther",
options: this.getDictOptions('business_gynd'),
},
xyl: {
label: "需要量",
label: "template.gsp.MJYLQSQD.xyl",
type: "inputNumber",
fillType: "actFill",
},
xysj: {
label: "需要时间",
label: "template.gsp.MJYLQSQD.xysj",
type: "dateTime",
fillType: "actFill",
},
yjghsj: {
label: "预计归还时间",
label: "template.gsp.MJYLQSQD.yjghsj",
type: "dateTime",
fillType: "actFill",
},
dwzs: {
label: "动物种属",
label: "template.gsp.MJYLQSQD.dwzs",
type: "select",
fillType: "actFill",
otherCode: "dwzsOther",
options: this.getDictOptions('business_dwzs'),
},
dwpjtz: {
label: "动物平均体重",
label: "template.gsp.MJYLQSQD.dwpjtz",
type: "input",
fillType: "actFill",
subType: "select",
@ -151,7 +149,7 @@ export default {
subOptions: this.getDictOptions('business_dwtz'),
},
dwsl: {
label: "动物数量",
label: "template.gsp.MJYLQSQD.dwsl",
type: "input",
fillType: "actFill",
subType: "select",

+ 13
- 15
src/views/business/comps/template/comps/gsp/SYWZPZJHB.vue View File

@ -6,9 +6,9 @@
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPcakge label="试验基本信息" ref="baseInfoRef" :formConfig="baseInfoFormConfig"
<BaseInfoFormPcakge label="template.common.baseInfo" ref="baseInfoRef" :formConfig="baseInfoFormConfig"
:formData="formData" />
<LineLabel label="计划信息" />
<LineLabel label="template.gsp.SYWZPZJHB.jhxx" />
<div class="template-form-item">
<BaseInfoFormPcakge ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
@ -19,11 +19,9 @@
</template>
</CustomTable>
</div>
<BaseInfoFormPcakge label="特别说明" ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
<BaseInfoFormPcakge label="template.gsp.SYWZPZJHB.tbsm" ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
<!-- <button @click="onSave">保存</button> -->
</div>
</div>
</template>
@ -76,7 +74,7 @@ export default {
type: "textarea",
fillType: "actFill",
span: 1,
placeholder: "请输入特别说明",
placeholder: "template.common.remarkPlaceholder",
maxlength: 1000,
rows: 5
}
@ -91,12 +89,12 @@ export default {
type: "cardItem",
config: {
studyMc: {
label: "试验名称",
label: "template.common.testName",
type: "input",
disabled: true,
},
studySn: {
label: "试验编号",
label: "template.common.testNumber",
type: "input",
disabled: true,
},
@ -112,22 +110,22 @@ export default {
type: "step",
config: {
drawTime: {
label: "领取时间",
label: "template.gsp.SYWZPZJHB.lqsj",
type: "dateTime",
fillType: "actFill",
},
analyzeTime: {
label: "分析时间",
label: "template.gsp.SYWZPZJHB.fxsj",
type: "dateTime",
fillType: "actFill",
},
testSubstance: {
label: "试验物质",
label: "template.gsp.SYWZPZJHB.sywz",
type: "input",
fillType: "actFill",
},
configFrequency: {
label: "配置频率",
label: "template.gsp.SYWZPZJHB.pzpl",
type: "input",
fillType: "actFill",
},
@ -139,7 +137,7 @@ export default {
stepColumns() {
return [
{
label: "给药剂量或组别",
label: "template.gsp.SYWZPZJHB.gyzjhzb",
prop: "startSolutionCode",
width: 280,
bodyType: "input",
@ -147,7 +145,7 @@ export default {
bodyMaxlength: 10,
},
{
label: "配制浓度",
label: "template.gsp.SYWZPZJHB.pznd",
prop: "preparationConcentration",
width: 280,
headerSelectKey: "preparationConcentrationUnit",
@ -159,7 +157,7 @@ export default {
bodyMaxlength: 10,
},
{
label: "配制体积",
label: "template.gsp.SYWZPZJHB.pztj",
prop: "preparationVolume",
width: 280,
headerSelectKey: "preparationVolumeUnit",

Loading…
Cancel
Save