outBoundWagon.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <!-- 出库 -->
  3. <div class="homeworkPath">
  4. <div class="top">
  5. <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
  6. <el-button type="primary" class="btn" @click="onclick">
  7. <i class="el-icon-search"></i>查询
  8. </el-button>
  9. <el-button type="primary" class="btn" @click="insert">
  10. 出库
  11. </el-button>
  12. </div>
  13. <el-tabs v-model="activeName" @tab-click="handleClick">
  14. <dilTable v-bind.sync="option1" ref="table"> </dilTable>
  15. </el-tabs>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. name: "inplantTMS",
  21. data() {
  22. return {
  23. input: "",
  24. Time: "",
  25. activeName: "first",
  26. option1: {
  27. // 表格请求数据的地址
  28. requestUrl: "/api/v1/wmsh/getOutBoundResult?apiId=159"
  29. }
  30. };
  31. },
  32. filters: {},
  33. methods: {
  34. onclick() {
  35. if (this.activeName == "first") {
  36. this.option1.requestUrl =
  37. "/api/v1/wmsh/getOutBoundResult?apiId=159&con=" + this.input;
  38. }
  39. },
  40. insert() {
  41. this.$router.push("/addWagonLoadCopy");
  42. },
  43. handleClick(tab, event) {
  44. console.log(tab, event);
  45. }
  46. }
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .homeworkPath {
  51. .top {
  52. padding: 1.25rem 0.375rem;
  53. .el-input {
  54. width: 20%;
  55. margin-right: 40rpx;
  56. }
  57. .btn {
  58. width: 5.5%;
  59. margin-left: 0.25rem;
  60. }
  61. }
  62. }
  63. </style>