Admin
2025-12-02 9e42f0dafa019f5ecf6b0ff425ecb966b002171e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
    <div>
      <!-- 完成任务 -->
      <vol-box
        :width="500"
        :height="150"
        v-model="finishTaskFlag"
        title="完成任务"
      >
      
      <template #footer>
        <div style="text-align: center;">
          <el-button
            type="primary"
            size="max"
            icon="md-checkmark-circle"
            long
            @click="FinishTask_Ok"
            >确认完成</el-button
          >
        </div>
      </template>
    </vol-box>
  </div>
 
 
</template>
 
 
<script>
import VolBox from "@/components/basic/VolBox.vue";
import VolForm from "@/components/basic/VolForm.vue";
export default {
  components: { "vol-box": VolBox ,"vol-form":VolForm },
  methods: {
  },
  data () {
    return {
        
      finishTaskInfo : null,
      finishTaskFlag :false,
 
    }
  },
 
  methods: {
 
    //完成任务
    showFinishTaskAlert(res){
      this.finishTaskInfo = res;
      this.finishTaskFlag = true;
    },
 
    FinishTask_Ok(){
      
      let params = {
          MainData:
            {
                taskId:this.finishTaskInfo.rgvtask_taskId,
            },
          DetailData: null,
          DelKeys: null,
          Extra: false
      }
      this.http.post("/api/Dt_TaskRGVinfo/FinishedRgvTask", params, "任务完成中....").then(x => {
          if (!x.status) 
            return this.$Message.error(x.message);
          else 
            this.$Message.success("任务完成成功");
          this.finishTaskFlag = false;
          this.$parent.refresh();
      });
    }
 
  }
  
}
</script>