|
|
@ -22,7 +22,8 @@ |
|
|
<LineLabel label="template.dl.dl023.czjl" /> |
|
|
<LineLabel label="template.dl.dl023.czjl" /> |
|
|
<!-- 操作记录 --> |
|
|
<!-- 操作记录 --> |
|
|
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps" |
|
|
<BaseInfoFormPackage ref="swypyjInfoRef" fieldItemLabel="template.common.operationSteps" |
|
|
@select="onSelect" @clickButton="handleClickButton" :formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" /> |
|
|
|
|
|
|
|
|
@select="onSelect" @clickButton="handleClickButton" :formConfig="stepFormConfig" |
|
|
|
|
|
@blur="onHandleBlur" :formData="formData" /> |
|
|
<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> |
|
|
@ -98,11 +99,11 @@ export default { |
|
|
//yqsyxxColumns仪器使用信息 |
|
|
//yqsyxxColumns仪器使用信息 |
|
|
yqsyxxColumns() { |
|
|
yqsyxxColumns() { |
|
|
return [{ |
|
|
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', |
|
|
label: 'template.dl.dl023.yqmc', |
|
|
prop: 'yqmc', |
|
|
prop: 'yqmc', |
|
|
bodyType: 'input', |
|
|
bodyType: 'input', |
|
|
@ -142,6 +143,7 @@ export default { |
|
|
{ label: "细胞系", value: "细胞系" } |
|
|
{ label: "细胞系", value: "细胞系" } |
|
|
], |
|
|
], |
|
|
otherCode: 'dwzshxbxOther', |
|
|
otherCode: 'dwzshxbxOther', |
|
|
|
|
|
thirdOtherCode: 'dwzshxbxThirdOther', |
|
|
showOtherLabel: false, |
|
|
showOtherLabel: false, |
|
|
otherOptions: this.otherOptions |
|
|
otherOptions: this.otherOptions |
|
|
}, |
|
|
}, |
|
|
@ -185,8 +187,8 @@ export default { |
|
|
subType: 'button', |
|
|
subType: 'button', |
|
|
subKey: 'zskssj', |
|
|
subKey: 'zskssj', |
|
|
buttonName: 'template.dl.dl023.ksButton', |
|
|
buttonName: 'template.dl.dl023.ksButton', |
|
|
disabled:true, |
|
|
|
|
|
subDisabled:false |
|
|
|
|
|
|
|
|
disabled: true, |
|
|
|
|
|
subDisabled: false |
|
|
}, |
|
|
}, |
|
|
zsjssj: { |
|
|
zsjssj: { |
|
|
label: 'template.dl.dl023.zsjssj', |
|
|
label: 'template.dl.dl023.zsjssj', |
|
|
@ -196,8 +198,8 @@ export default { |
|
|
subType: 'button', |
|
|
subType: 'button', |
|
|
subKey: 'zsjssj', |
|
|
subKey: 'zsjssj', |
|
|
buttonName: 'template.dl.dl023.jsButton', |
|
|
buttonName: 'template.dl.dl023.jsButton', |
|
|
disabled:true, |
|
|
|
|
|
subDisabled:false |
|
|
|
|
|
|
|
|
disabled: true, |
|
|
|
|
|
subDisabled: false |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -211,19 +213,24 @@ export default { |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
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 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()) |
|
|
// console.log(this.getFilledFormData()) |
|
|
}, |
|
|
}, |
|
|
onSelect(e) { |
|
|
onSelect(e) { |
|
|
const { key, value } = e |
|
|
const { key, value } = e |
|
|
if (key === "dwzshxbx") {//动物种属或细胞系 |
|
|
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 { selectInfo, key, rowIndex } = e |
|
|
const { row } = selectInfo |
|
|
const { row } = selectInfo |
|
|
if (key === 'yqbh' && this.$refs.tableRef) { |
|
|
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) { |
|
|
onFormSelect(fields) { |
|
|
|