weightCheckOutNew.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  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" >{{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" >{{item.goodsName}}</td>
  145. </tr>
  146. <tr class="row">
  147. <td class="col col-bgc">收货单位</td>
  148. <td class="col" >{{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" >{{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" >{{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="1" 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="1" 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. <td class="col col-bgc" >仓位号</td>
  219. <td class="col" colspan="1" >{{item.binNumber}}</td>
  220. </tr>
  221. <tr class="row">
  222. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>车牌号</td>
  223. <td class="col col-bgc" v-if='item.outType=="火运"'>车号</td>
  224. <td class="col col-bgc" v-if='item.outType=="散船"'>船名</td>
  225. <td class="col" colspan="2" v-if='item.outType=="集装箱船"||item.outType=="汽运"||item.outType=="火运"'>{{item.carNumber}}
  226. </td>
  227. <td class="col col-bgc" >毛重检斤时间</td>
  228. <td class="col" >{{item.grossDate}}</td>
  229. <td class="col col-bgc" > 皮重检斤时间</td>
  230. <td class="col">{{item.tareDate}}</td>
  231. </tr>
  232. </table>
  233. <div class="bottom">
  234. <div class="bottom-row1">
  235. <div>毛检:{{item.secretaryWeigher}}</div>
  236. <div style="margin-left:60px">皮检:{{item.skinInspector}}</div>
  237. <!-- <div>{{tableData.qualityDate}}</div> -->
  238. </div>
  239. <div class="bottom-row2">
  240. <!-- <div class="left">
  241. <img :src="item.codeUrl" alt="">
  242. </div> -->
  243. <div class="config" v-if="item.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
  244. <div class="config" v-if="item.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
  245. <div class="autograph">客户签名:</div>
  246. <div class="autograph" v-if="item.warehouseName!='白城补数据'">司机签名:</div>
  247. </div>
  248. <!-- <div class="bottom-row3">扫一扫</div> -->
  249. </div>
  250. </div>
  251. </div>
  252. <!-- 打印额外 -->
  253. <div v-for="(item,index) in tableDataEW" :key="index" v-if="isDDPrint||isEWPrint">
  254. <div class="content" :class="pageType=='A5'?'a5-content':''">
  255. <!-- <div class="title">{{item.customer}}</div> -->
  256. <div class="title">出库检斤单</div>
  257. <div class="left">
  258. <img :src="item.codeUrl" alt="">
  259. </div>
  260. <div class="number">{{item.number}}</div>
  261. <table class="table">
  262. <tr class="row">
  263. <td class="col col-bgc">发货单位</td>
  264. <td class="col" >{{item.customer}}</td>
  265. <td class="col col-bgc">联系电话</td>
  266. <td class="col">{{kehuphone}}</td>
  267. <!-- <td class="col">{{item.contractManagement ? item.contractManagement.sellerPhone : ""}}</td> -->
  268. <td class="col col-bgc">货名</td>
  269. <td class="col" >{{item.goodsName}}</td>
  270. </tr>
  271. <tr class="row">
  272. <td class="col col-bgc">收货单位</td>
  273. <td class="col" >{{item.compName}}</td>
  274. <td class="col col-bgc">联系人</td>
  275. <td class="col">{{item.person}}</td>
  276. <td class="col col-bgc">联系电话</td>
  277. <td class="col" >{{item.personPhone}}</td>
  278. </tr>
  279. <!-- <tr class="row">
  280. <td class="col col-bgc">货名</td>
  281. <td class="col">{{item.goodsName}}</td>
  282. <td class="col col-bgc">类型</td>
  283. <td class="col">{{item.type}}</td>
  284. <td class="col col-bgc">容重(克/升)</td>
  285. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.bulkDensity:''}}
  286. </td>
  287. <td class="col col-bgc">不完善粒(%)</td>
  288. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.imperfectGrain:''}}
  289. </td>
  290. </tr>-->
  291. <!-- <tr class="row">
  292. <td class="col col-bgc">等级</td>
  293. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.grade:''}}</td>
  294. <td class="col col-bgc">水分(%)</td>
  295. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.waterContent:''}}
  296. </td>
  297. <td class="col col-bgc">热损伤(%)</td>
  298. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.jiaorenli:''}}</td>
  299. <td class="col col-bgc">质检时间</td>
  300. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.qualityDate:''}}
  301. </td>
  302. </tr>
  303. <tr class="row">
  304. <td class="col col-bgc">杂质(%)</td>
  305. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.impurity:''}}</td>
  306. <td class="col col-bgc">霉变粒(%)</td>
  307. <td class="col">{{item.qualityInspectionManagement?item.qualityInspectionManagement.mildewGrain:''}}
  308. </td>
  309. <td class="col col-bgc">扣杂</td>
  310. <td class="col">
  311. {{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}</td>
  312. <td class="col " colspan="2"></td>
  313. </tr> -->
  314. <tr class="row">
  315. <td class="col col-bgc" >毛重(公斤)</td>
  316. <td class="col" >{{item.grossWeight}}</td>
  317. <td class="col col-bgc">皮重(公斤)</td>
  318. <td class="col">{{item.tare}}</td>
  319. <!-- <td class="col col-bgc">扣重(公斤)</td>
  320. <td class="col">{{item.buckleMiscellaneous}}</td> -->
  321. <td class="col col-bgc">净重(公斤)</td>
  322. <td class="col">{{item.netWeight}}</td>
  323. <!-- <td class="col " colspan="2"></td> -->
  324. </tr>
  325. <tr class="row">
  326. <!-- <td class="col col-bgc">运输方式</td> -->
  327. <!-- <td class="col" >{{item.outType}}</td> -->
  328. <td class="col" colspan="2" v-if='item.outType=="散船"'>{{item.shipName}}</td>
  329. <td class="col col-bgc" v-if='item.outType=="火运"'>车厢号</td>
  330. <td class="col col-bgc" v-if='item.outType=="散船"'>船次</td>
  331. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>封号</td>
  332. <td class="col" colspan="1" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>
  333. {{item.titleNo}} {{item.titleNoOther}}
  334. </td>
  335. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>箱号</td>
  336. <td class="col" colspan="1" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>
  337. {{item.boxNo}} {{item.boxNoOther}}
  338. </td>
  339. <td class="col" colspan="2" v-if='item.outType=="火运"'>
  340. {{item.wingNumber}} {{item.wingNumberOther}}
  341. </td>
  342. <td class="col" colspan="2" v-if='item.outType=="散船"'>{{item.shipNumber}}</td>
  343. <td class="col col-bgc" >仓位号</td>
  344. <td class="col" colspan="1" >{{item.binNumber}}</td>
  345. </tr>
  346. <tr class="row">
  347. <td class="col col-bgc" v-if='item.outType=="集装箱船"||item.outType=="汽运"'>车牌号</td>
  348. <td class="col col-bgc" v-if='item.outType=="火运"'>车号</td>
  349. <td class="col col-bgc" v-if='item.outType=="散船"'>船名</td>
  350. <td class="col" colspan="2" v-if='item.outType=="集装箱船"||item.outType=="汽运"||item.outType=="火运"'>{{item.carNumber}}
  351. </td>
  352. <td class="col col-bgc" >毛重检斤时间</td>
  353. <td class="col" >{{item.grossDate}}</td>
  354. <td class="col col-bgc" > 皮重检斤时间</td>
  355. <td class="col">{{item.tareDate}}</td>
  356. </tr>
  357. </table>
  358. <div class="bottom">
  359. <div class="bottom-row1">
  360. <div>毛检:{{item.secretaryWeigher}}</div>
  361. <div style="margin-left:60px">皮检:{{item.skinInspector}}</div>
  362. <!-- <div>{{tableData.qualityDate}}</div> -->
  363. </div>
  364. <div class="bottom-row2">
  365. <!-- <div class="left">
  366. <img :src="item.codeUrl" alt="">
  367. </div> -->
  368. <div class="config" v-if="item.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
  369. <div class="config" v-if="item.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
  370. <div class="autograph">客户签名:</div>
  371. <div class="autograph" v-if="item.warehouseName!='白城补数据'">司机签名:</div>
  372. </div>
  373. <!-- <div class="bottom-row3">扫一扫</div> -->
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. <div v-else>
  379. <div class="content" v-if="bigContent" v-for="(_item,index) in tableData ">
  380. <!-- <div class="title">{{_item.compName}}</div> -->
  381. <div class="title">出库检斤单</div>
  382. <div class="left">
  383. <img :src="_item.codeUrl" alt="">
  384. </div>
  385. <div class="number">{{_item.number}}</div>
  386. <table class="table">
  387. <tr class="row">
  388. <td class="col col-bgc">发货单位</td>
  389. <td class="col" >{{_item.compName}}</td>
  390. <td class="col col-bgc">联系人</td>
  391. <td class="col">{{kehu}}</td>
  392. <!-- <td class="col">{{_item.person}}</td> -->
  393. <td class="col col-bgc">联系电话</td>
  394. <td class="col">{{kehuphone}}</td>
  395. <!-- <td class="col" colspan="2">{{_item.personPhone}}</td> -->
  396. </tr>
  397. <tr class="row">
  398. <td class="col col-bgc">收货单位</td>
  399. <td class="col" >{{_item.customer}}</td>
  400. <td class="col col-bgc">联系电话</td>
  401. <td class="col">{{_item.contractManagement ? _item.contractManagement.sellerPhone : ""}}</td>
  402. <td class="col col-bgc">货名</td>
  403. <td class="col" colspan="2">{{_item.goodsName}}</td>
  404. </tr>
  405. <!-- <tr class="row">
  406. <td class="col col-bgc">货名</td>
  407. <td class="col">{{_item.goodsName}}</td>
  408. <td class="col col-bgc">类型</td>
  409. <td class="col">{{_item.type}}</td>
  410. <td class="col col-bgc">容重(克/升)</td>
  411. <td class="col">
  412. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.bulkDensity:''}}</td>
  413. <td class="col col-bgc">不完善粒(%)</td>
  414. <td class="col">
  415. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.imperfectGrain:''}}</td>
  416. </tr>-->
  417. <!-- <tr class="row">
  418. <td class="col col-bgc">等级</td>
  419. <td class="col">{{_item.qualityInspectionManagement?_item.qualityInspectionManagement.grade:''}}
  420. </td>
  421. <td class="col col-bgc">水分(%)</td>
  422. <td class="col">
  423. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.waterContent:''}}</td>
  424. <td class="col col-bgc">热损伤(%)</td>
  425. <td class="col">
  426. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.jiaorenli:''}}</td>
  427. <td class="col col-bgc">质检时间</td>
  428. <td class="col">
  429. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.qualityDate:''}}</td>
  430. </tr>
  431. <tr class="row">
  432. <td class="col col-bgc">杂质(%)</td>
  433. <td class="col">
  434. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.impurity:''}}</td>
  435. <td class="col col-bgc">霉变粒(%)</td>
  436. <td class="col">
  437. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.mildewGrain:''}}</td>
  438. <td class="col col-bgc">扣杂</td>
  439. <td class="col">
  440. {{_item.qualityInspectionManagement?_item.qualityInspectionManagement.buckleMiscellaneous:''}}
  441. </td>
  442. <td class="col " colspan="2"></td>
  443. </tr> -->
  444. <tr class="row">
  445. <td class="col col-bgc" >毛重(公斤)</td>
  446. <td class="col" >{{_item.grossWeight}}</td>
  447. <td class="col col-bgc">皮重(公斤)</td>
  448. <td class="col">{{_item.tare}}</td>
  449. <!-- <td class="col col-bgc">扣重(公斤)</td>
  450. <td class="col">{{_item.buckleMiscellaneous}}</td> -->
  451. <td class="col col-bgc">净重(公斤)</td>
  452. <td class="col">{{_item.netWeight}}</td>
  453. <!-- <td class="col " colspan="2"></td> -->
  454. </tr>
  455. <tr class="row">
  456. <!-- <td class="col col-bgc">运输方式</td> -->
  457. <!-- <td class="col" >{{_item.outType}}</td> -->
  458. <td class="col" colspan="2" v-if='_item.outType=="散船"'>{{_item.shipName}}</td>
  459. <td class="col col-bgc" v-if='_item.outType=="火运"'>车厢号</td>
  460. <td class="col col-bgc" v-if='_item.outType=="散船"'>船次</td>
  461. <td class="col col-bgc" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>封号</td>
  462. <td class="col" colspan="1" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>
  463. {{_item.titleNo}} {{_item.titleNoOther}}
  464. </td>
  465. <td class="col col-bgc" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>箱号</td>
  466. <td class="col" colspan="1" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>
  467. {{_item.boxNo}} {{_item.boxNoOther}}
  468. </td>
  469. <td class="col" colspan="2" v-if='_item.outType=="火运"'>
  470. {{_item.wingNumber}} {{_item.wingNumberOther}}
  471. </td>
  472. <td class="col" colspan="2" v-if='_item.outType=="散船"'>{{_item.shipNumber}}</td>
  473. <td class="col col-bgc" >仓位号</td>
  474. <td class="col" colspan="1" >{{_item.binNumber}}</td>
  475. </tr>
  476. <tr class="row">
  477. <td class="col col-bgc" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"'>车牌号</td>
  478. <td class="col col-bgc" v-if='_item.outType=="火运"'>车号</td>
  479. <td class="col col-bgc" v-if='_item.outType=="散船"'>船名</td>
  480. <td class="col" v-if='_item.outType=="集装箱船"||_item.outType=="汽运"||_item.outType=="火运"'>{{_item.carNumber}}
  481. </td>
  482. <td class="col col-bgc" >毛重检斤时间</td>
  483. <td class="col" >{{_item.grossDate}}</td>
  484. <td class="col col-bgc" > 皮重检斤时间</td>
  485. <td class="col">{{_item.tareDate}}</td>
  486. </tr>
  487. </table>
  488. <div class="bottom">
  489. <div class="bottom-row1">
  490. <div>毛检:{{_item.secretaryWeigher}}</div>
  491. <div style="margin-left:60px">皮检:{{_item.skinInspector}}</div>
  492. <!-- <div>{{tableData.qualityDate}}</div> -->
  493. </div>
  494. <div class="bottom-row2">
  495. <!-- <div class="left">
  496. <img :src="tableData.codeUrl" alt="">
  497. </div> -->
  498. <div class="config" v-if="_item.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
  499. <div class="config" v-if="_item.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
  500. <div class="autograph">客户签名:</div>
  501. <div class="autograph" v-if="_item.warehouseName!='白城补数据'">司机签名:</div>
  502. </div>
  503. <!-- <div class="bottom-row3">扫一扫</div> -->
  504. </div>
  505. </div>
  506. </div>
  507. <div class="small-content" v-if="smallContent">
  508. <div class="small-title">
  509. <div class="numberNo">{{tableData.number.substring(tableData.number.length - 3)}}</div>
  510. <div style="margin: auto;">粮食检斤单</div>
  511. </div>
  512. <img :src="tableData.codeUrl" alt="" class="small-code">
  513. <div class="small-row">
  514. <div>业务编号</div>
  515. <div>{{tableData.number}}</div>
  516. </div>
  517. <div class="small-row" v-if="tableData.serviceManagementType == 3">
  518. <div>客户姓名</div>
  519. <div>{{tableData.customer}}</div>
  520. </div>
  521. <div class="small-row" v-if="tableData.serviceManagementType == 3">
  522. <div>客户电话</div>
  523. <div>{{tableData.customerPhone}}</div>
  524. </div>
  525. <div class="small-row" v-if="tableData.serviceManagementType == 1">
  526. <div>发货单位</div>
  527. <div>{{tableData.contractManagement ? tableData.contractManagement.seller : ""}}</div>
  528. </div>
  529. <div class="small-row" v-if="tableData.serviceManagementType == 1">
  530. <div>联系电话</div>
  531. <div>{{tableData.contractManagement ? tableData.contractManagement.sellerPhone : ""}}</div>
  532. </div>
  533. <div class="small-row">
  534. <div>车牌号</div>
  535. <div>{{tableData.carNumber}}</div>
  536. </div>
  537. <div class="small-row">
  538. <div>仓位号:</div>
  539. <div>{{tableData.binNumber}}</div>
  540. </div>
  541. <div class="small-row">
  542. <div>收货单位</div>
  543. <div>{{tableData.compName}}</div>
  544. </div>
  545. <div class="small-row">
  546. <div>联系人</div>
  547. <div>{{tableData.person}}</div>
  548. </div>
  549. <div class="small-row">
  550. <div>联系电话</div>
  551. <div>{{tableData.personPhone}}</div>
  552. </div>
  553. <div class="small-row">
  554. <div>货名</div>
  555. <div>{{tableData.goodsName}}</div>
  556. </div>
  557. <div class="small-row">
  558. <div>类型</div>
  559. <div>{{tableData.type}}</div>
  560. </div>
  561. <div class="small-row">
  562. <div>毛重(公斤)</div>
  563. <div>{{tableData.grossWeight}}</div>
  564. </div>
  565. <div class="small-row">
  566. <div>毛检时间</div>
  567. <div>{{tableData.grossDate}}</div>
  568. </div>
  569. <div class="small-row">
  570. <div>皮重(公斤)</div>
  571. <div>{{tableData.tare}}</div>
  572. </div>
  573. <div class="small-row">
  574. <div>皮检时间</div>
  575. <div>{{tableData.tareDate}}</div>
  576. </div>
  577. <div class="small-row" v-if="tableData.qualityInspectionManagement.paramType == 2 || tableData.serviceManagementType == 1">
  578. <div>扣重(公斤)</div>
  579. <div>{{tableData.buckleMiscellaneous}}</div>
  580. </div>
  581. <div class="small-row">
  582. <div>净重(公斤)</div>
  583. <div>{{tableData.netWeight}}</div>
  584. </div>
  585. <div class="small-row">
  586. <div>收货单位签名或盖章:</div>
  587. </div>
  588. </div>
  589. </div>
  590. </body>
  591. <script src="../cdn/vue/2.6.10/vue.min.js"></script>
  592. <script src="../cdn/element-ui/2.13.2/index.js"></script>
  593. <script type="text/javascript">
  594. new Vue({
  595. el: '#app',
  596. data: {
  597. tableData: {
  598. // qualityInspectionManagement:{}
  599. },
  600. tableData1: [],
  601. tableDataEW: [],
  602. selectPrint: false,
  603. name: "",
  604. kehu:'',
  605. bigContent: false,
  606. smallContent: false,
  607. pageType: '',
  608. isDDPrint: false,
  609. isEWPrint: false,
  610. },
  611. computed: {},
  612. methods: {
  613. tableRowClassName({
  614. row,
  615. rowIndex
  616. }) {
  617. if (rowIndex === 1) {
  618. return 'warning-row';
  619. } else if (rowIndex === 3) {
  620. return 'success-row';
  621. }
  622. return '';
  623. },
  624. getQueryVariable(variable) {
  625. var query = window.location.search.substring(1);
  626. var vars = query.split("&");
  627. for (var i = 0; i < vars.length; i++) {
  628. var pair = vars[i].split("=");
  629. if (pair[0] == variable) {
  630. return pair[1];
  631. }
  632. }
  633. return (false);
  634. },
  635. printSmall() {},
  636. printBig() {},
  637. },
  638. mounted() {
  639. this.kehu=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffName
  640. this.kehuphone=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffMobilePhone
  641. let _data = decodeURIComponent(localStorage.getItem('print_out_data'))
  642. let _type = this.getQueryVariable("type")
  643. let _ew = this.getQueryVariable("selectEW")
  644. let _ewdd = this.getQueryVariable("selectEWDD")
  645. this.pageType = this.getQueryVariable("radioType")
  646. if (_type == 2) {
  647. this.bigContent = true
  648. this.smallContent = false
  649. } else {
  650. this.smallContent = true
  651. this.bigContent = false
  652. }
  653. if (_data == 'null') {
  654. this.selectPrint = true;
  655. this.tableData1 = JSON.parse(localStorage.getItem('selectPrint_jjSelectPrintList'))
  656. console.log("this.tableData1")
  657. console.log(this.tableData1)
  658. if (_ew == 'true') {
  659. this.tableDataEW = JSON.parse(localStorage.getItem('selectPrint_EWjjSelectPrintList'))
  660. console.log("this.tableDataEW")
  661. console.log(this.tableDataEW)
  662. this.isEWPrint = true
  663. }
  664. if (_ewdd == 'true') {
  665. this.tableDataEW = JSON.parse(localStorage.getItem('selectPrint_EWjjSelectPrintList'))
  666. this.isDDPrint = true
  667. console.log("this.ewdd")
  668. console.log(this.tableDataEW)
  669. }
  670. } else {
  671. this.tableData = JSON.parse(_data.replace(/baifenhao/g, '%'))
  672. console.log("this.tableData")
  673. console.log(this.tableData)
  674. }
  675. // sessionStorage.setItem('record_print', JSON.stringify(response))
  676. // this.tableData = JSON.parse(sessionStorage.getItem("record_print"))
  677. document.title = "粮食检斤单"
  678. window.print()
  679. window.onafterprint = function(event) {
  680. window.history.back(-1)
  681. };
  682. },
  683. watch: {}
  684. })
  685. </script>
  686. </html>