bill_view.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {extend name="public/container"}
  2. {block name="content"}
  3. <style>
  4. .backlog-body {
  5. padding: 10px 15px;
  6. background-color: #f8f8f8;
  7. color: #999;
  8. border-radius: 2px;
  9. transition: all .3s;
  10. -webkit-transition: all .3s;
  11. overflow: hidden;
  12. max-height: 84px;
  13. }
  14. .backlog-body h3 {
  15. margin-bottom: 10px;
  16. }
  17. .right-icon {
  18. position: absolute;
  19. right: 10px;
  20. }
  21. .backlog-body p cite {
  22. font-style: normal;
  23. font-size: 17px;
  24. font-weight: 300;
  25. color: #009688;
  26. }
  27. .layuiadmin-badge, .layuiadmin-btn-group, .layuiadmin-span-color {
  28. position: absolute;
  29. right: 15px;
  30. }
  31. .layuiadmin-badge {
  32. top: 50%;
  33. margin-top: -9px;
  34. color: #01AAED;
  35. }
  36. </style>
  37. <div class="layui-fluid">
  38. <div class="layui-row layui-col-space15">
  39. <div class="layui-tab-content" id="content">
  40. <div class="layui-tab-item layui-show">
  41. <table class="layui-table" lay-skin="line" v-cloak="">
  42. <thead>
  43. <tr>
  44. <th>商品图片</th>
  45. <th style="width: 35%;">商品名称</th>
  46. <th>入库数据</th>
  47. <th>入库时间</th>
  48. <th>审核状态</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. <tr v-for="item in orderList">
  53. <td class="text-center"><img :src="item.image" style="width:80px;height: 80px;">
  54. </td>
  55. <td>{{item.store_name}}</td>
  56. <td>{{item.in_stock}}</td>
  57. <td>{{item.add_time}}</td>
  58. <td>状态:{{item.status}}<br>审核时间:{{item.audit_time}}</td>
  59. </tr>
  60. <tr v-show="orderList.length<=0" style="text-align: center">
  61. <td colspan="6">暂无数据</td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <div ref="page_order" v-show="count.order_count > limit" style="text-align: right;"></div>
  66. </div>
  67. </div>
  68. </div>
  69. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  70. <script>
  71. require(['vue'], function (Vue) {
  72. new Vue({
  73. el: "#content",
  74. data: {
  75. limit: 10,
  76. product_id: {$product_id},
  77. store_id:{$store_id},
  78. orderList: [],
  79. count: {$count},
  80. page: {
  81. order_page: 1,
  82. },
  83. },
  84. watch: {
  85. 'page.order_page': function () {
  86. this.getOneorderList();
  87. },
  88. },
  89. methods: {
  90. getOneorderList: function () {
  91. this.request('bill_view_lst', this.page.order_page, 'orderList');
  92. },
  93. request: function (action, page, name) {
  94. var that = this;
  95. layList.baseGet(layList.U({
  96. a: action,
  97. p: {page: page, limit: this.limit, product_id: this.product_id,store_id:this.store_id}
  98. }), function (res) {
  99. that.$set(that, name, res.data.data)
  100. });
  101. }
  102. },
  103. mounted: function () {
  104. this.getOneorderList();
  105. var that = this;
  106. layList.laypage.render({
  107. elem: that.$refs.page_order
  108. , count: that.count
  109. , limit: that.limit
  110. , theme: '#1E9FFF',
  111. jump: function (obj) {
  112. that.page.order_page = obj.curr;
  113. }
  114. });
  115. }
  116. });
  117. });
  118. </script>
  119. {/block}