diff --git a/pages-home/service/todoDetail.vue b/pages-home/service/todoDetail.vue index 9dc3993..c365fc4 100644 --- a/pages-home/service/todoDetail.vue +++ b/pages-home/service/todoDetail.vue @@ -78,7 +78,7 @@ - + {{ item.waresName }}×{{ item.waresCount }}{{ item.unitText }} diff --git a/pages-warehouse/inOutWarehouse/part.vue b/pages-warehouse/inOutWarehouse/part.vue index 01835d8..f3103fa 100644 --- a/pages-warehouse/inOutWarehouse/part.vue +++ b/pages-warehouse/inOutWarehouse/part.vue @@ -39,7 +39,7 @@ @@ -192,10 +192,17 @@ export default { this.getSoiId() }, getUnitName(id) { - const index = this.unitList.findIndex(item => item.value === id) - if (index !== -1) { - return this.unitList[index].label + if (this.unitList && this.unitList.length > 0) { + console.log("我第一次就拿到了") + const index = this.unitList.findIndex(item => item.value === id) + if (index !== -1) { + return this.unitList[index].label + }else { + return "请选择" + } } + console.log("我是重新去拿的") + this.listUnit() return "请选择" }, bindUnitChange(e, row) {