diff --git a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue index a96cc1f..b3c131a 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue @@ -270,7 +270,7 @@ export default { EventBus.$emit('showTagPrintDialog', { printConfig }) }, //获取目标溶液编号 - async getCode() { + async getCode(v) { const result = await getLatestSn({ count: 1, pre:v.targetCode, diff --git a/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue b/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue index a29c8ea..c14242c 100644 --- a/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue @@ -235,7 +235,7 @@ export default { this.configCompleteRequest(postData); }, getTemplateName() { - if (this.templateData.templateMc) { + if (this.templateData&&this.templateData.templateMc) { return this.templateData.templateMc } const o = {