Browse Source

fix:[模板管理]DL003

ouqian
15881625488@163.com 1 month ago
parent
commit
5c877d805e
1 changed files with 41 additions and 13 deletions
  1. +41
    -13
      src/views/business/comps/template/comps/dl/DL003.vue

+ 41
- 13
src/views/business/comps/template/comps/dl/DL003.vue View File

@ -12,18 +12,21 @@
:ref="refConf.base" :formConfig="baseInfoFormConfig" :formData="formData" />
<!-- <LineLabel label="template.dl.dl003.sysj" /> -->
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<LineLabel label="template.dl.dl007.yqsyxx" />
<CustomTable :columns="yqsyColumns" :ref="refConf.yqsy" @onRegentSubmit="(e) => onRegentSubmit(e)"
:showOperation="fillType === 'actFill'" :showAddRow="fillType === 'actFill'" :formData="formData"
:prefixKey="`yqsyTable`">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns"
@deleteRow="() => deleteTableRow(rowIndex, 'yqsyTableRef')"></TableOpertaionDelete>
</template>
</CustomTable>
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<template v-if="fillType === 'actFill'">
<LineLabel label="template.dl.dl007.yqsyxx" />
<CustomTable :columns="yqsyColumns" :ref="refConf.yqsy" @onRegentSubmit="(e) => onRegentSubmit(e)"
:showOperation="fillType === 'actFill'" :showAddRow="fillType === 'actFill'" :formData="formData"
:prefixKey="`yqsyTable`">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns"
@deleteRow="() => deleteTableRow(rowIndex, 'yqsyTableRef')"></TableOpertaionDelete>
</template>
</CustomTable>
</template>
<template v-else>
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
</template>
<LineLabel label="template.common.operationSteps" />
<div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" :ref="refConf.czInfo"
@ -391,6 +394,25 @@ export default {
})
//使 1357 911
tmpResource.push({
mc: item.rtbhmc,
bh: item.rtbh,
ph: item.rtbhph,
ndz: item.rtbhnd + item.rtbhnddw,
nd: item.rtbhnd,
nddw: item.rtbhnddw,
ly: item.rtbhly,
sxrq: item.rtbhsxrq,
kc: null,
kcdw: null,
syl: item.rtbhkc,
type: 1, //使
elnType: null, //null
syldw: item.rtbhkcdw,
yxzq: null,
yxzqdw: null,
})
//使 1357 911
tmpResource.push({
mc: item.jzlymc,
bh: item.jzlybh,
ph: '',
@ -401,7 +423,7 @@ export default {
sxrq: null,
kc: null,
kcdw: null,
syl: item.jzlytj,
syl: item.jzjrtj,
type: 9, //使
elnType: null, //null
syldw: header1.targetDiluentVolumeUnit,
@ -467,6 +489,12 @@ export default {
this.$refs.czInfoRef.updateFormData('pyxxh', row.xh)
this.$refs.czInfoRef.updateFormData('pyxjzrq', row.jzrq)
}
if (key == 'rtbh') {
this.$refs['jzjzTableRef'].updateDataSourceByRowIndex(rowIndex, {
rtbhnd: row.nd, rtbhnddw: row.bddw, rtbhly: row.ly, rtbhsxrq: row.sxrq,
rtbhph: row.ph, rtbhmc: row.mc, rtbhkc: row.kc, rtbhkcdw: row.kcdw
})
}
if (key == 'jzlybh') {
this.$refs['jzjzTableRef'].updateDataSourceByRowIndex(rowIndex, { jzlymc: row.mc, jzlytj: row.tj, jzlytjdw: row.tjdw })
}

Loading…
Cancel
Save