//预留转入库
<template>
  <div class="steel_inbound">
    <div class="sache">
      <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>
      <el-button type="primary" class="btn" @click="onreserved">
        预留
      </el-button>
    </div>
    <div class="table">
      <dilTable v-bind.sync="options"> </dilTable>
    </div>
  </div>
</template>

<script>
import { sjTime } from "@/utils/sharedJsFile";
import { getCookie } from "@/utils/util.js";
export default {
  data() {
    return {
      inputText: "",
      startTime: null,
      endTime: null,
      options: {
        // first请求数据的地址
        requestUrl:
          "/api/v1/wms/getWmsReservedResult?apiId=371&warehouseId=" + 3
        // selectionType: "select",
        // mapList: [],
      }
    };
  },
  methods: {
    // inboundDetails(scope){
    //   	this.$router.push("/inboundDetails/" + scope.row.inboundId)
    // },
    onclick() {
      this.options.requestUrl =
        "/api/v1/wms/getWmsReservedResult?apiId=371&warehouseId=" +
        3 +
        "&con=" +
        this.inputText;
    },
    selectionChange(selection) {
      this.options.mapList = selection;
    },
    onreserved() {
      this.$router.push({
        path: "/addSteelReserved"
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.steel_inbound {
  margin-top: 30px;
  margin-left: 20px;
  .sache {
    display: flex;
    margin-bottom: 10px;
    padding-right: 10px;
    .text {
      text-align: left;
      line-height: 40px;
    }
    .btn {
      margin-left: 10px;
    }
    .el-input {
      width: 250px;
    }
  }
}
</style>
