Browse Source

保存修改

lichao 3 years ago
parent
commit
db6ab636da
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/basicData/productInformation/detailsPageEdit.vue

+ 5 - 0
src/views/basicData/productInformation/detailsPageEdit.vue

@@ -342,6 +342,9 @@ export default {
               this.form.corpName = e.cname;
             }
           });
+          if (typeof this.form.goodsTypeId !== 'string') {
+            this.form.goodsTypeId = this.form.goodsTypeId.join(',')
+          }
           const params = {
             ...this.form,
             type: 0
@@ -353,6 +356,8 @@ export default {
             }
             this.form = res.data.data
             this.queryData(res.data.data.id)
+          }).catch(() => {
+            this.openFullScreen(true);
           });
         } else {
           return false;