scannShop.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. #parse("sys/header.html")
  6. <style>
  7. .upload-list {
  8. display: inline-block;
  9. width: 60px;
  10. height: 60px;
  11. text-align: center;
  12. line-height: 60px;
  13. border: 1px solid transparent;
  14. border-radius: 4px;
  15. overflow: hidden;
  16. background: #fff;
  17. position: relative;
  18. box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  19. margin-right: 4px;
  20. }
  21. .upload-list img {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. .upload-list-cover {
  26. display: none;
  27. position: absolute;
  28. top: 0;
  29. bottom: 0;
  30. left: 0;
  31. right: 0;
  32. background: rgba(0, 0, 0, .6);
  33. }
  34. .upload-list:hover .upload-list-cover {
  35. display: block;
  36. }
  37. .upload-list-cover i {
  38. color: #fff;
  39. font-size: 20px;
  40. cursor: pointer;
  41. margin: 0 2px;
  42. }
  43. .hselect {
  44. margin: 0;
  45. padding: 0;
  46. }
  47. </style>
  48. </head>
  49. <body>
  50. <div id="rrapp" v-cloak>
  51. <div v-show="showList">
  52. <Row :gutter="16">
  53. <div class="search-group">
  54. <i-col span="4">
  55. <i-input v-model="q.prodBarcode" @on-enter="query" placeholder="商品编码"/>
  56. </i-col>
  57. <i-button @click="query">查询</i-button>
  58. <i-button @click="reloadSearch">重置</i-button>
  59. </div>
  60. <div class="buttons-group">
  61. <i-button type="info" @click="getTotal"><i class="fa"></i>&nbsp;全选</i-button>
  62. #if($shiro.hasPermission("goods:update"))
  63. <i-button type="info" @click="getInfo"><i class="fa fa-plus"></i>&nbsp;普货订单生成</i-button>
  64. <i-button class="btn btn-outline btn-primary" onclick="vm.removeData()"><i class="fa fa-remove"></i>批量删除</i-button>&nbsp;
  65. #end
  66. </div>
  67. </Row>
  68. <table id="jqGrid"></table>
  69. <!--<div id="jqGridPager">-->
  70. <!--商品合计:{{goodsTotalPrice}}-->
  71. <!--实收:{{applyPrice}}-->
  72. <!--</div>-->
  73. </div>
  74. <Card v-show="!showList">
  75. <p slot="title">{{title}}</p>
  76. <i-form ref="formValidate" :model="offlineCart" :rules="ruleValidate" :label-width="140">
  77. <table class="table">
  78. <tr>
  79. <th style="text-align: left; width: 600px; font-weight: bold;" colspan="2">商品名称</th>
  80. <th style="text-align: center; width: 240px; font-weight: bold;">单价</th>
  81. <th style="text-align: center; width: 240px; font-weight: bold;">数量</th>
  82. <th style="text-align: center; width: 240px; font-weight: bold;">小计</th>
  83. </tr>
  84. <tr v-for="(item,index) in offlineCartList">
  85. <td colspan="2"><p style="line-height: 30px;">{{item.goodsName}}</p></td>
  86. <td align="center"><p style="line-height: 30px;">¥{{item.retailPrice}}</p></td>
  87. <td align="center"><p style="line-height: 30px;">{{item.number}}</p></td>
  88. <td align="center">¥{{item.number * item.retailPrice}}</td>
  89. </tr>
  90. <tr>
  91. <td align="left" colspan="2" style="font-weight: bold;">总计</td>
  92. <td align="center">-</td>
  93. <td align="center">-</td>
  94. <td align="center">¥{{goodsTotalPrice}}</td>
  95. </tr>
  96. </table>
  97. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  98. <i-button type="warning" @click="back" style="margin-left: 8px"/>返回</i-button>
  99. </i-form>
  100. </Card>
  101. </div>
  102. <script src="${rc.contextPath}/js/shop/scannShop.js?_${date.systemTime}"></script>
  103. </body>
  104. </html>