// 计费发票
<template>
  <div class="steel_inbound">
    <div class="sache">
      <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>
       <el-button type="primary" class="btn" @click="toInsert">
        <i class="el-icon-plus"></i>新增
      </el-button>
    </div>
    <div class="table">
      <dilTable v-bind.sync="options">
      </dilTable>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      input:"",
      options:{
        // first请求数据的地址
        requestUrl: "/api/v1/bms/getInvoiceList?apiId=178",
      },
    }
  },
  methods:{
     toInsert() {
      this.$router.push("/addBmsTruckInvoice");

    },
    onclick(){
      this.options.requestUrl = "/api/v1/bms/getInvoiceList?apiId=178&con="+this.input;
    }
  }
}
</script>

<style lang="scss" scode>
.steel_inbound{
  .sache{
    padding: 1.25rem 0.375rem;
			.el-input {
			width: 20%;
			margin-right: 1.25rem;
			}
  }
}
</style>