Browse Source

feat:[模板管理][色谱]生物样品分析溶液配制表 填报

master
15881625488@163.com 1 day ago
parent
commit
ad2127a645
4 changed files with 71 additions and 39 deletions
  1. +1
    -0
      src/App.vue
  2. +59
    -31
      src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
  3. +3
    -3
      src/views/business/comps/template/mixins/templateMixin.js
  4. +8
    -5
      src/views/business/study/comp/tbbd/Bj.vue

+ 1
- 0
src/App.vue View File

@ -375,6 +375,7 @@ export default {
background: #ffffff;
padding: 10px 10px;
margin-top: 10px;
width: 100%;
display: flex;
justify-content: center;
.content-right {

+ 59
- 31
src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue View File

@ -2,28 +2,30 @@
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{formData.templateMc || $t('template.common.pageTitle')}}<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.templateMc ||
$t('template.common.pageTitle') }}<img src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPcakge :label="$t('template.common.baseInfo')" ref="baseInfoRef" :formConfig="baseInfoFormConfig"
:formData="formData" />
<TableList :label="$t('template.common.reagentInfo')" :columns="sysjColumns" :dataSource="resource" />
<TableList :label="$t('template.common.instrumentInfo')" :columns="yqsColumns" :dataSource="resource" />
<BaseInfoFormPcakge :label="$t('template.common.storageCondition')" ref="storageConditionRef" :formConfig="storageFormConfig"
:formData="formData" />
<BaseInfoFormPcakge :label="$t('template.common.baseInfo')" ref="baseInfoRef"
:formConfig="baseInfoFormConfig" :formData="formData" />
<TableList :label="$t('template.common.reagentInfo')" :columns="sysjColumns"
:dataSource="resource" />
<TableList :label="$t('template.common.instrumentInfo')" :columns="yqsColumns"
:dataSource="resource" />
<BaseInfoFormPcakge :label="$t('template.common.storageCondition')" ref="storageConditionRef"
:formConfig="storageFormConfig" :formData="formData" />
<LineLabel :label="$t('template.common.operationSteps')" />
<div class="template-form-item">
<BaseInfoFormPcakge ref="stepFormPackageRef" :formConfig="stepFormConfig"
@blur = "onHandleBlur"
<BaseInfoFormPcakge ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
</div>
<Step ref="stepRef" :formData="formData.stepData"></Step>
<BaseInfoFormPcakge :label="$t('template.common.remark')" ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
<BaseInfoFormPcakge :label="$t('template.common.remark')" ref="remarkRef" :formConfig="remarkConig"
:formData="formData" />
</div>
</div>
<button @click = "onSave">{{ $t('template.common.saveBtn') }}</button>
<button @click="onSave">{{ $t('template.common.saveBtn') }}</button>
</div>
</div>
</template>
@ -101,13 +103,13 @@ export default {
label: this.$t('template.common.methodCode'),
type: "input",
fillType: "preFill",
maxlength:50
maxlength: 50
},
versionNum: {
label: this.$t('template.common.versionNumber'),
type: "input",
fillType: "actFill",
maxlength:50
maxlength: 50
},
}
@ -159,7 +161,7 @@ export default {
label: this.$t('template.common.targetSolutionName'),
type: "input",
fillType: "preFill",
maxlength:50
maxlength: 50
},
targetCode: {
label: this.$t('template.common.targetSolutionCode'),
@ -167,7 +169,7 @@ export default {
subType: "span",
fillType: "preFill",
subKey: "targetCode1",
maxlength:20
maxlength: 20
},
targetPreConcentration: {
label: this.$t('template.common.targetPreConcentration'),
@ -176,7 +178,7 @@ export default {
subKey: "targetPreConcentrationUnit",
fillType: "preFill",
subOptions: this.getDictOptions('business_nddw'),
maxlength:10
maxlength: 10
},
targetActConcentration: {
label: this.$t('template.common.targetActConcentration'),
@ -188,7 +190,7 @@ export default {
subFillType: "preFill",
subOptions: this.getDictOptions('business_nddw'),
copyFrom: "targetPreConcentration",//
maxlength:10
maxlength: 10
},
targetPreVolume: {
label: this.$t('template.common.targetPreVolume'),
@ -197,7 +199,7 @@ export default {
subKey: "targetPreVolumeUnit",
subOptions: this.getDictOptions('business_tjdw'),
fillType: "preFill",
maxlength:10
maxlength: 10
},
targetActVolume: {
label: this.$t('template.common.targetActVolume'),
@ -209,7 +211,7 @@ export default {
subOptions: this.getDictOptions('business_tjdw'),
compareTo: "targetPreVolume",//
copyFrom: "targetPreVolume",//
maxlength:10
maxlength: 10
},
effectivePeriod: {
label: this.$t('template.common.effectivePeriod'),
@ -218,7 +220,7 @@ export default {
subKey: "effectivePeriodUnit",
fillType: "preFill",
subOptions: this.getDictOptions('business_yxqdw'),
maxlength:10
maxlength: 10
},
expireDate: {
label: this.$t('template.common.expireDate'),
@ -234,12 +236,12 @@ export default {
resource: [],
resourceData1: [],
sysjColumns: [
{ label: this.$t('template.common.reagentName'), prop: "reagentName" },
{ label: this.$t('template.common.reagentCode'), prop: "reagentCode" },
{ label: this.$t('template.common.reagentNo'), prop: "reagentNo" },
{ label: this.$t('template.common.concentration'), prop: "concentration" },
{ label: this.$t('template.common.source'), prop: "source" },
{ label: this.$t('template.common.reagentExpireDate'), prop: "expireDate" },
{ label: this.$t('template.common.reagentName'), prop: "mc" },//
{ label: this.$t('template.common.reagentCode'), prop: "bh" },//
{ label: this.$t('template.common.reagentNo'), prop: "ph" },//
{ label: this.$t('template.common.concentration'), prop: "nd" },//
{ label: this.$t('template.common.source'), prop: "source" },//
{ label: this.$t('template.common.reagentExpireDate'), prop: "sxrq" },//
],
yqsColumns: [
{ label: this.$t('template.common.instrumentName'), prop: "instrumentName" },
@ -251,18 +253,44 @@ export default {
};
},
mounted() {
},
methods: {
async getFormData() {
return await this.validFormFields(["baseInfoRef", "storageConditionRef","stepFormPackageRef","stepRef","remarkRef"]);
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]);
//resource todo ,
// type1357,syl使syldw使
let tmpResource = []
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode,
ph: '',
nd: content.targetActConcentration + content.targetActConcentrationUnit,
source: '配置',
type: 1,
sxrq: content.expireDate,
ndz: content.targetActConcentration,
nddw: content.targetActConcentrationUnit,
kc: content.targetActVolume,
kcdw: content.targetActVolumeUnit,
syl: null,
syldw: content.targetActVolumeUnit,
})
//使
this.resource=tmpResource
console.log(this.resource, "resource")
return content;
},
async onSave() {
const formData = await this.getFormData();
console.log(formData, "formData")
},
}
};
</script>

+ 3
- 3
src/views/business/comps/template/mixins/templateMixin.js View File

@ -16,7 +16,7 @@ export default {
let n = { ...v };
this.formData =n;
if(v.resource){//试验试剂信息
this.resource = v.resource;
this.resource = JSON.parse(v.resource);
}
if (v.bdnr) {
this.formData = { ...n, ...JSON.parse(v.bdnr) };
@ -35,8 +35,8 @@ export default {
}
},
mounted() {
this.setTemplateStatus("actFill");
// this.setTemplateStatus(this.fillType);
// this.setTemplateStatus("actFill");
this.setTemplateStatus(this.fillType);
},
unmounted() {
this.setTemplateStatus("");

+ 8
- 5
src/views/business/study/comp/tbbd/Bj.vue View File

@ -89,6 +89,7 @@
<el-col :psna="24">
<el-form-item>
<el-checkbox v-model="showCz">处置</el-checkbox>
{{ formApprove.resource }}
</el-form-item>
</el-col>
<el-col :psna="24">
@ -229,12 +230,14 @@ export default {
}
},
async showApprove() {
let content = await this.$refs.templateTable.getFormData()
let that=this
let content = await that.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
that.resetApprove()
that.formApprove.id = that.form.id
that.formApprove.bdnr = JSON.stringify(content)
that.formApprove.resource = JSON.stringify(that.$refs.templateTable.getResource())
that.openApprove = true
}
},
resetApprove() {

Loading…
Cancel
Save