ソースを参照

添加批量设置是否为制造商

wlin1 5 年 前
コミット
1aace6ba74

+ 7 - 9
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodslist.vue

@@ -668,12 +668,13 @@ export default {
             lock: true,
             text: '正在设置请稍后...'
           })
-            // let params = {
-            //   SupplierId: parseInt(_this.SupplierId),
-            //   IsManufacturer: index
-            // }
-          _this.$axios.post('suppliercertsub/modify-manufacturer/' + this.Ids.join() + "/" + parseInt(_this.SupplierId)
-          + "/"+index, {})
+           let postData = {
+            CertSubIdList: [],
+            SupplierId: parseInt(this.SupplierId),
+            SupplierCertId: parseInt(this.SupplierCertId),
+            IsManufacturer: index
+          }
+          _this.$axios.post('suppliercertsub/modify-manufacturer/' + this.Ids.join(),postData)
             .then(function (response) {
               if (response.data.code === 0) {
                 _this.$message({
@@ -700,9 +701,6 @@ export default {
           console.error(ex)
           _this.Ids = []
         })
-
-
-
     },
     showDialog () {
       // this.getorgtreelist()