diff --git a/src/views/equipement/standard/book/components/config/fourth/config.vue b/src/views/equipement/standard/book/components/config/fourth/config.vue index 600b558..d71e0d5 100644 --- a/src/views/equipement/standard/book/components/config/fourth/config.vue +++ b/src/views/equipement/standard/book/components/config/fourth/config.vue @@ -234,14 +234,16 @@ itemCategoryName: form.value.itemCategoryName, // 核查项分类名称 } getCheckItemDetail(params).then((res) => { - list.value = res.data.checkItemDataPistonGaugeList.map((item: any) => { - return { - ...item, - resolution: Number(item.resolution), - } - }) - // 核查项备注 - form.value.remark = list.value.length ? list.value[0].remark! : '' + if (res.data && res.data.checkItemDataPistonGaugeList && res.data.checkItemDataPistonGaugeList.length) { + list.value = res.data.checkItemDataPistonGaugeList.map((item: any) => { + return { + ...item, + resolution: Number(item.resolution), + } + }) + // 核查项备注 + form.value.remark = list.value.length ? list.value[0].remark! : '' + } loading.close() }) }