|
|
|
@ -55,7 +55,7 @@ |
|
|
|
|
|
|
|
<div v-show="isShowOther(formFields[key])" class="flex flex1"> |
|
|
|
<div class="other-title">{{sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}</div> |
|
|
|
<HandleFormItem class="step-row" :field-item-label="fieldItemLabel" :field-key="prefixKey+'_'+sItem.otherCode" @blur="onBlur(key, $event)" :item="getOtherItem(sItem)" |
|
|
|
<HandleFormItem sourceFrom = "step" class="step-row" :field-item-label="fieldItemLabel" :field-key="prefixKey+'_'+sItem.otherCode" @blur="onBlur(key, $event)" :item="getOtherItem(sItem)" |
|
|
|
v-model="formFields[sItem.otherCode]" @copy="onCopy(sItem, key)" |
|
|
|
:error="errors[sItem.otherCode]" @update:error="errors[sItem.otherCode] = false" |
|
|
|
:orange-bg="orangeBgFields[sItem.otherCode]" /> |
|
|
|
@ -124,10 +124,16 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// //试剂/仪器等弹窗提交 |
|
|
|
// onRegentSubmit(data,key,item){ |
|
|
|
// this.updateFormData(key,data.selectedId); |
|
|
|
// this.$emit("onRegentSubmit", {selectInfo:data,key,config:item}); |
|
|
|
// }, |
|
|
|
onRegentSubmit(data,key,item){ |
|
|
|
this.updateFormData(key,data.selectedId); |
|
|
|
console.log(data.selectedId,key,"data.selectedId") |
|
|
|
if(data.selectType){ |
|
|
|
this.allFieldsConfig[key].sjSelectType = data.selectType; |
|
|
|
} |
|
|
|
this.formFields[`selectInfo_${key}`] = data.selectInfo; |
|
|
|
console.log(this.formFields,"mmm") |
|
|
|
// this.$emit("onRegentSubmit", {selectInfo:data,key,config:item}); |
|
|
|
}, |
|
|
|
getRegentItem(item,fieldCode="type"){ |
|
|
|
const type = item[fieldCode] ; |
|
|
|
return { |
|
|
|
@ -203,6 +209,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(sjResource,yqResource,"sjResource,yqResource") |
|
|
|
return { |
|
|
|
sjResource, |
|
|
|
yqResource, |
|
|
|
|