소스 검색

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
       })