payprint.html 48 KB

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