luojie 1 month ago
parent
commit
0172c78911
9 changed files with 427 additions and 111 deletions
  1. +37
    -2
      src/lang/en/template/dl.js
  2. +37
    -2
      src/lang/zh/template/dl.js
  3. +108
    -5
      src/views/business/comps/template/comps/dl/DL011.vue
  4. +114
    -4
      src/views/business/comps/template/comps/dl/DL012.vue
  5. +11
    -10
      src/views/business/comps/template/comps/dl/DL016.vue
  6. +11
    -9
      src/views/business/comps/template/comps/dl/DL017.vue
  7. +28
    -15
      src/views/business/comps/template/comps/dl/DL018.vue
  8. +17
    -5
      src/views/business/comps/template/comps/dl/DL019.vue
  9. +64
    -59
      src/views/business/comps/template/comps/dl/DL024.vue

+ 37
- 2
src/lang/en/template/dl.js View File

@ -138,12 +138,33 @@ export default {
dl011: { dl011: {
...common, ...common,
fxbz: 'Resuscitation Steps', fxbz: 'Resuscitation Steps',
pyxx: 'Culture Information'
pyxx: 'Culture Information',
xbxx: 'Cell Information',
xbmc: 'Cell Name',
xbdcbh: 'Cell Cryopreservation Number',
fshxbbh: 'Cell Number After Resuscitation',
fshxbyjtj: 'Expected Cell Volume After Resuscitation',
fshxbsjtj: 'Actual Cell Volume After Resuscitation',
pyxbh: 'Incubator Number',
pytjText: 'Culture Conditions',
pykssj: 'Culture Start Time',
pykssjButton: 'Start'
}, },
dl012: { dl012: {
...common, ...common,
zbbz: 'Preparation Steps', zbbz: 'Preparation Steps',
pyxx: 'Culture Information'
pyxx: 'Culture Information',
xbxx: 'Cell Information',
xbmc: 'Cell Name',
xbzbqbh: 'Cell Number Before Preparation',
zbxbs: 'Number of Cells Prepared',
zbhxbbh: 'Cell Number After Preparation',
zbhxbyjtj: 'Expected Cell Volume After Preparation',
zbhxbsjtj: 'Actual Cell Volume After Preparation',
pyxbh: 'Incubator Number',
pytjText: 'Culture Conditions',
pykssj: 'Culture Start Time',
pykssjButton: 'Start'
}, },
dl013: { dl013: {
...common, ...common,
@ -211,6 +232,8 @@ export default {
xybh:'悬液编号', xybh:'悬液编号',
rsks:'染色开始', rsks:'染色开始',
rsjs:'染色结束', rsjs:'染色结束',
ksButton:'开始',
jsButton:'结束',
zs:'左上(个)', zs:'左上(个)',
ys:'右上(个)', ys:'右上(个)',
zy:'左下(个)', zy:'左下(个)',
@ -291,4 +314,16 @@ export default {
ksButton:'开始', ksButton:'开始',
jsButton:'结束', jsButton:'结束',
}, },
dl024: {
sydd:'实验地点',
czsj:'操作时间',
dlbz: '备注',
xbpyxx: '细胞培养信息',
qxbd:'前序表单',
pykssj:'培养开始时间',
pyjssj:'培养结束时间',
jsButton:'培养结束时间',
xbbh:'细胞编号',
},
} }

+ 37
- 2
src/lang/zh/template/dl.js View File

@ -139,12 +139,33 @@ export default {
dl011: { dl011: {
...common, ...common,
fxbz: '复苏步骤', fxbz: '复苏步骤',
pyxx: '培养信息'
pyxx: '培养信息',
xbxx: '细胞信息',
xbmc: '细胞名称',
xbdcbh: '细胞冻存编号',
fshxbbh: '复苏后细胞编号',
fshxbyjtj: '复苏后细胞预计体积',
fshxbsjtj: '复苏后细胞实际体积',
pyxbh: '培养箱编号',
pytjText: '培养条件',
pykssj: '培养开始时间',
pykssjButton: '开始'
}, },
dl012: { dl012: {
...common, ...common,
zbbz: '制备步骤', zbbz: '制备步骤',
pyxx: '培养信息'
pyxx: '培养信息',
xbxx: '细胞信息',
xbmc: '细胞名称',
xbzbqbh: '细胞制备前编号',
zbxbs: '制备细胞数',
zbhxbbh: '制备后细胞编号',
zbhxbyjtj: '制备后细胞预计体积',
zbhxbsjtj: '制备后细胞实际体积',
pyxbh: '培养箱编号',
pytjText: '培养条件',
pykssj: '培养开始时间',
pykssjButton: '开始'
}, },
dl013: { dl013: {
...common, ...common,
@ -212,6 +233,8 @@ export default {
xybh:'悬液编号', xybh:'悬液编号',
rsks:'染色开始', rsks:'染色开始',
rsjs:'染色结束', rsjs:'染色结束',
ksButton:'开始',
jsButton:'结束',
zs:'左上(个)', zs:'左上(个)',
ys:'右上(个)', ys:'右上(个)',
zy:'左下(个)', zy:'左下(个)',
@ -291,4 +314,16 @@ export default {
ksButton:'开始', ksButton:'开始',
jsButton:'结束', jsButton:'结束',
}, },
dl024: {
sydd:'实验地点',
czsj:'操作时间',
dlbz: '备注',
xbpyxx: '细胞培养信息',
qxbd:'前序表单',
pykssj:'培养开始时间',
pyjssj:'培养结束时间',
jsButton:'培养结束时间',
xbbh:'细胞编号',
},
} }

+ 108
- 5
src/views/business/comps/template/comps/dl/DL011.vue View File

@ -55,14 +55,32 @@
</template> </template>
</CustomTable> </CustomTable>
<!-- 预留区域 - 细胞信息 -->
<!-- 细胞信息 -->
<LineLabel label="template.dl.dl011.xbxx" /> <LineLabel label="template.dl.dl011.xbxx" />
<div class="template-form-item">
<BaseInfoFormPackage
fieldItemLabel=""
label=""
:ref="refConf.xbxx"
:formConfig="xbxxConfig"
:formData="formData"
/>
</div>
<LineLabel label="template.dl.dl011.fxbz" /> <LineLabel label="template.dl.dl011.fxbz" />
<Step :ref="refConf.step" :formData="formData.stepData" /> <Step :ref="refConf.step" :formData="formData.stepData" />
<!-- 预留区域 - 培养信息 --> <!-- 预留区域 - 培养信息 -->
<LineLabel label="template.dl.dl011.pyxx" /> <LineLabel label="template.dl.dl011.pyxx" />
<div class="template-form-item">
<BaseInfoFormPackage
fieldItemLabel=""
label=""
:ref="refConf.pyxx"
:formConfig="pyxxConfig"
:formData="formData"
/>
</div>
<BaseInfoFormPackage <BaseInfoFormPackage
fieldItemLabel="template.dl.dl007.bz" fieldItemLabel="template.dl.dl007.bz"
@ -92,7 +110,9 @@ const refConf = {
sysj: 'sysjTableRef', sysj: 'sysjTableRef',
yqsy: 'yqsyTableRef', yqsy: 'yqsyTableRef',
step: 'stepRef', step: 'stepRef',
remark: 'remarkRef'
remark: 'remarkRef',
xbxx: 'xbxxRef',
pyxx: 'pyxxRef'
} }
const refNames = Object.values(refConf) const refNames = Object.values(refConf)
@ -165,7 +185,7 @@ export default {
}, },
{ {
type: 'cellItem', type: 'cellItem',
label:'操作时间',
label: '操作时间',
config: { config: {
kssj: { kssj: {
label: 'template.dl.dl011.kssj', label: 'template.dl.dl011.kssj',
@ -175,8 +195,7 @@ export default {
jssj: { jssj: {
label: 'template.dl.dl011.jssj', label: 'template.dl.dl011.jssj',
type: 'input', type: 'input',
fillType: 'actFill',
maxlength: 200
disabled: true
} }
} }
} }
@ -253,8 +272,92 @@ export default {
disabled: true disabled: true
} }
] ]
},
pyxxConfig() {
return [
{
type: 'step',
config: {
pyxbh: {
label: 'template.dl.dl011.pyxbh',
type: 'yq',
fillType: 'actFill'
},
pytjText: {
type: 'span',
label: ''
},
pykssj: {
label: 'template.dl.dl011.pykssj',
type: 'input',
fillType: 'actFill',
subType: 'button',
subKey: 'pykssjButton',
buttonName: 'template.dl.dl011.pykssjButton'
}
}
}
]
},
xbxxConfig() {
return [
{
type: 'step',
config: {
xbmc: {
label: 'template.dl.dl011.xbmc',
type: 'select',
options: [],
fillType: 'preFill',
otherCode: 'xbmcOther'
},
xbdcbh: {
label: 'template.dl.dl011.xbdcbh',
type: 'xb',
fillType: 'actFill'
},
fshxbbh: {
label: 'template.dl.dl011.fshxbbh',
type: 'input',
subType: 'span',
maxlength: 20,
subKey: 'fshxbbhCodeSn',
fillType: 'preFill'
},
fshxbyjtj: {
label: 'template.dl.dl011.fshxbyjtj',
type: 'inputNumber',
subType: 'select',
subKey: 'fshxbyjtjUnit',
fillType: 'preFill',
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
selectTo: 'fshxbsjtjUnit' //
},
fshxbsjtj: {
label: 'template.dl.dl011.fshxbsjtj',
type: 'inputNumber',
subType: 'select',
subKey: 'fshxbsjtjUnit',
fillType: 'actFill',
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
copyFrom: 'fshxbyjtj' //
}
}
}
]
} }
}, },
mounted() {
this.$nextTick(() => {
this.$refs[refConf.pyxx]?.updateFormData(
'pytjText',
'培养条件:温度为温度为37℃±2℃,CO2浓度为5%±0.5%',
{ isUpdateRecord: false, signData: null }
)
})
},
data() { data() {
return { return {
formData: {}, formData: {},

+ 114
- 4
src/views/business/comps/template/comps/dl/DL012.vue View File

@ -55,14 +55,32 @@
</template> </template>
</CustomTable> </CustomTable>
<!-- 预留区域 - 细胞信息 -->
<!-- 细胞信息 -->
<LineLabel label="template.dl.dl012.xbxx" /> <LineLabel label="template.dl.dl012.xbxx" />
<div class="template-form-item">
<BaseInfoFormPackage
fieldItemLabel=""
label=""
:ref="refConf.xbxx"
:formConfig="xbxxConfig"
:formData="formData"
/>
</div>
<LineLabel label="template.dl.dl012.zbbz" /> <LineLabel label="template.dl.dl012.zbbz" />
<Step :ref="refConf.step" :formData="formData.stepData" /> <Step :ref="refConf.step" :formData="formData.stepData" />
<!-- 预留区域 - 培养信息 -->
<!-- 培养信息 -->
<LineLabel label="template.dl.dl012.pyxx" /> <LineLabel label="template.dl.dl012.pyxx" />
<div class="template-form-item">
<BaseInfoFormPackage
fieldItemLabel=""
label=""
:ref="refConf.pyxx"
:formConfig="pyxxConfig"
:formData="formData"
/>
</div>
<BaseInfoFormPackage <BaseInfoFormPackage
fieldItemLabel="template.dl.dl007.bz" fieldItemLabel="template.dl.dl007.bz"
@ -91,7 +109,9 @@ const refConf = {
base: 'baseInfoRef', base: 'baseInfoRef',
sysj: 'sysjTableRef', sysj: 'sysjTableRef',
yqsy: 'yqsyTableRef', yqsy: 'yqsyTableRef',
xbxx: 'xbxxRef',
step: 'stepRef', step: 'stepRef',
pyxx: 'pyxxRef',
remark: 'remarkRef' remark: 'remarkRef'
} }
const refNames = Object.values(refConf) const refNames = Object.values(refConf)
@ -176,8 +196,7 @@ export default {
jssj: { jssj: {
label: 'template.dl.dl012.jssj', label: 'template.dl.dl012.jssj',
type: 'input', type: 'input',
fillType: 'actFill',
maxlength: 200
disabled: true
} }
} }
} }
@ -254,8 +273,99 @@ export default {
disabled: true disabled: true
} }
] ]
},
//
pyxxConfig() {
return [
{
type: 'step',
config: {
pyxbh: {
label: 'template.dl.dl012.pyxbh',
type: 'yq',
fillType: 'actFill'
},
pytjText: {
type: 'span',
label: ''
},
pykssj: {
label: 'template.dl.dl012.pykssj',
type: 'input',
fillType: 'actFill',
subType: 'button',
subKey: 'pykssjButton',
buttonName: 'template.dl.dl012.pykssjButton'
}
}
}
]
},
//
xbxxConfig() {
return [
{
type: 'step',
config: {
xbmc: {
label: 'template.dl.dl012.xbmc',
type: 'select',
options: [],
fillType: 'preFill',
otherCode: 'xbmcOther'
},
xbzbqbh: {
label: 'template.dl.dl012.xbzbqbh',
type: 'xb',
fillType: 'actFill'
},
zbxbs: {
label: 'template.dl.dl012.zbxbs',
type: 'inputNumber',
fillType: 'preFill'
},
zbhxbbh: {
label: 'template.dl.dl012.zbhxbbh',
type: 'input',
subType: 'span',
maxlength: 20,
subKey: 'zbhxbbhCodeSn',
fillType: 'preFill'
},
zbhxbyjtj: {
label: 'template.dl.dl012.zbhxbyjtj',
type: 'inputNumber',
subType: 'select',
subKey: 'fshxbyjtjUnit',
fillType: 'preFill',
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
selectTo: 'zbhxbsjtjUnit' //
},
zbhxbsjtj: {
label: 'template.dl.dl012.zbhxbsjtj',
type: 'inputNumber',
subType: 'select',
subKey: 'zbhxbsjtjUnit',
fillType: 'actFill',
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
copyFrom: 'zbhxbyjtj' //
}
}
}
]
} }
}, },
mounted() {
this.$nextTick(() => {
this.$refs[refConf.pyxx]?.updateFormData(
'pytjText',
'培养条件:温度为温度为37℃±2℃,CO2浓度为5%±0.5%',
{ isUpdateRecord: false, signData: null }
)
})
},
data() { data() {
return { return {
formData: {}, formData: {},

+ 11
- 10
src/views/business/comps/template/comps/dl/DL016.vue View File

@ -21,7 +21,7 @@
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit" @beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
:showAddRow="false" :showOperation="false" :showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData">
ref="qcxjjyqkTableRef" :columns="stepColumns" :formData="formData">
</CustomTable> </CustomTable>
<LineLabel label="template.dl.dl016.czbz" /> <LineLabel label="template.dl.dl016.czbz" />
@ -160,6 +160,7 @@ export default {
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
width: 180, width: 180,
disabled:true
}, },
{ {
label: "template.dl.dl016.xybh", label: "template.dl.dl016.xybh",
@ -168,7 +169,7 @@ export default {
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10, bodyMaxlength: 10,
// bodyDisabled: true,
disabled:true
}, },
{ {
label: "template.dl.dl016.qsxjjrl", label: "template.dl.dl016.qsxjjrl",
@ -193,14 +194,14 @@ export default {
onRegentSubmit(e) { onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e const { selectInfo, key, rowIndex } = e
const { row } = selectInfo const { row } = selectInfo
if (key === 'yqbh') {
console.log('selectInfo==============',selectInfo)
if (key === 'qxbd') {
const params = { const params = {
yqmc: row.mc,
yqxh: row.xh,
xccsjzjdrq: row.jzrq
jlzb: row.mc,
xybh: row.xh,
xccsjzjdrq: ''
} }
// this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
this.$refs.qcxjjyqkTableRef.updateDataSourceByRowIndex(rowIndex, params)
} }
}, },
//table header //table header
@ -269,11 +270,11 @@ export default {
}, },
// //
getFilledFormData() { getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"])
}, },
// //
async getFormData() { async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"]);
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"]);
return content; return content;
}, },
getResource() { getResource() {

+ 11
- 9
src/views/business/comps/template/comps/dl/DL017.vue View File

@ -57,7 +57,7 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion
export default { export default {
name: "DL017", name: "DL017",
dicts: [ dicts: [
'business_dl_qsxjbltj','business_tjdw','business_dl_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk'
'business_dl_qsxjbltj','business_tjdw','business_dl_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk','business_dl_xbmc'
], ],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
mixins: [templateMixin], mixins: [templateMixin],
@ -111,8 +111,11 @@ export default {
config: { config: {
sydd: { sydd: {
label: 'template.dl.dl017.sydd', label: 'template.dl.dl017.sydd',
type: "input",
fillType: "actFill",
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
}, },
} }
}, },
@ -158,7 +161,7 @@ export default {
} }
] ]
}, },
//
//
stepColumns() { stepColumns() {
return [ return [
{ {
@ -278,14 +281,13 @@ export default {
onRegentSubmit(e) { onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e const { selectInfo, key, rowIndex } = e
const { row } = selectInfo const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') { if (key === 'yqbh') {
const params = { const params = {
yqmc: row.mc,
yqxh: row.xh,
xccsjzjdrq: row.jzrq
jlzb: row.mc,
xybh: row.xh,
} }
// this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
} }
}, },
//table header //table header

+ 28
- 15
src/views/business/comps/template/comps/dl/DL018.vue View File

@ -19,7 +19,7 @@
<CustomTable <CustomTable
@headerSelectChange="onHeaderSelectChange" @headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
:showAddRow="false" :showOperation="false" :showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData"> ref="stepTableRef" :columns="stepColumns" :formData="formData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }"> <!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -167,7 +167,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -176,7 +176,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -185,8 +185,11 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
disabled: true,
subType: 'button',
subKey: 'rsks',
buttonName: 'template.dl.dl018.ksButton',
}, },
{ {
label: "template.dl.dl018.rsjs", label: "template.dl.dl018.rsjs",
@ -194,52 +197,50 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
disabled: true,
subType: 'button',
subKey: 'rsjs',
buttonName: 'template.dl.dl018.jsButton',
}, },
{ {
label: "template.dl.dl018.zs", label: "template.dl.dl018.zs",
prop: "zs", prop: "zs",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.ys", label: "template.dl.dl018.ys",
prop: "ys", prop: "ys",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.zy", label: "template.dl.dl018.zy",
prop: "zy", prop: "zy",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.yx", label: "template.dl.dl018.yx",
prop: "yx", prop: "yx",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
label: "template.dl.dl018.tj", label: "template.dl.dl018.tj",
prop: "tj", prop: "tj",
width: 180, width: 180,
bodyType: "input",
bodyType: "inputNumber",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true, bodyDisabled: true,
} }
] ]
@ -253,6 +254,18 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header //table header
onHeaderSelectChange(data){ onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data; const {key, headerSelectFields,dataSource=[]} = data;

+ 17
- 5
src/views/business/comps/template/comps/dl/DL019.vue View File

@ -19,7 +19,7 @@
<CustomTable <CustomTable
@headerSelectChange="onHeaderSelectChange" @headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur" fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
:showAddRow="false" :showOperation="false" :showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData"> ref="stepTableRef" :columns="stepColumns" :formData="formData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }"> <!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
@ -167,7 +167,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -176,7 +176,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
disabled: true,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -185,7 +185,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyMaxlength: 50,
bodyDisabled: true, bodyDisabled: true,
}, },
{ {
@ -194,7 +194,7 @@ export default {
width: 180, width: 180,
bodyType: "input", bodyType: "input",
bodyFillType: "actFill", bodyFillType: "actFill",
bodyMaxlength: 10,
bodyMaxlength: 50,
bodyDisabled: true, bodyDisabled: true,
} }
] ]
@ -208,6 +208,18 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header //table header
onHeaderSelectChange(data){ onHeaderSelectChange(data){
const {key, headerSelectFields,dataSource=[]} = data; const {key, headerSelectFields,dataSource=[]} = data;

+ 64
- 59
src/views/business/comps/template/comps/dl/DL024.vue View File

@ -8,33 +8,30 @@
<div class="content"> <div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" <BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 仪器使用信息 -->
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<LineLabel label="template.dl.dl021.gcqk" />
<!-- 观察情况 -->
<LineLabel label="template.dl.dl024.xbpyxx" />
<!-- 操作记录 -->
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
@onRegentSubmit="onRegentSubmit"
:formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps"
:formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable
:ref="`tableRef`" :ref="`tableRef`"
:columns="tableColumns" :columns="tableColumns"
:formData="formData" :formData="formData"
operationWidth = "80px" operationWidth = "80px"
:prefixKey = "`table`" :prefixKey = "`table`"
fieldItemLabel = "template.dl.dl021.gcqk"
:showAddRow="fillType === 'actFill'"
:showOperation="fillType === 'actFill'"
fieldItemLabel = "template.dl.dl024.gcqk"
:showAddRow="false"
:showOperation="false"
> >
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete> <TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
</template> </template>
</CustomTable> </CustomTable>
</div>
</div>
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" <BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div> </div>
@ -57,7 +54,7 @@ import { debounce } from 'lodash-es'
import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue" import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue"
export default { export default {
name: "DL024",
name: "dl024",
dicts: [ dicts: [
'business_dl_xbmc' 'business_dl_xbmc'
], ],
@ -106,10 +103,23 @@ export default {
disabled: true, disabled: true,
}, },
} }
},{
type: "cellItem",
label: 'template.dl.dl024.sydd',
config: {
sydd: {
label: 'template.dl.dl024.sydd',
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
},
}
}, },
{
{
type: "cellItem", type: "cellItem",
label: 'template.dl.dl021.czsj',
label: 'template.dl.dl024.czsj',
config: { config: {
startDate: { startDate: {
label: 'template.common.startTime', label: 'template.common.startTime',
@ -124,55 +134,50 @@ export default {
] ]
}, },
//
tableColumns() {
return [{
label: 'template.dl.dl021.bpbh',
prop: 'bpbh',
bodyType: 'input',
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
},{
label: 'template.dl.dl021.gcxps',
prop: 'gcxps',
bodyType: 'input',
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
},{
label: 'template.dl.dl021.zqxxbs',
prop: 'zqxxbs',
bodyType: 'input',
bodyFillType: 'actFill',
width: 80,
bodyMaxlength: 50,
}]
},
//
stepFormConfig() {
return [
//
stepFormConfig(){
return [
{ {
type: "step",
type: "cellItem",
config: { config: {
xbmc: {
label: 'template.dl.dl021.xbmc',
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
otherCode: 'xbmcOther',
showOtherLabel:false
},
xwj: {
qxbd: {
// span:1, // span:1,
label: 'template.dl.dl021.xwj',
label: 'template.dl.dl024.qxbd',
type: 'qxbd', type: 'qxbd',
fillType: 'actFill', fillType: 'actFill',
filledCodes:['bdmc','bdbh'], filledCodes:['bdmc','bdbh'],
}, },
pykssj:{
label: 'template.dl.dl024.pykssj',
type: 'input',
fillType: 'actFill',
subType: 'button',
subKey: 'pyjssj',
buttonName: 'template.dl.dl024.jsButton',
},
pyjssj: {
label: 'template.dl.dl024.pyjssj',
type: 'input',
fillType: 'actFill',
subType: 'button',
subKey: 'pyjssj',
buttonName: 'template.dl.dl024.jsButton',
},
} }
} }
] ]
},
tableColumns() {
return [
{
label: 'template.dl.dl024.xbbh',
prop: 'xbbh',
bodyType: 'input',
bodyFillType: 'actFill',
width: 100,
bodyMaxlength: 50,
}
]
}, },
}, },
data() { data() {
@ -183,11 +188,11 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
//
//
onRegentSubmit(e) { onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e const { selectInfo, key, rowIndex } = e
const { row } = selectInfo const { row } = selectInfo
console.log('选择显微镜预留===',row)
console.log('选择仪器编号预留===',row)
// if (key === 'yqbh' && this.$refs.yqsyTableRef) { // if (key === 'yqbh' && this.$refs.yqsyTableRef) {
// const params = { // const params = {
// yqmc: row.mc, // yqmc: row.mc,

Loading…
Cancel
Save