payprint.html 49 KB

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