<template>
  <!-- 分解计划 -->
  <div class="homeworkPath">
    <div class="top">
  <span class="top_title">运输计划号: </span>
      <el-input class="el-input"
        placeholder="请输入内容"
        v-model="input"
        clearable>
      </el-input>
     <el-button type="primary" class="btn" @click="onclick">
        <i class="el-icon-search"></i>查询
      </el-button>

    </div>
    <dilTable v-bind.sync="option2">
      <el-table-column fixed="right" label="操作" width="80">
        <template slot-scope="scope">
          <el-button @click="disassembleClick(scope.row.planId)" type="text" size="small">
            分解计划
          </el-button>
        </template>
      </el-table-column>
    </dilTable>
  </div>
</template>

<script>
export default {
  name: "inplantTMS",
  data() {
    return {
      input:"",
      Time: "",
      activeName: "first",
      option1: {
        // 表格请求数据的地址
        requestUrl: "/api/v1/tms/getAllPurPlan?apiId=79&status=1"
      },
      option2: {
        // 表格请求数据的地址
        requestUrl: "/api/v1/tms/getAllPurPlan?apiId=79&status=2",
      }
    };
  },
  methods: {
    onclick() {
      console.log("点击事件");
    },
    //分解
    disassembleClick(planId){
      this.$router.push("/breakdownPlanAdd/" + planId);
    },


  },
};
</script>
<style lang='scss'>
.homeworkPath {
  .top {
    padding: 1.25rem 0.375rem;
    .el-input {
      width: 20%;
      margin-right: 1.25rem;
    }
  }
}
</style>