truckDriverReceiveRan.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <!-- 燃料运输派单 -->
  3. <div class="homeworkPath">
  4. <div class="top">
  5. <el-input placeholder="请输入内容" class="input" 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. </div>
  10. <el-tabs v-model="activeName">
  11. <!-- 未下发 -->
  12. <el-tab-pane label="已接收" name="first">
  13. <dilTable v-bind.sync="option1" ref="table">
  14. </dilTable>
  15. </el-tab-pane>
  16. <!-- 已下发 -->
  17. <el-tab-pane label="已拒绝" name="second">
  18. <dilTable v-bind.sync="option2">
  19. </dilTable>
  20. </el-tab-pane>
  21. </el-tabs>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "inplantTMS",
  27. data() {
  28. return {
  29. input: "",
  30. Time: "",
  31. activeName: "first",
  32. option1: {
  33. // 表格请求数据的地址
  34. requestUrl: "/api/v1/oms/getTransportDispatch?apiId=148&fuelOrder=1&orderStatus=5"
  35. },
  36. option2: {
  37. // 表格请求数据的地址
  38. requestUrl: "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=1&orderStatus=6"
  39. }
  40. };
  41. },
  42. methods: {
  43. onclick() {
  44. if(this.activeName == "first"){
  45. this.option1.requestUrl = "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=1&orderStatus=5&con=" + this.input;
  46. }else{
  47. this.option2.requestUrl = "/api/v1/oms/getTransportDispatch?apiId=241&fuelOrder=1&orderStatus=6&con=" + this.input;
  48. }
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang='scss' scoped>
  54. .homeworkPath {
  55. .top {
  56. padding: 1.25rem 1.875rem;
  57. .input{
  58. width: 12.5rem;
  59. }
  60. }
  61. }
  62. </style>