weightCheckOutNew.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" href="../cdn/element-ui/2.13.2/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. height: 37px;
  14. }
  15. body {
  16. margin: 0;
  17. }
  18. #app {
  19. /* height: 98vh;
  20. position: relative; */
  21. }
  22. .content {
  23. width: 1000px;
  24. padding: 30px 20px 20px 20px;
  25. font-size: 18px;
  26. height: 630px;
  27. /* height: 570px; */
  28. position: relative;
  29. }
  30. .a5-content {
  31. height: 130vh;
  32. }
  33. table {
  34. width: 100%;
  35. text-align: center;
  36. border-collapse: collapse;
  37. border: 3px solid #333333;
  38. }
  39. .col-bgc {
  40. background: #f6f7fb;
  41. }
  42. .bottom-row1 {
  43. display: flex;
  44. /* justify-content: space-between; */
  45. margin-top: 5px 0;
  46. }
  47. .bottom-row2 {
  48. display: flex;
  49. }
  50. img,
  51. .left {
  52. width: 120px;
  53. height: 120px;
  54. position: absolute;
  55. left: 12px;
  56. top: 10px;
  57. }
  58. .config {
  59. margin-top: 10px;
  60. margin-right: 240px;
  61. }
  62. .autograph {
  63. margin-top: 10px;
  64. margin-right: 170px;
  65. }
  66. .bottom-row3 {
  67. margin: 10px 0;
  68. }
  69. .title {
  70. text-align: center;
  71. font-size: 36px;
  72. font-weight: 500;
  73. position: relative;
  74. /* margin-top: 47px; */
  75. }
  76. .number {
  77. text-align: right;
  78. margin-bottom: 10px;
  79. margin-top: 30px;
  80. }
  81. .small-row {
  82. display: flex;
  83. }
  84. .small-content {
  85. width: 300px;
  86. /* margin: 0 auto;
  87. border: 1px solid #ccc;
  88. padding: 20px 20px 160px 20px;
  89. position: absolute;
  90. top: 0;
  91. bottom: 0;
  92. left: 0;
  93. right: 0;
  94. margin: auto; */
  95. }
  96. .small-title {
  97. text-align: center;
  98. font-size: 18px;
  99. /* display: flex; */
  100. justify-content: space-between;
  101. align-items: center;
  102. }
  103. .numberNo {
  104. font-size: 36px;
  105. margin: auto;
  106. }
  107. .small-row {
  108. display: flex;
  109. justify-content: space-between;
  110. margin: 10px;
  111. }
  112. .small-img {
  113. margin-right: 0;
  114. }
  115. .sign {
  116. margin-right: 100px;
  117. }
  118. .small-code {
  119. position: relative;
  120. left: calc(50% - 55px)
  121. }
  122. </style>
  123. </head>
  124. <body>
  125. <div id="app">
  126. <div v-if="selectPrint">
  127. <div v-for="(item,index) in tableData1" :key="index" v-if="!isDDPrint||isEWPrint">
  128. <div class="content" :class="pageType=='A5'?'a5-content':''">
  129. <!-- <div class="title">{{item.compName}}</div> -->
  130. <div class="title">出库检斤单</div>
  131. <div class="left">
  132. <img :src="item.codeUrl" alt="">
  133. </div>
  134. <div class="number">{{item.number}}</div>
  135. <table class="table">
  136. <tr class="row">
  137. <td class="col col-bgc">发货单位</td>
  138. <td class="col" colspan="2">{{item.customer}}</td>
  139. <!-- <td class="col" colspan="2">{{item.customer}}</td> -->
  140. <td class="col col-bgc">联系电话</td>
  141. <td class="col">{{kehuphone}}</td>
  142. <!-- <td class="col">{{item.customerPhone}}</td> -->
  143. <td class="col col-bgc">货名</td>
  144. <td class="col" colspan="2">{{item.goodsName}}</td>
  145. </tr>
  146. <tr class="row">
  147. <td class="col col-bgc">收货单位</td>
  148. <td class="col" colspan="2">{{item.compName}}</td>
  149. <td class="col col-bgc">联系人</td>
  150. <td class="col">{{item.person}}</td>
  151. <td class="col col-bgc">联系电话</td>
  152. <td class="col" colspan="2">{{item.personPhone}}</td>
  153. </tr>
  154. <!-- <tr class="row">
  155. <td class="col col-bgc">货名</td>
  156. <td class="col">{{item.goodsName}}</td>
  157. <td class="col col-bgc">类型</td>
  158. <td class="col">{{item.type}}</td>
  159. <td class="col col-bgc">容重(克/升)</td>
  160. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.bulkDensity:''}}
  161. </td>
  162. <td class="col col-bgc">不完善粒(%)</td>
  163. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.imperfectGrain:''}}
  164. </td>
  165. </tr> -->
  166. <!-- <tr class="row">
  167. <td class="col col-bgc">等级</td>
  168. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.grade:''}}</td>
  169. <td class="col col-bgc">水分(%)</td>
  170. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.waterContent:''}}
  171. </td>
  172. <td class="col col-bgc">热损伤(%)</td>
  173. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.jiaorenli:''}}</td>
  174. <td class="col col-bgc">质检时间</td>
  175. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.qualityDate:''}}
  176. </td>
  177. </tr>
  178. <tr class="row">
  179. <td class="col col-bgc">杂质(%)</td>
  180. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.impurity:''}}</td>
  181. <td class="col col-bgc">霉变粒(%)</td>
  182. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.mildewGrain:''}}
  183. </td>
  184. <td class="col col-bgc">扣杂</td>
  185. <td class="col">
  186. {{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}</td>
  187. <td class="col " colspan="2"></td>
  188. </tr> -->
  189. <tr class="row">
  190. <td class="col col-bgc" >毛重(公斤)</td>
  191. <td class="col" colspan="2">{{item.grossWeight}}</td>
  192. <td class="col col-bgc">皮重(公斤)</td>
  193. <td class="col">{{item.tare}}</td>
  194. <!-- <td class="col col-bgc">扣重(公斤)</td>
  195. <td class="col">{{item.buckleMiscellaneous}}</td> -->
  196. <td class="col col-bgc">净重(公斤)</td>
  197. <td class="col">{{item.netWeight}}</td>
  198. <!-- <td class="col " colspan="2"></td> -->
  199. </tr>
  200. <tr class="row">
  201. <!-- <td class="col col-bgc">运输方式</td> -->
  202. <!-- <td class="col" >{{item.outType}}</td> -->
  203. <td class="col" colspan="2" v-if='item.outType=="散船"'>{{item.shipName}}</td>
  204. <td class="col col-bgc" v-if='item.outType=="火运"'>车厢号</td>
  205. <td class="col col-bgc" v-if='item.outType=="散船"'>船次</td>
  206. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>封号</td>
  207. <td class="col" colspan="2" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>
  208. {{item.titleNo}} {{item.titleNoOther}}
  209. </td>
  210. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>箱号</td>
  211. <td class="col" colspan="3" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>
  212. {{item.boxNo}} {{item.boxNoOther}}
  213. </td>
  214. <td class="col" colspan="2" v-if='item.outType=="火运"'>
  215. {{item.wingNumber}} {{item.wingNumberOther}}
  216. </td>
  217. <td class="col" colspan="2" v-if='item.outType=="散船"'>{{item.shipNumber}}</td>
  218. </tr>
  219. <tr class="row">
  220. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>车牌号</td>
  221. <td class="col col-bgc" v-if='item.outType=="火运"'>车号</td>
  222. <td class="col col-bgc" v-if='item.outType=="散船"'>船名</td>
  223. <td class="col" colspan="2" v-if='item.outType=="集装箱船"||item.outType=="汽运"||item.outType=="火运"'>{{item.carNumber}}
  224. </td>
  225. <td class="col col-bgc" >毛重检斤时间</td>
  226. <td class="col" >{{item.grossDate}}</td>
  227. <td class="col col-bgc" > 皮重检斤时间</td>
  228. <td class="col">{{item.tareDate}}</td>
  229. </tr>
  230. </table>
  231. <div class="bottom">
  232. <div class="bottom-row1">
  233. <div>毛检:{{item.secretaryWeigher}}</div>
  234. <div style="margin-left:60px">皮检:{{item.skinInspector}}</div>
  235. <!-- <div>{{tableData.qualityDate}}</div> -->
  236. </div>
  237. <div class="bottom-row2">
  238. <!-- <div class="left">
  239. <img :src="item.codeUrl" alt="">
  240. </div> -->
  241. <div class="config" v-if="item.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
  242. <div class="config" v-if="item.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
  243. <div class="autograph">客户签名:</div>
  244. <div class="autograph" v-if="item.warehouseName!='白城补数据'">司机签名:</div>
  245. </div>
  246. <!-- <div class="bottom-row3">扫一扫</div> -->
  247. </div>
  248. </div>
  249. </div>
  250. <!-- 打印额外 -->
  251. <div v-for="(item,index) in tableDataEW" :key="index" v-if="isDDPrint||isEWPrint">
  252. <div class="content" :class="pageType=='A5'?'a5-content':''">
  253. <!-- <div class="title">{{item.customer}}</div> -->
  254. <div class="title">出库检斤单</div>
  255. <div class="left">
  256. <img :src="item.codeUrl" alt="">
  257. </div>
  258. <div class="number">{{item.number}}</div>
  259. <table class="table">
  260. <tr class="row">
  261. <td class="col col-bgc">发货单位</td>
  262. <td class="col" colspan="2">{{item.customer}}</td>
  263. <td class="col col-bgc">联系电话</td>
  264. <td class="col">{{kehuphone}}</td>
  265. <!-- <td class="col">{{item.contractManagement ? item.contractManagement.sellerPhone : ""}}</td> -->
  266. <td class="col col-bgc">货名</td>
  267. <td class="col" colspan="2">{{item.goodsName}}</td>
  268. </tr>
  269. <tr class="row">
  270. <td class="col col-bgc">收货单位</td>
  271. <td class="col" colspan="2">{{item.compName}}</td>
  272. <td class="col col-bgc">联系人</td>
  273. <td class="col">{{item.person}}</td>
  274. <td class="col col-bgc">联系电话</td>
  275. <td class="col" colspan="2">{{item.personPhone}}</td>
  276. </tr>
  277. <!-- <tr class="row">
  278. <td class="col col-bgc">货名</td>
  279. <td class="col">{{item.goodsName}}</td>
  280. <td class="col col-bgc">类型</td>
  281. <td class="col">{{item.type}}</td>
  282. <td class="col col-bgc">容重(克/升)</td>
  283. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.bulkDensity:''}}
  284. </td>
  285. <td class="col col-bgc">不完善粒(%)</td>
  286. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.imperfectGrain:''}}
  287. </td>
  288. </tr>-->
  289. <!-- <tr class="row">
  290. <td class="col col-bgc">等级</td>
  291. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.grade:''}}</td>
  292. <td class="col col-bgc">水分(%)</td>
  293. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.waterContent:''}}
  294. </td>
  295. <td class="col col-bgc">热损伤(%)</td>
  296. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.jiaorenli:''}}</td>
  297. <td class="col col-bgc">质检时间</td>
  298. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.qualityDate:''}}
  299. </td>
  300. </tr>
  301. <tr class="row">
  302. <td class="col col-bgc">杂质(%)</td>
  303. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.impurity:''}}</td>
  304. <td class="col col-bgc">霉变粒(%)</td>
  305. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.mildewGrain:''}}
  306. </td>
  307. <td class="col col-bgc">扣杂</td>
  308. <td class="col">
  309. {{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}</td>
  310. <td class="col " colspan="2"></td>
  311. </tr> -->
  312. <tr class="row">
  313. <td class="col col-bgc" >毛重(公斤)</td>
  314. <td class="col" colspan="2">{{item.grossWeight}}</td>
  315. <td class="col col-bgc">皮重(公斤)</td>
  316. <td class="col">{{item.tare}}</td>
  317. <!-- <td class="col col-bgc">扣重(公斤)</td>
  318. <td class="col">{{item.buckleMiscellaneous}}</td> -->
  319. <td class="col col-bgc">净重(公斤)</td>
  320. <td class="col">{{item.netWeight}}</td>
  321. <!-- <td class="col " colspan="2"></td> -->
  322. </tr>
  323. <tr class="row">
  324. <!-- <td class="col col-bgc">运输方式</td> -->
  325. <!-- <td class="col" >{{item.outType}}</td> -->
  326. <td class="col" colspan="2" v-if='item.outType=="散船"'>{{item.shipName}}</td>
  327. <td class="col col-bgc" v-if='item.outType=="火运"'>车厢号</td>
  328. <td class="col col-bgc" v-if='item.outType=="散船"'>船次</td>
  329. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>封号</td>
  330. <td class="col" colspan="2" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>
  331. {{item.titleNo}} {{item.titleNoOther}}
  332. </td>
  333. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>箱号</td>
  334. <td class="col" colspan="3" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>
  335. {{item.boxNo}} {{item.boxNoOther}}
  336. </td>
  337. <td class="col" colspan="2" v-if='item.outType=="火运"'>
  338. {{item.wingNumber}} {{item.wingNumberOther}}
  339. </td>
  340. <td class="col" colspan="2" v-if='item.outType=="散船"'>{{item.shipNumber}}</td>
  341. </tr>
  342. <tr class="row">
  343. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>车牌号</td>
  344. <td class="col col-bgc" v-if='item.outType=="火运"'>车号</td>
  345. <td class="col col-bgc" v-if='item.outType=="散船"'>船名</td>
  346. <td class="col" colspan="2" v-if='item.outType=="集装箱船"||item.outType=="汽运"||item.outType=="火运"'>{{item.carNumber}}
  347. </td>
  348. <td class="col col-bgc" >毛重检斤时间</td>
  349. <td class="col" >{{item.grossDate}}</td>
  350. <td class="col col-bgc" > 皮重检斤时间</td>
  351. <td class="col">{{item.tareDate}}</td>
  352. </tr>
  353. </table>
  354. <div class="bottom">
  355. <div class="bottom-row1">
  356. <div>毛检:{{item.secretaryWeigher}}</div>
  357. <div style="margin-left:60px">皮检:{{item.skinInspector}}</div>
  358. <!-- <div>{{tableData.qualityDate}}</div> -->
  359. </div>
  360. <div class="bottom-row2">
  361. <!-- <div class="left">
  362. <img :src="item.codeUrl" alt="">
  363. </div> -->
  364. <div class="config" v-if="item.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
  365. <div class="config" v-if="item.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
  366. <div class="autograph">客户签名:</div>
  367. <div class="autograph" v-if="item.warehouseName!='白城补数据'">司机签名:</div>
  368. </div>
  369. <!-- <div class="bottom-row3">扫一扫</div> -->
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. <div v-else>
  375. <div class="content" v-if="bigContent" v-for="(_item,index) in tableData ">
  376. <!-- <div class="title">{{_item.compName}}</div> -->
  377. <div class="title">出库检斤单</div>
  378. <div class="left">
  379. <img :src="_item.codeUrl" alt="">
  380. </div>
  381. <div class="number">{{_item.number}}</div>
  382. <table class="table">
  383. <tr class="row">
  384. <td class="col col-bgc">发货单位</td>
  385. <td class="col" colspan="2">{{_item.compName}}</td>
  386. <td class="col col-bgc">联系人</td>
  387. <td class="col">{{kehu}}</td>
  388. <!-- <td class="col">{{_item.person}}</td> -->
  389. <td class="col col-bgc">联系电话</td>
  390. <td class="col">{{kehuphone}}</td>
  391. <!-- <td class="col" colspan="2">{{_item.personPhone}}</td> -->
  392. </tr>
  393. <tr class="row">
  394. <td class="col col-bgc">收货单位</td>
  395. <td class="col" colspan="2">{{_item.customer}}</td>
  396. <td class="col col-bgc">联系电话</td>
  397. <td class="col">{{_item.contractManagement ? _item.contractManagement.sellerPhone : ""}}</td>
  398. <td class="col col-bgc">货名</td>
  399. <td class="col" colspan="2">{{_item.goodsName}}</td>
  400. </tr>
  401. <!-- <tr class="row">
  402. <td class="col col-bgc">货名</td>
  403. <td class="col">{{_item.goodsName}}</td>
  404. <td class="col col-bgc">类型</td>
  405. <td class="col">{{_item.type}}</td>
  406. <td class="col col-bgc">容重(克/升)</td>
  407. <td class="col">
  408. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.bulkDensity:''}}</td>
  409. <td class="col col-bgc">不完善粒(%)</td>
  410. <td class="col">
  411. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.imperfectGrain:''}}</td>
  412. </tr>-->
  413. <!-- <tr class="row">
  414. <td class="col col-bgc">等级</td>
  415. <td class="col">{{_item.qualityInspectionManagement?_item.qualityInspectionManagement.grade:''}}
  416. </td>
  417. <td class="col col-bgc">水分(%)</td>
  418. <td class="col">
  419. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.waterContent:''}}</td>
  420. <td class="col col-bgc">热损伤(%)</td>
  421. <td class="col">
  422. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.jiaorenli:''}}</td>
  423. <td class="col col-bgc">质检时间</td>
  424. <td class="col">
  425. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.qualityDate:''}}</td>
  426. </tr>
  427. <tr class="row">
  428. <td class="col col-bgc">杂质(%)</td>
  429. <td class="col">
  430. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.impurity:''}}</td>
  431. <td class="col col-bgc">霉变粒(%)</td>
  432. <td class="col">
  433. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.mildewGrain:''}}</td>
  434. <td class="col col-bgc">扣杂</td>
  435. <td class="col">
  436. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.buckleMiscellaneous:''}}
  437. </td>
  438. <td class="col " colspan="2"></td>
  439. </tr> -->
  440. <tr class="row">
  441. <td class="col col-bgc" >毛重(公斤)</td>
  442. <td class="col" colspan="2">{{_item.grossWeight}}</td>
  443. <td class="col col-bgc">皮重(公斤)</td>
  444. <td class="col">{{_item.tare}}</td>
  445. <!-- <td class="col col-bgc">扣重(公斤)</td>
  446. <td class="col">{{_item.buckleMiscellaneous}}</td> -->
  447. <td class="col col-bgc">净重(公斤)</td>
  448. <td class="col">{{_item.netWeight}}</td>
  449. <!-- <td class="col " colspan="2"></td> -->
  450. </tr>
  451. <tr class="row">
  452. <!-- <td class="col col-bgc">运输方式</td> -->
  453. <!-- <td class="col" >{{_item.outType}}</td> -->
  454. <td class="col" colspan="2" v-if='_item.outType=="散船"'>{{_item.shipName}}</td>
  455. <td class="col col-bgc" v-if='_item.outType=="火运"'>车厢号</td>
  456. <td class="col col-bgc" v-if='_item.outType=="散船"'>船次</td>
  457. <td class="col col-bgc" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>封号</td>
  458. <td class="col" colspan="2" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>
  459. {{_item.titleNo}} {{_item.titleNoOther}}
  460. </td>
  461. <td class="col col-bgc" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>箱号</td>
  462. <td class="col" colspan="3" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>
  463. {{_item.boxNo}} {{_item.boxNoOther}}
  464. </td>
  465. <td class="col" colspan="2" v-if='_item.outType=="火运"'>
  466. {{_item.wingNumber}} {{_item.wingNumberOther}}
  467. </td>
  468. <td class="col" colspan="2" v-if='_item.outType=="散船"'>{{_item.shipNumber}}</td>
  469. </tr>
  470. <tr class="row">
  471. <td class="col col-bgc" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>车牌号</td>
  472. <td class="col col-bgc" v-if='_item.outType=="火运"'>车号</td>
  473. <td class="col col-bgc" v-if='_item.outType=="散船"'>船名</td>
  474. <td class="col" colspan="2" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"||_item.outType=="火运"'>{{_item.carNumber}}
  475. </td>
  476. <td class="col col-bgc" >毛重检斤时间</td>
  477. <td class="col" >{{_item.grossDate}}</td>
  478. <td class="col col-bgc" > 皮重检斤时间</td>
  479. <td class="col">{{_item.tareDate}}</td>
  480. </tr>
  481. </table>
  482. <div class="bottom">
  483. <div class="bottom-row1">
  484. <div>毛检:{{_item.secretaryWeigher}}</div>
  485. <div style="margin-left:60px">皮检:{{_item.skinInspector}}</div>
  486. <!-- <div>{{tableData.qualityDate}}</div> -->
  487. </div>
  488. <div class="bottom-row2">
  489. <!-- <div class="left">
  490. <img :src="tableData.codeUrl" alt="">
  491. </div> -->
  492. <div class="config" v-if="_item.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
  493. <div class="config" v-if="_item.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
  494. <div class="autograph">客户签名:</div>
  495. <div class="autograph" v-if="_item.warehouseName!='白城补数据'">司机签名:</div>
  496. </div>
  497. <!-- <div class="bottom-row3">扫一扫</div> -->
  498. </div>
  499. </div>
  500. </div>
  501. <div class="small-content" v-if="smallContent">
  502. <div class="small-title">
  503. <div class="numberNo">{{tableData.number.substring(tableData.number.length - 3)}}</div>
  504. <div style="margin: auto;">粮食检斤单</div>
  505. </div>
  506. <img :src="tableData.codeUrl" alt="" class="small-code">
  507. <div class="small-row">
  508. <div>业务编号</div>
  509. <div>{{tableData.number}}</div>
  510. </div>
  511. <div class="small-row" v-if="tableData.serviceManagementType == 3">
  512. <div>客户姓名</div>
  513. <div>{{tableData.customer}}</div>
  514. </div>
  515. <div class="small-row" v-if="tableData.serviceManagementType == 3">
  516. <div>客户电话</div>
  517. <div>{{tableData.customerPhone}}</div>
  518. </div>
  519. <div class="small-row" v-if="tableData.serviceManagementType == 1">
  520. <div>发货单位</div>
  521. <div>{{tableData.contractManagement ? tableData.contractManagement.seller : ""}}</div>
  522. </div>
  523. <div class="small-row" v-if="tableData.serviceManagementType == 1">
  524. <div>联系电话</div>
  525. <div>{{tableData.contractManagement ? tableData.contractManagement.sellerPhone : ""}}</div>
  526. </div>
  527. <div class="small-row">
  528. <div>车牌号</div>
  529. <div>{{tableData.carNumber}}</div>
  530. </div>
  531. <div class="small-row">
  532. <div>仓位号:</div>
  533. <div>{{tableData.binNumber}}</div>
  534. </div>
  535. <div class="small-row">
  536. <div>收货单位</div>
  537. <div>{{tableData.compName}}</div>
  538. </div>
  539. <div class="small-row">
  540. <div>联系人</div>
  541. <div>{{tableData.person}}</div>
  542. </div>
  543. <div class="small-row">
  544. <div>联系电话</div>
  545. <div>{{tableData.personPhone}}</div>
  546. </div>
  547. <div class="small-row">
  548. <div>货名</div>
  549. <div>{{tableData.goodsName}}</div>
  550. </div>
  551. <div class="small-row">
  552. <div>类型</div>
  553. <div>{{tableData.type}}</div>
  554. </div>
  555. <div class="small-row">
  556. <div>毛重(公斤)</div>
  557. <div>{{tableData.grossWeight}}</div>
  558. </div>
  559. <div class="small-row">
  560. <div>毛检时间</div>
  561. <div>{{tableData.grossDate}}</div>
  562. </div>
  563. <div class="small-row">
  564. <div>皮重(公斤)</div>
  565. <div>{{tableData.tare}}</div>
  566. </div>
  567. <div class="small-row">
  568. <div>皮检时间</div>
  569. <div>{{tableData.tareDate}}</div>
  570. </div>
  571. <div class="small-row" v-if="tableData.qualityInspectionManagement.paramType == 2 || tableData.serviceManagementType == 1">
  572. <div>扣重(公斤)</div>
  573. <div>{{tableData.buckleMiscellaneous}}</div>
  574. </div>
  575. <div class="small-row">
  576. <div>净重(公斤)</div>
  577. <div>{{tableData.netWeight}}</div>
  578. </div>
  579. <div class="small-row">
  580. <div>收货单位签名或盖章:</div>
  581. </div>
  582. </div>
  583. </div>
  584. </body>
  585. <script src="../cdn/vue/2.6.10/vue.min.js"></script>
  586. <script src="../cdn/element-ui/2.13.2/index.js"></script>
  587. <script type="text/javascript">
  588. new Vue({
  589. el: '#app',
  590. data: {
  591. tableData: {
  592. // qualityInspectionManagement:{}
  593. },
  594. tableData1: [],
  595. tableDataEW: [],
  596. selectPrint: false,
  597. name: "",
  598. kehu:'',
  599. bigContent: false,
  600. smallContent: false,
  601. pageType: '',
  602. isDDPrint: false,
  603. isEWPrint: false,
  604. },
  605. computed: {},
  606. methods: {
  607. tableRowClassName({
  608. row,
  609. rowIndex
  610. }) {
  611. if (rowIndex === 1) {
  612. return 'warning-row';
  613. } else if (rowIndex === 3) {
  614. return 'success-row';
  615. }
  616. return '';
  617. },
  618. getQueryVariable(variable) {
  619. var query = window.location.search.substring(1);
  620. var vars = query.split("&");
  621. for (var i = 0; i < vars.length; i++) {
  622. var pair = vars[i].split("=");
  623. if (pair[0] == variable) {
  624. return pair[1];
  625. }
  626. }
  627. return (false);
  628. },
  629. printSmall() {},
  630. printBig() {},
  631. },
  632. mounted() {
  633. this.kehu=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffName
  634. this.kehuphone=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffMobilePhone
  635. let _data = decodeURIComponent(localStorage.getItem('print_out_data'))
  636. let _type = this.getQueryVariable("type")
  637. let _ew = this.getQueryVariable("selectEW")
  638. let _ewdd = this.getQueryVariable("selectEWDD")
  639. this.pageType = this.getQueryVariable("radioType")
  640. if (_type == 2) {
  641. this.bigContent = true
  642. this.smallContent = false
  643. } else {
  644. this.smallContent = true
  645. this.bigContent = false
  646. }
  647. if (_data == 'null') {
  648. this.selectPrint = true;
  649. this.tableData1 = JSON.parse(localStorage.getItem('selectPrint_jjSelectPrintList'))
  650. console.log("this.tableData1")
  651. console.log(this.tableData1)
  652. if (_ew == 'true') {
  653. this.tableDataEW = JSON.parse(localStorage.getItem('selectPrint_EWjjSelectPrintList'))
  654. console.log("this.tableDataEW")
  655. console.log(this.tableDataEW)
  656. this.isEWPrint = true
  657. }
  658. if (_ewdd == 'true') {
  659. this.tableDataEW = JSON.parse(localStorage.getItem('selectPrint_EWjjSelectPrintList'))
  660. this.isDDPrint = true
  661. console.log("this.ewdd")
  662. console.log(this.tableDataEW)
  663. }
  664. } else {
  665. this.tableData = JSON.parse(_data.replace(/baifenhao/g, '%'))
  666. console.log("this.tableData")
  667. console.log(this.tableData)
  668. }
  669. // sessionStorage.setItem('record_print', JSON.stringify(response))
  670. // this.tableData = JSON.parse(sessionStorage.getItem("record_print"))
  671. document.title = "粮食检斤单"
  672. window.print()
  673. window.onafterprint = function(event) {
  674. window.history.back(-1)
  675. };
  676. },
  677. watch: {}
  678. })
  679. </script>
  680. </html>