truckDriverReceive.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <!-- 司机接单 -->
  3. <div class="homeworkPath">
  4. <div class="top">
  5. <el-input class="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. </div>
  10. <el-tabs v-model="activeName" @tab-click="handleClick">
  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/getReceiveRefuseOrder/1?apiId=117&orderType=8"
  35. },
  36. option2: {
  37. // 表格请求数据的地址
  38. requestUrl: "/api/v1/oms/getReceiveRefuseOrder/0?apiId=240&orderType=8",
  39. }
  40. };
  41. },
  42. methods: {
  43. onclick() {
  44. if(this.activeName == "first"){
  45. this.option1.requestUrl="/api/v1/oms/getReceiveRefuseOrder/1?apiId=117&orderType=8&con=" + this.input;
  46. }else{
  47. this.option2.requestUrl="/api/v1/oms/getReceiveRefuseOrder/0?apiId=117&orderType=8&con=" + this.input;
  48. }
  49. },
  50. handleClick(tab, event) {
  51. console.log(tab, event);
  52. },
  53. },
  54. };
  55. </script>
  56. <style lang='scss' scoped>
  57. .homeworkPath {
  58. .top {
  59. padding: 1.25rem 0.375rem;
  60. .el-input {
  61. width: 20%;
  62. margin-right: 1.25rem;
  63. }
  64. }
  65. }
  66. </style>