payprint.html 48 KB

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