<template>
  <div class="inwardContractMaterial">
    <div class="top">
      <el-input placeholder="请输入物资名称" clearable></el-input>
      <el-button type="primary" @click="onclick">查询</el-button>
      <el-button type="primary" @click="onInsert">新增</el-button>
    </div>
    <div class="table">
      <dilTable v-bind.sync="option" ref="table"> </dilTable>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      option: {
        requestUrl: "/api/v1/rms/getInwardContractMaterial?apiId=482"
      }
    };
  },
  methods: {
    onInsert() {
      this.$router.push("/addInwardContractMaterial");
    }
  }
};
</script>
<style lang="scss" scoped>
.inwardContractMaterial {
  .top {
    .el-input {
      margin-top: 30px;
      margin-left: 30px;
      width: 250px;
    }
  }
  .table {
    margin-left: 30px;
    margin-top: 30px;
  }
}
</style>
