@@ -309,6 +329,7 @@ export default {
name: "",
cycle: "",
frequency: 0,
+ demand: 1,
service_rule: false,
purchase_price: "",
diff --git a/src/views/product/productManage.vue b/src/views/product/productManage.vue
index ef346b6..8370970 100644
--- a/src/views/product/productManage.vue
+++ b/src/views/product/productManage.vue
@@ -89,6 +89,15 @@ export default {
}
}
},
+ {
+ label: '服务要求',
+ prop: 'demand',
+ width: 100,
+ formatter:(cell, data, value) => {
+ if (value === 1) return '服务价值';
+ if (value === 2) return '服务次数';
+ }
+ },
{
prop:'service_rule',
label:'服务时长规则',
diff --git a/src/views/product/sku.vue b/src/views/product/sku.vue
index 9ab1699..27b2ec8 100644
--- a/src/views/product/sku.vue
+++ b/src/views/product/sku.vue
@@ -69,6 +69,11 @@ export default {
prop:'time_lenth',
width: 160
},
+ {
+ prop: 'worth',
+ label: '服务价值',
+ width: 120
+ },
{
prop:'sortnumber',
label:'排序',
diff --git a/src/views/product/skuComponent/addSku.vue b/src/views/product/skuComponent/addSku.vue
index d385c4b..7fa18c4 100644
--- a/src/views/product/skuComponent/addSku.vue
+++ b/src/views/product/skuComponent/addSku.vue
@@ -67,6 +67,18 @@