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; background: #ffffff;
padding: 10px 10px; padding: 10px 10px;
margin-top: 10px; margin-top: 10px;
width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
.content-right { .content-right {

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

@ -2,28 +2,30 @@
<template> <template>
<div> <div>
<div class="detail-container"> <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="detail-content">
<div class="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')" /> <LineLabel :label="$t('template.common.operationSteps')" />
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPcakge ref="stepFormPackageRef" :formConfig="stepFormConfig"
@blur = "onHandleBlur"
<BaseInfoFormPcakge ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" /> :formData="formData" />
</div> </div>
<Step ref="stepRef" :formData="formData.stepData"></Step> <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>
</div> </div>
<button @click = "onSave">{{ $t('template.common.saveBtn') }}</button>
<button @click="onSave">{{ $t('template.common.saveBtn') }}</button>
</div> </div>
</div> </div>
</template> </template>
@ -101,13 +103,13 @@ export default {
label: this.$t('template.common.methodCode'), label: this.$t('template.common.methodCode'),
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
maxlength:50
maxlength: 50
}, },
versionNum: { versionNum: {
label: this.$t('template.common.versionNumber'), label: this.$t('template.common.versionNumber'),
type: "input", type: "input",
fillType: "actFill", fillType: "actFill",
maxlength:50
maxlength: 50
}, },
} }
@ -159,7 +161,7 @@ export default {
label: this.$t('template.common.targetSolutionName'), label: this.$t('template.common.targetSolutionName'),
type: "input", type: "input",
fillType: "preFill", fillType: "preFill",
maxlength:50
maxlength: 50
}, },
targetCode: { targetCode: {
label: this.$t('template.common.targetSolutionCode'), label: this.$t('template.common.targetSolutionCode'),
@ -167,7 +169,7 @@ export default {
subType: "span", subType: "span",
fillType: "preFill", fillType: "preFill",
subKey: "targetCode1", subKey: "targetCode1",
maxlength:20
maxlength: 20
}, },
targetPreConcentration: { targetPreConcentration: {
label: this.$t('template.common.targetPreConcentration'), label: this.$t('template.common.targetPreConcentration'),
@ -176,7 +178,7 @@ export default {
subKey: "targetPreConcentrationUnit", subKey: "targetPreConcentrationUnit",
fillType: "preFill", fillType: "preFill",
subOptions: this.getDictOptions('business_nddw'), subOptions: this.getDictOptions('business_nddw'),
maxlength:10
maxlength: 10
}, },
targetActConcentration: { targetActConcentration: {
label: this.$t('template.common.targetActConcentration'), label: this.$t('template.common.targetActConcentration'),
@ -188,7 +190,7 @@ export default {
subFillType: "preFill", subFillType: "preFill",
subOptions: this.getDictOptions('business_nddw'), subOptions: this.getDictOptions('business_nddw'),
copyFrom: "targetPreConcentration",// copyFrom: "targetPreConcentration",//
maxlength:10
maxlength: 10
}, },
targetPreVolume: { targetPreVolume: {
label: this.$t('template.common.targetPreVolume'), label: this.$t('template.common.targetPreVolume'),
@ -197,7 +199,7 @@ export default {
subKey: "targetPreVolumeUnit", subKey: "targetPreVolumeUnit",
subOptions: this.getDictOptions('business_tjdw'), subOptions: this.getDictOptions('business_tjdw'),
fillType: "preFill", fillType: "preFill",
maxlength:10
maxlength: 10
}, },
targetActVolume: { targetActVolume: {
label: this.$t('template.common.targetActVolume'), label: this.$t('template.common.targetActVolume'),
@ -209,7 +211,7 @@ export default {
subOptions: this.getDictOptions('business_tjdw'), subOptions: this.getDictOptions('business_tjdw'),
compareTo: "targetPreVolume",// compareTo: "targetPreVolume",//
copyFrom: "targetPreVolume",// copyFrom: "targetPreVolume",//
maxlength:10
maxlength: 10
}, },
effectivePeriod: { effectivePeriod: {
label: this.$t('template.common.effectivePeriod'), label: this.$t('template.common.effectivePeriod'),
@ -218,7 +220,7 @@ export default {
subKey: "effectivePeriodUnit", subKey: "effectivePeriodUnit",
fillType: "preFill", fillType: "preFill",
subOptions: this.getDictOptions('business_yxqdw'), subOptions: this.getDictOptions('business_yxqdw'),
maxlength:10
maxlength: 10
}, },
expireDate: { expireDate: {
label: this.$t('template.common.expireDate'), label: this.$t('template.common.expireDate'),
@ -234,12 +236,12 @@ export default {
resource: [], resource: [],
resourceData1: [], resourceData1: [],
sysjColumns: [ 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: [ yqsColumns: [
{ label: this.$t('template.common.instrumentName'), prop: "instrumentName" }, { label: this.$t('template.common.instrumentName'), prop: "instrumentName" },
@ -251,18 +253,44 @@ export default {
}; };
}, },
mounted() { mounted() {
}, },
methods: { methods: {
async getFormData() { 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() { async onSave() {
const formData = await this.getFormData(); const formData = await this.getFormData();
console.log(formData, "formData") console.log(formData, "formData")
}, },
} }
}; };
</script> </script>

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

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

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

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

Loading…
Cancel
Save