Browse Source

feat:[模板管理]bug修复

zhangteng
ZHANGTENG\张腾 3 hours ago
parent
commit
daf14fbe21
12 changed files with 100 additions and 86 deletions
  1. +13
    -11
      src/lang/en/template/bl.js
  2. +17
    -18
      src/lang/en/template/dj.js
  3. +28
    -28
      src/lang/en/template/dl.js
  4. +6
    -6
      src/lang/en/template/xb.js
  5. +1
    -1
      src/lang/zh.js
  6. +1
    -2
      src/lang/zh/template/dj.js
  7. +1
    -1
      src/views/business/comps/template/comps/bl/BL001.vue
  8. +1
    -0
      src/views/business/comps/template/comps/dj/DJ001.vue
  9. +13
    -7
      src/views/business/comps/template/comps/dj/DJ002.vue
  10. +13
    -7
      src/views/business/comps/template/comps/dj/DJ003.vue
  11. +4
    -3
      src/views/business/comps/template/comps/xb/XB001.vue
  12. +2
    -2
      src/views/business/comps/template/formConfig/xb/xb001.js

+ 13
- 11
src/lang/en/template/bl.js View File

@ -1,16 +1,18 @@
//病理 //病理
export default { export default {
bl002: { bl002: {
fhsj: '复核时间',
ybsm: '样本说明',
smybh: '扫描仪编号',
dwypbh: '动物/样本编号',
qprsbh: '切片/染色编号',
smryqrxx: '扫描人员确认信息',
ztblxjqrxx: '专题病理学家确认信息',
smybz: '扫描员备注',
ztblxjbz: '专题病理学家备注',
txmmzq: '图像命名准确',
txwzqx: '图像完整清晰'
fhsj: 'Review Time',
ybsm: 'Sample Description',
smybh: 'Scanner ID',
dwypbh: 'Animal/Sample ID',
qprsbh: 'Section/Stain ID',
smryqrxx: 'Scan Personnel Confirmation Information ',
ztblxjqrxx: ' Histopathology Confirmation Information',
smybz: 'Scan Personnel Comment',
ztblxjbz: 'Histopathologist Comment',
txmmzq: 'Accurate Image Name',
txwzqx: 'Complete Clear Image'
}, },
} }

+ 17
- 18
src/lang/en/template/dj.js View File

@ -1,26 +1,25 @@
//动技 //动技
export default { export default {
dj001: { dj001: {
syts: '试验天数',
fhfw: '复核范围',
fhlr: '复核内容'
syts: 'Test Days',
fhfw: 'Review Scope',
fhlr: 'Review Content'
}, },
//dj002复用dj003 //dj002复用dj003
dj003: { dj003: {
yplx: '样品类型',
knj: '抗凝剂',
cyhcftj: '采样后存放条件',
cyd: '采样点',
ypmc: '样品名称',
dwbh: '动物编号',
cysj: '采样开始时间',
sjbd: '时间比对',
sjbd: '时间比对',
yps: '样品数',
ypyjxx: '样品移交信息',
yjczxx: '移交处置信息',
yjsj: '移交时间',
hqsj: '获取时间',
dsfs: '递送方式'
yplx: 'Sample Category',
knj: 'Anticoagulant',
cyhcftj: 'Storage Condition after Sampling',
cyd: 'Sampling Point',
ypmc: 'Sample Name',
dwbh: 'Animal ID',
cysj: 'Sampling Time',
sjbd: 'Time Comparison',
yps: 'Sample Size',
ypyjxx: 'Sample Transfer Information',
yjczxx: 'Sample Disposal Information',
yjsj: 'Transfer Time',
hqsj: 'Acquire Time',
dsfs: 'Transfer Method'
} }
} }

+ 28
- 28
src/lang/en/template/dl.js View File

