695593266@qq.com hace 8 meses
padre
commit
25da65ede6
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/views/warehousing/index.vue

+ 4 - 1
src/views/warehousing/index.vue

@@ -15,7 +15,10 @@
         </template>
 
         <template v-slot:totalPackage="{ row }">
-          {{ row.totalPackage }}{{ row.detailList[0].packingUnit }}
+          {{ row.totalPackage
+          }}{{
+            row.detailList.length != 0 ? row.detailList[0].packingUnit : ''
+          }}
         </template>
 
         <template v-slot:totalWeight="{ row }">