Browse Source

feat:[模板管理][DL009结果信息表]

ouqian
ouqian 1 month ago
parent
commit
95d31cda38
3 changed files with 107 additions and 8 deletions
  1. +10
    -1
      src/lang/en/template/dl.js
  2. +10
    -1
      src/lang/zh/template/dl.js
  3. +87
    -6
      src/views/business/comps/template/comps/dl/DL009.vue

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

@ -47,7 +47,16 @@ export default {
clxx: 'Processing Information', clxx: 'Processing Information',
clbh: 'Processing Number', clbh: 'Processing Number',
cltj: 'Processing Conditions', cltj: 'Processing Conditions',
jgxx: 'Result Information'
jgxx: 'Result Information',
qxbd: 'Previous Form',
jlzb: 'Dose Group',
jzbh: 'Strain Number',
czqk: 'Precipitation Status',
bjjt: 'Background Lawn',
jls: 'Colony Count',
czqkDesc: 'Precipitation codes: "P-" = "None"; "P+" = "Slight"; "P++" = "Moderate"; "P+++" = "Severe".',
bjjtDesc: 'Background lawn codes: "N" = "Normal"; "R1" = "Weak, lawn covers 70%-90% of plate area"; "R2" = "Medium, lawn covers 40%-70% of plate area"; "R3" = "Strong, lawn covers 10%-40% of plate area"; "A" = "Absent, no lawn on plate"; "O" = "Precipitation present, affecting lawn assessment";',
jlsDesc: 'Colony count special case: "*" indicates pinpoint colonies visible on plate;'
}, },
dl010: { dl010: {
...common, ...common,

+ 10
- 1
src/lang/zh/template/dl.js View File

@ -47,7 +47,16 @@ export default {
clxx: '处理信息', clxx: '处理信息',
clbh: '处理编号', clbh: '处理编号',
cltj: '处理条件', cltj: '处理条件',
jgxx: '结果信息'
jgxx: '结果信息',
qxbd: '前序表单',
jlzb: '剂量组别',
jzbh: '菌种编号',
czqk: '沉淀情况',
bjjt: '背景菌苔',
jls: '菌落数(个)',
czqkDesc: '沉淀量以代码填入:"P-" 代表 "无沉淀";"P+" 代表 "少量";"P++" 代表 "中等";"P+++" 代表 "严重"。',
bjjtDesc: '背景菌苔以代码填入:"N" 代表 "正常";"R1" 代表 "弱,菌苔约占平皿面积 70%-90%";"R2" 代表 "中,菌苔约占平皿面积 40%-70%";"R3" 代表 "强,菌苔约占平皿面积 10%-40%";"A" 代表 "消失,平皿上无菌苔";"O" 代表 "产生沉淀,影响背景菌苔判断";',
jlsDesc: '菌落数特殊情况:"*" 该平皿可见针尖样菌落;'
}, },
dl010: { dl010: {
...common, ...common,

+ 87
- 6
src/views/business/comps/template/comps/dl/DL009.vue View File

@ -48,8 +48,18 @@
</template> </template>
</CustomTable> </CustomTable>
<!-- 结果信息 - 预留模块 -->
<!-- 结果信息 -->
<LineLabel label="template.dl.dl009.jgxx" /> <LineLabel label="template.dl.dl009.jgxx" />
<BaseInfoFormPackage
:ref="refConf.jgxxQxbd"
:formConfig="jgxxQxbdFormConfig"
:formData="formData"
/>
<div class="jgxx-description">
<p>{{ $t('template.dl.dl009.czqkDesc') }}</p>
<p>{{ $t('template.dl.dl009.bjjtDesc') }}</p>
<p>{{ $t('template.dl.dl009.jlsDesc') }}</p>
</div>
<CustomTable <CustomTable
:columns="jgxxColumns" :columns="jgxxColumns"
:ref="refConf.jgxx" :ref="refConf.jgxx"
@ -88,6 +98,7 @@ const refConf = {
cltj: 'cltjRef', cltj: 'cltjRef',
czsj: 'czsjRef', czsj: 'czsjRef',
yqsy: 'yqsyTableRef', yqsy: 'yqsyTableRef',
jgxxQxbd: 'jgxxQxbdRef',
jgxx: 'jgxxTableRef', jgxx: 'jgxxTableRef',
remark: 'remarkRef' remark: 'remarkRef'
} }
@ -237,9 +248,58 @@ export default {
} }
] ]
}, },
// -
//
jgxxQxbdFormConfig() {
return [
{
type: 'cellItem',
config: {
jgxxQxbd: {
label: 'template.dl.dl009.qxbd',
type: 'qxbd',
fillType: 'actFill',
filledCodes: ['bdmc', 'bdbh']
}
}
}
]
},
//
jgxxColumns() { jgxxColumns() {
return []
return [
{
label: 'template.dl.dl009.jlzb',
prop: 'jlzb',
bodyType: 'input',
bodyFillType: 'actFill'
},
{
label: 'template.dl.dl009.jzbh',
prop: 'jzbh',
bodyType: 'input',
bodyFillType: 'actFill'
},
{
label: 'template.dl.dl009.czqk',
prop: 'czqk',
bodyType: 'select',
bodyFillType: 'actFill',
bodyOptions: this.getDictOptions('business_czqk')
},
{
label: 'template.dl.dl009.bjjt',
prop: 'bjjt',
bodyType: 'select',
bodyFillType: 'actFill',
bodyOptions: this.getDictOptions('business_bjjt')
},
{
label: 'template.dl.dl009.jls',
prop: 'jls',
bodyType: 'input',
bodyFillType: 'actFill'
}
]
} }
}, },
data() { data() {
@ -266,10 +326,17 @@ export default {
return await this.validFormFields(refNames) return await this.validFormFields(refNames)
}, },
getResource() { getResource() {
const stepResource = this.$refs.yqsyTableRef.getStepResource()
const yqsyStepResource = this.$refs.yqsyTableRef.getStepResource()
const jgxxStepResource = this.$refs.jgxxTableRef.getStepResource()
// 使 // 使
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
this.resourceTmp = [
...(yqsyStepResource.sjResource || []),
...(jgxxStepResource.sjResource || [])
]
this.yqResourceTmp = [
...(yqsyStepResource.yqResource || []),
...(jgxxStepResource.yqResource || [])
]
return this.resourceTmp return this.resourceTmp
}, },
onRegentSubmit(e) { onRegentSubmit(e) {
@ -294,6 +361,20 @@ export default {
} }
</script> </script>
<style rel="stylesheet/scss" lang="scss"> <style rel="stylesheet/scss" lang="scss">
.jgxx-description {
margin: 15px 0;
padding: 12px 15px;
background-color: #f5f7fa;
border-left: 4px solid #409eff;
font-size: 13px;
line-height: 1.8;
color: #606266;
p {
margin: 5px 0;
}
}
.mt-20 { .mt-20 {
margin-top: 20px; margin-top: 20px;
} }

Loading…
Cancel
Save