diff --git a/vue/src/views/dou/order/index.vue b/vue/src/views/dou/order/index.vue
index 7900ce87..20be3666 100644
--- a/vue/src/views/dou/order/index.vue
+++ b/vue/src/views/dou/order/index.vue
@@ -136,7 +136,11 @@
-
+
+
+ {{getSkuValues(scope.row.spec)}}
+
+
@@ -416,6 +420,17 @@ export default {
this.loading = false;
});
},
+ getSkuValues(spec){
+ try {
+ // 解析 JSON,返回一个数组
+ const parsedSpec = JSON.parse(spec) || [];
+
+ // 使用 map 提取所有 value,使用 join() 用逗号连接
+ return parsedSpec.map(item => item.value).join(', ') || '';
+ } catch (error) {
+ return spec; // 如果 JSON 解析出错,返回空字符串
+ }
+ },
// 取消按钮
cancel() {
this.open = false;