weightCheck.html 25 KB

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