Browse Source

feat: [模板管理] LBA006

lkf
memorylkf 2 months ago
parent
commit
e3294baab4
1 changed files with 28 additions and 165 deletions
  1. +28
    -165
      src/views/business/comps/template/comps/lba/LBA006.vue

+ 28
- 165
src/views/business/comps/template/comps/lba/LBA006.vue View File

@ -7,30 +7,8 @@
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" v-if="resourceWz.length>0"/>
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<LineLabel label="template.lba.lba004.xbxx" />
<CustomTable
:isBorder="false"
@blur="onHandleTableBlur"
:ref="`jcbRef`"
:columns="jcbColumns"
:formData="formData"
:prefixKey = "`jcb`"
fieldItemLabel = "template.lba.lba004.xbxx"
:showOperation="fillType === 'preFill'"
>
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteJcbRow" ></TableOpertaionDelete>
</template>
</CustomTable>
<BaseInfoFormPackage fieldItemLabel="template.lba.lba004.ypxx" label="template.lba.lba004.ypxx"
ref="fjRef" :formConfig="getFjFormConfig" :formData="formData" />
<LineLabel label="template.lba.lba004.xszj" />
<LineLabel label="template.lba.lba006.fxxx" />
<!-- 平行配制区域 -->
<div :label="$t('template.common.pxpz')"
@ -38,7 +16,7 @@
:key="'paralle_' + paralleIndex">
<div class="template-form-item">
<div class="config-header-end" v-ifan class="s">="fillType === 'preFill'">
<div class="config-header-end">
<el-button type="primary" @click="handleAddParalle(false)">{{ $t('template.lba.lba004.xz')}}</el-button>
<el-button type="danger" plain @click="deleteParalleConfig(paralleIndex)">{{ $t('template.lba.lba004.sc')}}</el-button>
</div>
@ -46,29 +24,6 @@
:ref="`paralleStepFormPackageRef_${paralleIndex}`" :formConfig="paralleStepFormConfig"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex"
:fieldItemLabel="$t('template.lba.lba004.xszj')" />
<!-- <CustomTable @blur="(e) => onHandleTableBlur('paralle', paralleIndex, e)"
:ref="`paralleStepTableRef_${paralleIndex}`" :showOperation="fillType === 'actFill' || fillType === 'preFill'"
:columns="paralleStepColumns"
@onRegentSubmit="(data) => onTableRegentSubmit('paralle', paralleIndex, data)"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex"
:fieldItemLabel="$t('template.lba.lba004.xszj')">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="(rowIndex) => deleteRow(rowIndex, 'paralle', paralleIndex)" ></TableOpertaionDelete>
</template>
</CustomTable> -->
<CustomTable
:ref="`paralleStepTableRef_${paralleIndex}`" :showOperation="fillType === 'preFill'"
:columns="paralleStepColumns"
:formData="paralleConfig" :prefixKey="'paralle' + paralleIndex"
:fieldItemLabel="$t('template.lba.lba004.xszj')">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="(rowIndex) => deleteRow(rowIndex, 'paralle', paralleIndex)" ></TableOpertaionDelete>
</template>
</CustomTable>
<Step class="mt-0 s-container" :ref="`paralleStepRef_${paralleIndex}`"
:formData="paralleConfig.paralleStepData" :fieldItemLabel="$t('template.lba.lba004.xszj')"
:prefixKey="'paralle' + paralleIndex"></Step>
</div>
</div>
@ -105,22 +60,6 @@ export default {
},
},
computed: {
//
jcbColumns() {
return [{
label: 'template.lba.lba002.jcbmc',
prop: 'jcb',
bodyType: 'input',
bodyFillType: 'preFill',
width: 280,
},{
label: '',
prop: 'jcbBh',
bodyType: 'jcb',
bodyFillType: 'actFill',
width: 280
}]
},
//
remarkConig() {
return [
@ -159,7 +98,7 @@ export default {
methodCode: {
label: 'template.common.methodCode',
type: "input",
fillType: "preFill",
fillType: "actFill",
maxlength: 50
},
versionNum: {
@ -173,30 +112,21 @@ export default {
},
{
type: "conditionItem",
label: 'template.lba.lba002.cztj',
label: 'template.lba.lba006.fxtj',
config: {
pre: {
label: 'template.common.preFill',
type: "select",
multiple: true,
fillType: "preFill",
options: this.getDictOptions('business_pztj'),
otherCode: "preOther",
},
act: {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
otherCode: "actOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
}
}
},
{
type: "cellItem",
label: 'template.lba.lba002.czsj',
label: 'template.lba.lba006.fxsj',
config: {
startDate: {
label: 'template.common.startTime',
@ -210,102 +140,37 @@ export default {
}
]
},
//
getFjFormConfig() {
paralleStepFormConfig(){
return [
{
type: "attachment",
type: 'step',
config: {
attTitle: {
label: 'template.lba.lba003.fj',
type: "attachment",
jcb: {
label: 'template.lba.lba006.jcb',
type: 'jcb',
fillType: 'actFill',
maxlength: 20
},
jg: {
label: 'template.lba.lba006.jg',
type: "select",
fillType: "actFill",
otherCode: "jgOther",
otherMaxlength: 100,
multiple: false,
options: this.getDictOptions('business_lba_jg')
},
sjwjm: {
span:1,
label: 'template.lba.lba006.sjwjm',
type: 'input',
fillType: 'actFill',
maxlength: 100
}
}
}
]
},
paralleStepFormConfig(){
return [
{
type: 'step',
config: {
jz: {
label: 'template.lba.lba004.jzmc',
type: 'input',
fillType: 'preFill',
subType: 'sj',
subKey: 'jzCode',
subFillType: 'actFill',
maxlength: 20
}
}
}
]
},
paralleStepColumns(){
return [
{
label: 'template.lba.lba004.xsbs',
prop: 'xsbs',
width: 150,
showWidth: 120,
bodyType: 'input',
bodyFillType: 'preFill'
},
{
label: 'template.lba.lba004.ysypjrz',
prop: 'ysypjrz',
width: 250,
showWidth: 120,
fillType: 'preFill',
bodyType: 'inputNumber',
bodyFillType: 'preFill',
headerSelectKey: 'ysypjrzUnit',
headerSelectTo: 'sjypjrzUnit',
headerOptions: this.getDictOptions('business_tjdw'),
},
{
label: 'template.lba.lba004.sjypjrz',
prop: 'sjypjrz',
width: 250,
showWidth: 120,
fillType: 'preFill',
bodyType: 'inputNumber',
bodyFillType: 'actFill',
compareTo: 'ysypjrz',
copyFrom: 'ysypjrz',
headerSelectKey: 'sjypjrzUnit',
headerOptions: this.getDictOptions('business_tjdw'),
},
{
label: 'template.lba.lba004.ysjzjrz',
prop: 'ysjzjrz',
width: 250,
showWidth: 120,
fillType: 'preFill',
bodyType: 'inputNumber',
bodyFillType: 'preFill',
headerSelectKey: 'ysjzjrzUnit',
headerSelectTo: 'sjjzjrzUnit',
headerOptions: this.getDictOptions('business_tjdw'),
},
{
label: 'template.lba.lba004.sjjzjrz',
prop: 'sjjzjrz',
width: 250,
showWidth: 120,
fillType: 'preFill',
bodyType: 'inputNumber',
bodyFillType: 'actFill',
compareTo: 'ysjzjrz',
copyFrom: 'ysjzjrz',
headerSelectKey: 'sjjzjrzUnit',
headerOptions: this.getDictOptions('business_tjdw'),
}
]
}
},
data() {
return {
@ -313,9 +178,7 @@ export default {
};
},
mounted() {
if(this.fillType === "preFill"){
this.handleAddParalle(true);
}
this.handleAddParalle(true);
},
methods: {
//

Loading…
Cancel
Save