ysy %!s(int64=2) %!d(string=hai) anos
pai
achega
948e321178
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      src/views/material/product/detail.vue

+ 15 - 0
src/views/material/product/detail.vue

@@ -384,6 +384,8 @@ export default {
         // this.form.remark = this.remarkform.remark
         //   ? this.remarkform.remark
         //   : '';
+
+
         const data = {
           categoryWms: this.categoryWms,
           categoryAps: this.categoryAps,
@@ -398,6 +400,19 @@ export default {
             ...this.PathInfo
           }
         };
+
+        if (this.$route.query.status == 1) {
+          data.category.id = null
+          data.categoryWms.id = null
+          data.categoryAps.id = null
+          data.categoryMes.id = null
+          data.categoryMold.id = null
+          data.categoryPallet.id = null
+          data.categoryQms.id = null
+          data.categoryVehicle.id = null
+        }
+
+
         addMaterial(data)
           .then((msg) => {
             this.loading = false;