payprint1.html 49 KB

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