liuhy 2 лет назад
Родитель
Сommit
5d6cf8ad4c

+ 1 - 1
src/views/lotCheck/modules/TaskList.vue

@@ -274,7 +274,7 @@ export default {
         return;
         return;
       }
       }
       let taskInfo = this.buildTaskInfo(this.selectionRows[0]);
       let taskInfo = this.buildTaskInfo(this.selectionRows[0]);
-        this.$router.push({path: '/lot/check/task/import', query: {id: taskInfo.id}});
+        this.$router.push({path: '/lot/check/task/import', query: {id: taskInfo.id,type:2}});
     },
     },
     // 显示导入页面
     // 显示导入页面
     showCheckList(record) {
     showCheckList(record) {

+ 4 - 0
src/views/smscheck/modules/TaskImport.vue

@@ -189,6 +189,7 @@ export default {
   },
   },
   created() {
   created() {
     this.task.id = this.$route.query.id;
     this.task.id = this.$route.query.id;
+    this.type = this.$route.query.type
     this.queryInfoById(this.task.id);
     this.queryInfoById(this.task.id);
     this.getTask(this.task.id);
     this.getTask(this.task.id);
   },
   },
@@ -310,6 +311,9 @@ export default {
       this.spinningAdd = true;
       this.spinningAdd = true;
       let httpUrl = this.url.importData.replaceAll("taskId", this.task.id);
       let httpUrl = this.url.importData.replaceAll("taskId", this.task.id);
       let params = this.dataSource;
       let params = this.dataSource;
+      for (let i in params){
+        params[i].type = this.type
+      }
       let method = 'POST';
       let method = 'POST';
       let that = this;
       let that = this;
       // 发送请求
       // 发送请求

+ 5 - 0
src/views/smscheck/modules/TaskImportTruck.vue

@@ -86,6 +86,7 @@ export default {
       dataSource: [],
       dataSource: [],
       errorCount: 0,
       errorCount: 0,
       task: {},
       task: {},
+      type:null,
       // 表头
       // 表头
       columns: [
       columns: [
         {
         {
@@ -206,6 +207,7 @@ export default {
   },
   },
   created() {
   created() {
     this.task.id = this.$route.query.id;
     this.task.id = this.$route.query.id;
+    this.type = this.$route.query.type;
     this.queryInfoById(this.task.id);
     this.queryInfoById(this.task.id);
 
 
   },
   },
@@ -305,6 +307,9 @@ export default {
       this.spinningAdd = true;
       this.spinningAdd = true;
       let httpUrl = this.url.importData.replaceAll("taskId", this.task.id);
       let httpUrl = this.url.importData.replaceAll("taskId", this.task.id);
       let params = this.dataSource;
       let params = this.dataSource;
+      for (let i in params){
+        params[i].type = this.type
+      }
       let method = 'POST';
       let method = 'POST';
       let that = this;
       let that = this;
       // 发送请求
       // 发送请求

+ 1 - 1
src/views/smscheck/modules/TaskList.vue

@@ -261,7 +261,7 @@
           return;
           return;
         }
         }
         let taskInfo = this.buildTaskInfo(this.selectionRows[0]);
         let taskInfo = this.buildTaskInfo(this.selectionRows[0]);
-        this.$router.push({ path: '/sms/check/task/import' ,query:{id:taskInfo.id}});
+        this.$router.push({ path: '/sms/check/task/import' ,query:{id:taskInfo.id,type:1}});
       },
       },
       // 显示导入页面
       // 显示导入页面
       showCheckList(record) {
       showCheckList(record) {

+ 1 - 1
src/views/truckCheck/modules/TaskList.vue

@@ -274,7 +274,7 @@ export default {
         return;
         return;
       }
       }
       let taskInfo = this.buildTaskInfo(this.selectionRows[0]);
       let taskInfo = this.buildTaskInfo(this.selectionRows[0]);
-        this.$router.push({path: '/smscheck/modules/TaskImportTruck', query: {id: taskInfo.id}});
+        this.$router.push({path: '/smscheck/modules/TaskImportTruck', query: {id: taskInfo.id,type:4}});
     },
     },
     // 显示导入页面
     // 显示导入页面
     showCheckList(record) {
     showCheckList(record) {