unload.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //卸货
  2. <template>
  3. <!-- 卸货卸货实绩页面 -->
  4. <div class="homeworkPath">
  5. <div class="top">
  6. <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
  7. <el-button type="primary" class="btn" @click="onclick">
  8. <i class="el-icon-search"></i>查询
  9. </el-button>
  10. </div>
  11. <dilTable v-bind.sync="option"></dilTable>
  12. </div>
  13. </template>
  14. <script>
  15. import { getCookie } from "@/utils/util.js";
  16. export default {
  17. name: "homeworkPath",
  18. data() {
  19. return {
  20. restaurants: [],
  21. input: "",
  22. option: {
  23. // 表格请求数据的地址
  24. requestUrl: "",
  25. },
  26. };
  27. },
  28. created(){
  29. if(getCookie("orgCode") == "dagangadmin" || getCookie("orgCode") == "zidonghuabu"){
  30. this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=360&orderType=11"
  31. }else{
  32. this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=360&orderType=11&userId=" + getCookie("orgCode")
  33. }
  34. },
  35. methods: {
  36. onclick() {
  37. this.$message.info("功能暂时关闭")
  38. },
  39. }
  40. };
  41. </script>
  42. <style lang='scss' scoped>
  43. .homeworkPath {
  44. .top {
  45. padding: 1.25rem 1.875rem;
  46. .el-input{
  47. width: 20%;
  48. }
  49. }
  50. }
  51. </style>