diff --git a/src/views/mes/zjitem/index.vue b/src/views/mes/zjitem/index.vue
index 3ccc1781..21ea2cd6 100644
--- a/src/views/mes/zjitem/index.vue
+++ b/src/views/mes/zjitem/index.vue
@@ -91,7 +91,11 @@
-
+
+
+ {{ getUnitName(scope.row.unit) }}
+
+
([]) // 列表
+const unitList = ref([]) // 产品单位列表
const loading = ref(true) // 列表的加载中
const list = ref([]) // 列表的数据
const total = ref(0) // 列表的总页数
@@ -228,8 +234,16 @@ const handleExport = async () => {
/** 初始化 **/
onMounted(async () => {
typeList.value = await ZjTypeApi.getZjTypeList()
+ unitList.value = await ProductUnitApi.getProductUnitSimpleList()
getList()
})
+const getUnitName = (value: any) => {
+ const v = value === '' || value === null || value === undefined ? undefined : Number(value)
+ if (!v || !unitList.value.length) return '-'
+ const item = unitList.value.find((u) => u.id === v)
+ return item?.name ?? '-'
+}
+
-
\ No newline at end of file
+