gcz il y a 4 ans
Parent
commit
64df018ebe
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/views/pms/product/components/ProductInfoDetail.vue

+ 4 - 2
src/views/pms/product/components/ProductInfoDetail.vue

@@ -114,6 +114,7 @@
         this.handleEditCreated();
       },
       selectProductCateValue: function (newValue) {
+        console.log('newValue',newValue);
         if (newValue != null && newValue.length === 2) {
           this.value.productCategoryId = newValue[1];
           this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId);
@@ -128,7 +129,7 @@
       handleEditCreated(){
         if(this.value.productCategoryId!=null){
           this.selectProductCateValue.push(this.value.cateParentId);
-          this.selectProductCateValue.push(this.value.productCategoryId);
+          this.selectProductCateValue.push(this.value.productCategoryId);          
         }
         this.hasEditCreated=true;
       },
@@ -170,7 +171,8 @@
       },
       handleNext(formName){
         this.$refs[formName].validate((valid) => {
-          if (valid) {
+           console.log('this.$refs[formName]',this.$refs[formName]);
+          if (valid) {           
             this.$emit('nextStep');
           } else {
             this.$message({