payprint.html 48 KB

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