<template>
  <!-- 汽运计费详单页面 -->
  <div class="purchaseOrder">
    <div class="top">
      <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="options">
      <el-table-column fixed="right" label="操作" align="center" width="100">
        <template slot-scope="scope">
          <el-button @click="btnclick(scope.row.orderId)" type="text" size="small"
            >汽运实绩</el-button
          >
        </template>
      </el-table-column>
    </dilTable>
  </div>
</template>

<script>
export default {
  name: "purchaseOrder",
  data() {
    return {
      input:"",
      restaurants: [],
      state: "",
      options: {
        // 表格请求数据的地址
        requestUrl: "/api/v1/bms/getTruckDetailsOrderList?apiId=140&orderType=3",
      },
    };
  },
  mounted() {
  },
  watch:{
        // value1(){
        //   this.option.requestUrl="/api/v1/bmsship/bmsshipdetailsorder/getDetailsOrderList/93?con="+this.value1
        // }
      },
  methods: {
    onclick() {
        this.options.requestUrl = "/api/v1/bms/getTruckDetailsOrderList?apiId=140&orderType=3&con="+this.input;
    },
    btnclick(orderId) {
      this.$router.push("/truckResult/" + orderId);
    },
  },
};
</script>
<style lang='scss' scoped>
.purchaseOrder {
  .top {
    padding: 1.25rem 1.875rem;
  }
}
</style>