白承飞 5 lat temu
rodzic
commit
3b6a06e2fd

+ 1 - 4
src/dashoo.cn/frontend_web/src/components/oilsupplier/equipmentlist.vue

@@ -63,10 +63,6 @@
       canadd: {
         type: Boolean,
         default: false
-      },
-      visible: {
-        type: Boolean,
-        default: false
       }
     },
     created () {
@@ -94,6 +90,7 @@
       }
 
       return {
+        visible: false,
         SupplierId: '0',
         SupplierCertId: '0',
         SupplierTypeCode: '0',

+ 2 - 3
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -931,8 +931,8 @@ export default {
     }
 
     return {
-       manufacturerList: [],
-       certId: '0',
+      manufacturerList: [],
+      certId: 0,
       formDataCert: {
         InStyle: '1',
         WorkerTotal: 0,
@@ -947,7 +947,6 @@ export default {
         SkillerTotal: 0,
         Status: 0
       },
-
       visible: false,
       address: [],
       linkaddress: [],

+ 1 - 12
src/dashoo.cn/frontend_web/src/components/oilsupplier/patentlist.vue

@@ -73,21 +73,9 @@
   export default {
     name: 'PatentList',
     props: {
-      /*SupplierCertId: {
-        type: String,
-        default: '0'
-      },
-      SupplierTypeCode: {
-        type: String,
-        default: '0'
-      }, */
       canadd: {
         type: Boolean,
         default: false
-      },
-      visible: {
-        type: Boolean,
-        default: false
       }
     },
     created () {
@@ -100,6 +88,7 @@
     },
     data () {
       return {
+        visible: false,
         SupplierId: '0',
         SupplierCertId: '0',
         SupplierTypeCode: '0',

+ 1 - 12
src/dashoo.cn/frontend_web/src/components/oilsupplier/performancelist.vue

@@ -96,21 +96,9 @@
   export default {
     name: 'PerformanceList',
     props: {
-      /*SupplierCertId: {
-        type: String,
-        default: '0'
-      },
-      SupplierTypeCode: {
-        type: String,
-        default: '0'
-      }, */
       canadd: {
         type: Boolean,
         default: false
-      },
-      visible: {
-        type: Boolean,
-        default: false
       }
     },
     created () {
@@ -123,6 +111,7 @@
     },
     data () {
       return {
+        visible: false,
         SupplierId: '0',
         SupplierCertId: '0',
         SupplierTypeCode: '0',

+ 1 - 4
src/dashoo.cn/frontend_web/src/components/oilsupplier/winninglist.vue

@@ -75,10 +75,6 @@
       canadd: {
         type: Boolean,
         default: false
-      },
-      visible: {
-        type: Boolean,
-        default: false
       }
     },
     created () {
@@ -91,6 +87,7 @@
     },
     data () {
       return {
+        visible: false,
         SupplierId: '0',
         SupplierCertId: '0',
         SupplierTypeCode: '0',

+ 6 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -1592,6 +1592,7 @@ export default {
     },
 
     updateEntity () {
+      let _this = this
       this.goodsloading = true
       api
         .updateEntity(this.formData.Id, this.formData, this.$axios)
@@ -1599,15 +1600,15 @@ export default {
           if (res.data.code === 0) {
             // 更新子表
             // this.updateNumberEntity()
-            this.initDatas()
-            this.$message({
+            _this.initDatas()
+            _this.goodsloading = false
+            _this.$message({
               type: 'success',
               message: res.data.message
             })
-            this.updatemanufacturers()
           } else {
-            this.goodsloading = false
-            this.$message({
+            _this.goodsloading = false
+            _this.$message({
               type: 'warning',
               message: res.data.message
             })