payprint1A5.html 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  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: 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. {{ printData1[index].identityAuthenticationInfo.customerNumberCard}}
  216. </td>
  217. </tr>
  218. <tr class="row">
  219. <td class="col col-bgc">业务编号</td>
  220. <td class="col" colspan="3">
  221. {{ printData1[index].paymentNo}}
  222. </td>
  223. <td class="col col-bgc">卡号</td>
  224. <td class="col" colspan="4">
  225. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  226. </td>
  227. </tr>
  228. <tr class="row">
  229. <td class="col col-bgc">收货仓库</td>
  230. <td class="col" colspan="3">
  231. {{printData1[index].warehouseName}}
  232. </td>
  233. <td class="col col-bgc">地址</td>
  234. <td class="col" colspan="4">
  235. {{printData1[index].identityAuthenticationInfo.compAddress}}
  236. </td>
  237. </tr>
  238. <tr class="row">
  239. <td class="col col-bgc">货名</td>
  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">{{ printData1[index].goodsName != '大豆'?'容重(克/升)':'蛋白'}}</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. </tr>
  250. <tr class="row">
  251. <td class="col">{{ printData1[index].goodsName}}</td>
  252. <td class="col">{{ printData1[index].type}}</td>
  253. <td class="col">
  254. {{ printData1[index].qualityInspectionManagement.grade}}
  255. </td>
  256. <td class="col">
  257. {{ printData1[index].qualityInspectionManagement.waterContent}}
  258. </td>
  259. <td class="col">
  260. {{ printData1[index].qualityInspectionManagement.impurity}}
  261. </td>
  262. <td class="col">
  263. {{printData1[index].weighingManagement.qualityInspectionManagement?printData1[index].weighingManagement.qualityInspectionManagement.bulkDensity:''}}
  264. </td>
  265. <td class="col">{{ printData1[index].grossWeight}}</td>
  266. <td class="col">{{ printData1[index].tare}}</td>
  267. <td class="col">
  268. {{printData1[index].weighingManagement?printData1[index].weighingManagement.buckleMiscellaneous:''}}
  269. </td>
  270. <td class="col">{{ printData1[index].netWeight}}</td>
  271. </tr>
  272. <tr class="row">
  273. <td class="col col-bgc">纯重</td>
  274. <td class="col col-bgc" v-if="printData1[index].type == '潮粮'">
  275. 净重单价
  276. </td>
  277. <td class="col col-bgc" v-if="printData1[index].type == '干粮'">
  278. 单价
  279. </td>
  280. <td class="col col-bgc">扣单价</td>
  281. <td class="col col-bgc">粮款</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. </tr>
  289. <tr class="row">
  290. <td class="col">{{ printData1[index].pureWeight}}</td>
  291. <td class="col " v-if="printData1[index].type == '潮粮'">
  292. {{printData1[index].tidalGrainPrice}}
  293. </td>
  294. <td class="col " v-if="printData1[index].type == '干粮'">
  295. {{printData1[index].qualityInspectionManagement.dryGrainPrice}}
  296. </td>
  297. <td class="col ">{{ printData1[index].unitDeduction}}</td>
  298. <td class="col ">{{ printData1[index].grainMoney}}</td>
  299. <td class="col ">{{ printData1[index].weighingSubsidy}}</td>
  300. <td class="col ">{{ printData1[index].freightSubsidy}}</td>
  301. <td class="col ">{{ printData1[index].unloadSubsidy}}</td>
  302. <td class="col ">{{ printData1[index].otherSubsidy}}</td>
  303. <td class="col ">{{ printData1[index].weighingDeduction}}</td>
  304. <td class="col ">{{ printData1[index].freightDeduction}}</td>
  305. <!-- <td class="col ">{{ printData1[index].unloadDeduction}}</td> -->
  306. </tr>
  307. <tr class="row">
  308. <td class="col col-bgc">卸车扣款</td>
  309. <td class="col col-bgc">质量扣款</td>
  310. <td class="col col-bgc">其他扣款</td>
  311. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  312. 纯重单价
  313. </td> -->
  314. <td class="col col-bgc">合计应付</td>
  315. <td class="col col-bgc">购粮性质</td>
  316. <td class="col col-bgc">车牌号</td>
  317. <td class="col col-bgc" colspan="4">记事</td>
  318. </tr>
  319. <tr class="row">
  320. <td class="col ">{{ printData1[index].unloadDeduction}}</td>
  321. <td class="col ">{{ printData1[index].qualityDeduction}}</td>
  322. <td class="col ">{{ printData1[index].otherDeduction}}</td>
  323. <!-- <td class="col " v-if="printData1[index].type == '潮粮'">
  324. {{ printData1[index].solidGrainPrice}}
  325. </td> -->
  326. <td class="col ">
  327. {{ printData1[index].calculationPayable}}
  328. </td>
  329. <td class="col ">
  330. {{ printData1[index].qualityInspectionManagement.natureOfGrainPurchase}}
  331. </td>
  332. <td class="col ">{{ printData1[index].carNo}}</td>
  333. <td class="col " colspan="4">
  334. {{ printData1[index].remarks}}
  335. </td>
  336. </tr>
  337. <tr class="row">
  338. <td class="col col-bgc">实付金额</td>
  339. <td class="col " colspan="2">
  340. {{printData1[index].actualPayment}}
  341. </td>
  342. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  343. <td class="col " colspan="4">
  344. {{printData1[index].capitalize}}
  345. </td>
  346. </tr>
  347. </table>
  348. <div class="bottom">
  349. <div class="bottom-row1">
  350. <div>
  351. 质检:{{ printData1[index].qualityInspectionManagement.qualityInspector}}
  352. </div>
  353. <div>
  354. 毛检:{{ printData1[index].weighingManagement.secretaryWeigher}}
  355. </div>
  356. <div>
  357. 皮检:{{ printData1[index].weighingManagement.skinInspector}}
  358. </div>
  359. <div>结算:{{ printData1[index].settlementClerk}}</div>
  360. <div>付款:{{ printData1[index].cashier}}</div>
  361. <div>复点:{{ }}</div>
  362. <div></div>
  363. </div>
  364. <div class="bottom-row2">
  365. <!-- <div class="left">
  366. <img src="../../../../public/img/add.png" alt="" />
  367. </div> -->
  368. <div class="config">收货单位签名或盖章</div>
  369. <div class="">客户签名</div>
  370. </div>
  371. <!-- <div class="bottom-row3">扫一扫</div> -->
  372. <!-- <div class="bottom-row4">
  373. <el-button type="primary">关闭</el-button>
  374. <el-button type="primary" @click="printSmall">打印小票</el-button>
  375. <el-button type="primary" @click="printBig">打印单据</el-button>
  376. </div> -->
  377. </div>
  378. </div>
  379. <div v-if="isShowPrintType4" class="part2">
  380. <div style="height: 120px;">
  381. <div class="title">入库检斤单</div>
  382. <!-- <div class="leftimg">
  383. <img :src="printData1[index].weighingManagement.codeUrl" alt="">
  384. </div> -->
  385. <div class="number1">{{printData1[index].weighingManagement.number}}</div>
  386. </div>
  387. <table class="table">
  388. <tr class="row">
  389. <td class="col col-bgc">客户姓名</td>
  390. <td class="col" colspan="2">{{printData1[index].weighingManagement.customer}}</td>
  391. <td class="col col-bgc">客户电话</td>
  392. <td class="col">{{printData1[index].weighingManagement.customerPhone}}</td>
  393. <td class="col col-bgc">车牌号</td>
  394. <td class="col" colspan="2">{{printData1[index].weighingManagement.carNumber}}</td>
  395. </tr>
  396. <tr class="row">
  397. <td class="col col-bgc">收货单位</td>
  398. <td class="col" colspan="2">{{printData1[index].weighingManagement.compName}}</td>
  399. <td class="col col-bgc">联系人</td>
  400. <td class="col">{{printData1[index].weighingManagement.person}}</td>
  401. <td class="col col-bgc">联系电话</td>
  402. <td class="col" colspan="2">{{printData1[index].weighingManagement.personPhone}}</td>
  403. </tr>
  404. <tr class="row">
  405. <td class="col col-bgc">货名</td>
  406. <td class="col">{{printData1[index].weighingManagement.goodsName}}</td>
  407. <td class="col col-bgc">类型</td>
  408. <td class="col">{{printData1[index].weighingManagement.type}}</td>
  409. <td class="col col-bgc">{{printData1[index].weighingManagement.goodsName != '大豆'?'容重(克/升)' :'蛋白'}}</td>
  410. <td class="col">
  411. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.bulkDensity:''}}
  412. </td>
  413. <td class="col col-bgc">不完善粒(%)</td>
  414. <td class="col">
  415. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.imperfectGrain:''}}
  416. </td>
  417. </tr>
  418. <tr class="row">
  419. <td class="col col-bgc">等级</td>
  420. <td class="col">
  421. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.grade:''}}
  422. </td>
  423. <td class="col col-bgc">水分(%)</td>
  424. <td class="col">
  425. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.waterContent:''}}
  426. </td>
  427. <td class="col col-bgc">热损伤(%)</td>
  428. <td class="col">
  429. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.jiaorenli:''}}
  430. </td>
  431. <td class="col col-bgc">质检时间</td>
  432. <td class="col">
  433. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.qualityDate:''}}
  434. </td>
  435. </tr>
  436. <tr class="row">
  437. <td class="col col-bgc">杂质(%)</td>
  438. <td class="col">
  439. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.impurity:''}}
  440. </td>
  441. <td class="col col-bgc">霉变粒(%)</td>
  442. <td class="col">
  443. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.mildewGrain:''}}
  444. </td>
  445. <td class="col col-bgc">扣杂</td>
  446. <td class="col">
  447. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.buckleMiscellaneous:''}}
  448. </td>
  449. <td class="col " colspan="2"></td>
  450. </tr>
  451. <tr class="row">
  452. <td class="col col-bgc">毛重(公斤)</td>
  453. <td class="col">{{printData1[index].weighingManagement.grossWeight}}</td>
  454. <td class="col col-bgc">皮重(公斤)</td>
  455. <td class="col">{{printData1[index].weighingManagement.tare}}</td>
  456. <td class="col col-bgc">扣重(公斤)</td>
  457. <td class="col">{{printData1[index].weighingManagement.buckleMiscellaneous}}</td>
  458. <td class="col col-bgc">净重(公斤)</td>
  459. <td class="col">{{printData1[index].weighingManagement.netWeight}}</td>
  460. </tr>
  461. <tr class="row">
  462. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  463. <td class="col" colspan="2">{{printData1[index].weighingManagement.grossDate}}</td>
  464. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  465. <td class="col" colspan="2">{{printData1[index].weighingManagement.tareDate}}</td>
  466. </tr>
  467. </table>
  468. <div class="bottom">
  469. <div class="bottom-row1">
  470. <div>毛检:{{printData1[index].weighingManagement.secretaryWeigher}}</div>
  471. <div style="margin-left:60px">
  472. 皮检:{{printData1[index].weighingManagement.skinInspector}}
  473. </div>
  474. <!-- <div>{{tableData.qualityDate}}</div> -->
  475. </div>
  476. <div class="bottom-row2">
  477. <!-- <div class="leftimg">
  478. <img src="../img/add.png" alt="">
  479. </div> -->
  480. <div class="config">收货单位签名或盖章:</div>
  481. <div class="autograph">客户签名:</div>
  482. </div>
  483. <!-- <div class="bottom-row3">扫一扫</div> -->
  484. </div>
  485. </div>
  486. <div class="part1" v-if="isShowPrintType1">
  487. <div class="sfcard-content">
  488. <div class="sfcard-title">
  489. {{ printData1[index].customerName}}{{printData1[index].identityAuthenticationInfo.customerNumberCard}}
  490. </div>
  491. <img :src="customerList1[index].imgURl.imageUrl1" class="avatar" />
  492. </div>
  493. <!-- <div class="sfcard-content">
  494. <div class="sfcard-title">
  495. {{
  496. printData1[index].customerName}}{{printData1[index].identityAuthenticationInfo.customerNumberCard}}
  497. </div>
  498. <img :src="customerList1[index].imgURl.imageUrl2" class="avatar" />
  499. </div> -->
  500. </div>
  501. <div class="bankcard" v-if="isShowPrintType2">
  502. <div class="sfcard-content part2">
  503. <div class="sfcard-title">
  504. {{printData1[index].bankDeposit}}{{printData1[index].bankCard}}
  505. </div>
  506. <!-- <img :src="customerList1[index].imgURl.imageUrl3" class="avatar" /> -->
  507. <img v-if="printData1[index].imgURl" :src="printData1[index].imgURl.imageUrl3" class="avatar" />
  508. <img v-else class="avatar" />
  509. <!-- <img v-if="printData1[index].imgURl" :src="printData1[index].imgURl.imageUrl4" class="avatar" />
  510. <img v-else class="avatar" /> -->
  511. </div>
  512. <!-- <div class="sfcard-content part2">
  513. <div class="sfcard-title">
  514. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  515. </div>
  516. <img :src="customerList1[index].imgURl.imageUrl4" class="avatar" />
  517. </div> -->
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. <div class="content" v-else>
  523. <!-- <div class="part5" v-if="isShowPrintType5">
  524. <div class="header1">
  525. 付款回执单
  526. </div>
  527. <img :src="printData.paymentScreenshot" class="paymentScreenshot" />
  528. </div> -->
  529. <div class="center part1" v-if="isShowPrintType3" :class="!selectPrint? 'simple':''">
  530. <div class="header1">{{ printData.compName}}结算凭证</div>
  531. <div class="line"></div>
  532. <div class="line"></div>
  533. <div class="header">
  534. <div>单位名称:{{ printData.compName}}</div>
  535. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  536. </div>
  537. <div class="header-top">
  538. <div>单位:公斤/元</div>
  539. <div>No.</div>
  540. </div>
  541. <div class="header-top">
  542. <div>开票日期:{{printData.createDate}}</div>
  543. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  544. <div class="number">{{dealNo(printData.paymentNo)}}</div>
  545. </div>
  546. <table class="table">
  547. <tr class="row">
  548. <td rowspan="4" class="col col-bgc">买方</td>
  549. <td class="col col-bgc">单位名称</td>
  550. <td class="col" colspan="3">{{ printData.compName}}</td>
  551. <td rowspan="4" class="col col-bgc">卖方</td>
  552. <td class="col col-bgc">姓名</td>
  553. <td class="col" colspan="4">{{ printData.customerName}}</td>
  554. </tr>
  555. <tr class="row">
  556. <td class="col col-bgc">税务登记号</td>
  557. <td class="col" colspan="3">{{ printData.taxRegistrationNo}}</td>
  558. <td class="col col-bgc">身份证号</td>
  559. <td class="col" colspan="4">
  560. {{ printData.identityAuthenticationInfo.customerNumberCard}}
  561. </td>
  562. </tr>
  563. <tr class="row">
  564. <td class="col col-bgc">业务编号</td>
  565. <td class="col" colspan="3">{{ printData.paymentNo}}</td>
  566. <td class="col col-bgc">卡号</td>
  567. <td class="col" colspan="4">
  568. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  569. </td>
  570. </tr>
  571. <tr class="row">
  572. <td class="col col-bgc">收货仓库</td>
  573. <td class="col" colspan="3">{{printData.warehouseName}}</td>
  574. <td class="col col-bgc">地址</td>
  575. <td class="col" colspan="4">
  576. {{printData.identityAuthenticationInfo.compAddress}}
  577. </td>
  578. </tr>
  579. <tr class="row">
  580. <td class="col col-bgc">货名</td>
  581. <td class="col col-bgc">类型</td>
  582. <td class="col col-bgc">等级</td>
  583. <td class="col col-bgc">水分%</td>
  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. </tr>
  593. <tr class="row">
  594. <td class="col">{{ printData.goodsName}}</td>
  595. <td class="col">{{ printData.type}}</td>
  596. <td class="col">
  597. {{ printData.qualityInspectionManagement.grade}}
  598. </td>
  599. <td class="col">
  600. {{ printData.qualityInspectionManagement.waterContent}}
  601. </td>
  602. <td class="col">
  603. {{ printData.qualityInspectionManagement.impurity}}
  604. </td>
  605. <td class="col">{{ printData.grossWeight}}</td>
  606. <td class="col">{{ printData.tare}}</td>
  607. <td class="col">
  608. {{ printData.weighingManagement.buckleMiscellaneous}}
  609. </td>
  610. <td class="col">{{ printData.netWeight}}</td>
  611. <td class="col"></td>
  612. <!-- <td class="col">{{ printData.pureWeight}}</td> -->
  613. </tr>
  614. <tr class="row">
  615. <td class="col col-bgc">纯重</td>
  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">1卸车扣款</td> -->
  629. </tr>
  630. <tr class="row">
  631. <td class="col">{{ printData.pureWeight}}</td>
  632. <td class="col " v-if="printData.type == '潮粮'">
  633. {{printData.tidalGrainPrice}}
  634. </td>
  635. <td class="col " v-if="printData.type == '干粮'">
  636. {{printData.qualityInspectionManagement.dryGrainPrice}}
  637. </td>
  638. <td class="col ">{{ printData.unitDeduction}}</td>
  639. <td class="col ">{{ printData.grainMoney}}</td>
  640. <td class="col ">{{ printData.weighingSubsidy}}</td>
  641. <td class="col ">{{ printData.freightSubsidy}}</td>
  642. <td class="col ">{{ printData.unloadSubsidy}}</td>
  643. <td class="col ">{{ printData.otherSubsidy}}</td>
  644. <td class="col ">{{ printData.weighingDeduction}}</td>
  645. <td class="col ">{{ printData.freightDeduction}}</td>
  646. <!-- <td class="col ">{{ printData.unloadDeduction}}</td> -->
  647. </tr>
  648. <tr class="row">
  649. <td class="col col-bgc">卸车扣款</td>
  650. <td class="col col-bgc">质量扣款</td>
  651. <td class="col col-bgc">其他扣款</td>
  652. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  653. 纯重单价
  654. </td> -->
  655. <td class="col col-bgc">合计应付</td>
  656. <td class="col col-bgc">购粮性质</td>
  657. <td class="col col-bgc">车牌号</td>
  658. <td class="col col-bgc" colspan="4">记事</td>
  659. </tr>
  660. <tr class="row">
  661. <td class="col ">{{ printData.unloadDeduction}}</td>
  662. <td class="col ">{{ printData.qualityDeduction}}</td>
  663. <td class="col ">{{ printData.otherDeduction}}</td>
  664. <!-- <td class="col " v-if="printData.type == '潮粮'">
  665. {{ printData.solidGrainPrice}}
  666. </td> -->
  667. <td class="col ">{{ printData.calculationPayable}}</td>
  668. <td class="col ">
  669. {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
  670. </td>
  671. <td class="col ">{{ printData.carNo}}</td>
  672. <td class="col " colspan="4">{{ printData.remarks}}</td>
  673. </tr>
  674. <tr class="row">
  675. <td class="col col-bgc">实付金额</td>
  676. <td class="col " colspan="2">{{printData.actualPayment}}</td>
  677. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  678. <td class="col " colspan="4">{{printData.capitalize}}</td>
  679. </tr>
  680. </table>
  681. <div class="bottom">
  682. <div class="bottom-row1">
  683. <div>
  684. 质检:{{ printData.qualityInspectionManagement.qualityInspector}}
  685. </div>
  686. <div>
  687. 毛检:{{ printData.weighingManagement.secretaryWeigher}}
  688. </div>
  689. <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
  690. <div>结算:{{ printData.settlementClerk}}</div>
  691. <div>付款:{{ printData.cashier}}</div>
  692. <div>复点:{{ }}</div>
  693. <div></div>
  694. </div>
  695. <div class="bottom-row2">
  696. <!-- <div class="left">
  697. <img src="../../../../public/img/add.png" alt="" />
  698. </div> -->
  699. <div class="config">收货单位签名或盖章</div>
  700. <div class="">客户签名</div>
  701. </div>
  702. <!-- <div class="bottom-row3">扫一扫</div> -->
  703. <!-- <div class="bottom-row4">
  704. <el-button type="primary">关闭</el-button>
  705. <el-button type="primary" @click="printSmall">打印小票</el-button>
  706. <el-button type="primary" @click="printBig">打印单据</el-button>
  707. </div> -->
  708. </div>
  709. </div>
  710. <div v-if="isShowPrintType4" class="part2">
  711. <div>
  712. <div class="title">入库检斤单</div>
  713. <!-- <div class="leftimg">
  714. <img :src="tableData.codeUrl" alt="">
  715. </div> -->
  716. <div class="number1">{{tableData.number}}</div>
  717. </div>
  718. <table class="table">
  719. <tr class="row">
  720. <td class="col col-bgc">客户姓名</td>
  721. <td class="col" colspan="2">{{tableData.customer}}</td>
  722. <td class="col col-bgc">客户电话</td>
  723. <td class="col">{{tableData.customerPhone}}</td>
  724. <td class="col col-bgc">车牌号</td>
  725. <td class="col" colspan="2">{{tableData.carNumber}}</td>
  726. </tr>
  727. <tr class="row">
  728. <td class="col col-bgc">收货单位</td>
  729. <td class="col" colspan="2">{{tableData.compName}}</td>
  730. <td class="col col-bgc">联系人</td>
  731. <td class="col">{{tableData.person}}</td>
  732. <td class="col col-bgc">联系电话</td>
  733. <td class="col" colspan="2">{{tableData.personPhone}}</td>
  734. </tr>
  735. <tr class="row">
  736. <td class="col col-bgc">货名</td>
  737. <td class="col">{{tableData.goodsName}}</td>
  738. <td class="col col-bgc">类型</td>
  739. <td class="col">{{tableData.type}}</td>
  740. <td class="col col-bgc">{{tableData.goodsName!= '大豆'?'容重(克/升)':'蛋白'}}</td>
  741. <td class="col">
  742. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.bulkDensity:''}}
  743. </td>
  744. <td class="col col-bgc">不完善粒(%)</td>
  745. <td class="col">
  746. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.imperfectGrain:''}}
  747. </td>
  748. </tr>
  749. <tr class="row">
  750. <td class="col col-bgc">等级</td>
  751. <td class="col">
  752. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.grade:''}}
  753. </td>
  754. <td class="col col-bgc">水分(%)</td>
  755. <td class="col">
  756. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.waterContent:''}}
  757. </td>
  758. <td class="col col-bgc">热损伤(%)</td>
  759. <td class="col">
  760. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.jiaorenli:''}}
  761. </td>
  762. <td class="col col-bgc">质检时间</td>
  763. <td class="col">
  764. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.qualityDate:''}}
  765. </td>
  766. </tr>
  767. <tr class="row">
  768. <td class="col col-bgc">杂质(%)</td>
  769. <td class="col">
  770. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.impurity:''}}
  771. </td>
  772. <td class="col col-bgc">霉变粒(%)</td>
  773. <td class="col">
  774. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.mildewGrain:''}}
  775. </td>
  776. <td class="col col-bgc">扣杂</td>
  777. <td class="col">
  778. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.buckleMiscellaneous:''}}
  779. </td>
  780. <td class="col " colspan="2"></td>
  781. </tr>
  782. <tr class="row">
  783. <td class="col col-bgc">毛重(公斤)</td>
  784. <td class="col">{{tableData.grossWeight}}</td>
  785. <td class="col col-bgc">皮重(公斤)</td>
  786. <td class="col">{{tableData.tare}}</td>
  787. <td class="col col-bgc">扣重(公斤)</td>
  788. <td class="col">{{tableData.buckleMiscellaneous}}</td>
  789. <td class="col col-bgc">净重(公斤)</td>
  790. <td class="col">{{tableData.netWeight}}</td>
  791. </tr>
  792. <tr class="row">
  793. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  794. <td class="col" colspan="2">{{tableData.grossDate}}</td>
  795. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  796. <td class="col" colspan="2">{{tableData.tareDate}}</td>
  797. </tr>
  798. </table>
  799. <div class="bottom">
  800. <div class="bottom-row1">
  801. <div>毛检:{{tableData.secretaryWeigher}}</div>
  802. <div style="margin-left:60px">
  803. 皮检:{{tableData.skinInspector}}
  804. </div>
  805. <!-- <div>{{tableData.qualityDate}}</div> -->
  806. </div>
  807. <div class="bottom-row2">
  808. <!-- <div class="left">
  809. <img src="../img/add.png" alt="">
  810. </div> -->
  811. <div class="config">收货单位签名或盖章:</div>
  812. <div class="autograph">客户签名:</div>
  813. </div>
  814. <!-- <div class="bottom-row3">扫一扫</div> -->
  815. </div>
  816. </div>
  817. <div class="sfcard part3" v-if="isShowPrintType1">
  818. <div class="sfcard-content">
  819. <div class="sfcard-title">
  820. {{ printData.customerName}}{{ printData.identityAuthenticationInfo.customerNumberCard}}
  821. </div>
  822. <img :src="imageUrl1" class="avatar" />
  823. </div>
  824. <!-- <div class="sfcard-content">
  825. <div class="sfcard-title">
  826. {{ printData.customerName}}{{ 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.bankDeposit}}{{printData.bankCard}}
  835. </div>
  836. <img :src="imageUrl3" class="avatar" />
  837. </div>
  838. <!-- <div class="sfcard-content">
  839. <div class="sfcard-title">
  840. {{printData.bankDeposit}}{{printData.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="../cdn/vue/2.6.10/vue.min.js"></script>
  1025. <script src="../cdn/element-ui/2.13.2/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. let _data = {}
  1088. if (localStorage.getItem('print_pay_data')) {
  1089. _data = localStorage.getItem('print_pay_data')
  1090. } else {
  1091. _data = decodeURIComponent(this.getQueryVariable("dataList"))
  1092. }
  1093. if (!_data || _data == 'false') {
  1094. this.selectPrint = true
  1095. this.printData1 = JSON.parse(
  1096. localStorage.getItem('selectPrint_selectPrintList')
  1097. )
  1098. console.log("对象", this.printData1)
  1099. console.log("对象", this.printData)
  1100. for (let i = 0; i < this.printData1.length; i++) {
  1101. if (!this.printData1[i].identityAuthenticationInfo.compAddress) this.printData1[i]
  1102. .identityAuthenticationInfo.compAddress = ''
  1103. if (this.printData1[i].identityAuthenticationInfo.compAddress.length > 24) {
  1104. this.printData1[i].identityAuthenticationInfo.compAddress = this.printData1[i]
  1105. .identityAuthenticationInfo
  1106. .compAddress.substring(0, 24)
  1107. }
  1108. }
  1109. } else {
  1110. this.printData = JSON.parse(_data)
  1111. //地址过长截取
  1112. if (this.printData.identityAuthenticationInfo && this.printData.identityAuthenticationInfo.compAddress.length > 24) {
  1113. this.printData.identityAuthenticationInfo.compAddress = this.printData.identityAuthenticationInfo
  1114. .compAddress.substring(0, 24)
  1115. }
  1116. this.selectPrint = false
  1117. }
  1118. let _type = decodeURIComponent(this.getQueryVariable('type'))
  1119. this.showType = decodeURIComponent(
  1120. this.getQueryVariable('printTypeList')
  1121. )
  1122. // this.pzList = this.showType.split(',')
  1123. // if((this.showType.indexOf('打印结算凭证')>-1)&&this.pzList.length==1){
  1124. // this.onlyShowPz = true
  1125. // }
  1126. // this.pageType = decodeURIComponent(this.getQueryVariable('printTypeList'))
  1127. let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
  1128. if (!_data1) {
  1129. this.customerList1 = JSON.parse(
  1130. localStorage.getItem('selectPrint_selectCustomerList')
  1131. )
  1132. } else {
  1133. this.customerList = JSON.parse(_data1)
  1134. }
  1135. console.log('cwprint', localStorage.getItem('cwprint'))
  1136. var cwprint = localStorage.getItem('cwprint')
  1137. if (cwprint == 'true') {
  1138. if (this.selectPrint) {
  1139. for (let i = 0; i < this.customerList1.length; i++) {
  1140. let _url1 = this.customerList1[i].cardAddressUrl.split(',')
  1141. // let _url2 = this.customerList1[i].payeeAddressUrl.split(',')
  1142. this.customerList1[i].imgURl = {
  1143. imageUrl1: _url1[0],
  1144. imageUrl2: _url1[1],
  1145. // imageUrl3: _url2[0],
  1146. // imageUrl4: _url2[0]
  1147. }
  1148. }
  1149. for (let i = 0; i < this.printData1.length; i++) {
  1150. if (this.printData1[i].payeeAddressUrl) {
  1151. let _url2 = this.printData1[i].payeeAddressUrl.split(',')
  1152. this.printData1[i].imgURl = {
  1153. imageUrl3: _url2[0],
  1154. imageUrl4: _url2[1]
  1155. }
  1156. }
  1157. }
  1158. } else {
  1159. if (this.customerList.cardAddressUrl) {
  1160. this.identity = this.customerList.cardAddressUrl.split(',')
  1161. this.imageUrl1 = this.identity[0]
  1162. this.imageUrl2 = this.identity[1]
  1163. }
  1164. console.log(this.customerList)
  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. if (this.printData.payeeAddressUrl) {
  1171. this.bank = this.printData.payeeAddressUrl.split(',')
  1172. this.imageUrl3 = this.bank[0]
  1173. this.imageUrl4 = this.bank[1]
  1174. }
  1175. this.tableData = this.printData.weighingManagement
  1176. }
  1177. let _lsit = this.showType.split(',')
  1178. for (let i = 0; i < _lsit.length; i++) {
  1179. switch (_lsit[i]) {
  1180. case '打印身份证':
  1181. this.isShowPrintType1 = !this.isShowPrintType1
  1182. break
  1183. case '打印银行卡':
  1184. this.isShowPrintType2 = !this.isShowPrintType2
  1185. break
  1186. case '打印结算凭证':
  1187. this.isShowPrintType3 = !this.isShowPrintType3
  1188. break
  1189. case '打印检斤单':
  1190. this.isShowPrintType4 = !this.isShowPrintType4
  1191. break
  1192. case '打印回执单':
  1193. this.isShowPrintType5 = !this.isShowPrintType5
  1194. break
  1195. }
  1196. }
  1197. } else {
  1198. this.isShowPrintType3 = true
  1199. }
  1200. if (_type == 2) {
  1201. this.bigContent = true
  1202. this.smallContent = false
  1203. } else {
  1204. this.smallContent = true
  1205. this.bigContent = false
  1206. }
  1207. if (this.printData.compName == undefined) this.printData.compName = ''
  1208. document.title = this.printData.compName + '结算凭证'
  1209. window.print()
  1210. // sessionStorage.removeItem('selectPrint_selectPrintList');
  1211. // sessionStorage.removeItem('selectPrint_selectCustomerList');
  1212. window.onafterprint = function(event) {
  1213. window.history.back(-1)
  1214. }
  1215. },
  1216. watch: {}
  1217. })
  1218. </script>
  1219. </html>