浏览代码

保存修改

lichao 3 年之前
父节点
当前提交
db6ab636da
共有 1 个文件被更改,包括 5 次插入0 次删除
  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;