ソースを参照

渠道数据导入-匹配-处理接口

lihongxiao 3 年 前
親
コミット
b446e421c3

+ 2 - 2
src/config/global.js

@@ -15,8 +15,8 @@
 // export const h5BaseUrl = 'http://test.baoxianzhanggui.com:8091'  // h5测试
 // export const baseUrl = 'http://www.baoxianzhanggui.com:8080'   
 // 新服务器
-// export const baseUrl = 'http://39.98.239.48/web-api' //测试服务器
-export const baseUrl = 'http://192.168.0.111:8080' //测试服务器
+export const baseUrl = 'http://39.98.239.48/web-api' //测试服务器
+// export const baseUrl = 'http://192.168.0.111:8080' //测试服务器
 
 export const h5BaseUrl = 'http://39.98.239.48/h5'  //h5测试
 

+ 3 - 3
src/views/FinancialManagement/CostVerification/Baosi.vue

@@ -454,7 +454,7 @@ export default {
         val => val.id == this.formData.insCompanyId
       )[0].name;
       this.$api.cost
-        .getEdit({ ...this.formData, insCompanyName, id: this.batchNum,flag:1 })
+        .getEdit({ ...this.formData, insCompanyName, flag:1 })
         .then(res => {
           if (res.code == 200) {
             this.$message({
@@ -469,13 +469,13 @@ export default {
     // 修改页面
     modifyFun(row) {
       this.dialogVisible = true;
-      this.batchNum = row.id;
       this.formData = {
         insCompanyId: row.insCompanyId,
         mlifta: row.mlifta,
         vavt: row.vavt,
         other: row.other,
-        inventoryQuantity: row.inventoryQuantity
+        inventoryQuantity: row.inventoryQuantity,
+        id:row.id
       };
     },
     closeVisible() {

+ 9 - 7
src/views/FinancialManagement/CostVerification/Channel.vue

@@ -477,6 +477,7 @@ export default {
       },
       batchNum: 0,
       batchNumId: 0,
+      batchNumDetailId: 0,
       tableData: [],
       loading: false,
       formData: {},
@@ -690,8 +691,6 @@ export default {
     handleTableDetail() {
       this.dialogBVatchVisible = true;
     },
-    beforeUpload() {},
-    httpRequest() {},
     mateSave(){
       let obj={
         cip:this.mateform.cip1,
@@ -708,7 +707,7 @@ export default {
               type: "success"
             });
             this.dialogBVatchUpdata = false;
-            this.mate2()
+            this.mate2(this.batchNumDetailId)
           }
         });
     },
@@ -741,6 +740,7 @@ export default {
     },
     mateFun(row) {
       this.dialogMateVisible = true;
+      this.batchNumDetailId=row.id
       this.mate1(row.id)
       this.mate2(row.id)
     },
@@ -766,19 +766,21 @@ export default {
     },
     tablePagematch1Change(val) {
       this.matchPage1.pageSize = val;
-      this.mate1();
+      this.mate1(this.batchNumDetailId);
     },
     tableCurrentmatch1Change(val) {
       this.matchPage2.pageNum = val;
-      this.mate1();
+      this.mate1(this.batchNumDetailId);
+
     },
     tablePagematch2Change(val) {
       this.matchPage2.pageSize = val;
-      this.mate2();
+      this.mate2(this.batchNumDetailId);
+      
     },
     tableCurrentmatch2Change(val) {
       this.matchPage2.pageNum = val;
-      this.mate2();
+      this.mate2(this.batchNumDetailId);
     },
     uploadImport(file, jiekou,isId,) {
       const params = new FormData(); // 声明formData数据类型