//退库
<template>
  <div class="steel_inbound">
    <div class="sache">
      <el-form-item>
        <span class="text">入库时间：</span>
        <el-date-picker
          v-model="startTime"
          type="datetime"
          placeholder="选择日期"
          style="width: 200px;"
        >
        </el-date-picker>
        <span class="text">至</span>
        <el-date-picker
          v-model="endTime"
          type="datetime"
          placeholder="选择日期"
          style="width: 200px;"
        >
        </el-date-picker>
      </el-form-item>
      <el-input placeholder="请输入内容" v-model="inputText" clearable>
      </el-input>
      <el-button type="primary" class="btn" @click="onclick">
        <i class="el-icon-search"></i>查询
      </el-button>
    </div>
    <div class="table">
      <dilTable v-bind.sync="options" @func="func"> </dilTable>
    </div>
  </div>
</template>

<script>
import { sjTime } from '@/utils/sharedJsFile'
export default {
  data() {
    return {
      inputText: '',
      options: {
        // first请求数据的地址
        requestUrl: '/api/v1/wms/getWmsReboundResult?apiId=161'
      },
      startTime: null,
      endTime: null
    }
  },
  methods: {
    func(res) {},
    onclick() {
      if (this.startTime && this.endTime) {
        this.options.requestQuery = {
          startTime: sjTime(this.startTime),
          endTime: sjTime(this.endTime)
        }
      }
      this.options.requestUrl =
        '/api/v1/wms/getWmsReboundResult?apiId=161&con=' + this.inputText
    }
  }
}
</script>

<style lang="scss" scode>
.steel_inbound {
  .sache {
    height: 5rem;
    display: flex;
    align-items: center;
    padding-left: 1.875rem;
  }
}
</style>
