warehousePrint.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
  6. <title></title>
  7. <style>
  8. table,
  9. table tr th,
  10. table tr td {
  11. border: 2px solid #333333;
  12. padding: 5px 0;
  13. }
  14. #app {
  15. height: 88vh;
  16. position: relative;
  17. }
  18. .content {
  19. width: 1000px;
  20. /* height: 583px; */
  21. margin: auto;
  22. /* position: absolute; */
  23. /* top: -5vh; */
  24. /* bottom: 0;
  25. left: 0;
  26. right: 0; */
  27. }
  28. table {
  29. width: 100%;
  30. text-align: center;
  31. border-collapse: collapse;
  32. border: 3px solid #333333;
  33. }
  34. .col-bgc {
  35. background: #f6f7fb;
  36. }
  37. .bottom-row1 {
  38. display: flex;
  39. justify-content: space-between;
  40. margin: 20px 0;
  41. }
  42. .bottom-row2 {
  43. display: flex;
  44. margin: 10px 0;
  45. }
  46. img {
  47. width: 41px;
  48. height: 41px;
  49. /* margin-right: 118px; */
  50. }
  51. .config {
  52. margin-right: 240px;
  53. }
  54. .bottom-row3 {
  55. margin: 10px 0;
  56. }
  57. .title {
  58. text-align: center;
  59. font-size: 24px;
  60. }
  61. .number {
  62. text-align: right;
  63. margin-bottom: 10px;
  64. }
  65. .small-row {
  66. display: flex;
  67. }
  68. .small-content {
  69. width: 400px;
  70. margin: 0 auto;
  71. border: 1px solid #ccc;
  72. padding: 20px 20px 160px 20px;
  73. position: absolute;
  74. top: 0;
  75. bottom: 0;
  76. left: 0;
  77. right: 0;
  78. margin: auto;
  79. height: 650px;
  80. }
  81. .small-title {
  82. text-align: center;
  83. font-size: 18px;
  84. display: flex;
  85. justify-content: space-between;
  86. align-items: center;
  87. }
  88. .small-row {
  89. display: flex;
  90. justify-content: space-between;
  91. margin: 10px;
  92. }
  93. .small-img {
  94. margin-right: 0;
  95. }
  96. .sign {
  97. margin-right: 100px;
  98. }
  99. .header {
  100. display: flex;
  101. justify-content: space-between;
  102. font-size: 16px;
  103. margin: 10px 0;
  104. }
  105. .header1 {
  106. font-size: 24px;
  107. margin: 30px 60px 10px 60px;
  108. display: flex;
  109. justify-content: center;
  110. }
  111. .line {
  112. height: 2px;
  113. width: 410px;
  114. margin: 3px auto;
  115. background: black;
  116. }
  117. .line:nth-of-type(3) {
  118. margin-bottom: 30px;
  119. }
  120. .header-top {
  121. display: flex;
  122. justify-content: space-between;
  123. }
  124. .sfcard {}
  125. .sfcard-content {
  126. display: flex;
  127. align-items: center;
  128. justify-content: space-evenly;
  129. }
  130. .sfcard-content img {
  131. width: 45%;
  132. height: 50vh;
  133. }
  134. .sfcard-title {
  135. font-size: 28px;
  136. text-align: center;
  137. margin: 10px 0;
  138. }
  139. .avatar {
  140. margin-bottom: 120px;
  141. }
  142. .avatar:nth-of-type(2) {
  143. margin-bottom: 140px;
  144. }
  145. .center {
  146. height: calc(100vh - 8px);
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <div id="app">
  152. <div v-for="(item,index) in printData1" :key="index">
  153. <div class="center">
  154. <div class="title">**公司-***仓库出/入库单</div>
  155. <table class="table">
  156. <tr class="row">
  157. <th>出库日期</th>
  158. <th>合同/业务编号</th>
  159. <th>客户</th>
  160. <th>货名</th>
  161. <th>车牌号</th>
  162. <th>箱号</th>
  163. <th>车厢号</th>
  164. <th>毛重</th>
  165. <th>皮重</th>
  166. <th>净重</th>
  167. </tr>
  168. <tr class="row">
  169. <td class="col">买方</td>
  170. <td class="col">单位名称</td>
  171. <td class="col">{{ item.compName}}</td>
  172. <td class="col">卖方</td>
  173. <td class="col">姓名</td>
  174. <td class="col">{{ item.customerName}}</td>
  175. <td class="col">{{ item.customerName}}</td>
  176. <td class="col">{{ item.customerName}}</td>
  177. <td class="col">{{ item.customerName}}</td>
  178. <td class="col">{{ item.customerName}}</td>
  179. </tr>
  180. </table>
  181. <!-- <div class="bottom">
  182. </div> -->
  183. </div>
  184. </div>
  185. </div>
  186. </body>
  187. <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
  188. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  189. <script type="text/javascript">
  190. new Vue({
  191. el: '#app',
  192. data: {
  193. showType: [],
  194. printData: [
  195. {
  196. identityAuthenticationInfo:{},
  197. qualityInspectionManagement:{},
  198. weighingManagement:{},
  199. customerNumberCard:{},
  200. }
  201. ],
  202. printData1: [],
  203. customerList: {},
  204. customerList1: [],
  205. date: '',
  206. },
  207. computed: {},
  208. methods: {
  209. dealNo(str) {
  210. return str.slice(4)
  211. },
  212. tableRowClassName({
  213. row,
  214. rowIndex
  215. }) {
  216. if (rowIndex === 1) {
  217. return 'warning-row'
  218. } else if (rowIndex === 3) {
  219. return 'success-row'
  220. }
  221. return ''
  222. },
  223. getQueryVariable(variable) {
  224. var query = window.location.search.substring(1)
  225. var vars = query.split('&')
  226. for (var i = 0; i < vars.length; i++) {
  227. var pair = vars[i].split('=')
  228. if (pair[0] == variable) {
  229. return pair[1]
  230. }
  231. }
  232. return false
  233. },
  234. printSmall() {},
  235. printBig() {}
  236. },
  237. mounted() {
  238. this.date = new Date().toLocaleString()
  239. // let _data = decodeURIComponent(this.getQueryVariable('dataList'))
  240. // console.log("cdsjkvdjkljklkcj",JSON.parse(_data))
  241. // inOutRecord_print
  242. this.printData = JSON.parse(sessionStorage.getItem('inOutRecord_printBD'))
  243. this.printData1 = JSON.parse(sessionStorage.getItem('inOutRecord_printJSD'))
  244. console.log("磅单",this.printData)
  245. console.log("结算单",this.printData1)
  246. // document.title = this.printData.compName + '结算凭证'
  247. window.print()
  248. window.onafterprint = function(event) {
  249. window.history.back(-1)
  250. }
  251. },
  252. watch: {}
  253. })
  254. </script>
  255. </html>