Browse Source

优化销售端的用户采集进度终止逻辑

cgp 5 days ago
parent
commit
1cc210c1cf
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/views/qw/collectionSchedule/index.vue

+ 7 - 4
src/views/qw/collectionSchedule/index.vue

@@ -113,7 +113,8 @@ export default {
       endForm: {
         id: null,
         collectionId: null,
-        remark: ''
+        remark: '',
+        orderCode: null
       },
       // 遮罩层
       loading: true,
@@ -243,20 +244,21 @@ export default {
       this.endForm.id = row.id;
       this.endForm.collectionId = row.collectionId;
       this.endForm.remark = '';
+      this.endForm.orderCode = row.orderCode;
       this.endProcessVisible = true;
     },
-    /** 提交终止操作 */
+
     /** 提交终止操作 */
     submitEndProcess() {
       this.$refs["endFormRef"].validate(valid => {
         if (valid) {
-          const { id, collectionId, remark } = this.endForm
+          const { id, collectionId, remark,orderCode } = this.endForm
           this.$confirm('确认终止该采集进度?', '提示', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
             type: 'warning'
           }).then(() => {
-            stop({ id, collectionId, remark }).then(response => {
+            stop({ id, collectionId, remark, orderCode }).then(response => {
               this.msgSuccess("终止成功");
               this.endProcessVisible = false;
               this.getList();
@@ -275,6 +277,7 @@ export default {
       this.endForm.id = null;
       this.endForm.collectionId = null;
       this.endForm.remark = '';
+      this.endForm.orderCode = null;
     },