steel_reserved.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //预留转入库
  2. <template>
  3. <div class="steel_inbound">
  4. <div class="sache">
  5. <el-input placeholder="请输入内容" v-model="inputText" clearable>
  6. </el-input>
  7. <el-button type="primary" class="btn" @click="onclick">
  8. <i class="el-icon-search"></i>查询
  9. </el-button>
  10. <el-button type="primary" class="btn" @click="onreserved">
  11. 预留
  12. </el-button>
  13. </div>
  14. <div class="table">
  15. <dilTable v-bind.sync="options"> </dilTable>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import { sjTime } from "@/utils/sharedJsFile";
  21. import { getCookie } from "@/utils/util.js";
  22. export default {
  23. data() {
  24. return {
  25. inputText: "",
  26. startTime: null,
  27. endTime: null,
  28. options: {
  29. // first请求数据的地址
  30. requestUrl:
  31. "/api/v1/wms/getWmsReservedResult?apiId=371&warehouseId=" + 3
  32. // selectionType: "select",
  33. // mapList: [],
  34. }
  35. };
  36. },
  37. methods: {
  38. // inboundDetails(scope){
  39. // this.$router.push("/inboundDetails/" + scope.row.inboundId)
  40. // },
  41. onclick() {
  42. this.options.requestUrl =
  43. "/api/v1/wms/getWmsReservedResult?apiId=371&warehouseId=" +
  44. 3 +
  45. "&con=" +
  46. this.inputText;
  47. },
  48. selectionChange(selection) {
  49. this.options.mapList = selection;
  50. },
  51. onreserved() {
  52. this.$router.push({
  53. path: "/addSteelReserved"
  54. });
  55. }
  56. }
  57. };
  58. </script>
  59. <style lang="scss" scoped>
  60. .steel_inbound {
  61. margin-top: 30px;
  62. margin-left: 20px;
  63. .sache {
  64. display: flex;
  65. margin-bottom: 10px;
  66. padding-right: 10px;
  67. .text {
  68. text-align: left;
  69. line-height: 40px;
  70. }
  71. .btn {
  72. margin-left: 10px;
  73. }
  74. .el-input {
  75. width: 250px;
  76. }
  77. }
  78. }
  79. </style>