diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue
index b8f4d96..7017902 100644
--- a/src/components/Template/BaseInfoFormPackage.vue
+++ b/src/components/Template/BaseInfoFormPackage.vue
@@ -198,6 +198,7 @@
{{ sItem.otherLabel ? $t(sItem.otherLabel) :
$t("template.common.other") }}
+
+
+
+ {{$t("template.common.other") }}
+
+
+
+
+
+ @select="onSelect" @clickButton="handleClickButton" :formConfig="stepFormConfig"
+ @blur="onHandleBlur" :formData="formData" />
@@ -98,11 +99,11 @@ export default {
//yqsyxxColumns仪器使用信息
yqsyxxColumns() {
return [{
- label: 'template.dl.dl023.yqbh',
- prop: 'yqbh',
- bodyType: 'yq',
- bodyFillType: 'actFill'
- }, {
+ label: 'template.dl.dl023.yqbh',
+ prop: 'yqbh',
+ bodyType: 'yq',
+ bodyFillType: 'actFill'
+ }, {
label: 'template.dl.dl023.yqmc',
prop: 'yqmc',
bodyType: 'input',
@@ -142,6 +143,7 @@ export default {
{ label: "细胞系", value: "细胞系" }
],
otherCode: 'dwzshxbxOther',
+ thirdOtherCode: 'dwzshxbxThirdOther',
showOtherLabel: false,
otherOptions: this.otherOptions
},
@@ -185,8 +187,8 @@ export default {
subType: 'button',
subKey: 'zskssj',
buttonName: 'template.dl.dl023.ksButton',
- disabled:true,
- subDisabled:false
+ disabled: true,
+ subDisabled: false
},
zsjssj: {
label: 'template.dl.dl023.zsjssj',
@@ -196,8 +198,8 @@ export default {
subType: 'button',
subKey: 'zsjssj',
buttonName: 'template.dl.dl023.jsButton',
- disabled:true,
- subDisabled:false
+ disabled: true,
+ subDisabled: false
},
}
}
@@ -211,19 +213,24 @@ export default {
};
},
mounted() {
+ const {dwzshxbx} = this.formData;
+ this.setOtherOptions(dwzshxbx);
},
- methods: {
- //开始介绍按钮回调
- handleClickButton(item,signData) {
+ methods: {
+ setOtherOptions(value){
+ this.otherOptions = value === '动物种属' ? this.getDictOptions('business_dl_dwzs') : this.getDictOptions('business_dl_xbx')
+ },
+ //开始介绍按钮回调
+ handleClickButton(item, signData) {
const arrStr = item.subKey;
- const value = moment().format('YYYY/MM/DD HH:mm');
- this.$refs.swypyjInfoRef.updateFormData(arrStr, value,{isUpdateRecord:true,signData});
+ const value = moment().format('YYYY/MM/DD HH:mm');
+ this.$refs.swypyjInfoRef.updateFormData(arrStr, value, { isUpdateRecord: true, signData });
// console.log(this.getFilledFormData())
},
onSelect(e) {
const { key, value } = e
if (key === "dwzshxbx") {//动物种属或细胞系
- this.otherOptions = value === '动物种属' ? this.getDictOptions('business_dl_dwzs') : this.getDictOptions('business_dl_xbx')
+ this.setOtherOptions(value);
}
},
@@ -232,12 +239,12 @@ export default {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
if (key === 'yqbh' && this.$refs.tableRef) {
- const params = {
- yqmc: row.mc,
- yqxh: row.xh,
- xcrq: row.jzrq,
- }
- this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params)
+ const params = {
+ yqmc: row.mc,
+ yqxh: row.xh,
+ xcrq: row.jzrq,
+ }
+ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
onFormSelect(fields) {
diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js
index 4cb8141..ff6b3b5 100644
--- a/src/views/business/comps/template/mixins/templateMixin.js
+++ b/src/views/business/comps/template/mixins/templateMixin.js
@@ -68,6 +68,8 @@ export default {
'business_ada_kyktffxyp', // ADA-编号-抗药抗体方法学样品制备表ADA007
'business_dl_uav', // 毒理-紫外照射操作记录表-UVA-DL023
'business_pcr_fxffypzbb', //PCR-编号-分析方法学样品制备表
+ 'business_dl_dwzs', //DL023动物种属
+ 'business_dl_xbx', //DL023细胞系
],
props: {
templateData: {