payprint1.html 82 KB

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