payprint1.html 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608
  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. .simple2 {
  20. /* height: 99vh !important; */
  21. }
  22. .content {
  23. width: 1000px;
  24. margin: auto;
  25. }
  26. table {
  27. width: 100%;
  28. text-align: center;
  29. border-collapse: collapse;
  30. }
  31. .col-bgc {
  32. background: #f6f7fb;
  33. }
  34. .bottom-row1 {
  35. display: flex;
  36. justify-content: space-between;
  37. margin: 20px 0;
  38. }
  39. .bottom-row2 {
  40. display: flex;
  41. margin: 10px 0;
  42. }
  43. img {
  44. width: 80px;
  45. height: 80px;
  46. /* margin-right: 118px; */
  47. }
  48. .leftimg {
  49. width: 80px;
  50. height: 80px;
  51. position: absolute;
  52. right: 20px;
  53. top: 3px;
  54. }
  55. .config {
  56. margin-right: 240px;
  57. }
  58. .bottom-row3 {
  59. margin: 10px 0;
  60. }
  61. .title {
  62. text-align: center;
  63. font-size: 24px;
  64. }
  65. .number {
  66. text-align: right;
  67. margin-bottom: 10px;
  68. }
  69. .number1 {
  70. text-align: right;
  71. margin-bottom: 10px;
  72. margin-top: 60px;
  73. }
  74. .small-row {
  75. display: flex;
  76. }
  77. .small-content {
  78. width: 400px;
  79. margin: 0 auto;
  80. border: 1px solid #ccc;
  81. padding: 20px 20px 160px 20px;
  82. position: absolute;
  83. top: 0;
  84. bottom: 0;
  85. left: 0;
  86. right: 0;
  87. margin: auto;
  88. height: 650px;
  89. }
  90. .small-title {
  91. text-align: center;
  92. font-size: 18px;
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. }
  97. .small-row {
  98. display: flex;
  99. justify-content: space-between;
  100. margin: 10px;
  101. }
  102. .small-img {
  103. margin-right: 0;
  104. }
  105. .sign {
  106. margin-right: 100px;
  107. }
  108. .header {
  109. display: flex;
  110. justify-content: space-between;
  111. font-size: 16px;
  112. margin: 10px 0;
  113. }
  114. .header1 {
  115. font-size: 24px;
  116. /* margin: 30px 60px 10px 60px; */
  117. display: flex;
  118. justify-content: center;
  119. }
  120. .line {
  121. height: 2px;
  122. width: 410px;
  123. margin: 3px auto;
  124. background: black;
  125. }
  126. .line:nth-of-type(3) {
  127. margin-bottom: 30px;
  128. }
  129. .header-top {
  130. display: flex;
  131. justify-content: space-between;
  132. }
  133. .sfcard {
  134. background: red;
  135. }
  136. .sfcard-content {
  137. /* display: flex;
  138. align-items: center;
  139. justify-content: space-evenly; */
  140. }
  141. .sfcard-content img {
  142. width: 100%;
  143. height: 80vh;
  144. }
  145. .sfcard-title {
  146. font-size: 28px;
  147. text-align: center;
  148. }
  149. .center {
  150. page-break-after: always
  151. }
  152. .part2 {
  153. page-break-after: always
  154. /* background: red; */
  155. }
  156. .part1 {
  157. page-break-after: always
  158. /* background: red; */
  159. }
  160. .bankcard {
  161. page-break-after: always
  162. /* background: red; */
  163. }
  164. .part5 {
  165. width: 100%
  166. }
  167. .paymentScreenshot {
  168. width: 100%;
  169. height: 130vh
  170. }
  171. /* .onlypz-center{
  172. height: 130vh;
  173. } */
  174. </style>
  175. </head>
  176. <body>
  177. <div id="app" v-cloak>
  178. <div v-if="selectPrint">
  179. <div v-for="(item,index) in printData1" :key="index">
  180. <div class="content">
  181. <!-- <div class="part5" v-if="isShowPrintType5">
  182. <div class="header1">
  183. 付款回执单
  184. </div>
  185. <img :src="printData1[index].codeUrl" class="paymentScreenshot" />
  186. </div> -->
  187. <div class="center" v-if="isShowPrintType3">
  188. <div class="header1">{{ printData1[index].compName}}结算凭证</div>
  189. <div class="line"></div>
  190. <div class="line"></div>
  191. <div class="header">
  192. <div>单位名称:{{ printData1[index].compName}}</div>
  193. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  194. </div>
  195. <div class="header-top">
  196. <div>单位:公斤/元</div>
  197. <div>No.</div>
  198. </div>
  199. <div class="header-top">
  200. <div>开票日期:{{printData1[index].createDate}}</div>
  201. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  202. <div class="number">
  203. {{dealNo(printData1[index].paymentNo)}}
  204. </div>
  205. </div>
  206. <table class="table">
  207. <tr class="row">
  208. <td rowspan="4" class="col col-bgc">买方</td>
  209. <td class="col col-bgc">单位名称</td>
  210. <td class="col" colspan="3">
  211. {{ printData1[index].compName}}
  212. </td>
  213. <td rowspan="4" class="col col-bgc">卖方</td>
  214. <td class="col col-bgc">姓名</td>
  215. <td class="col" colspan="4">
  216. {{ printData1[index].customerName}}
  217. </td>
  218. </tr>
  219. <tr class="row">
  220. <td class="col col-bgc">税务登记号</td>
  221. <td class="col" colspan="3">
  222. {{ printData1[index].taxRegistrationNo}}
  223. </td>
  224. <td class="col col-bgc">身份证号</td>
  225. <td class="col" colspan="4">
  226. {{ printData1[index].identityAuthenticationInfo.customerNumberCard}}
  227. </td>
  228. </tr>
  229. <tr class="row">
  230. <td class="col col-bgc">业务编号</td>
  231. <td class="col" colspan="3">
  232. {{ printData1[index].paymentNo}}
  233. </td>
  234. <td class="col col-bgc">卡号</td>
  235. <td class="col" colspan="4">
  236. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  237. </td>
  238. </tr>
  239. <tr class="row">
  240. <td class="col col-bgc">收货仓库</td>
  241. <td v-if="pengyuPrint" class="col" colspan="3">北京天维康油脂调销中心有限公司</td>
  242. <td v-if="!pengyuPrint" class="col" colspan="3">{{printData1[index].warehouseName}}</td>
  243. <td class="col col-bgc">地址</td>
  244. <td class="col" colspan="4">
  245. {{printData1[index].identityAuthenticationInfo.compAddress}}
  246. </td>
  247. </tr>
  248. <tr class="row">
  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">{{printData1[index].goodsName != '大豆'?'容重':'蛋白'}}</td>
  255. <td class="col col-bgc">毛重</td>
  256. <td class="col col-bgc">皮重</td>
  257. <td class="col col-bgc">扣重</td>
  258. <td class="col col-bgc">净重</td>
  259. </tr>
  260. <tr class="row">
  261. <td class="col">{{ printData1[index].goodsName}}</td>
  262. <td class="col">{{ printData1[index].type}}</td>
  263. <td class="col">
  264. {{ printData1[index].qualityInspectionManagement.grade}}
  265. </td>
  266. <td class="col">
  267. {{ printData1[index].qualityInspectionManagement.waterContent}}
  268. </td>
  269. <td class="col">
  270. {{ printData1[index].qualityInspectionManagement.impurity}}
  271. </td>
  272. <td class="col">
  273. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.bulkDensity:''}}
  274. </td>
  275. <td class="col">{{ printData1[index].grossWeight}}</td>
  276. <td class="col">{{ printData1[index].tare}}</td>
  277. <td class="col" v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'
  278. || printData1[index].netWeight == null
  279. || printData1[index].pureWeight == null">
  280. {{printData1[index].weighingManagement?printData1[index].weighingManagement.buckleMiscellaneous:''}}
  281. </td>
  282. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'
  283. && printData1[index].netWeight != null
  284. && printData1[index].pureWeight != null ">{{printData1[index].netWeight-printData1[index].pureWeight}}</td>
  285. <td class="col">{{ printData1[index].netWeight}}</td>
  286. </tr>
  287. <tr class="row">
  288. <td class="col col-bgc">纯重</td>
  289. <td class="col col-bgc">
  290. 单价
  291. </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. <td v-if="printData1[index].type=='潮粮'" class="col col-bgc">扣重比</td>
  298. <td class="col col-bgc">扣量%</td>
  299. <td :colspan="printData1[index].type == '潮粮'?1:2" class="col col-bgc">仓位号</td>
  300. </tr>
  301. <tr class="row">
  302. <td class="col">{{ printData1[index].pureWeight}}</td>
  303. <td class="col " v-if="printData1[index].type == '潮粮' && !pengyuPrint">
  304. {{printData1[index].tidalGrainPrice}}
  305. </td>
  306. <td class="col " v-if="printData1[index].type == '干粮' && !pengyuPrint">
  307. {{printData1[index].qualityInspectionManagement.dryGrainPrice}}
  308. </td>
  309. <td class="col " v-if="pengyuPrint">
  310. {{Number(printData1[index].unitContractPrice/1000).toFixed(3)}}
  311. </td>
  312. <td class="col ">{{ printData1[index].unitDeduction}}</td>
  313. <td class="col " v-if="pengyuPrint">
  314. {{Number(printData1[index].unitContractPrice/1000*printData1[index].pureWeight).toFixed(2)}}
  315. </td>
  316. <td class="col " v-if="!pengyuPrint">
  317. {{printData1[index].grainMoney}}
  318. </td>
  319. <td class="col "> {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.mildewGrain:''}}</td>
  320. <td class="col "> {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.jiaorenli:''}}</td>
  321. <td class="col "> {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.imperfectGrain:''}}</td>
  322. <td class="col ">{{compId=='6a713699e08c4cbc97a87f7648a95e3d'?'1.25':printData1[index].buckleWeightRatio}}</td>
  323. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'&&printData1[index].type=='潮粮'">{{ (printData1[index].qualityInspectionManagement.waterContent-14.5)*1.25}}</td>
  324. <td class="col " v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'&&printData1[index].type=='潮粮'"></td>
  325. <td :colspan="printData1[index].type == '潮粮'?1:2" class="col ">{{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.binNumber:''}}</td>
  326. <!-- <td class="col ">{{ printData1[index].unloadDeduction}}</td> -->
  327. </tr>
  328. <tr class="row">
  329. <td class="col col-bgc">卸车扣款</td>
  330. <td class="col col-bgc">质量扣款</td>
  331. <td class="col col-bgc">其他扣款</td>
  332. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  333. 纯重单价
  334. </td> -->
  335. <td class="col col-bgc">合计应付</td>
  336. <td class="col col-bgc">购粮性质</td>
  337. <td class="col col-bgc">车牌号</td>
  338. <td class="col col-bgc" colspan="4">记事</td>
  339. </tr>
  340. <tr class="row">
  341. <td class="col ">{{ printData1[index].unloadDeduction}}</td>
  342. <td class="col ">{{ printData1[index].qualityDeduction}}</td>
  343. <td class="col ">{{ printData1[index].otherDeduction}}</td>
  344. <!-- <td class="col " v-if="printData1[index].type == '潮粮'">
  345. {{ printData1[index].solidGrainPrice}}
  346. </td> -->
  347. <td class="col " v-if="pengyuPrint&&printData1[index].type=='潮粮'">
  348. {{Number(printData1[index].unitContractPrice/1000*printData1[index].pureWeight).toFixed(2)}}
  349. </td>
  350. <td class="col " v-if="pengyuPrint&&printData1[index].type!='潮粮'">
  351. {{Number(printData1[index].unitContractPrice/1000*printData1[index].weighingManagement.netWeight).toFixed(2)}}
  352. </td>
  353. <td class="col " v-if="!pengyuPrint">
  354. {{printData1[index].calculationPayable}}
  355. </td>
  356. <td class="col ">
  357. {{ printData1[index].qualityInspectionManagement.natureOfGrainPurchase}}
  358. </td>
  359. <td class="col ">{{ printData1[index].carNo}}</td>
  360. <td class="col " colspan="4">
  361. {{ printData1[index].remarks}}
  362. </td>
  363. </tr>
  364. <tr class="row">
  365. <td class="col col-bgc">实付金额</td>
  366. <td class="col " colspan="2">
  367. </td>
  368. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  369. <td class="col " v-if="!pengyuPrint" colspan="4">
  370. {{printData1[index].capitalize}}
  371. </td>
  372. <td class="col " v-if="pengyuPrint" colspan="4">
  373. </td>
  374. </tr>
  375. </table>
  376. <div class="bottom">
  377. <div class="bottom-row1">
  378. <div>
  379. 质检:{{ printData1[index].qualityInspectionManagement.qualityInspector}}
  380. </div>
  381. <div>
  382. 毛检:{{ printData1[index].weighingManagement.secretaryWeigher}}
  383. </div>
  384. <div>
  385. 皮检:{{ printData1[index].weighingManagement.skinInspector}}
  386. </div>
  387. <div>结算:{{ printData1[index].settlementClerk}}</div>
  388. <div>付款:{{ printData1[index].cashier}}</div>
  389. <div>复点:{{ }}</div>
  390. <div></div>
  391. </div>
  392. <div class="bottom-row2">
  393. <!-- <div class="left">
  394. <img src="../../../../public/img/add.png" alt="" />
  395. </div> -->
  396. <div class="config">收货单位签名或盖章</div>
  397. <div class="">客户签名</div>
  398. </div>
  399. <!-- <div class="bottom-row3">扫一扫</div> -->
  400. <!-- <div class="bottom-row4">
  401. <el-button type="primary">关闭</el-button>
  402. <el-button type="primary" @click="printSmall">打印小票</el-button>
  403. <el-button type="primary" @click="printBig">打印单据</el-button>
  404. </div> -->
  405. </div>
  406. </div>
  407. <div v-if="isShowPrintType4" class="part2">
  408. <div style="height: 120px;">
  409. <div class="title">入库检斤单</div>
  410. <!-- <div class="leftimg">
  411. <img :src="printData1[index].weighingManagement.codeUrl" alt="">
  412. </div> -->
  413. <div class="number1">{{printData1[index].weighingManagement.number}}</div>
  414. </div>
  415. <table class="table">
  416. <tr class="row">
  417. <td class="col col-bgc">客户姓名</td>
  418. <td class="col" colspan="2">{{printData1[index].weighingManagement.customer}}</td>
  419. <td class="col col-bgc">客户电话</td>
  420. <td class="col">{{printData1[index].weighingManagement.customerPhone}}</td>
  421. <td class="col col-bgc">车牌号</td>
  422. <td class="col" colspan="2">{{printData1[index].weighingManagement.carNumber}}</td>
  423. </tr>
  424. <tr class="row">
  425. <td class="col col-bgc">收货单位</td>
  426. <td class="col" colspan="2">{{printData1[index].weighingManagement.compName}}</td>
  427. <td class="col col-bgc">联系人</td>
  428. <td class="col">{{printData1[index].weighingManagement.person}}</td>
  429. <td class="col col-bgc">联系电话</td>
  430. <td class="col" colspan="2">{{printData1[index].weighingManagement.personPhone}}</td>
  431. </tr>
  432. <tr class="row">
  433. <td class="col col-bgc">货名</td>
  434. <td class="col">{{printData1[index].weighingManagement.goodsName}}</td>
  435. <td class="col col-bgc">类型</td>
  436. <td class="col">{{printData1[index].weighingManagement.type}}</td>
  437. <td class="col col-bgc">{{printData1[index].weighingManagement.goodsName == '大豆'?'蛋白':'容量(克/升)'}}</td>
  438. <td class="col">
  439. {{printData1[index].weighingManagement.goodsName == '大豆'?printData1[index].qualityInspectionManagement.protein:printData1[index].qualityInspectionManagement.bulkDensity}}
  440. </td>
  441. <td class="col col-bgc">{{printData1[index].weighingManagement.goodsName == '大豆'?'完整粒率(%)':'不完善粒(%)'}}</td>
  442. <td class="col">
  443. {{printData1[index].weighingManagement.goodsName == '大豆'?printData1[index].qualityInspectionManagement.completeGrain:printData1[index].qualityInspectionManagement.imperfectGrain}}
  444. </td>
  445. </tr>
  446. <tr class="row">
  447. <td class="col col-bgc">等级</td>
  448. <td class="col">
  449. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.grade:''}}
  450. </td>
  451. <td class="col col-bgc">水分(%)</td>
  452. <td class="col">
  453. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.waterContent:''}}
  454. </td>
  455. <td class="col col-bgc">热损伤(%)</td>
  456. <td class="col">
  457. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.jiaorenli:''}}
  458. </td>
  459. <td class="col col-bgc">质检时间</td>
  460. <td class="col">
  461. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.qualityDate:''}}
  462. </td>
  463. </tr>
  464. <tr class="row">
  465. <td class="col col-bgc">杂质(%)</td>
  466. <td class="col">
  467. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.impurity:''}}
  468. </td>
  469. <td class="col col-bgc">霉变粒(%)</td>
  470. <td class="col">
  471. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.mildewGrain:''}}
  472. </td>
  473. <td class="col col-bgc">扣杂</td>
  474. <td class="col">
  475. {{printData1[index].qualityInspectionManagement?printData1[index].qualityInspectionManagement.buckleMiscellaneous:''}}
  476. </td>
  477. <td class="col " colspan="2"></td>
  478. </tr>
  479. <tr class="row">
  480. <td class="col col-bgc">毛重(公斤)</td>
  481. <td class="col">{{printData1[index].weighingManagement.grossWeight}}</td>
  482. <td class="col col-bgc">皮重(公斤)</td>
  483. <td class="col">{{printData1[index].weighingManagement.tare}}</td>
  484. <td class="col col-bgc">扣重(公斤)</td>
  485. <td class="col" v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'
  486. || printData1[index].netWeight == null
  487. || printData1[index].pureWeight == null">
  488. {{printData1[index].weighingManagement?printData1[index].weighingManagement.buckleMiscellaneous:''}}
  489. </td>
  490. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'
  491. && printData1[index].netWeight != null
  492. && printData1[index].pureWeight != null ">{{printData1[index].netWeight-printData1[index].pureWeight}}</td>
  493. <!-- <td class="col">{{printData1[index].weighingManagement.buckleMiscellaneous}}</td> -->
  494. <td class="col col-bgc">净重(公斤)</td>
  495. <td class="col">{{printData1[index].weighingManagement.netWeight}}</td>
  496. </tr>
  497. <tr class="row">
  498. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  499. <td class="col" colspan="2">{{printData1[index].weighingManagement.grossDate}}</td>
  500. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  501. <td class="col" colspan="2">{{printData1[index].weighingManagement.tareDate}}</td>
  502. </tr>
  503. </table>
  504. <div class="bottom">
  505. <div class="bottom-row1">
  506. <div>毛检:{{printData1[index].weighingManagement.secretaryWeigher}}</div>
  507. <div style="margin-left:60px">
  508. 皮检:{{printData1[index].weighingManagement.skinInspector}}
  509. </div>
  510. <!-- <div>{{tableData.qualityDate}}</div> -->
  511. </div>
  512. <div class="bottom-row2">
  513. <!-- <div class="leftimg">
  514. <img src="../img/add.png" alt="">
  515. </div> -->
  516. <div class="config">收货单位签名或盖章:</div>
  517. <div class="autograph">客户签名:</div>
  518. </div>
  519. <!-- <div class="bottom-row3">扫一扫</div> -->
  520. </div>
  521. </div>
  522. <div class="part1" v-if="isShowPrintType1">
  523. <div class="sfcard-content">
  524. <div class="sfcard-title">
  525. {{ printData1[index].customerName}}{{printData1[index].identityAuthenticationInfo.customerNumberCard}}
  526. </div>
  527. <img :src="customerList1[index].imgURl.imageUrl1" class="avatar" />
  528. </div>
  529. <!-- <div class="sfcard-content">
  530. <div class="sfcard-title">
  531. {{
  532. printData1[index].customerName}}{{printData1[index].identityAuthenticationInfo.customerNumberCard}}
  533. </div>
  534. <img :src="customerList1[index].imgURl.imageUrl2" class="avatar" />
  535. </div> -->
  536. </div>
  537. <div class="bankcard" v-if="isShowPrintType2">
  538. <div class="sfcard-content part2">
  539. <div class="sfcard-title">
  540. {{printData1[index].bankDeposit}}{{printData1[index].bankCard}}
  541. </div>
  542. <!-- <img :src="customerList1[index].imgURl.imageUrl3" class="avatar" /> -->
  543. <img v-if="printData1[index].imgURl" :src="printData1[index].imgURl.imageUrl3" class="avatar" />
  544. <img v-else class="avatar" />
  545. <!-- <img v-if="printData1[index].imgURl" :src="printData1[index].imgURl.imageUrl4" class="avatar" />
  546. <img v-else class="avatar" /> -->
  547. </div>
  548. <!-- <div class="sfcard-content part2">
  549. <div class="sfcard-title">
  550. {{printData1[index].identityAuthenticationInfo.bankDeposit}}{{printData1[index].identityAuthenticationInfo.bankCard}}
  551. </div>
  552. <img :src="customerList1[index].imgURl.imageUrl4" class="avatar" />
  553. </div> -->
  554. </div>
  555. <div class="bankcard" v-if="isShowPrintType7&&printData1[index].selfCertificateURL">
  556. <div class="sfcard-content part2">
  557. <img v-if="printData1[index].selfCertificateURL" :src="printData1[index].selfCertificateURL" class="avatar" />
  558. </div>
  559. </div>
  560. </div>
  561. </div>
  562. </div>
  563. <div class="content" v-else>
  564. <!-- <div class="part5" v-if="isShowPrintType5">
  565. <div class="header1">
  566. 付款回执单
  567. </div>
  568. <img :src="printData.paymentScreenshot" class="paymentScreenshot" />
  569. </div> -->
  570. <div class="center part1" v-if="isShowPrintType3&&!isShowPrintType6" :class="printData.extra2? 'simple2':!selectPrint? 'simple':''">
  571. <div class="header1">{{ printData.compName}}结算凭证</div>
  572. <div class="line"></div>
  573. <div class="line"></div>
  574. <div class="header">
  575. <div>单位名称:{{ printData.compName}}</div>
  576. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  577. </div>
  578. <div class="header-top">
  579. <div>单位:公斤/元</div>
  580. <div>No.</div>
  581. </div>
  582. <div class="header-top">
  583. <div>开票日期:{{printData.createDate}}</div>
  584. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  585. <div class="number">{{dealNo(printData.paymentNo)}}</div>
  586. </div>
  587. <table class="table">
  588. <tr class="row">
  589. <td rowspan="4" class="col col-bgc">买方</td>
  590. <td class="col col-bgc">单位名称</td>
  591. <td class="col" colspan="3">{{ printData.compName}}</td>
  592. <td rowspan="4" class="col col-bgc">卖方</td>
  593. <td class="col col-bgc" v-if="!printData.extra1">姓名</td>
  594. <td class="col col-bgc" v-else>单位名称</td>
  595. <td class="col" colspan="4" v-if="!printData.extra1">{{ printData.customerName}}</td>
  596. <td class="col" colspan="4" v-else>{{ print_company_name}}</td>
  597. </tr>
  598. <tr class="row">
  599. <td class="col col-bgc">税务登记号</td>
  600. <td class="col" colspan="3">{{ printData.taxRegistrationNo}}</td>
  601. <td v-if="!printData.extra1" class="col col-bgc">身份证号</td>
  602. <td v-else class="col col-bgc">联系人</td>
  603. <td v-if="!printData.extra1" class="col" colspan="4">
  604. {{ printData.identityAuthenticationInfo.customerNumberCard}}
  605. </td>
  606. <td v-else class="col" colspan="4">
  607. {{ printData.customerName}}
  608. </td>
  609. </tr>
  610. <tr class="row">
  611. <td class="col col-bgc">业务编号</td>
  612. <td class="col" colspan="3">{{ printData.paymentNo}}</td>
  613. <td v-if="!printData.extra1" class="col col-bgc">卡号</td>
  614. <td v-else class="col col-bgc">联系电话</td>
  615. <td v-if="!printData.extra1" class="col" colspan="4">
  616. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  617. </td>
  618. <td v-else class="col" colspan="4">
  619. {{printData.customerPhone}}
  620. </td>
  621. </tr>
  622. <tr class="row">
  623. <td class="col col-bgc">收货仓库</td>
  624. <td v-if="pengyuPrint" class="col" colspan="3">北京天维康油脂调销中心有限公司</td>
  625. <td v-if="!pengyuPrint" class="col" colspan="3">{{printData.warehouseName}}</td>
  626. <td class="col col-bgc">地址</td>
  627. <td class="col" colspan="4">
  628. {{printData.identityAuthenticationInfo.compAddress}}
  629. </td>
  630. </tr>
  631. <tr class="row">
  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">{{printData.goodsName!= '大豆'?'容重':'蛋白'}}</td>
  638. <td class="col col-bgc">毛重</td>
  639. <td class="col col-bgc">皮重</td>
  640. <td class="col col-bgc">扣重</td>
  641. <td class="col col-bgc">净重</td>
  642. <!-- <td class="col col-bgc">出库净重</td> -->
  643. <!-- <td class="col col-bgc">纯重</td> -->
  644. </tr>
  645. <tr class="row">
  646. <td class="col">{{ printData.goodsName}}</td>
  647. <td class="col">{{ printData.type}}</td>
  648. <td class="col">
  649. {{ printData.qualityInspectionManagement.grade}}
  650. </td>
  651. <td class="col">
  652. {{ printData.qualityInspectionManagement.waterContent}}
  653. </td>
  654. <td class="col">
  655. {{ printData.qualityInspectionManagement.impurity}}
  656. </td>
  657. <td class="col">{{printData.goodsName== '大豆'?printData.qualityInspectionManagement.protein:printData.qualityInspectionManagement.bulkDensity}}</td>
  658. <td class="col">{{ printData.grossWeight}}</td>
  659. <td class="col">{{ printData.tare}}</td>
  660. <td class="col" v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'
  661. || printData.netWeight == null
  662. || printData.pureWeight == null">
  663. {{printData.weighingManagement?printData.weighingManagement.buckleMiscellaneous:''}}
  664. </td>
  665. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'
  666. && printData.netWeight != null
  667. && printData.pureWeight != null ">{{printData.netWeight-printData.pureWeight}}</td>
  668. <!-- <td class="col">
  669. {{ printData.weighingManagement.buckleMiscellaneous}}
  670. </td> -->
  671. <td class="col">{{ printData.netWeight}}</td>
  672. <!-- <td class="col">{{ printData.pureWeight}}</td> -->
  673. </tr>
  674. <tr class="row">
  675. <td class="col col-bgc">纯重</td>
  676. <td class="col col-bgc">单价</td>
  677. <td class="col col-bgc">扣单价</td>
  678. <td class="col col-bgc">粮款</td>
  679. <td class="col col-bgc">霉变粒</td>
  680. <td class="col col-bgc">热损伤</td>
  681. <td class="col col-bgc">{{printData.goodsName== '大豆'?'完整粒率(%)':"不完善粒"}}</td>
  682. <td class="col col-bgc">扣重比</td>
  683. <td v-if="printData.type == '潮粮'" class="col col-bgc">扣量%</td>
  684. <td :colspan="printData.type == '潮粮'?1:2" class="col col-bgc">仓位号</td>
  685. <!-- <td class="col col-bgc">1卸车扣款</td> -->
  686. </tr>
  687. <tr class="row">
  688. <td class="col">{{ printData.pureWeight}}</td>
  689. <td class="col " v-if="printData.type == '潮粮' && !pengyuPrint">
  690. {{printData.tidalGrainPrice}}
  691. </td>
  692. <td class="col " v-if="printData.type == '干粮' && !pengyuPrint">
  693. {{printData.qualityInspectionManagement.dryGrainPrice}}
  694. </td>
  695. <td class="col " v-if="pengyuPrint">
  696. {{Number(printData.unitContractPrice/1000).toFixed(3)}}
  697. </td>
  698. <td class="col ">{{ printData.unitDeduction}}</td>
  699. <td class="col " v-if="pengyuPrint">
  700. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  701. </td>
  702. <td class="col " v-if="!pengyuPrint">
  703. {{printData.grainMoney}}
  704. </td>
  705. <td class="col "> {{printData.qualityInspectionManagement.mildewGrain}}</td>
  706. <td class="col "> {{printData.qualityInspectionManagement.jiaorenli}}</td>
  707. <td class="col "> {{printData.goodsName== '大豆'?printData.qualityInspectionManagement.completeGrain:printData.qualityInspectionManagement.imperfectGrain}}</td>
  708. <td class="col ">{{compId=='6a713699e08c4cbc97a87f7648a95e3d'?'1.25':printData.buckleWeightRatio}}</td>
  709. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type == '潮粮'">{{ (printData.qualityInspectionManagement.waterContent-14.5)*1.25}}</td>
  710. <td class="col " v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type == '潮粮'"></td>
  711. <td :colspan="printData.type == '潮粮'?1:2" class="col ">{{printData.qualityInspectionManagement.binNumber}}</td>
  712. <!-- <td class="col ">{{ printData.unloadDeduction}}</td> -->
  713. </tr>
  714. <tr class="row">
  715. <td class="col col-bgc">卸车扣款</td>
  716. <td class="col col-bgc">质量扣款</td>
  717. <td class="col col-bgc">其他扣款</td>
  718. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  719. 纯重单价
  720. </td> -->
  721. <td class="col col-bgc">合计应付</td>
  722. <td class="col col-bgc">购粮性质</td>
  723. <td class="col col-bgc">车牌号</td>
  724. <td class="col col-bgc" colspan="4">记事</td>
  725. </tr>
  726. <tr class="row">
  727. <td class="col ">{{ printData.unloadDeduction}}</td>
  728. <td class="col ">{{ printData.qualityDeduction}}</td>
  729. <td class="col ">{{ printData.otherDeduction}}</td>
  730. <!-- <td class="col " v-if="printData.type == '潮粮'">
  731. {{ printData.solidGrainPrice}}
  732. </td> -->
  733. <td class="col " v-if="pengyuPrint&&printData.type == '潮粮'">
  734. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  735. </td>
  736. <td class="col " v-if="pengyuPrint&&printData.type != '潮粮'">
  737. {{Number(printData.unitContractPrice/1000*printData.weighingManagement.netWeight).toFixed(2)}}
  738. </td>
  739. <td class="col " v-if="!pengyuPrint">
  740. {{printData.calculationPayable}}
  741. </td>
  742. <td class="col ">
  743. {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
  744. </td>
  745. <td class="col ">{{ printData.carNo}}</td>
  746. <td class="col " colspan="4">{{ printData.remarks}}</td>
  747. </tr>
  748. <tr class="row">
  749. <td class="col col-bgc">实付金额</td>
  750. <td class="col " colspan="2"></td>
  751. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  752. <td class="col " v-if="!pengyuPrint" colspan="4">
  753. {{printData.capitalize}}
  754. </td>
  755. <td class="col " v-if="pengyuPrint" colspan="4">
  756. </td>
  757. </tr>
  758. </table>
  759. <div class="bottom">
  760. <div class="bottom-row1">
  761. <div>
  762. 质检:{{ printData.qualityInspectionManagement.qualityInspector}}
  763. </div>
  764. <div>
  765. 毛检:{{ printData.weighingManagement.secretaryWeigher}}
  766. </div>
  767. <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
  768. <div>结算:{{ printData.settlementClerk}}</div>
  769. <div>付款:{{ printData.cashier}}</div>
  770. <div>复点:{{ }}</div>
  771. <div></div>
  772. </div>
  773. <div class="bottom-row2">
  774. <!-- <div class="left">
  775. <img src="../../../../public/img/add.png" alt="" />
  776. </div> -->
  777. <div class="config">收货单位签名或盖章</div>
  778. <div class="">客户签名</div>
  779. </div>
  780. <!-- <div class="bottom-row3">扫一扫</div> -->
  781. <!-- <div class="bottom-row4">
  782. <el-button type="primary">关闭</el-button>
  783. <el-button type="primary" @click="printSmall">打印小票</el-button>
  784. <el-button type="primary" @click="printBig">打印单据</el-button>
  785. </div> -->
  786. </div>
  787. </div>
  788. <div class="center part1" v-if="isShowPrintType3&&printData.extra2||isShowPrintType6" :class="printData.extra2? 'simple2':!selectPrint? 'simple':''">
  789. <div class="header1">{{ print_company_name_ew}}结算凭证</div>
  790. <div class="line"></div>
  791. <div class="line"></div>
  792. <div class="header">
  793. <div>单位名称:{{ print_company_name_ew}}</div>
  794. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  795. </div>
  796. <div class="header-top">
  797. <div>单位:公斤/元</div>
  798. <div>No.</div>
  799. </div>
  800. <div class="header-top">
  801. <div>开票日期:{{printData.createDate}}</div>
  802. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  803. <div class="number">{{dealNo(printData.paymentNo)}}</div>
  804. </div>
  805. <table class="table">
  806. <td rowspan="2" class="col col-bgc">买方</td>
  807. <td class="col col-bgc">单位名称</td>
  808. <td class="col" colspan="3">{{ print_company_name_ew}}</td>
  809. <td rowspan="4" class="col col-bgc">客户</td>
  810. <td class="col col-bgc">姓名</td>
  811. <td class="col" colspan="4">{{printData.customerName}}</td>
  812. </tr>
  813. <tr class="row">
  814. <td class="col col-bgc">收货仓库</td>
  815. <td v-if="pengyuPrint" class="col" colspan="3">北京天维康油脂调销中心有限公司</td>
  816. <td v-if="!pengyuPrint" class="col" colspan="3">{{printData.warehouseName=='洮南新友谊兴旺库'?'建发农产品-洮南安定自管仓':printData.warehouseName}}</td>
  817. <td class="col col-bgc">身份证号</td>
  818. <td class="col" colspan="4">
  819. {{ printData.identityAuthenticationInfo.customerNumberCard}}
  820. </td>
  821. </tr>
  822. <tr class="row">
  823. <td rowspan="2" class="col col-bgc">卖方</td>
  824. <td class="col col-bgc">单位名称</td>
  825. <td class="col" colspan="3">{{ print_customer_name_ew}}</td>
  826. <td class="col col-bgc">卡号</td>
  827. <td class="col" colspan="4">
  828. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  829. </td>
  830. </tr>
  831. <tr class="row">
  832. <td class="col col-bgc">联系人</td>
  833. <td class="col" colspan="1">{{printData.warehouseName=='洮南新友谊兴旺库'?'程冬冬':''}}</td>
  834. <td class="col col-bgc">联系电话</td>
  835. <td class="col" colspan="1">{{printData.warehouseName=='洮南新友谊兴旺库'?'13946256986':''}}</td>
  836. <td class="col col-bgc">地址</td>
  837. <td class="col" colspan="4">{{printData.identityAuthenticationInfo.compAddress}}</td>
  838. </tr>
  839. <tr class="row">
  840. <td class="col col-bgc">货名</td>
  841. <td class="col col-bgc">类型</td>
  842. <td class="col col-bgc">等级</td>
  843. <td class="col col-bgc">水分%</td>
  844. <td class="col col-bgc">杂质%</td>
  845. <td class="col col-bgc">{{printData.goodsName== '大豆'?'蛋白':'容重'}}</td>
  846. <td class="col col-bgc">毛重</td>
  847. <td class="col col-bgc">皮重</td>
  848. <td class="col col-bgc">扣重</td>
  849. <td class="col col-bgc">净重</td>
  850. <!-- <td class="col col-bgc">出库净重</td> -->
  851. <!-- <td class="col col-bgc">纯重</td> -->
  852. </tr>
  853. <tr class="row">
  854. <td class="col">{{ printData.goodsName}}</td>
  855. <td class="col">{{ printData.type}}</td>
  856. <td class="col">
  857. {{ printData.qualityInspectionManagement.grade}}
  858. </td>
  859. <td class="col">
  860. {{ printData.qualityInspectionManagement.waterContent}}
  861. </td>
  862. <td class="col">
  863. {{ printData.qualityInspectionManagement.impurity}}
  864. </td>
  865. <td class="col">{{printData.goodsName== '大豆'?printData.qualityInspectionManagement.protein:printData.qualityInspectionManagement.bulkDensity}}</td>
  866. <td class="col">{{ printData.grossWeight}}</td>
  867. <td class="col">{{ printData.tare}}</td>
  868. <td class="col" v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'
  869. || printData.netWeight == null
  870. || printData.pureWeight == null">
  871. {{printData.weighingManagement?printData.weighingManagement.buckleMiscellaneous:''}}
  872. </td>
  873. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'
  874. && printData.netWeight != null
  875. && printData.pureWeight != null ">{{printData.netWeight-printData.pureWeight}}</td>
  876. <!-- <td class="col">
  877. {{ printData.weighingManagement.buckleMiscellaneous}}
  878. </td> -->
  879. <td class="col">{{ printData.netWeight}}</td>
  880. <!-- <td class="col">{{ printData.pureWeight}}</td> -->
  881. </tr>
  882. <tr class="row">
  883. <td class="col col-bgc">纯重</td>
  884. <td class="col col-bgc">单价</td>
  885. <td class="col col-bgc">扣单价</td>
  886. <td class="col col-bgc">粮款</td>
  887. <td class="col col-bgc">霉变粒</td>
  888. <td class="col col-bgc">热损伤</td>
  889. <td class="col col-bgc">{{printData.goodsName== '大豆'?'完整粒率(%)':'不完善粒'}}</td>
  890. <td class="col col-bgc">扣重比</td>
  891. <td v-if="printData.type == '潮粮'" class="col col-bgc">扣量%</td>
  892. <td :colspan="printData.type == '潮粮'?1:2" class="col col-bgc">仓位号</td>
  893. <!-- <td class="col col-bgc">1卸车扣款</td> -->
  894. </tr>
  895. <tr class="row">
  896. <td class="col">{{ printData.pureWeight}}</td>
  897. <td class="col " v-if="printData.type == '潮粮' && !pengyuPrint">
  898. {{printData.tidalGrainPrice}}
  899. </td>
  900. <td class="col " v-if="printData.type == '干粮' && !pengyuPrint">
  901. {{printData.qualityInspectionManagement.dryGrainPrice}}
  902. </td>
  903. <td class="col " v-if="pengyuPrint">
  904. {{Number(printData.unitContractPrice/1000).toFixed(3)}}
  905. </td>
  906. <td class="col ">{{ printData.unitDeduction}}</td>
  907. <td class="col " v-if="pengyuPrint">
  908. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  909. </td>
  910. <td class="col " v-if="!pengyuPrint">
  911. {{printData.grainMoney}}
  912. </td>
  913. <td class="col "> {{printData.qualityInspectionManagement.mildewGrain}}</td>
  914. <td class="col "> {{printData.qualityInspectionManagement.jiaorenli}}</td>
  915. <td class="col "> {{printData.goodsName== '大豆'?printData.qualityInspectionManagement.completeGrain:printData.qualityInspectionManagement.imperfectGrain}}</td>
  916. <td class="col ">{{compId=='6a713699e08c4cbc97a87f7648a95e3d'?'1.25':printData.buckleWeightRatio}}</td>
  917. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type != '潮粮'">{{ (printData.qualityInspectionManagement.waterContent-14.5)*1.25}}</td>
  918. <td class="col " v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type != '潮粮'"></td>
  919. <td :colspan="printData.type == '潮粮'?1:2" class="col ">{{printData.qualityInspectionManagement.binNumber}}</td>
  920. <!-- <td class="col ">{{ printData.unloadDeduction}}</td> -->
  921. </tr>
  922. <tr class="row">
  923. <td class="col col-bgc">卸车扣款</td>
  924. <td class="col col-bgc">质量扣款</td>
  925. <td class="col col-bgc">其他扣款</td>
  926. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  927. 纯重单价
  928. </td> -->
  929. <td class="col col-bgc">合计应付</td>
  930. <td class="col col-bgc">购粮性质</td>
  931. <td class="col col-bgc">车牌号</td>
  932. <td class="col col-bgc" colspan="4">记事</td>
  933. </tr>
  934. <tr class="row">
  935. <td class="col ">{{ printData.unloadDeduction}}</td>
  936. <td class="col ">{{ printData.qualityDeduction}}</td>
  937. <td class="col ">{{ printData.otherDeduction}}</td>
  938. <!-- <td class="col " v-if="printData.type == '潮粮'">
  939. {{ printData.solidGrainPrice}}
  940. </td> -->
  941. <td class="col " v-if="pengyuPrint&&printData.type != '潮粮'">
  942. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  943. </td>
  944. <td class="col " v-if="pengyuPrint&&printData.type != '潮粮'">
  945. {{Number(printData.unitContractPrice/1000*printData.weighingManagement.netWeight).toFixed(2)}}
  946. </td>
  947. <td class="col " v-if="!pengyuPrint">
  948. {{printData.calculationPayable}}
  949. </td>
  950. <td class="col ">
  951. {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
  952. </td>
  953. <td class="col ">{{ printData.carNo}}</td>
  954. <td class="col " colspan="4">{{ printData.remarks}}</td>
  955. </tr>
  956. <tr class="row">
  957. <td class="col col-bgc">实付金额</td>
  958. <td class="col " colspan="2"></td>
  959. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  960. <td class="col " v-if="!pengyuPrint" colspan="4">
  961. {{printData.capitalize}}
  962. </td>
  963. <td class="col " v-if="pengyuPrint" colspan="4">
  964. </td>
  965. </tr>
  966. </table>
  967. <div class="bottom">
  968. <div class="bottom-row1">
  969. <div>
  970. 质检:{{ printData.qualityInspectionManagement.qualityInspector}}
  971. </div>
  972. <div>
  973. 毛检:{{ printData.weighingManagement.secretaryWeigher}}
  974. </div>
  975. <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
  976. <div>结算:{{ printData.settlementClerk}}</div>
  977. <div>付款:{{ printData.cashier}}</div>
  978. <div>复点:{{ }}</div>
  979. <div></div>
  980. </div>
  981. <div class="bottom-row2">
  982. <!-- <div class="left">
  983. <img src="../../../../public/img/add.png" alt="" />
  984. </div> -->
  985. <div class="config">收货单位签名或盖章</div>
  986. <div class="config">客户签名</div>
  987. <div class="">司机签名</div>
  988. </div>
  989. <!-- <div class="bottom-row3">扫一扫</div> -->
  990. <!-- <div class="bottom-row4">
  991. <el-button type="primary">关闭</el-button>
  992. <el-button type="primary" @click="printSmall">打印小票</el-button>
  993. <el-button type="primary" @click="printBig">打印单据</el-button>
  994. </div> -->
  995. </div>
  996. </div>
  997. <div v-if="isShowPrintType4" class="part2">
  998. <div>
  999. <div class="title">入库检斤单</div>
  1000. <!-- <div class="leftimg">
  1001. <img :src="tableData.codeUrl" alt="">
  1002. </div> -->
  1003. <div class="number1">{{tableData.number}}</div>
  1004. </div>
  1005. <table class="table">
  1006. <tr class="row">
  1007. <td class="col col-bgc">客户姓名</td>
  1008. <td class="col" colspan="2">{{tableData.customer}}</td>
  1009. <td class="col col-bgc">客户电话</td>
  1010. <td class="col">{{tableData.customerPhone}}</td>
  1011. <td class="col col-bgc">车牌号</td>
  1012. <td class="col" colspan="2">{{tableData.carNumber}}</td>
  1013. </tr>
  1014. <tr class="row">
  1015. <td class="col col-bgc">收货单位</td>
  1016. <td class="col" colspan="2">{{tableData.compName}}</td>
  1017. <td class="col col-bgc">联系人</td>
  1018. <td class="col">{{tableData.person}}</td>
  1019. <td class="col col-bgc">联系电话</td>
  1020. <td class="col" colspan="2">{{tableData.personPhone}}</td>
  1021. </tr>
  1022. <tr class="row">
  1023. <td class="col col-bgc">货名</td>
  1024. <td class="col">{{tableData.goodsName}}</td>
  1025. <td class="col col-bgc">类型</td>
  1026. <td class="col">{{tableData.type}}</td>
  1027. <td class="col col-bgc">{{tableData.goodsName == '大豆'?'蛋白':'容量(克/升)'}}</td>
  1028. <td class="col">
  1029. {{tableData.goodsName == '大豆'?tableData.qualityInspectionManagement.protein:tableData.qualityInspectionManagement.bulkDensity}}
  1030. </td>
  1031. <td class="col col-bgc">{{tableData.goodsName == '大豆'?'完整粒率(%)':'不完善粒(%)'}}</td>
  1032. <td class="col">
  1033. {{tableData.goodsName == '大豆'?tableData.qualityInspectionManagement.completeGrain:tableData.qualityInspectionManagement.imperfectGrain}}
  1034. </td>
  1035. </tr>
  1036. <tr class="row">
  1037. <td class="col col-bgc">等级</td>
  1038. <td class="col">
  1039. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.grade:''}}
  1040. </td>
  1041. <td class="col col-bgc">水分(%)</td>
  1042. <td class="col">
  1043. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.waterContent:''}}
  1044. </td>
  1045. <td class="col col-bgc">热损伤(%)</td>
  1046. <td class="col">
  1047. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.jiaorenli:''}}
  1048. </td>
  1049. <td class="col col-bgc">质检时间</td>
  1050. <td class="col">
  1051. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.qualityDate:''}}
  1052. </td>
  1053. </tr>
  1054. <tr class="row">
  1055. <td class="col col-bgc">杂质(%)</td>
  1056. <td class="col">
  1057. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.impurity:''}}
  1058. </td>
  1059. <td class="col col-bgc">霉变粒(%)</td>
  1060. <td class="col">
  1061. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.mildewGrain:''}}
  1062. </td>
  1063. <td class="col col-bgc">扣杂</td>
  1064. <td class="col">
  1065. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.buckleMiscellaneous:''}}
  1066. </td>
  1067. <td class="col " colspan="2"></td>
  1068. </tr>
  1069. <tr class="row">
  1070. <td class="col col-bgc">毛重(公斤)</td>
  1071. <td class="col">{{tableData.grossWeight}}</td>
  1072. <td class="col col-bgc">皮重(公斤)</td>
  1073. <td class="col">{{tableData.tare}}</td>
  1074. <td class="col col-bgc">扣重(公斤)</td>
  1075. <td class="col">{{tableData.buckleMiscellaneous}}</td>
  1076. <td class="col col-bgc">净重(公斤)</td>
  1077. <td class="col">{{tableData.netWeight}}</td>
  1078. </tr>
  1079. <tr class="row">
  1080. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  1081. <td class="col" colspan="2">{{tableData.grossDate}}</td>
  1082. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  1083. <td class="col" colspan="2">{{tableData.tareDate}}</td>
  1084. </tr>
  1085. </table>
  1086. <div class="bottom">
  1087. <div class="bottom-row1">
  1088. <div>毛检:{{tableData.secretaryWeigher}}</div>
  1089. <div style="margin-left:60px">
  1090. 皮检:{{tableData.skinInspector}}
  1091. </div>
  1092. <!-- <div>{{tableData.qualityDate}}</div> -->
  1093. </div>
  1094. <div class="bottom-row2">
  1095. <!-- <div class="left">
  1096. <img src="../img/add.png" alt="">
  1097. </div> -->
  1098. <div class="config">收货单位签名或盖章:</div>
  1099. <div class="autograph">客户签名:</div>
  1100. </div>
  1101. <!-- <div class="bottom-row3">扫一扫</div> -->
  1102. </div>
  1103. </div>
  1104. <div class="sfcard part3" v-if="isShowPrintType1">
  1105. <div class="sfcard-content">
  1106. <div class="sfcard-title">
  1107. {{ printData.customerName}}{{ printData.identityAuthenticationInfo.customerNumberCard}}
  1108. </div>
  1109. <img :src="imageUrl1" class="avatar" />
  1110. </div>
  1111. <!-- <div class="sfcard-content">
  1112. <div class="sfcard-title">
  1113. {{ printData.customerName}}{{ printData.identityAuthenticationInfo.customerNumberCard}}
  1114. </div>
  1115. <img :src="imageUrl2" class="avatar" />
  1116. </div> -->
  1117. </div>
  1118. <div class="bankcard part4" v-if="isShowPrintType2">
  1119. <div class="sfcard-content">
  1120. <div class="sfcard-title">
  1121. {{printData.bankDeposit}}{{printData.bankCard}}
  1122. </div>
  1123. <img :src="imageUrl3" class="avatar" />
  1124. </div>
  1125. <!-- <div class="sfcard-content">
  1126. <div class="sfcard-title">
  1127. {{printData.bankDeposit}}{{printData.bankCard}}
  1128. </div>
  1129. <img :src="imageUrl4" class="avatar" />
  1130. </div> -->
  1131. </div>
  1132. </div>
  1133. <div class="small-content" v-if="smallContent">
  1134. <div class="small-title">
  1135. <div>
  1136. {{printData.compName}}结算凭证
  1137. </div>
  1138. <img class="small-img" src="../img/add.png" alt="" />
  1139. </div>
  1140. <div class="small-row">
  1141. <div>开票日期</div>
  1142. <div>{{printData.createDate}}</div>
  1143. </div>
  1144. <div class="small-row">
  1145. <div>买方单位名称</div>
  1146. <div>{{printData.compName}}</div>
  1147. </div>
  1148. <div class="small-row">
  1149. <div>买方姓名</div>
  1150. <div>{{printData.customerName}}</div>
  1151. </div>
  1152. <div class="small-row">
  1153. <div>税务登记号</div>
  1154. <div>{{printData.taxRegistrationNo}}</div>
  1155. </div>
  1156. <div class="small-row">
  1157. <div>身份证号</div>
  1158. <div>{{printData.customerNumberCard}}</div>
  1159. </div>
  1160. <div class="small-row">
  1161. <div>化验单号</div>
  1162. <div>{{printData.paymentNo}}</div>
  1163. </div>
  1164. <div class="small-row">
  1165. <div>卡号</div>
  1166. <div>{{printData.bankCard}}</div>
  1167. </div>
  1168. <div class="small-row">
  1169. <div>收货仓库</div>
  1170. <div>{{printData.warehouseName}}</div>
  1171. </div>
  1172. <div class="small-row">
  1173. <div>货名</div>
  1174. <div>{{printData.goodsName}}</div>
  1175. </div>
  1176. <div class="small-row">
  1177. <div>类型</div>
  1178. <div>{{printData.type}}</div>
  1179. </div>
  1180. <div class="small-row">
  1181. <div>等级</div>
  1182. <div>{{printData.grade}}</div>
  1183. </div>
  1184. <div class="small-row">
  1185. <div>水分%</div>
  1186. <div>{{printData.waterContent}}</div>
  1187. </div>
  1188. <div class="small-row">
  1189. <div>杂质%</div>
  1190. <div>{{printData.impurity}}</div>
  1191. </div>
  1192. <div class="small-row">
  1193. <div>毛重</div>
  1194. <div>{{printData.grossWeight}}</div>
  1195. </div>
  1196. <div class="small-row">
  1197. <div>皮重</div>
  1198. <div>{{printData.tare}}</div>
  1199. </div>
  1200. <div class="small-row">
  1201. <div>扣杂重</div>
  1202. <div>{{printData.weighingManagement.buckleMiscellaneous}}</div>
  1203. </div>
  1204. <div class="small-row">
  1205. <div>净重</div>
  1206. <div>{{printData.netWeight}}</div>
  1207. </div>
  1208. <div class="small-row">
  1209. <div>纯重</div>
  1210. <div>{{printData.pureWeight}}</div>
  1211. </div>
  1212. <div class="small-row">
  1213. <div>净重单价</div>
  1214. <div>{{printData.tidalGrainPrice}}</div>
  1215. </div>
  1216. <div class="small-row">
  1217. <div>粮款</div>
  1218. <div>{{printData.grainMoney}}</div>
  1219. </div>
  1220. <div class="small-row">
  1221. <div>称重补助</div>
  1222. <div>{{printData.weighingSubsidy}}</div>
  1223. </div>
  1224. <div class="small-row">
  1225. <div>运费补助</div>
  1226. <div>{{printData.freightSubsidy}}</div>
  1227. </div>
  1228. <div class="small-row">
  1229. <div>卸车补助</div>
  1230. <div>{{printData.unloadSubsidy}}</div>
  1231. </div>
  1232. <div class="small-row">
  1233. <div>其他补助</div>
  1234. <div>{{printData.otherSubsidy}}</div>
  1235. </div>
  1236. <div class="small-row">
  1237. <div>称重扣款</div>
  1238. <div>{{printData.weighingDeduction}}</div>
  1239. </div>
  1240. <div class="small-row">
  1241. <div>运费扣款</div>
  1242. <div>{{printData.freightDeduction}}</div>
  1243. </div>
  1244. <div class="small-row">
  1245. <div>卸车扣款</div>
  1246. <div>{{printData.unloadDeduction}}</div>
  1247. </div>
  1248. <div class="small-row">
  1249. <div>质量扣款</div>
  1250. <div>{{printData.qualityDeduction}}</div>
  1251. </div>
  1252. <div class="small-row">
  1253. <div>其他扣款</div>
  1254. <div>{{printData.otherDeduction}}</div>
  1255. </div>
  1256. <div class="small-row">
  1257. <div>纯重单价</div>
  1258. <div>{{printData.solidGrainPrice}}</div>
  1259. </div>
  1260. <div class="small-row">
  1261. <div>合计应付</div>
  1262. <div>{{printData.calculationPayable}}</div>
  1263. </div>
  1264. <div class="small-row">
  1265. <div>购粮性质</div>
  1266. <div>{{printData.natureOfGrainPurchase}}</div>
  1267. </div>
  1268. <div class="small-row">
  1269. <div>车牌号</div>
  1270. <div>{{printData.carNo}}</div>
  1271. </div>
  1272. <div class="small-row">
  1273. <div>记事</div>
  1274. <div>{{printData.remarks}}</div>
  1275. </div>
  1276. <div class="small-row">
  1277. <div>实付金额</div>
  1278. <div>{{printData.actualPayment}}</div>
  1279. </div>
  1280. <div class="small-row">
  1281. <div>人民币(大写)</div>
  1282. <div>{{printData.capitalize}}</div>
  1283. </div>
  1284. <div class="small-row">
  1285. <div>质检</div>
  1286. <div>{{printData.qualityInspector}}</div>
  1287. </div>
  1288. <div class="small-row">
  1289. <div>毛检</div>
  1290. <div>{{printData.secretaryWeigher}}</div>
  1291. </div>
  1292. <div class="small-row">
  1293. <div>皮检</div>
  1294. <div>{{printData.skinInspector}}</div>
  1295. </div>
  1296. <div class="small-row">
  1297. <div>结算</div>
  1298. <div>{{printData.settlementClerk}}</div>
  1299. </div>
  1300. <div class="small-row">
  1301. <div>付款</div>
  1302. <div>{{printData.actualPayment}}</div>
  1303. </div>
  1304. <div class="small-row">
  1305. <div>复点</div>
  1306. <div>&nbsp;&nbsp;&nbsp;</div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. </body>
  1311. <script src="../cdn/vue/2.6.10/vue.min.js"></script>
  1312. <script src="../cdn/element-ui/2.13.2/index.js"></script>
  1313. <script type="text/javascript">
  1314. new Vue({
  1315. el: '#app',
  1316. data: {
  1317. isShowPrintType1: false,
  1318. isShowPrintType2: false,
  1319. isShowPrintType3: false,
  1320. isShowPrintType4: false,
  1321. isShowPrintType5: false,
  1322. isShowPrintType6: false,
  1323. isShowPrintType7: false,
  1324. showType: [],
  1325. printData: {},
  1326. printData1: [],
  1327. customerList: {},
  1328. customerList1: [],
  1329. name: '',
  1330. bigContent: false,
  1331. smallContent: false,
  1332. date: '',
  1333. imageUrl1: '',
  1334. imageUrl2: '',
  1335. imageUrl3: '',
  1336. imageUrl4: '',
  1337. identity: [],
  1338. bank: [],
  1339. selectPrint: false,
  1340. onlyShowPz: false,
  1341. tableData: [],
  1342. compId: '',
  1343. print_company_name: '',
  1344. print_company_name_ew: '',
  1345. print_customer_name_ew: '',
  1346. pengyuPrint: 'false'
  1347. },
  1348. computed: {},
  1349. methods: {
  1350. dealNo(str) {
  1351. return str.slice(4)
  1352. },
  1353. tableRowClassName({
  1354. row,
  1355. rowIndex
  1356. }) {
  1357. if (rowIndex === 1) {
  1358. return 'warning-row'
  1359. } else if (rowIndex === 3) {
  1360. return 'success-row'
  1361. }
  1362. return ''
  1363. },
  1364. getQueryVariable(variable) {
  1365. var query = window.location.search.substring(1)
  1366. var vars = query.split('&')
  1367. for (var i = 0; i < vars.length; i++) {
  1368. var pair = vars[i].split('=')
  1369. if (pair[0] == variable) {
  1370. return pair[1]
  1371. }
  1372. }
  1373. return false
  1374. },
  1375. printSmall() {},
  1376. printBig() {}
  1377. },
  1378. mounted() {
  1379. this.pengyuPrint = localStorage.getItem('pengyuPrint')
  1380. if (localStorage.getItem('print_company_name')) {
  1381. this.print_company_name = localStorage.getItem('print_company_name')
  1382. }
  1383. if (localStorage.getItem('print_company_name_ew')) {
  1384. this.print_company_name_ew = localStorage.getItem('print_company_name_ew')
  1385. }
  1386. if (localStorage.getItem('print_customer_name_ew')) {
  1387. this.print_customer_name_ew = localStorage.getItem('print_customer_name_ew')
  1388. }
  1389. if (this.pengyuPrint == 'true') {
  1390. this.pengyuPrint = true
  1391. } else {
  1392. this.pengyuPrint = false
  1393. }
  1394. //公司id
  1395. this.compId = localStorage.getItem('ws-pf_compId')
  1396. if (this.compId == '5d164edcef03476dba6630f86dc96496') {
  1397. this.compId = '6a713699e08c4cbc97a87f7648a95e3d'
  1398. }
  1399. this.date = new Date().toLocaleString()
  1400. // let _data = decodeURIComponent(this.getQueryVariable('dataList'))
  1401. let _data = {}
  1402. if (localStorage.getItem('print_pay_data')) {
  1403. _data = localStorage.getItem('print_pay_data')
  1404. } else {
  1405. _data = decodeURIComponent(this.getQueryVariable("dataList"))
  1406. }
  1407. if (!_data || _data == 'false') {
  1408. this.selectPrint = true
  1409. this.printData1 = JSON.parse(
  1410. localStorage.getItem('selectPrint_selectPrintList')
  1411. )
  1412. console.log("对象", this.printData1)
  1413. console.log("对象", this.printData)
  1414. for (let i = 0; i < this.printData1.length; i++) {
  1415. if (!this.printData1[i].identityAuthenticationInfo.compAddress) this.printData1[i]
  1416. .identityAuthenticationInfo.compAddress = ''
  1417. if (this.printData1[i].identityAuthenticationInfo.compAddress.length > 24) {
  1418. this.printData1[i].identityAuthenticationInfo.compAddress = this.printData1[i]
  1419. .identityAuthenticationInfo
  1420. .compAddress.substring(0, 24)
  1421. }
  1422. }
  1423. } else {
  1424. this.printData = JSON.parse(_data)
  1425. //地址过长截取
  1426. if (this.printData.identityAuthenticationInfo && this.printData.identityAuthenticationInfo.compAddress.length > 24) {
  1427. this.printData.identityAuthenticationInfo.compAddress = this.printData.identityAuthenticationInfo
  1428. .compAddress.substring(0, 24)
  1429. }
  1430. this.selectPrint = false
  1431. }
  1432. let _type = decodeURIComponent(this.getQueryVariable('type'))
  1433. this.showType = decodeURIComponent(
  1434. this.getQueryVariable('printTypeList')
  1435. )
  1436. // this.pzList = this.showType.split(',')
  1437. // if((this.showType.indexOf('打印结算凭证')>-1)&&this.pzList.length==1){
  1438. // this.onlyShowPz = true
  1439. // }
  1440. // this.pageType = decodeURIComponent(this.getQueryVariable('printTypeList'))
  1441. let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
  1442. var cwprint = localStorage.getItem('cwprint')
  1443. if (!_data1) {
  1444. this.customerList1 = JSON.parse(
  1445. localStorage.getItem('selectPrint_selectCustomerList')
  1446. )
  1447. } else {
  1448. if (cwprint == 'true') {
  1449. this.customerList = JSON.parse(localStorage.getItem('printData1'))
  1450. }
  1451. }
  1452. console.log(this.customerList)
  1453. console.log('cwprint', localStorage.getItem('cwprint'))
  1454. console.log(this.selectPrint)
  1455. if (cwprint == 'true') {
  1456. if (this.selectPrint) {
  1457. for (let i = 0; i < this.customerList1.length; i++) {
  1458. let _url1 = this.customerList1[i].identityAuthenticationInfo.cardAddressUrl.split(',')
  1459. // let _url2 = this.customerList1[i].payeeAddressUrl.split(',')
  1460. this.customerList1[i].imgURl = {
  1461. imageUrl1: _url1[0],
  1462. imageUrl2: _url1[1],
  1463. // imageUrl3: _url2[0],
  1464. // imageUrl4: _url2[0]
  1465. }
  1466. }
  1467. for (let i = 0; i < this.printData1.length; i++) {
  1468. if (this.printData1[i].identityAuthenticationInfo.payeeAddressUrl) {
  1469. let _url2 = this.printData1[i].identityAuthenticationInfo.payeeAddressUrl.split(',')
  1470. this.printData1[i].imgURl = {
  1471. imageUrl3: _url2[0],
  1472. imageUrl4: _url2[1]
  1473. }
  1474. }
  1475. }
  1476. } else {
  1477. if (this.customerList.identityAuthenticationInfo.cardAddressUrl) {
  1478. this.identity = this.customerList.identityAuthenticationInfo.cardAddressUrl.split(',')
  1479. this.imageUrl1 = this.identity[0]
  1480. this.imageUrl2 = this.identity[1]
  1481. }
  1482. if (this.customerList.payeeAddressUrl) {
  1483. this.bank = this.customerList.payeeAddressUrl.split(',')
  1484. this.imageUrl3 = this.bank[0]
  1485. this.imageUrl4 = this.bank[1]
  1486. }
  1487. if (this.printData.payeeAddressUrl) {
  1488. this.bank = this.printData.payeeAddressUrl.split(',')
  1489. this.imageUrl3 = this.bank[0]
  1490. this.imageUrl4 = this.bank[1]
  1491. }
  1492. this.tableData = this.printData.weighingManagement
  1493. }
  1494. let _lsit = this.showType.split(',')
  1495. for (let i = 0; i < _lsit.length; i++) {
  1496. switch (_lsit[i]) {
  1497. case '打印身份证':
  1498. this.isShowPrintType1 = !this.isShowPrintType1
  1499. break
  1500. case '打印银行卡':
  1501. this.isShowPrintType2 = !this.isShowPrintType2
  1502. break
  1503. case '打印结算凭证':
  1504. this.isShowPrintType3 = !this.isShowPrintType3
  1505. break
  1506. case '打印检斤单':
  1507. this.isShowPrintType4 = !this.isShowPrintType4
  1508. break
  1509. case '打印回执单':
  1510. this.isShowPrintType5 = !this.isShowPrintType5
  1511. break
  1512. case '打印自产证明':
  1513. this.isShowPrintType7 = !this.isShowPrintType7
  1514. break
  1515. }
  1516. }
  1517. } else {
  1518. this.isShowPrintType3 = true
  1519. }
  1520. if (localStorage.getItem('print_alone_extra') == 'true') {
  1521. this.isShowPrintType6 = true
  1522. }
  1523. if (_type == 2) {
  1524. this.bigContent = true
  1525. this.smallContent = false
  1526. } else {
  1527. this.smallContent = true
  1528. this.bigContent = false
  1529. }
  1530. if (this.printData.compName == undefined) this.printData.compName = ''
  1531. document.title = this.printData.compName + '结算凭证'
  1532. window.print()
  1533. // sessionStorage.removeItem('selectPrint_selectPrintList');
  1534. // sessionStorage.removeItem('selectPrint_selectCustomerList');
  1535. window.onafterprint = function(event) {
  1536. window.history.back(-1)
  1537. }
  1538. },
  1539. watch: {}
  1540. })
  1541. </script>
  1542. </html>