payprint.html 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261
  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 tr td {
  9. border: 2px solid #333333;
  10. padding: 5px 0;
  11. }
  12. #app {
  13. height: 88vh;
  14. position: relative;
  15. }
  16. .simple {
  17. height: 120vh !important;
  18. }
  19. .content {
  20. width: 1000px;
  21. margin: auto;
  22. }
  23. table {
  24. width: 100%;
  25. text-align: center;
  26. border-collapse: collapse;
  27. }
  28. .col-bgc {
  29. background: #f6f7fb;
  30. }
  31. .bottom-row1 {
  32. display: flex;
  33. justify-content: space-between;
  34. margin: 20px 0;
  35. }
  36. .bottom-row2 {
  37. display: flex;
  38. margin: 10px 0;
  39. }
  40. img {
  41. width: 80px;
  42. height: 80px;
  43. /* margin-right: 118px; */
  44. }
  45. .leftimg {
  46. width: 80px;
  47. height: 80px;
  48. position: absolute;
  49. right: 20px;
  50. top: 3px;
  51. }
  52. .config {
  53. margin-right: 240px;
  54. }
  55. .bottom-row3 {
  56. margin: 10px 0;
  57. }
  58. .title {
  59. text-align: center;
  60. font-size: 24px;
  61. }
  62. .number {
  63. text-align: right;
  64. margin-bottom: 10px;
  65. }
  66. .number1 {
  67. text-align: right;
  68. margin-bottom: 10px;
  69. margin-top: 60px;
  70. }
  71. .small-row {
  72. display: flex;
  73. }
  74. .small-content {
  75. width: 400px;
  76. margin: 0 auto;
  77. border: 1px solid #ccc;
  78. padding: 20px 20px 160px 20px;
  79. position: absolute;
  80. top: 0;
  81. bottom: 0;
  82. left: 0;
  83. right: 0;
  84. margin: auto;
  85. height: 650px;
  86. }
  87. .small-title {
  88. text-align: center;
  89. font-size: 18px;
  90. display: flex;
  91. justify-content: space-between;
  92. align-items: center;
  93. }
  94. .small-row {
  95. display: flex;
  96. justify-content: space-between;
  97. margin: 10px;
  98. }
  99. .small-img {
  100. margin-right: 0;
  101. }
  102. .sign {
  103. margin-right: 100px;
  104. }
  105. .header {
  106. display: flex;
  107. justify-content: space-between;
  108. font-size: 16px;
  109. margin: 10px 0;
  110. }
  111. .header1 {
  112. font-size: 24px;
  113. /* margin: 30px 60px 10px 60px; */
  114. display: flex;
  115. justify-content: center;
  116. }
  117. .line {
  118. height: 2px;
  119. width: 410px;
  120. margin: 3px auto;
  121. background: black;
  122. }
  123. .line:nth-of-type(3) {
  124. margin-bottom: 30px;
  125. }
  126. .header-top {
  127. display: flex;
  128. justify-content: space-between;
  129. }
  130. .sfcard {
  131. background: red;
  132. }
  133. .sfcard-content {
  134. /* display: flex;
  135. align-items: center;
  136. justify-content: space-evenly; */
  137. }
  138. .sfcard-content img {
  139. width: 100%;
  140. height: 110vh;
  141. }
  142. .sfcard-title {
  143. font-size: 28px;
  144. text-align: center;
  145. height:10vh;
  146. }
  147. .center {
  148. height: 130vh;
  149. }
  150. .bankcard {
  151. height: 130vh;
  152. }
  153. .part1 {
  154. height: 130vh;
  155. }
  156. .part2 {
  157. height: 130vh;
  158. /* background: red; */
  159. }
  160. .part5 {
  161. width: 100%
  162. }
  163. .paymentScreenshot {
  164. width: 100%;
  165. height: 130vh
  166. }
  167. /* .onlypz-center{
  168. height: 130vh;
  169. } */
  170. </style>
  171. </head>
  172. <body>
  173. <div id="app">
  174. <div v-if="selectPrint">
  175. <div v-for="(item,index) in printData1" :key="index">
  176. <div class="content">
  177. <div class="part5" v-if="isShowPrintType5">
  178. <div class="header1">
  179. 付款回执单
  180. </div>
  181. <img :src="printData1[index].codeUrl" class="paymentScreenshot" />
  182. </div>
  183. <div class="center" v-if="isShowPrintType3">
  184. <div class="header1">{{ printData1[index].compName}}结算凭证</div>
  185. <!-- <div class="line"></div>
  186. <div class="line"></div> -->
  187. <div class="header">
  188. <div>单位名称:{{ printData1[index].compName}}</div>
  189. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  190. </div>
  191. <div class="header-top">
  192. <div>单位:公斤/元</div>
  193. <div>No.</div>
  194. </div>
  195. <div class="header-top">
  196. <div>开票日期:{{printData1[index].createDate}}</div>
  197. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  198. <div class="number">
  199. {{dealNo(printData1[index].paymentNo)}}
  200. </div>
  201. </div>
  202. <table class="table">
  203. <tr class="row">
  204. <td rowspan="4" class="col col-bgc">买方</td>
  205. <td class="col col-bgc">单位名称</td>
  206. <td class="col" colspan="3">
  207. {{ printData1[index].compName}}
  208. </td>
  209. <td rowspan="4" class="col col-bgc">卖方</td>
  210. <td class="col col-bgc">姓名</td>
  211. <td class="col" colspan="4">
  212. {{ printData1[index].customerName}}
  213. </td>
  214. </tr>
  215. <tr class="row">
  216. <td class="col col-bgc">税务登记号</td>
  217. <td class="col" colspan="3">
  218. {{ printData1[index].taxRegistrationNo}}
  219. </td>
  220. <td class="col col-bgc">身份证号</td>
  221. <td class="col" colspan="4">
  222. {{
  223. printData1[index].identityAuthenticationInfo.customerNumberCard}}
  224. </td>
  225. </tr>
  226. <tr class="row">
  227. <td class="col col-bgc">业务编号</td>
  228. <td class="col" colspan="3">
  229. {{ printData1[index].paymentNo}}
  230. </td>
  231. <td class="col col-bgc">卡号</td>
  232. <td class="col" colspan="4">
  233. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  234. </td>
  235. </tr>
  236. <tr class="row">
  237. <td class="col col-bgc">收货仓库</td>
  238. <td class="col" colspan="3">
  239. {{printData1[index].warehouseName}}
  240. </td>
  241. <td class="col col-bgc">地址</td>
  242. <td class="col" colspan="4">
  243. {{printData1[index].identityAuthenticationInfo.compAddress}}
  244. </td>
  245. </tr>
  246. <tr class="row">
  247. <td class="col col-bgc">货名</td>
  248. <td class="col col-bgc">类型</td>
  249. <td class="col col-bgc">等级</td>
  250. <td class="col col-bgc">水分%</td>
  251. <td class="col col-bgc">杂质%</td>
  252. <td class="col col-bgc">{{printData1[index].goodsName != '大豆'?'容重(克/升)':'蛋白'}}</td>
  253. <td class="col col-bgc">毛重</td>
  254. <td class="col col-bgc">皮重</td>
  255. <td class="col col-bgc">扣杂重</td>
  256. <td class="col col-bgc">净重</td>
  257. </tr>
  258. <tr class="row">
  259. <td class="col">{{ printData1[index].goodsName}}</td>
  260. <td class="col">{{ printData1[index].type}}</td>
  261. <td class="col">
  262. {{ printData1[index].qualityInspectionManagement.grade}}
  263. </td>
  264. <td class="col">
  265. {{
  266. printData1[index].qualityInspectionManagement.waterContent}}
  267. </td>
  268. <td class="col">
  269. {{ printData1[index].qualityInspectionManagement.impurity}}
  270. </td>
  271. <td class="col">
  272. {{printData1[index].weighingManagement.qualityInspectionManagement?printData1[index].weighingManagement.qualityInspectionManagement.bulkDensity:''}}
  273. </td>
  274. <td class="col">{{ printData1[index].grossWeight}}</td>
  275. <td class="col">{{ printData1[index].tare}}</td>
  276. <td class="col">
  277. {{printData1[index].weighingManagement?printData1[index].weighingManagement.buckleMiscellaneous:''}}
  278. </td>
  279. <td class="col">{{ printData1[index].netWeight}}</td>
  280. </tr>
  281. <tr class="row">
  282. <td class="col col-bgc">纯重</td>
  283. <td class="col col-bgc" v-if="printData1[index].type == '潮粮'">
  284. 净重单价
  285. </td>
  286. <td class="col col-bgc" v-if="printData1[index].type == '干粮'">
  287. 单价
  288. </td>
  289. <td class="col col-bgc">扣单价</td>
  290. <td class="col col-bgc">粮款</td>
  291. <td class="col col-bgc">称重补助</td>
  292. <td class="col col-bgc">运费补助</td>
  293. <td class="col col-bgc">卸车补助</td>
  294. <td class="col col-bgc">其他补助</td>
  295. <td class="col col-bgc">称重扣款</td>
  296. <td class="col col-bgc">运费扣款</td>
  297. </tr>
  298. <tr class="row">
  299. <td class="col">{{ printData1[index].pureWeight}}</td>
  300. <td class="col " v-if="printData1[index].type == '潮粮'">
  301. {{printData1[index].tidalGrainPrice}}
  302. </td>
  303. <td class="col " v-if="printData1[index].type == '干粮'">
  304. {{printData1[index].qualityInspectionManagement.dryGrainPrice}}
  305. </td>
  306. <td class="col ">{{ printData1[index].unitDeduction}}</td>
  307. <td class="col ">{{ printData1[index].grainMoney}}</td>
  308. <td class="col ">{{ printData1[index].weighingSubsidy}}</td>
  309. <td class="col ">{{ printData1[index].freightSubsidy}}</td>
  310. <td class="col ">{{ printData1[index].unloadSubsidy}}</td>
  311. <td class="col ">{{ printData1[index].otherSubsidy}}</td>
  312. <td class="col ">{{ printData1[index].weighingDeduction}}</td>
  313. <td class="col ">{{ printData1[index].freightDeduction}}</td>
  314. <!-- <td class="col ">{{ printData1[index].unloadDeduction}}</td> -->
  315. </tr>
  316. <tr class="row">
  317. <td class="col col-bgc">卸车扣款</td>
  318. <td class="col col-bgc">质量扣款</td>
  319. <td class="col col-bgc">其他扣款</td>
  320. <td class="col col-bgc" v-if="printData.type == '潮粮'">
  321. 纯重单价
  322. </td>
  323. <td class="col col-bgc">合计应付</td>
  324. <td class="col col-bgc">购粮性质</td>
  325. <td class="col col-bgc">车牌号</td>
  326. <td class="col col-bgc" colspan="4">记事</td>
  327. </tr>
  328. <tr class="row">
  329. <td class="col ">{{ printData1[index].unloadDeduction}}</td>
  330. <td class="col ">{{ printData1[index].qualityDeduction}}</td>
  331. <td class="col ">{{ printData1[index].otherDeduction}}</td>
  332. <td class="col " v-if="printData1[index].type == '潮粮'">
  333. {{ printData1[index].solidGrainPrice}}
  334. </td>
  335. <td class="col ">
  336. {{ printData1[index].calculationPayable}}
  337. </td>
  338. <td class="col ">
  339. {{
  340. printData1[index].qualityInspectionManagement.natureOfGrainPurchase}}
  341. </td>
  342. <td class="col ">{{ printData1[index].carNo}}</td>
  343. <td class="col " colspan="4">
  344. {{ printData1[index].remarks}}
  345. </td>
  346. </tr>
  347. <tr class="row">
  348. <td class="col col-bgc">实付金额</td>
  349. <td class="col " colspan="2">
  350. {{printData1[index].actualPayment}}
  351. </td>
  352. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  353. <td class="col " colspan="4">
  354. {{printData1[index].capitalize}}
  355. </td>
  356. </tr>
  357. </table>
  358. <div class="bottom">
  359. <div class="bottom-row1">
  360. <div>
  361. 质检:{{
  362. printData1[index].qualityInspectionManagement.qualityInspector}}
  363. </div>
  364. <div>
  365. 毛检:{{
  366. printData1[index].weighingManagement.secretaryWeigher}}
  367. </div>
  368. <div>
  369. 皮检:{{
  370. printData1[index].weighingManagement.skinInspector}}
  371. </div>
  372. <div>结算:{{ printData1[index].settlementClerk}}</div>
  373. <div>付款:{{ printData1[index].cashier}}</div>
  374. <div>复点:{{ }}</div>
  375. <div></div>
  376. </div>
  377. <div class="bottom-row2">
  378. <!-- <div class="left">
  379. <img src="../../../../public/img/add.png" alt="" />
  380. </div> -->
  381. <div class="config">收货单位签名或盖章</div>
  382. <div class="">客户签名</div>
  383. </div>
  384. <!-- <div class="bottom-row3">扫一扫</div> -->
  385. <!-- <div class="bottom-row4">
  386. <el-button type="primary">关闭</el-button>
  387. <el-button type="primary" @click="printSmall">打印小票</el-button>
  388. <el-button type="primary" @click="printBig">打印单据</el-button>
  389. </div> -->
  390. </div>
  391. </div>
  392. <div v-if="isShowPrintType4" class="part2">
  393. <div style="height: 120px;">
  394. <div class="title">入库检斤单</div>
  395. <!-- <div class="leftimg">
  396. <img :src="printData1[index].weighingManagement.codeUrl" alt="">
  397. </div> -->
  398. <div class="number1">{{printData1[index].weighingManagement.number}}</div>
  399. </div>
  400. <table class="table">
  401. <tr class="row">
  402. <td class="col col-bgc">客户姓名</td>
  403. <td class="col" colspan="2">{{printData1[index].weighingManagement.customer}}</td>
  404. <td class="col col-bgc">客户电话</td>
  405. <td class="col">{{printData1[index].weighingManagement.customerPhone}}</td>
  406. <td class="col col-bgc">车牌号</td>
  407. <td class="col" colspan="2">{{printData1[index].weighingManagement.carNumber}}</td>
  408. </tr>
  409. <tr class="row">
  410. <td class="col col-bgc">收货单位</td>
  411. <td class="col" colspan="2">{{printData1[index].compName}}</td>
  412. <td class="col col-bgc">联系人</td>
  413. <td class="col">{{printData1[index].contacts}}</td>
  414. <td class="col col-bgc">联系电话</td>
  415. <td class="col" colspan="2">{{printData1[index].contactsPhone}}</td>
  416. </tr>
  417. <tr class="row">
  418. <td class="col col-bgc">货名</td>
  419. <td class="col">{{printData1[index].weighingManagement.goodsName}}</td>
  420. <td class="col col-bgc">类型</td>
  421. <td class="col">{{printData1[index].weighingManagement.type}}</td>
  422. <td class="col col-bgc">{{printData1[index].weighingManagement.goodsName!='大豆'?'容重(克/升)':'蛋白'}}</td>
  423. <td class="col">
  424. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.bulkDensity:''}}
  425. </td>
  426. <td class="col col-bgc">不完善粒(%)</td>
  427. <td class="col">
  428. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.imperfectGrain:''}}
  429. </td>
  430. </tr>
  431. <tr class="row">
  432. <td class="col col-bgc">等级</td>
  433. <td class="col">
  434. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.grade:''}}
  435. </td>
  436. <td class="col col-bgc">水分(%)</td>
  437. <td class="col">
  438. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.waterContent:''}}
  439. </td>
  440. <td class="col col-bgc">热损伤(%)</td>
  441. <td class="col">
  442. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.jiaorenli:''}}
  443. </td>
  444. <td class="col col-bgc">质检时间</td>
  445. <td class="col">
  446. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.qualityDate:''}}
  447. </td>
  448. </tr>
  449. <tr class="row">
  450. <td class="col col-bgc">杂质(%)</td>
  451. <td class="col">
  452. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.impurity:''}}
  453. </td>
  454. <td class="col col-bgc">霉变粒(%)</td>
  455. <td class="col">
  456. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.mildewGrain:''}}
  457. </td>
  458. <td class="col col-bgc">扣杂</td>
  459. <td class="col">
  460. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.buckleMiscellaneous:''}}
  461. </td>
  462. <td class="col " colspan="2"></td>
  463. </tr>
  464. <tr class="row">
  465. <td class="col col-bgc">毛重(公斤)</td>
  466. <td class="col">{{printData1[index].weighingManagement.grossWeight}}</td>
  467. <td class="col col-bgc">皮重(公斤)</td>
  468. <td class="col">{{printData1[index].weighingManagement.tare}}</td>
  469. <td class="col col-bgc">扣重(公斤)</td>
  470. <td class="col">{{printData1[index].weighingManagement.buckleMiscellaneous}}</td>
  471. <td class="col col-bgc">净重(公斤)</td>
  472. <td class="col">{{printData1[index].weighingManagement.netWeight}}</td>
  473. </tr>
  474. <tr class="row">
  475. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  476. <td class="col" colspan="2">{{printData1[index].weighingManagement.grossDate}}</td>
  477. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  478. <td class="col" colspan="2">{{printData1[index].weighingManagement.tareDate}}</td>
  479. </tr>
  480. </table>
  481. <div class="bottom">
  482. <div class="bottom-row1">
  483. <div>毛检:{{printData1[index].weighingManagement.secretaryWeigher}}</div>
  484. <div style="margin-left:60px">
  485. 皮检:{{printData1[index].weighingManagement.skinInspector}}
  486. </div>
  487. <!-- <div>{{tableData.qualityDate}}</div> -->
  488. </div>
  489. <div class="bottom-row2">
  490. <!-- <div class="leftimg">
  491. <img src="../img/add.png" alt="">
  492. </div> -->
  493. <div class="config">收货单位签名或盖章:</div>
  494. <div class="autograph">客户签名:</div>
  495. </div>
  496. <!-- <div class="bottom-row3">扫一扫</div> -->
  497. </div>
  498. </div>
  499. <div class="part1" v-if="isShowPrintType1">
  500. <div class="sfcard-content">
  501. <div class="sfcard-title">
  502. {{
  503. printData1[index].customerName}}{{printData1[index].identityAuthenticationInfo.customerNumberCard}}
  504. </div>
  505. <img :src="customerList1[index].imgURl.imageUrl1" class="avatar" />
  506. </div>
  507. <!-- <div class="sfcard-content">
  508. <div class="sfcard-title">
  509. {{
  510. printData1[index].customerName}}{{printData1[index].identityAuthenticationInfo.customerNumberCard}}
  511. </div>
  512. <img :src="customerList1[index].imgURl.imageUrl2" class="avatar" />
  513. </div> -->
  514. </div>
  515. <div class="bankcard" v-if="isShowPrintType2">
  516. <div class="sfcard-content">
  517. <div class="sfcard-title">
  518. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  519. </div>
  520. <img :src="customerList1[index].imgURl.imageUrl3" class="avatar" />
  521. </div>
  522. <!-- <div class="sfcard-content part2">
  523. <div class="sfcard-title">
  524. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  525. </div>
  526. <img :src="customerList1[index].imgURl.imageUrl4" class="avatar" />
  527. </div> -->
  528. </div>
  529. </div>
  530. </div>
  531. </div>
  532. <div class="content" v-else>
  533. <div class="part5" v-if="isShowPrintType5">
  534. <div class="header1">
  535. 付款回执单
  536. </div>
  537. <img :src="printData.paymentScreenshot" class="paymentScreenshot" />
  538. </div>
  539. <div class="center part1" v-if="isShowPrintType3" :class="!selectPrint? 'simple':''">
  540. <div class="header1">{{ printData.compName}}结算凭证</div>
  541. <div class="line"></div>
  542. <div class="line"></div>
  543. <div class="header">
  544. <div>单位名称:{{ printData.compName}}</div>
  545. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  546. </div>
  547. <div class="header-top">
  548. <div>单位:公斤/元</div>
  549. <div>No.</div>
  550. </div>
  551. <div class="header-top">
  552. <div>开票日期:{{printData.createDate}}</div>
  553. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  554. <div class="number">{{dealNo(printData.paymentNo)}}</div>
  555. </div>
  556. <table class="table">
  557. <tr class="row">
  558. <td rowspan="4" class="col col-bgc">买方</td>
  559. <td class="col col-bgc">单位名称</td>
  560. <td class="col" colspan="3">{{ printData.compName}}</td>
  561. <td rowspan="4" class="col col-bgc">卖方</td>
  562. <td class="col col-bgc">姓名</td>
  563. <td class="col" colspan="4">{{ printData.customerName}}</td>
  564. </tr>
  565. <tr class="row">
  566. <td class="col col-bgc">税务登记号</td>
  567. <td class="col" colspan="3">{{ printData.taxRegistrationNo}}</td>
  568. <td class="col col-bgc">身份证号</td>
  569. <td class="col" colspan="4">
  570. {{ printData.identityAuthenticationInfo.customerNumberCard}}
  571. </td>
  572. </tr>
  573. <tr class="row">
  574. <td class="col col-bgc">业务编号</td>
  575. <td class="col" colspan="3">{{ printData.paymentNo}}</td>
  576. <td class="col col-bgc">卡号</td>
  577. <td class="col" colspan="4">
  578. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  579. </td>
  580. </tr>
  581. <tr class="row">
  582. <td class="col col-bgc">收货仓库</td>
  583. <td class="col" colspan="3">{{printData.warehouseName}}</td>
  584. <td class="col col-bgc">地址</td>
  585. <td class="col" colspan="4">
  586. {{printData.identityAuthenticationInfo.compAddress}}
  587. </td>
  588. </tr>
  589. <tr class="row">
  590. <td class="col col-bgc">货名</td>
  591. <td class="col col-bgc">类型</td>
  592. <td class="col col-bgc">等级</td>
  593. <td class="col col-bgc">水分%</td>
  594. <td class="col col-bgc">杂质%</td>
  595. <td class="col col-bgc">毛重</td>
  596. <td class="col col-bgc">皮重</td>
  597. <td class="col col-bgc">扣杂重</td>
  598. <td class="col col-bgc">净重</td>
  599. <td class="col col-bgc">出库净重</td>
  600. <!-- <td class="col col-bgc">纯重</td> -->
  601. </tr>
  602. <tr class="row">
  603. <td class="col">{{ printData.goodsName}}</td>
  604. <td class="col">{{ printData.type}}</td>
  605. <td class="col">
  606. {{ printData.qualityInspectionManagement.grade}}
  607. </td>
  608. <td class="col">
  609. {{ printData.qualityInspectionManagement.waterContent}}
  610. </td>
  611. <td class="col">
  612. {{ printData.qualityInspectionManagement.impurity}}
  613. </td>
  614. <td class="col">{{ printData.grossWeight}}</td>
  615. <td class="col">{{ printData.tare}}</td>
  616. <td class="col">
  617. {{ printData.weighingManagement.buckleMiscellaneous}}
  618. </td>
  619. <td class="col">{{ printData.netWeight}}</td>
  620. <td class="col">{{printData.contractManagement ? printData.contractManagement.weight : "0"}}</td>
  621. <!-- <td class="col">{{ printData.pureWeight}}</td> -->
  622. </tr>
  623. <tr class="row">
  624. <td class="col col-bgc">纯重</td>
  625. <td class="col col-bgc" v-if="printData.type == '潮粮'">
  626. 净重单价
  627. </td>
  628. <td class="col col-bgc" v-if="printData.type == '干粮'">单价</td>
  629. <td class="col col-bgc">扣单价</td>
  630. <td class="col col-bgc">粮款</td>
  631. <td class="col col-bgc">称重补助</td>
  632. <td class="col col-bgc">运费补助</td>
  633. <td class="col col-bgc">卸车补助</td>
  634. <td class="col col-bgc">其他补助</td>
  635. <td class="col col-bgc">称重扣款</td>
  636. <td class="col col-bgc">运费扣款</td>
  637. <!-- <td class="col col-bgc">1卸车扣款</td> -->
  638. </tr>
  639. <tr class="row">
  640. <td class="col">{{ printData.pureWeight}}</td>
  641. <td class="col " v-if="printData.type == '潮粮'">
  642. {{printData.tidalGrainPrice}}
  643. </td>
  644. <td class="col " v-if="printData.type == '干粮'">
  645. {{printData.qualityInspectionManagement.dryGrainPrice}}
  646. </td>
  647. <td class="col ">{{ printData.unitDeduction}}</td>
  648. <td class="col ">{{ printData.grainMoney}}</td>
  649. <td class="col ">{{ printData.weighingSubsidy}}</td>
  650. <td class="col ">{{ printData.freightSubsidy}}</td>
  651. <td class="col ">{{ printData.unloadSubsidy}}</td>
  652. <td class="col ">{{ printData.otherSubsidy}}</td>
  653. <td class="col ">{{ printData.weighingDeduction}}</td>
  654. <td class="col ">{{ printData.freightDeduction}}</td>
  655. <!-- <td class="col ">{{ printData.unloadDeduction}}</td> -->
  656. </tr>
  657. <tr class="row">
  658. <td class="col col-bgc">卸车扣款</td>
  659. <td class="col col-bgc">质量扣款</td>
  660. <td class="col col-bgc">其他扣款</td>
  661. <td class="col col-bgc" v-if="printData.type == '潮粮'">
  662. 纯重单价
  663. </td>
  664. <td class="col col-bgc">合计应付</td>
  665. <td class="col col-bgc">购粮性质</td>
  666. <td class="col col-bgc">车牌号</td>
  667. <td class="col col-bgc" colspan="4">记事</td>
  668. </tr>
  669. <tr class="row">
  670. <td class="col ">{{ printData.unloadDeduction}}</td>
  671. <td class="col ">{{ printData.qualityDeduction}}</td>
  672. <td class="col ">{{ printData.otherDeduction}}</td>
  673. <td class="col " v-if="printData.type == '潮粮'">
  674. {{ printData.solidGrainPrice}}
  675. </td>
  676. <td class="col ">{{ printData.calculationPayable}}</td>
  677. <td class="col ">
  678. {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
  679. </td>
  680. <td class="col ">{{ printData.carNo}}</td>
  681. <td class="col " colspan="4">{{ printData.remarks}}</td>
  682. </tr>
  683. <tr class="row">
  684. <td class="col col-bgc">实付金额</td>
  685. <td class="col " colspan="2">{{printData.actualPayment}}</td>
  686. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  687. <td class="col " colspan="4">{{printData.capitalize}}</td>
  688. </tr>
  689. </table>
  690. <div class="bottom">
  691. <div class="bottom-row1">
  692. <div>
  693. 质检:{{
  694. printData.qualityInspectionManagement.qualityInspector}}
  695. </div>
  696. <div>
  697. 毛检:{{ printData.weighingManagement.secretaryWeigher}}
  698. </div>
  699. <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
  700. <div>结算:{{ printData.settlementClerk}}</div>
  701. <div>付款:{{ printData.cashier}}</div>
  702. <div>复点:{{ }}</div>
  703. <div></div>
  704. </div>
  705. <div class="bottom-row2">
  706. <!-- <div class="left">
  707. <img src="../../../../public/img/add.png" alt="" />
  708. </div> -->
  709. <div class="config">收货单位签名或盖章</div>
  710. <div class="">客户签名</div>
  711. </div>
  712. <!-- <div class="bottom-row3">扫一扫</div> -->
  713. <!-- <div class="bottom-row4">
  714. <el-button type="primary">关闭</el-button>
  715. <el-button type="primary" @click="printSmall">打印小票</el-button>
  716. <el-button type="primary" @click="printBig">打印单据</el-button>
  717. </div> -->
  718. </div>
  719. </div>
  720. <div v-if="isShowPrintType4" class="part2">
  721. <div>
  722. <div class="title">入库检斤单</div>
  723. <!-- <div class="leftimg">
  724. <img :src="tableData.codeUrl" alt="">
  725. </div> -->
  726. <div class="number1">{{tableData.number}}</div>
  727. </div>
  728. <table class="table">
  729. <tr class="row">
  730. <td class="col col-bgc">客户姓名</td>
  731. <td class="col" colspan="2">{{tableData.customer}}</td>
  732. <td class="col col-bgc">客户电话</td>
  733. <td class="col">{{tableData.customerPhone}}</td>
  734. <td class="col col-bgc">车牌号</td>
  735. <td class="col" colspan="2">{{tableData.carNumber}}</td>
  736. </tr>
  737. <tr class="row">
  738. <td class="col col-bgc">收货单位</td>
  739. <td class="col" colspan="2">{{printData.compName}}</td>
  740. <td class="col col-bgc">联系人</td>
  741. <td class="col">{{printData.contacts}}</td>
  742. <td class="col col-bgc">联系电话</td>
  743. <td class="col" colspan="2">{{tableData.contactsPhone}}</td>
  744. </tr>
  745. <tr class="row">
  746. <td class="col col-bgc">货名</td>
  747. <td class="col">{{tableData.goodsName}}</td>
  748. <td class="col col-bgc">类型</td>
  749. <td class="col">{{tableData.type}}</td>
  750. <td class="col col-bgc">{{tableData.goodsName!= '大豆'?'容重(克/升)':'蛋白'}}</td>
  751. <td class="col">
  752. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.bulkDensity:''}}
  753. </td>
  754. <td class="col col-bgc">不完善粒(%)</td>
  755. <td class="col">
  756. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.imperfectGrain:''}}
  757. </td>
  758. </tr>
  759. <tr class="row">
  760. <td class="col col-bgc">等级</td>
  761. <td class="col">
  762. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.grade:''}}
  763. </td>
  764. <td class="col col-bgc">水分(%)</td>
  765. <td class="col">
  766. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.waterContent:''}}
  767. </td>
  768. <td class="col col-bgc">热损伤(%)</td>
  769. <td class="col">
  770. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.jiaorenli:''}}
  771. </td>
  772. <td class="col col-bgc">质检时间</td>
  773. <td class="col">
  774. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.qualityDate:''}}
  775. </td>
  776. </tr>
  777. <tr class="row">
  778. <td class="col col-bgc">杂质(%)</td>
  779. <td class="col">
  780. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.impurity:''}}
  781. </td>
  782. <td class="col col-bgc">霉变粒(%)</td>
  783. <td class="col">
  784. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.mildewGrain:''}}
  785. </td>
  786. <td class="col col-bgc">扣杂</td>
  787. <td class="col">
  788. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.buckleMiscellaneous:''}}
  789. </td>
  790. <td class="col " colspan="2"></td>
  791. </tr>
  792. <tr class="row">
  793. <td class="col col-bgc">毛重(公斤)</td>
  794. <td class="col">{{tableData.grossWeight}}</td>
  795. <td class="col col-bgc">皮重(公斤)</td>
  796. <td class="col">{{tableData.tare}}</td>
  797. <td class="col col-bgc">扣重(公斤)</td>
  798. <td class="col">{{tableData.buckleMiscellaneous}}</td>
  799. <td class="col col-bgc">净重(公斤)</td>
  800. <td class="col">{{tableData.netWeight}}</td>
  801. </tr>
  802. <tr class="row">
  803. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  804. <td class="col" colspan="2">{{tableData.grossDate}}</td>
  805. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  806. <td class="col" colspan="2">{{tableData.tareDate}}</td>
  807. </tr>
  808. </table>
  809. <div class="bottom">
  810. <div class="bottom-row1">
  811. <div>毛检:{{tableData.secretaryWeigher}}</div>
  812. <div style="margin-left:60px">
  813. 皮检:{{tableData.skinInspector}}
  814. </div>
  815. <!-- <div>{{tableData.qualityDate}}</div> -->
  816. </div>
  817. <div class="bottom-row2">
  818. <!-- <div class="left">
  819. <img src="../img/add.png" alt="">
  820. </div> -->
  821. <div class="config">收货单位签名或盖章:</div>
  822. <div class="autograph">客户签名:</div>
  823. </div>
  824. <!-- <div class="bottom-row3">扫一扫</div> -->
  825. </div>
  826. </div>
  827. <div class="sfcard part3" v-if="isShowPrintType1">
  828. <div class="sfcard-content">
  829. <div class="sfcard-title">
  830. {{ printData.customerName}}{{
  831. printData.identityAuthenticationInfo.customerNumberCard}}
  832. </div>
  833. <img :src="imageUrl1" class="avatar" />
  834. </div>
  835. <div class="sfcard-content">
  836. <div class="sfcard-title">
  837. {{ printData.customerName}}{{
  838. printData.identityAuthenticationInfo.customerNumberCard}}
  839. </div>
  840. <img :src="imageUrl2" class="avatar" />
  841. </div>
  842. </div>
  843. <div class="bankcard part4" v-if="isShowPrintType2">
  844. <div class="sfcard-content">
  845. <div class="sfcard-title">
  846. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  847. </div>
  848. <img :src="imageUrl3" class="avatar" />
  849. </div>
  850. <div class="sfcard-content">
  851. <div class="sfcard-title">
  852. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  853. </div>
  854. <img :src="imageUrl4" class="avatar" />
  855. </div>
  856. </div>
  857. </div>
  858. <div class="small-content" v-if="smallContent">
  859. <div class="small-title">
  860. <div>
  861. {{printData.compName}}结算凭证
  862. </div>
  863. <img class="small-img" src="../img/add.png" alt="" />
  864. </div>
  865. <div class="small-row">
  866. <div>开票日期</div>
  867. <div>{{printData.createDate}}</div>
  868. </div>
  869. <div class="small-row">
  870. <div>买方单位名称</div>
  871. <div>{{printData.compName}}</div>
  872. </div>
  873. <div class="small-row">
  874. <div>买方姓名</div>
  875. <div>{{printData.customerName}}</div>
  876. </div>
  877. <div class="small-row">
  878. <div>税务登记号</div>
  879. <div>{{printData.taxRegistrationNo}}</div>
  880. </div>
  881. <div class="small-row">
  882. <div>身份证号</div>
  883. <div>{{printData.customerNumberCard}}</div>
  884. </div>
  885. <div class="small-row">
  886. <div>化验单号</div>
  887. <div>{{printData.paymentNo}}</div>
  888. </div>
  889. <div class="small-row">
  890. <div>卡号</div>
  891. <div>{{printData.bankCard}}</div>
  892. </div>
  893. <div class="small-row">
  894. <div>收货仓库</div>
  895. <div>{{printData.warehouseName}}</div>
  896. </div>
  897. <div class="small-row">
  898. <div>货名</div>
  899. <div>{{printData.goodsName}}</div>
  900. </div>
  901. <div class="small-row">
  902. <div>类型</div>
  903. <div>{{printData.type}}</div>
  904. </div>
  905. <div class="small-row">
  906. <div>等级</div>
  907. <div>{{printData.grade}}</div>
  908. </div>
  909. <div class="small-row">
  910. <div>水分%</div>
  911. <div>{{printData.waterContent}}</div>
  912. </div>
  913. <div class="small-row">
  914. <div>杂质%</div>
  915. <div>{{printData.impurity}}</div>
  916. </div>
  917. <div class="small-row">
  918. <div>毛重</div>
  919. <div>{{printData.grossWeight}}</div>
  920. </div>
  921. <div class="small-row">
  922. <div>皮重</div>
  923. <div>{{printData.tare}}</div>
  924. </div>
  925. <div class="small-row">
  926. <div>扣杂重</div>
  927. <div>{{printData.weighingManagement.buckleMiscellaneous}}</div>
  928. </div>
  929. <div class="small-row">
  930. <div>净重</div>
  931. <div>{{printData.netWeight}}</div>
  932. </div>
  933. <div class="small-row">
  934. <div>纯重</div>
  935. <div>{{printData.pureWeight}}</div>
  936. </div>
  937. <div class="small-row">
  938. <div>净重单价</div>
  939. <div>{{printData.tidalGrainPrice}}</div>
  940. </div>
  941. <div class="small-row">
  942. <div>粮款</div>
  943. <div>{{printData.grainMoney}}</div>
  944. </div>
  945. <div class="small-row">
  946. <div>称重补助</div>
  947. <div>{{printData.weighingSubsidy}}</div>
  948. </div>
  949. <div class="small-row">
  950. <div>运费补助</div>
  951. <div>{{printData.freightSubsidy}}</div>
  952. </div>
  953. <div class="small-row">
  954. <div>卸车补助</div>
  955. <div>{{printData.unloadSubsidy}}</div>
  956. </div>
  957. <div class="small-row">
  958. <div>其他补助</div>
  959. <div>{{printData.otherSubsidy}}</div>
  960. </div>
  961. <div class="small-row">
  962. <div>称重扣款</div>
  963. <div>{{printData.weighingDeduction}}</div>
  964. </div>
  965. <div class="small-row">
  966. <div>运费扣款</div>
  967. <div>{{printData.freightDeduction}}</div>
  968. </div>
  969. <div class="small-row">
  970. <div>卸车扣款</div>
  971. <div>{{printData.unloadDeduction}}</div>
  972. </div>
  973. <div class="small-row">
  974. <div>质量扣款</div>
  975. <div>{{printData.qualityDeduction}}</div>
  976. </div>
  977. <div class="small-row">
  978. <div>其他扣款</div>
  979. <div>{{printData.otherDeduction}}</div>
  980. </div>
  981. <div class="small-row">
  982. <div>纯重单价</div>
  983. <div>{{printData.solidGrainPrice}}</div>
  984. </div>
  985. <div class="small-row">
  986. <div>合计应付</div>
  987. <div>{{printData.calculationPayable}}</div>
  988. </div>
  989. <div class="small-row">
  990. <div>购粮性质</div>
  991. <div>{{printData.natureOfGrainPurchase}}</div>
  992. </div>
  993. <div class="small-row">
  994. <div>车牌号</div>
  995. <div>{{printData.carNo}}</div>
  996. </div>
  997. <div class="small-row">
  998. <div>记事</div>
  999. <div>{{printData.remarks}}</div>
  1000. </div>
  1001. <div class="small-row">
  1002. <div>实付金额</div>
  1003. <div>{{printData.actualPayment}}</div>
  1004. </div>
  1005. <div class="small-row">
  1006. <div>人民币(大写)</div>
  1007. <div>{{printData.capitalize}}</div>
  1008. </div>
  1009. <div class="small-row">
  1010. <div>质检</div>
  1011. <div>{{printData.qualityInspector}}</div>
  1012. </div>
  1013. <div class="small-row">
  1014. <div>毛检</div>
  1015. <div>{{printData.secretaryWeigher}}</div>
  1016. </div>
  1017. <div class="small-row">
  1018. <div>皮检</div>
  1019. <div>{{printData.skinInspector}}</div>
  1020. </div>
  1021. <div class="small-row">
  1022. <div>结算</div>
  1023. <div>{{printData.settlementClerk}}</div>
  1024. </div>
  1025. <div class="small-row">
  1026. <div>付款</div>
  1027. <div>{{printData.actualPayment}}</div>
  1028. </div>
  1029. <div class="small-row">
  1030. <div>复点</div>
  1031. <div>&nbsp;&nbsp;&nbsp;</div>
  1032. </div>
  1033. </div>
  1034. </div>
  1035. </body>
  1036. <script src="../cdn/vue/2.6.10/vue.min.js"></script>
  1037. <script src="../cdn/element-ui/2.13.2/index.js"></script>
  1038. <script type="text/javascript">
  1039. new Vue({
  1040. el: '#app',
  1041. data: {
  1042. isShowPrintType1: false,
  1043. isShowPrintType2: false,
  1044. isShowPrintType3: false,
  1045. isShowPrintType4: false,
  1046. isShowPrintType5: false,
  1047. showType: [],
  1048. printData: {},
  1049. printData1: [],
  1050. customerList: {},
  1051. customerList1: [],
  1052. name: '',
  1053. bigContent: false,
  1054. smallContent: false,
  1055. date: '',
  1056. imageUrl1: '',
  1057. imageUrl2: '',
  1058. imageUrl3: '',
  1059. imageUrl4: '',
  1060. identity: [],
  1061. bank: [],
  1062. selectPrint: false,
  1063. onlyShowPz: false,
  1064. tableData: []
  1065. },
  1066. computed: {},
  1067. methods: {
  1068. dealNo(str) {
  1069. return str.slice(4)
  1070. },
  1071. tableRowClassName({
  1072. row,
  1073. rowIndex
  1074. }) {
  1075. if (rowIndex === 1) {
  1076. return 'warning-row'
  1077. } else if (rowIndex === 3) {
  1078. return 'success-row'
  1079. }
  1080. return ''
  1081. },
  1082. getQueryVariable(variable) {
  1083. var query = window.location.search.substring(1)
  1084. var vars = query.split('&')
  1085. for (var i = 0; i < vars.length; i++) {
  1086. var pair = vars[i].split('=')
  1087. if (pair[0] == variable) {
  1088. return pair[1]
  1089. }
  1090. }
  1091. return false
  1092. },
  1093. printSmall() {},
  1094. printBig() {}
  1095. },
  1096. mounted() {
  1097. this.date = new Date().toLocaleString()
  1098. // let _data = decodeURIComponent(this.getQueryVariable('dataList'))
  1099. let _data ={}
  1100. if(localStorage.getItem('print_pay_data')){
  1101. _data=localStorage.getItem('print_pay_data')
  1102. }
  1103. if (!_data) {
  1104. this.selectPrint = true
  1105. this.printData1 = JSON.parse(
  1106. localStorage.getItem('selectPrint_selectPrintList')
  1107. )
  1108. console.log("对象", this.printData1)
  1109. console.log("对象", this.printData)
  1110. for (let i = 0; i < this.printData1.length; i++) {
  1111. if (!this.printData1[i].identityAuthenticationInfo.compAddress) this.printData1[i]
  1112. .identityAuthenticationInfo.compAddress = ''
  1113. if (this.printData1[i].identityAuthenticationInfo.compAddress.length > 24) {
  1114. this.printData1[i].identityAuthenticationInfo.compAddress = this.printData1[i]
  1115. .identityAuthenticationInfo
  1116. .compAddress.substring(0, 24)
  1117. }
  1118. }
  1119. } else {
  1120. this.printData = JSON.parse(_data)
  1121. //地址过长截取
  1122. if (this.printData.identityAuthenticationInfo.compAddress.length > 24) {
  1123. this.printData.identityAuthenticationInfo.compAddress = this.printData.identityAuthenticationInfo
  1124. .compAddress.substring(0, 24)
  1125. }
  1126. this.selectPrint = false
  1127. }
  1128. let _type = decodeURIComponent(this.getQueryVariable('type'))
  1129. this.showType = decodeURIComponent(
  1130. this.getQueryVariable('printTypeList')
  1131. )
  1132. // this.pzList = this.showType.split(',')
  1133. // if((this.showType.indexOf('打印结算凭证')>-1)&&this.pzList.length==1){
  1134. // this.onlyShowPz = true
  1135. // }
  1136. // this.pageType = decodeURIComponent(this.getQueryVariable('printTypeList'))
  1137. let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
  1138. if (!_data1) {
  1139. this.customerList1 = JSON.parse(
  1140. localStorage.getItem('selectPrint_selectCustomerList')
  1141. )
  1142. } else {
  1143. this.customerList = JSON.parse(_data1)
  1144. }
  1145. console.log('cwprint', localStorage.getItem('cwprint'))
  1146. var cwprint = localStorage.getItem('cwprint')
  1147. if (cwprint == 'true') {
  1148. if (this.selectPrint) {
  1149. for (let i = 0; i < this.customerList1.length; i++) {
  1150. let _url1 = this.customerList1[i].cardAddressUrl.split(',')
  1151. let _url2 = this.customerList1[i].payeeAddressUrl.split(',')
  1152. this.customerList1[i].imgURl = {
  1153. imageUrl1: _url1[0],
  1154. imageUrl2: _url1[1],
  1155. imageUrl3: _url2[0],
  1156. imageUrl4: _url2[0]
  1157. }
  1158. }
  1159. } else {
  1160. if (this.customerList.cardAddressUrl) {
  1161. this.identity = this.customerList.cardAddressUrl.split(',')
  1162. this.imageUrl1 = this.identity[0]
  1163. this.imageUrl2 = this.identity[1]
  1164. }
  1165. if (this.customerList.payeeAddressUrl) {
  1166. this.bank = this.customerList.payeeAddressUrl.split(',')
  1167. this.imageUrl3 = this.bank[0]
  1168. this.imageUrl4 = this.bank[1]
  1169. }
  1170. this.tableData = this.printData.weighingManagement
  1171. }
  1172. let _lsit = this.showType.split(',')
  1173. for (let i = 0; i < _lsit.length; i++) {
  1174. switch (_lsit[i]) {
  1175. case '打印身份证':
  1176. this.isShowPrintType1 = !this.isShowPrintType1
  1177. break
  1178. case '打印银行卡':
  1179. this.isShowPrintType2 = !this.isShowPrintType2
  1180. break
  1181. case '打印结算凭证':
  1182. this.isShowPrintType3 = !this.isShowPrintType3
  1183. break
  1184. case '打印检斤单':
  1185. this.isShowPrintType4 = !this.isShowPrintType4
  1186. break
  1187. case '打印回执单':
  1188. this.isShowPrintType5 = !this.isShowPrintType5
  1189. break
  1190. }
  1191. }
  1192. } else {
  1193. this.isShowPrintType3 = true
  1194. }
  1195. if (_type == 2) {
  1196. this.bigContent = true
  1197. this.smallContent = false
  1198. } else {
  1199. this.smallContent = true
  1200. this.bigContent = false
  1201. }
  1202. if (this.printData.compName == undefined) this.printData.compName = ''
  1203. document.title = this.printData.compName + '结算凭证'
  1204. window.print()
  1205. // sessionStorage.removeItem('selectPrint_selectPrintList');
  1206. // sessionStorage.removeItem('selectPrint_selectCustomerList');
  1207. window.onafterprint = function(event) {
  1208. window.history.back(-1)
  1209. }
  1210. },
  1211. watch: {}
  1212. })
  1213. </script>
  1214. </html>