bill_body.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>订单详情</title>
  6. <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
  7. <meta content="yes" name="apple-mobile-web-app-capable"/>
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
  9. <meta content="telephone=no" name="format-detection"/>
  10. <link href="../../css/styleInfo.css" rel="stylesheet" type="text/css"/>
  11. <link href="../../css/html.css" rel="stylesheet" type="text/css"/>
  12. <style>
  13. .aui-scrollView {
  14. padding-bottom: 4rem;
  15. }
  16. .aui-footer-text-info a {
  17. padding: 5px 10px;
  18. font-size: 0.9em;
  19. margin-right: 10px;
  20. }
  21. [v-cloak] {
  22. display: none
  23. }
  24. .aui-footer:after {
  25. border: none;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <section class="aui-flexView" id="app" v-cloak>
  31. <section class="aui-scrollView">
  32. <div class="aui-cp-edu b-line zmq-bg-white">
  33. <!--<div class="aui-san-sml"></div>-->
  34. <div class="aui-flex aui-flex-ed">
  35. <div class="aui-flex-box">
  36. {{btn == '入库' ? '供应商名称' : '出库客户'}}: <em class="zmq-text-msg">{{storeInfo.operatingPer}}</em>
  37. </div>
  38. </div>
  39. <div class="zmq-flex zmq-flex-between">
  40. <div class="aui-flex aui-flex-ed">
  41. <div class="aui-flex-box">
  42. 支付方式: <em class="zmq-text-msg">{{storeInfo.payType}}</em>
  43. </div>
  44. </div>
  45. <div class="aui-flex aui-flex-ed">
  46. <div class="aui-flex-box">
  47. 总支付金额: <em class="zmq-text-msg">{{storeInfo.payAmount}}</em>
  48. </div>
  49. </div>
  50. </div>
  51. <!---->
  52. <div class="aui-flex aui-flex-ed zmq-margin-top-10">
  53. <div class="aui-flex-box zmq-text-done zmq-text-font-09" style="color:#333; font-size:15px;">
  54. {{btn}}详情<em class="zmq-float-right">共 {{storeInfo.others.length}} 条记录</em>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="aui-commodity-bg zmq-width-90 zmq-bg-white zmq-margin-top-10 zmq-radius-5" v-for="(store,storeIndex) in storeInfo.others">
  59. <div class="aui-flex">
  60. <div class="aui-flex-box">
  61. <h4>{{store.bizGoodsDto.materialName}}</h4>
  62. <div class="zmq-flex">
  63. <p>
  64. {{store.bizGoodsDto.brand}} {{store.bizGoodsDto.specs}}
  65. </p>
  66. <div class="zmq-position-absolute zmq-margin-top-15 zmq-text-font-10 zmq-text-msg">
  67. 操作库存:1 条
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <img class="zmq-img-nodata" v-show="hasData == false" src="../../image/nodata.png" />
  74. </section>
  75. <footer class="aui-footer aui-footer-fixed" id="vuekeng">
  76. <div class="aui-footer-text-info zmq-btn-img zmq-textAlign-center zmq-text-white" v-on:click="doneChoose">
  77. 确认{{btn}}
  78. </div>
  79. </footer>
  80. </section>
  81. </body>
  82. <script type="text/javascript" src="../../script/api.js"></script>
  83. <script type="text/javascript" src="../../script/vue.js"></script>
  84. <script type="text/javascript" src="../../script/httpRequest.js"></script>
  85. <script type="text/javascript" src="../../script/vue_plugins.js"></script>
  86. <script type="text/javascript">
  87. apiready = function() {
  88. var orderid = api.pageParam.orderid;
  89. var storeInfo = api.pageParam.body;
  90. var type = api.pageParam.type;
  91. new Vue({
  92. el : '#app',
  93. data : {
  94. orderid : orderid,
  95. // 选择的名称
  96. storeInfo : JSON.parse(storeInfo),
  97. // 按钮标题
  98. btn : type,
  99. // 进货出货url
  100. buyStoreUrl : 'buyStoreUrl',
  101. // 是否显示确认按钮
  102. isOk : true,
  103. // 是否有数据
  104. hasData : true,
  105. },
  106. methods : {
  107. init : function() {
  108. },
  109. // 确认入库出库
  110. doneChoose : function() {
  111. delete this.storeInfo.others;
  112. var url = this.buyStoreUrl, _this = this;
  113. this.showModal(type + "提示", "是否确认将该商品" + type, ["确认", "取消"], function(index) {
  114. if (index == 1) {
  115. _this.$post(url, _this.storeInfo, function(ret) {
  116. if (ret.code == 0) {
  117. _this.showAlert('商品' + type + '成功', function() {
  118. document.getElementById('vuekeng').style.display = 'none';
  119. _this.sendEvent("refushView");
  120. _this.sendEvent("refushStock");
  121. setTimeout(function(){
  122. api.closeWin({
  123. name : 'orderPlace_win'
  124. });
  125. },500);
  126. });
  127. }
  128. })
  129. }
  130. })
  131. }
  132. },
  133. mounted : function() {
  134. this.init();
  135. }
  136. })
  137. }
  138. </script>
  139. </html>