index.blade.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @extends('layouts.app')
  2. @section('title')计费模型-仓储计费@endsection
  3. @section('content')
  4. <div id="nav2">
  5. @component('maintenance.menu')@endcomponent
  6. @component('maintenance.priceModel.operation.menu')@endcomponent
  7. </div>
  8. <div class="container-fluid mt-2" id="container">
  9. <div id="form_div"></div>
  10. <table class="table table-hover table-striped text-nowrap">
  11. <tr>
  12. <th>序号</th>
  13. <th>操作</th>
  14. <th>名称</th>
  15. <th>类型</th>
  16. <th>项目</th>
  17. <th>特征</th>
  18. <th>计量</th>
  19. <th>单位</th>
  20. <th>单价</th>
  21. <th>备注</th>
  22. <th>录入时间</th>
  23. <th>操作</th>
  24. </tr>
  25. <tr v-for="model in models">
  26. <td></td>
  27. </tr>
  28. </table>
  29. </div>
  30. @stop
  31. @section("lastScript")
  32. <script type="text/javascript" src="{{mix('js/queryForm/queryForm.js')}}"></script>
  33. <script>
  34. new Vue({
  35. el:"#container",
  36. data:{
  37. models : [],
  38. owners : [],
  39. },
  40. mounted(){
  41. let data=[
  42. [
  43. {name:'owner_id',type:'select_multiple_select',tip:['输入关键词快速定位下拉列表,回车确定','选择要显示的项目'],
  44. placeholder:['项目','定位或多选项目'],data:this.owners},
  45. {name: 'name', type: 'input', tip: '价格名称:可在左侧增加百分号(%)进行模糊搜索', placeholder: '价格名称'},
  46. ]
  47. ];
  48. this.form = new query({
  49. el:"#form_div",
  50. condition:data,
  51. });
  52. this.form.init();
  53. },
  54. });
  55. </script>
  56. @stop