Преглед на файлове

Merge branch 'mergeBranch' into greenUrgent

qymljy преди 2 години
родител
ревизия
e834ffa091
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 3 0
      src/HDrpManagement/ProductMag/modules/add.vue
  2. 3 0
      src/HDrpManagement/ProductMag/modules/edit.vue

+ 3 - 0
src/HDrpManagement/ProductMag/modules/add.vue

@@ -669,7 +669,10 @@ export default {
     /*获取可选商品大类*/
     async getCategoriesList () {
       let res = await this.$store.dispatch('optiontypeselect','categories')
+
       this.categoriesList= res.data
+
+      this.form.categories = this.categoriesList.length > 0?this.categoriesList[0].remarks:''
     },
     hasDisabledTag (item) {
       let arr = []

+ 3 - 0
src/HDrpManagement/ProductMag/modules/edit.vue

@@ -451,6 +451,9 @@ export default {
         },
       })
       this.form = Object.assign({},this.form,res.data)
+
+      this.form.categories = this.form.categories?this.form.categories:this.categoriesList.length > 0?this.categoriesList[0].remarks:''
+
       this.form.tradefields = this.form.tradefield.map(e=>{
         return e.tradefield
       })