|
|
@ -485,66 +485,10 @@ export default { |
|
|
return await this.validFormFields(refsToValidate) |
|
|
return await this.validFormFields(refsToValidate) |
|
|
}, |
|
|
}, |
|
|
getResource() { |
|
|
getResource() { |
|
|
const sjxxStepResource = this.$refs.sjxxStepRef.getStepResource() |
|
|
|
|
|
// 使用的试剂、仪器 |
|
|
|
|
|
this.resourceTmp = sjxxStepResource.sjResource || [] |
|
|
|
|
|
this.yqResourceTmp = sjxxStepResource.yqResource || [] |
|
|
|
|
|
|
|
|
|
|
|
// 获取采集信息表格数据 |
|
|
|
|
|
const sjxxTableData = this.$refs.sjxxTableRef?.getFilledFormData() |
|
|
|
|
|
const sjxxList = sjxxTableData?.stepTableFormData || [] |
|
|
|
|
|
const headerSelectFields = sjxxTableData?.headerSelectFields || {} |
|
|
|
|
|
|
|
|
|
|
|
// 提取实际0.9%氯化钠注射液加入量和实际加入血清的数据 |
|
|
|
|
|
// 转换为标准资源格式 |
|
|
|
|
|
const sjxxResource = [] |
|
|
|
|
|
|
|
|
|
|
|
sjxxList.forEach((item) => { |
|
|
|
|
|
// 实际0.9%氯化钠注射液加入量 |
|
|
|
|
|
if (item.sjlhnzsjyjrl) { |
|
|
|
|
|
sjxxResource.push({ |
|
|
|
|
|
mc: '0.9%氯化钠注射液', // 名称 |
|
|
|
|
|
bh: null, // 编号 |
|
|
|
|
|
ph: null, // 批号 |
|
|
|
|
|
nd: null, // 浓度 |
|
|
|
|
|
nddw: null, // 浓度单位 |
|
|
|
|
|
ndz: null, // 浓度值 |
|
|
|
|
|
ly: null, // 来源 |
|
|
|
|
|
sxrq: null, // 失效日期 |
|
|
|
|
|
kc: null, // 库存 |
|
|
|
|
|
kcdw: null, // 库存单位 |
|
|
|
|
|
type: 1, // 类型:1表示使用的资源 |
|
|
|
|
|
syl: item.sjlhnzsjyjrl, // 使用量 |
|
|
|
|
|
syldw: headerSelectFields.sjlhnUnit || '', // 使用量单位 |
|
|
|
|
|
yxzq: null, // 有效期 |
|
|
|
|
|
yxzqdw: null // 有效期单位 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 实际加入血清 |
|
|
|
|
|
if (item.sjjrxq) { |
|
|
|
|
|
sjxxResource.push({ |
|
|
|
|
|
mc: '血清', // 名称 |
|
|
|
|
|
bh: null, // 编号 |
|
|
|
|
|
ph: null, // 批号 |
|
|
|
|
|
nd: null, // 浓度 |
|
|
|
|
|
nddw: null, // 浓度单位 |
|
|
|
|
|
ndz: null, // 浓度值 |
|
|
|
|
|
ly: null, // 来源 |
|
|
|
|
|
sxrq: null, // 失效日期 |
|
|
|
|
|
kc: null, // 库存 |
|
|
|
|
|
kcdw: null, // 库存单位 |
|
|
|
|
|
type: 1, // 类型:1表示使用的资源 |
|
|
|
|
|
syl: item.sjjrxq, // 使用量 |
|
|
|
|
|
syldw: headerSelectFields.sjjrxqUnit || '', // 使用量单位 |
|
|
|
|
|
yxzq: null, // 有效期 |
|
|
|
|
|
yxzqdw: null // 有效期单位 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 将采集信息数据添加到资源列表中 |
|
|
|
|
|
return [...this.resourceTmp, ...sjxxResource] |
|
|
|
|
|
|
|
|
const stepResource = this.$refs.sjxxStepRef.getStepResource() |
|
|
|
|
|
this.resourceTmp = stepResource.sjResource || [] |
|
|
|
|
|
this.yqResourceTmp = stepResource.yqResource || [] |
|
|
|
|
|
return this.resourceTmp; |
|
|
}, |
|
|
}, |
|
|
onRegentSubmit(e) { |
|
|
onRegentSubmit(e) { |
|
|
// 预留方法,如果需要处理试剂提交事件可以在这里添加 |
|
|
// 预留方法,如果需要处理试剂提交事件可以在这里添加 |
|
|
|