steel_real.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <!-- 实时库存 -->
  3. <div class="steel_real">
  4. <div class="sache">
  5. <el-input placeholder="请输入内容" v-model="inputText" clearable>
  6. </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">
  12. <el-table-column fixed="right" label="操作" width="110">
  13. <template slot-scope="scope">
  14. <el-button @click="demotionClick(scope.row.gridId)" type="text" size="small"
  15. >物资不合格</el-button
  16. >
  17. </template>
  18. </el-table-column>
  19. </dilTable>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. name:"steel_real",
  25. data(){
  26. return {
  27. inputText:"",
  28. option: {
  29. requestUrl: "/api/v1/wms/selectGridMaterialList?apiId=167",
  30. },
  31. };
  32. },
  33. mounted(){
  34. },
  35. methods:{
  36. demotionClick(gridId){
  37. this.$router.push("/steel_realDown/" + gridId);
  38. }
  39. },
  40. };
  41. </script>
  42. <style lang="scss" scode>
  43. .steel_real {
  44. padding: 1.25rem 1.875rem;
  45. }
  46. </style>