diff --git a/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue b/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue
index 730ad332..e34d3b5c 100644
--- a/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue
+++ b/ant-design-vue-jeecg/src/views/collecttype/admin/CollectTypeList.vue
@@ -84,19 +84,20 @@
编辑
-
+
添加下级
-
-
+
+
handleDeleteNode(record.id)" placement="topLeft">
删除
-
+
diff --git a/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue b/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue
index 71068dc8..856829d8 100644
--- a/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue
+++ b/ant-design-vue-jeecg/src/views/customercollectgoods/admin/modules/CustomercollectgoodsForm.vue
@@ -3,7 +3,7 @@
-
+
-
+
-
+
@@ -76,6 +76,10 @@
},
confirmLoading: false,
validatorRules: {
+ goodsname: [
+ { required: true, message: '请输入商品!'},
+ ],
+
},
url: {
add: "/customercollectgoods/customercollectgoods/add",
@@ -127,7 +131,7 @@
that.confirmLoading = false;
})
}
-
+
})
},
popupCallback(value,row){
diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue
index 9e8d055d..2d022f26 100644
--- a/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue
+++ b/ant-design-vue-jeecg/src/views/customershoppingcart/admin/modules/CustomerShoppingCartForm.vue
@@ -21,7 +21,7 @@
/>
-
+
@@ -41,17 +41,17 @@
-
+
-
+
-
+
@@ -61,12 +61,12 @@
-
+
-
+
@@ -74,6 +74,7 @@
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java
index f7f19a02..3f1a2cbb 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customershoppingcart/controller/CustomerShoppingCartController.java
@@ -118,9 +118,13 @@ public class CustomerShoppingCartController extends JeecgController add(@RequestBody CustomerShoppingCart customerShoppingCart) {
- customerShoppingCart.setZj(customerShoppingCart.getNumber() * customerShoppingCart.getPrice());
- customerShoppingCartService.save(customerShoppingCart);
- return Result.OK("添加成功!");
+ if(customerShoppingCart.getPrice()==null){
+ return Result.error("商品无单价");
+ } else {
+ customerShoppingCart.setZj(customerShoppingCart.getNumber() * customerShoppingCart.getPrice());
+ customerShoppingCartService.save(customerShoppingCart);
+ return Result.OK("添加成功!");
+ }
}
/**