Selaa lähdekoodia

康年堂-【商城管理】-【套餐管理】新增无法选择商品处理

Long 1 päivä sitten
vanhempi
commit
29eb505d5a
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      src/views/hisStore/storeProductPackage/index.vue

+ 5 - 4
src/views/hisStore/storeProductPackage/index.vue

@@ -479,6 +479,7 @@ export default {
   methods: {
     handleCompanyChange(){
       if (!this.products || this.products.length === 0) {
+        this.form.companyIds = [];
         this.$message.warning('请先选择商品');
         return;
       }
@@ -555,10 +556,10 @@ export default {
       this.$message.success("商品已添加!");
     },
     handleAddProduct(){
-      if(!this.form.companyId) {
-        this.$message.error("请选择套餐所属公司!");
-        return;
-      }
+      // if(!this.form.companyId) {
+      //   this.$message.error("请选择套餐所属公司!");
+      //   return;
+      // }
       this.product.open=true;
       // setTimeout(() => {
       //   this.$refs.product.getData(1);