@ -33,44 +33,44 @@ export default {
czsj: 'Operation Time', czsj: 'Operation Time',
dl003: { dl003: {
...common, ...common,
pytj: '培养条件',
jzkssj: '接种开始时间',
jzjssj: '接种结束时间',
fssygbh: '复苏水浴锅编号',
pyx: '培养箱',
fstj: '复苏条件',
jzjzhbh: '菌种接种后编号',
jzlybh: '菌种来源编号',
rtbh: '肉汤编号',
jzjrtj: '菌种加入体积',
pytj: 'Incubation Condition',
jzkssj: 'Inoculation Start Time',
jzjssj: 'Inoculation End Time',
fssygbh: 'Revival Water Bath ID',
pyx: 'Incubator',
fstj: 'Revival Condition',
jzjzhbh: 'Strain ID after Inoculation',
jzlybh: 'Strain Source ID',
rtbh: 'Broth ID',
jzjrtj: 'Inoculum Volume',
ksButton: 'Start', ksButton: 'Start',
jsButton: 'End' jsButton: 'End'
}, },
dl004: { dl004: {
...common, ...common,
zjjgqr: '增菌结果确认',
zjjgqr: 'Enrichment Result Confirmation',
ccwz: 'Storage Location' ccwz: 'Storage Location'
}, },
dl006: { dl006: {
...common, ...common,
jlzpzxx: '剂量组配制信息',
jzs: '菌种数',
pxms: '平行皿数',
qsbh: '起始编号',
sftjs9: '是否添加s9',
s9hhybh: 'S9混合液编号',
s9hhyyjjrl: 'S9混合液预计加入量',
pbsbh: 'PBS编号',
pbsryyjjrl: 'PBS溶液预计加入量',
jlzsl: '剂量组数量',
jlzpzxx: 'Dose Group Formulation Information',
jzs: 'Strain Number',
pxms: 'Plate Number',
qsbh: 'Original ID',
sftjs9: 'Whether to add S9',
s9hhybh: 'S9 Mixture ID',
s9hhyyjjrl: 'Expected Volume of S9 Mixture Added',
pbsbh: 'PBS ID',
pbsryyjjrl: 'Expected Volume of PBS Added',
jlzsl: 'Dose Group Number',
wcButton: 'Finsh', wcButton: 'Finsh',
jlzmc: '剂量组名称 ',
jymc: '加液名称',
jybh: '加液编号',
ysjytj: '预设加液体积',
jlzb: '剂量组别',
jzbh: '菌种编号',
gspcdqk: '供试品沉淀情况'
jlzmc: 'Dose Group Name',
jymc: 'Added Liquid Name',
jybh: 'Added Liquid ID',
ysjytj: 'Expected Volume of Added Liquid',
jlzb: 'Dose Group',
jzbh: 'Strain ID',
gspcdqk: 'Test Item Precipitation Status '
}, },
dl007: { dl007: {
...common, ...common,

+ 6
- 6
src/lang/en/template/xb.js View File

@ -1,15 +1,15 @@
//细胞 //细胞
export default { export default {
xb001: { xb001: {
jcsj: '操作时间',
jcsj: 'Operation Time',
czbz: 'Operation Workflow', czbz: 'Operation Workflow',
qtbz: '其他步骤',
qtbz: 'Other Workflow',
fj: 'Attachment', fj: 'Attachment',
fpc: '分批次',
zb: '组别',
lx: '类型',
fpc: 'Batch',
zb: 'Group',
lx: 'Category',
ks: 'Start', ks: 'Start',
js: 'End', js: 'End',
fysc: '孵育时长(hr: min)'
fysc: 'Incubation Duration(hr: min)'
} }
} }

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

@ -34,7 +34,7 @@ import xb from './zh/template/xb'
//动技模板 //动技模板
import dj from './zh/template/dj' import dj from './zh/template/dj'
//病理模板 //病理模板
import bl from './en/template/bl'
import bl from './zh/template/bl'
// 试验管理 // 试验管理
import study from './zh/business/study/study' import study from './zh/business/study/study'

+ 1
- 2
src/lang/zh/template/dj.js View File

@ -13,8 +13,7 @@ export default {
cyd: '采样点', cyd: '采样点',
ypmc: '样品名称', ypmc: '样品名称',
dwbh: '动物编号', dwbh: '动物编号',
cysj: '采样开始时间',
sjbd: '时间比对',
cysj: '采样时间',
sjbd: '时间比对', sjbd: '时间比对',
yps: '样品数', yps: '样品数',
ypyjxx: '样品移交信息', ypyjxx: '样品移交信息',

+ 1
- 1
src/views/business/comps/template/comps/bl/BL001.vue View File

@ -193,7 +193,7 @@ export default {
config: { config: {
cyhcftjyt: { cyhcftjyt: {
span: 1, span: 1,
label: 'template.common.actualFill',
label: 'template.common.preFill',
multiple: true, multiple: true,
type: 'select', type: 'select',
options: this.getDictOptions('business_cftj'), options: this.getDictOptions('business_cftj'),

+ 1
- 0
src/views/business/comps/template/comps/dj/DJ001.vue View File

@ -20,6 +20,7 @@
<CustomTable <CustomTable
:columns="operateColumns" :columns="operateColumns"
ref="operateTableRef" ref="operateTableRef"
operationWidth = "100px"
:showOperation="fillType === 'preFill'" :showOperation="fillType === 'preFill'"
:showAddRow="fillType === 'preFill'" :showAddRow="fillType === 'preFill'"
:formData="formData" :formData="formData"

+ 13
- 7
src/views/business/comps/template/comps/dj/DJ002.vue View File

@ -20,6 +20,7 @@
<div class="template-form-item" > <div class="template-form-item" >
<span>{{ $t('template.dj.dj003.ypmc') }}</span> <span>{{ $t('template.dj.dj003.ypmc') }}</span>
<CustomTable <CustomTable
operationWidth = "100px"
fieldItemLabel="template.dj.dj003.ypmc" fieldItemLabel="template.dj.dj003.ypmc"
:columns="ypmcColumns" :columns="ypmcColumns"
:isBorder="false" :isBorder="false"
@ -40,6 +41,7 @@
</CustomTable> </CustomTable>
<CustomTable <CustomTable
operationWidth = "100px"
@bodyTreeChange="changeTree" @bodyTreeChange="changeTree"
fieldItemLabel="template.dj.dj003.ypyjxx" fieldItemLabel="template.dj.dj003.ypyjxx"
:columns="ypyjColumns" :columns="ypyjColumns"
@ -226,12 +228,14 @@ export default {
label: 'template.dj.dj003.cyd', label: 'template.dj.dj003.cyd',
prop: "cyd", prop: "cyd",
bodyType: 'input', bodyType: 'input',
width: 250,
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
{ {
label: 'template.dj.dj003.dwbh', label: 'template.dj.dj003.dwbh',
prop: "dwbh", prop: "dwbh",
bodyType: 'input', bodyType: 'input',
width: 250,
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
{ {
@ -260,9 +264,10 @@ export default {
label: 'template.dj.dj003.sjbd', label: 'template.dj.dj003.sjbd',
prop: "sjbd", prop: "sjbd",
bodyType: 'select', bodyType: 'select',
width: 250,
bodyOptions: [ bodyOptions: [
{value:1,label:'正常'},
{value:0,label:'偏离'},
{value:'正常',label:'正常'},
{value:'偏离',label:'偏离'},
], ],
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
@ -271,6 +276,7 @@ export default {
prop: "yps", prop: "yps",
bodyType: 'inputNumber', bodyType: 'inputNumber',
bodyFillType: 'actFill', bodyFillType: 'actFill',
width: 250,
bodyDisabled: true, bodyDisabled: true,
}, },
] ]
@ -346,14 +352,14 @@ export default {
console.log(formData, 'formData') console.log(formData, 'formData')
}, },
// //
handleClickButton(_item, signData) {
if(_item === 'cysjButton'){
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(signData, {cysj:moment().format('YYYY/MM/DD HH:mm')})
handleClickButton(key, rowIndex,colIndex,e,data) {
if(key === 'cysjButton'){
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(rowIndex,{cysj:moment().format('YYYY/MM/DD HH:mm')},{signData:data, updateFields:['cysj']})
}else{ }else{
this.$refs.yjczxxRef.updateFormData( this.$refs.yjczxxRef.updateFormData(
_item?.subKey?.replace("Button", ""),
key?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'), moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
{ isUpdateRecord: true, signData:data }
) )
} }
}, },

+ 13
- 7
src/views/business/comps/template/comps/dj/DJ003.vue View File

@ -18,6 +18,7 @@
<LineLabel label="template.dj.dj003.ypyjxx" /> <LineLabel label="template.dj.dj003.ypyjxx" />
<CustomTable <CustomTable
operationWidth = "100px"
fieldItemLabel="template.dj.dj003.ypyjxx" fieldItemLabel="template.dj.dj003.ypyjxx"
:columns="ypyjColumns" :columns="ypyjColumns"
:ref="'ypyjTableRef'" :ref="'ypyjTableRef'"
@ -188,12 +189,14 @@ export default {
label: 'template.dj.dj003.cyd', label: 'template.dj.dj003.cyd',
prop: "cyd", prop: "cyd",
bodyType: 'input', bodyType: 'input',
width: 250,
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
{ {
label: 'template.dj.dj003.dwbh', label: 'template.dj.dj003.dwbh',
prop: "dwbh", prop: "dwbh",
bodyType: 'input', bodyType: 'input',
width: 250,
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
{ {
@ -205,6 +208,7 @@ export default {
bodySubKey: 'cysjButton', bodySubKey: 'cysjButton',
bodySubyDisabled: this.fillType !== 'actFill', bodySubyDisabled: this.fillType !== 'actFill',
bodyDisabled: true, bodyDisabled: true,
width: 300,
bodySubFillType: 'actFill', bodySubFillType: 'actFill',
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
@ -212,9 +216,10 @@ export default {
label: 'template.dj.dj003.sjbd', label: 'template.dj.dj003.sjbd',
prop: "sjbd", prop: "sjbd",
bodyType: 'select', bodyType: 'select',
width: 250,
bodyOptions: [ bodyOptions: [
{value:1,label:'正常'},
{value:0,label:'偏离'},
{value:'正常',label:'正常'},
{value:'偏离',label:'偏离'},
], ],
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
@ -222,6 +227,7 @@ export default {
label: 'template.dj.dj003.yps', label: 'template.dj.dj003.yps',
prop: "yps", prop: "yps",
bodyType: 'inputNumber', bodyType: 'inputNumber',
width: 250,
bodyFillType: 'actFill' bodyFillType: 'actFill'
}, },
] ]
@ -293,14 +299,14 @@ export default {
console.log(formData, 'formData') console.log(formData, 'formData')
}, },
// //
handleClickButton(_item, signData) {
if(_item === 'cysjButton'){
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(signData, {cysj:moment().format('YYYY/MM/DD HH:mm')})
handleClickButton(key, rowIndex,colIndex,e,data) {
if(key === 'cysjButton'){
this.$refs.ypyjTableRef.updateDataSourceByRowIndex(rowIndex,{cysj:moment().format('YYYY/MM/DD HH:mm')},{signData:data, updateFields:['cysj']})
}else{ }else{
this.$refs.yjczxxRef.updateFormData( this.$refs.yjczxxRef.updateFormData(
_item?.subKey?.replace("Button", ""),
key?.subKey?.replace("Button", ""),
moment().format('YYYY/MM/DD HH:mm'), moment().format('YYYY/MM/DD HH:mm'),
{ isUpdateRecord: true, signData }
{ isUpdateRecord: true, signData:data }
) )
} }
}, },

+ 4
- 3
src/views/business/comps/template/comps/xb/XB001.vue View File

@ -21,6 +21,7 @@
:columns="tableFirstColumns" :columns="tableFirstColumns"
:formData="formData" :formData="formData"
:prefixKey = "`tableFirst`" :prefixKey = "`tableFirst`"
operationWidth = "100px"
fieldItemLabel = "template.common.operationSteps" fieldItemLabel = "template.common.operationSteps"
:showOperation="fillType === 'preFill'" :showOperation="fillType === 'preFill'"
> >
@ -219,7 +220,7 @@ export default {
prop: 'fpc', prop: 'fpc',
bodyType: 'input', bodyType: 'input',
bodyFillType: 'preFill', bodyFillType: 'preFill',
width: 280,
width: 250,
bodyMaxlength: 50, bodyMaxlength: 50,
},{ },{
label: 'template.xb.xb001.zb', label: 'template.xb.xb001.zb',
@ -227,7 +228,7 @@ export default {
bodyType: 'select', bodyType: 'select',
bodyOptions: this.getDictOptions('business_xbzb'), bodyOptions: this.getDictOptions('business_xbzb'),
bodyFillType: 'preFill', bodyFillType: 'preFill',
width: 280,
width: 350,
bodyMaxlength: 10, bodyMaxlength: 10,
otherCode: "preOther1", otherCode: "preOther1",
},{ },{
@ -236,7 +237,7 @@ export default {
bodyType: 'select', bodyType: 'select',
bodyOptions: this.getDictOptions('business_xblx'), bodyOptions: this.getDictOptions('business_xblx'),
bodyFillType: 'preFill', bodyFillType: 'preFill',
width: 280,
width: 350,
bodyMaxlength: 10, bodyMaxlength: 10,
otherCode: "preOther2", otherCode: "preOther2",
}] }]

+ 2
- 2
src/views/business/comps/template/formConfig/xb/xb001.js View File

@ -292,7 +292,7 @@ export const getStepFivth = ($this) => {
type: 'text' type: 'text'
}, },
yjwd: { yjwd: {
type: 'input',
type: 'inputNumber',
fillType: 'preFill' fillType: 'preFill'
}, },
text4: { text4: {
@ -300,7 +300,7 @@ export const getStepFivth = ($this) => {
type: 'text' type: 'text'
}, },
sjwd: { sjwd: {
type: 'input',
type: 'inputNumber',
fillType: 'actFill', fillType: 'actFill',
compareTo: 'yjwd', compareTo: 'yjwd',
copyFrom: 'yjwd' copyFrom: 'yjwd'

Loading…
Cancel
Save