<template>
  <div class="rmsMaterialSingleWeight">
    <div class="search">
      <el-input v-model="con" style="width:250px"></el-input>
      <el-button type="primary" @click="search">查询</el-button>
    </div>
    <div class="table">
      <dilTable v-bind.sync="options"></dilTable>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      options: {
        requestUrl: '/api/v1/rms/getMaterialSingleWeightList?apiId=527'
      },
      con: ''
    }
  },
  methods: {
    search() {
      this.options.requestUrl =
        '/api/v1/rms/getMaterialSingleWeightList?apiId=527&con=' +
        this.con +
        '&i=' +
        new Date()
    }
  }
}
</script>
<style lang="scss" scoped>
.rmsMaterialSingleWeight {
  .search {
    margin-left: 10px;
    margin-top: 10px;
  }
  .table {
    margin-left: 10px;
    margin-top: 10px;
  }
}
</style>
