steel_rebound.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //退库
  2. <template>
  3. <div class="steel_inbound">
  4. <div class="sache">
  5. <el-form-item>
  6. <span class="text">入库时间:</span>
  7. <el-date-picker
  8. v-model="startTime"
  9. type="datetime"
  10. placeholder="选择日期"
  11. style="width: 200px;"
  12. >
  13. </el-date-picker>
  14. <span class="text">至</span>
  15. <el-date-picker
  16. v-model="endTime"
  17. type="datetime"
  18. placeholder="选择日期"
  19. style="width: 200px;"
  20. >
  21. </el-date-picker>
  22. </el-form-item>
  23. <el-input placeholder="请输入内容" v-model="inputText" clearable>
  24. </el-input>
  25. <el-button type="primary" class="btn" @click="onclick">
  26. <i class="el-icon-search"></i>查询
  27. </el-button>
  28. </div>
  29. <div class="table">
  30. <dilTable v-bind.sync="options" @func="func"> </dilTable>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. import { sjTime } from '@/utils/sharedJsFile'
  36. export default {
  37. data() {
  38. return {
  39. inputText: '',
  40. options: {
  41. // first请求数据的地址
  42. requestUrl: '/api/v1/wms/getWmsReboundResult?apiId=161'
  43. },
  44. startTime: null,
  45. endTime: null
  46. }
  47. },
  48. methods: {
  49. func(res) {},
  50. onclick() {
  51. if (this.startTime && this.endTime) {
  52. this.options.requestQuery = {
  53. startTime: sjTime(this.startTime),
  54. endTime: sjTime(this.endTime)
  55. }
  56. }
  57. this.options.requestUrl =
  58. '/api/v1/wms/getWmsReboundResult?apiId=161&con=' + this.inputText
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scode>
  64. .steel_inbound {
  65. .sache {
  66. height: 5rem;
  67. display: flex;
  68. align-items: center;
  69. padding-left: 1.875rem;
  70. }
  71. }
  72. </style>