wangxinhui
2024-11-06 8f392cc88b0768b74efca3b68785cf5aa1c38e70
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
<template>
  <div>
    <div>
      <form action="" method="post">
        <el-select v-model="selectData_1" clearable placeholder="选择起始货位区域">
              <el-option label="正极缓存库" value="ZJ-JKHCJ"></el-option>
              <el-option label="组装正极缓存架" value="ZJ-QJHCJ"></el-option>
              <el-option label="辊分正极缓存架" value="ZJ-GFHCJ"></el-option>
              <el-option label="负极缓存库" value="FJ-JKHCJ"></el-option>
              <el-option label="组装负极缓存架" value="FJ-QJHCJ"></el-option>
              <el-option label="辊分负极缓存架" value="FJ-GFHCJ"></el-option>
        </el-select>
        <el-input  placeholder="输入起始货位编号" suffix-icon="el-icon-search" clearable v-model="beginId" style="margin-top:10px;width:auto">
        </el-input>
        <el-select v-model="selectData_2" clearable placeholder="选择终点货位区域" style="margin-top:10px;margin-left:10px">
              <el-option label="正极缓存库" value="ZJ-JKHCJ"></el-option>
              <el-option label="组装正极缓存架" value="ZJ-QJHCJ"></el-option>
              <el-option label="辊分正极缓存架" value="ZJ-GFHCJ"></el-option>
              <el-option label="负极缓存库" value="FJ-JKHCJ"></el-option>
              <el-option label="组装负极缓存架" value="FJ-QJHCJ"></el-option>
              <el-option label="辊分负极缓存架" value="FJ-GFHCJ"></el-option>
        </el-select>
        <el-input  placeholder="输入终点货位" suffix-icon="el-icon-search" style="margin-top:10px;width:auto" clearable v-model="endId" >
        </el-input>
        <el-button type="primary" size="mini" icon="el-icon-search" @click="getList()" style="margin-left:10px;margin-top:20px">下发任务</el-button>
      </form>
 
    </div>
   
  </div>
</template>
<script>
import { ref, defineComponent } from "vue";
export default defineComponent({
  data() {
    return {
      beginId:"",
      endId:"",
      selectData_1:"",
      selectData_2:"",
      
    };
  },
  methods: {
    getList() {
      let request={
        address:""
      }
      var sendBegin=this.selectData_1 + this.beginId
      var sendEnd=this.selectData_2 + this.endId
      this.http
        .post("/api/dt_agvtask/sendTask?fromaddress="+sendBegin+"&toaddress="+sendEnd,request, "正在创建任务...")
        .then((x) => {
          if(x.status){
            this.$Message.success(x.message);
          }
          else{
            this.$Message.error(x.message);
          }
          
        });
    },
  },
});
</script>