lichao hace 3 años
padre
commit
db6ab636da
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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;