payprint1.html 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655
  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 ">
  694. <!-- {{printData.netWeight-printData.pureWeight}} -->
  695. {{printData.weighingManagement?printData.weighingManagement.buckleMiscellaneous:''}}
  696. </td>
  697. <!-- <td class="col">
  698. {{ printData.weighingManagement.buckleMiscellaneous}}
  699. </td> -->
  700. <td class="col">{{ printData.netWeight}}</td>
  701. <!-- <td class="col">{{ printData.pureWeight}}</td> -->
  702. </tr>
  703. <tr class="row">
  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">粮款</td>
  708. <td class="col col-bgc">霉变粒</td>
  709. <td class="col col-bgc">热损伤</td>
  710. <td class="col col-bgc">{{printData.goodsName== '大豆'?'完整粒率(%)':"不完善粒"}}</td>
  711. <td class="col col-bgc">扣重比</td>
  712. <td v-if="printData.type == '潮粮'" class="col col-bgc">扣量%</td>
  713. <td :colspan="printData.type == '潮粮'?1:2" class="col col-bgc">仓位号</td>
  714. <!-- <td class="col col-bgc">1卸车扣款</td> -->
  715. </tr>
  716. <tr class="row">
  717. <td class="col">{{ printData.pureWeight}}</td>
  718. <td class="col " v-if="printData.type == '潮粮' && !pengyuPrint">
  719. {{printData.tidalGrainPrice}}
  720. </td>
  721. <td class="col " v-if="printData.type == '干粮' && !pengyuPrint">
  722. {{printData.qualityInspectionManagement.dryGrainPrice}}
  723. </td>
  724. <td class="col " v-if="pengyuPrint">
  725. {{Number(printData.unitContractPrice/1000).toFixed(3)}}
  726. </td>
  727. <td class="col ">{{ printData.unitDeduction}}</td>
  728. <td class="col " v-if="pengyuPrint">
  729. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  730. </td>
  731. <td class="col " v-if="!pengyuPrint">
  732. {{printData.grainMoney}}
  733. </td>
  734. <td class="col "> {{printData.qualityInspectionManagement.mildewGrain}}</td>
  735. <td class="col "> {{printData.qualityInspectionManagement.jiaorenli}}</td>
  736. <td class="col "> {{printData.goodsName==
  737. '大豆'?printData.qualityInspectionManagement.completeGrain:printData.qualityInspectionManagement.imperfectGrain}}
  738. </td>
  739. <td class="col ">
  740. {{compId=='6a713699e08c4cbc97a87f7648a95e3d'?'1.25':printData.buckleWeightRatio}}</td>
  741. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type == '潮粮'">{{
  742. (printData.qualityInspectionManagement.waterContent-14.5)*1.25}}</td>
  743. <td class="col " v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type == '潮粮'"></td>
  744. <td :colspan="printData.type == '潮粮'?1:2" class="col ">
  745. {{printData.qualityInspectionManagement.binNumber}}</td>
  746. <!-- <td class="col ">{{ printData.unloadDeduction}}</td> -->
  747. </tr>
  748. <tr class="row">
  749. <td class="col col-bgc">卸车扣款</td>
  750. <td class="col col-bgc">质量扣款</td>
  751. <td class="col col-bgc">其他扣款</td>
  752. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  753. 纯重单价
  754. </td> -->
  755. <td class="col col-bgc">合计应付</td>
  756. <td class="col col-bgc">购粮性质</td>
  757. <td class="col col-bgc">车牌号</td>
  758. <td class="col col-bgc" colspan="4">记事</td>
  759. </tr>
  760. <tr class="row">
  761. <td class="col ">{{ printData.unloadDeduction}}</td>
  762. <td class="col ">{{ printData.qualityDeduction}}</td>
  763. <td class="col ">{{ printData.otherDeduction}}</td>
  764. <!-- <td class="col " v-if="printData.type == '潮粮'">
  765. {{ printData.solidGrainPrice}}
  766. </td> -->
  767. <td class="col " v-if="pengyuPrint&&printData.type == '潮粮'">
  768. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  769. </td>
  770. <td class="col " v-if="pengyuPrint&&printData.type != '潮粮'">
  771. {{Number(printData.unitContractPrice/1000*printData.weighingManagement.netWeight).toFixed(2)}}
  772. </td>
  773. <td class="col " v-if="!pengyuPrint">
  774. {{printData.calculationPayable}}
  775. </td>
  776. <td class="col ">
  777. {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
  778. </td>
  779. <td class="col ">{{ printData.carNo}}</td>
  780. <td class="col " colspan="4">{{ printData.remarks}}</td>
  781. </tr>
  782. <tr class="row">
  783. <td class="col col-bgc">实付金额</td>
  784. <td class="col " colspan="2"></td>
  785. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  786. <td class="col " v-if="!pengyuPrint" colspan="4">
  787. {{printData.capitalize}}
  788. </td>
  789. <td class="col " v-if="pengyuPrint" colspan="4">
  790. </td>
  791. </tr>
  792. </table>
  793. <div class="bottom">
  794. <div class="bottom-row1">
  795. <div>
  796. 质检:{{ printData.qualityInspectionManagement.qualityInspector}}
  797. </div>
  798. <div>
  799. 毛检:{{ printData.weighingManagement.secretaryWeigher}}
  800. </div>
  801. <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
  802. <div>结算:{{ printData.settlementClerk}}</div>
  803. <div>付款:{{ printData.cashier}}</div>
  804. <div>复点:{{ }}</div>
  805. <div></div>
  806. </div>
  807. <div class="bottom-row2">
  808. <!-- <div class="left">
  809. <img src="../../../../public/img/add.png" alt="" />
  810. </div> -->
  811. <div class="config">收货单位签名或盖章</div>
  812. <div class="">客户签名</div>
  813. </div>
  814. <!-- <div class="bottom-row3">扫一扫</div> -->
  815. <!-- <div class="bottom-row4">
  816. <el-button type="primary">关闭</el-button>
  817. <el-button type="primary" @click="printSmall">打印小票</el-button>
  818. <el-button type="primary" @click="printBig">打印单据</el-button>
  819. </div> -->
  820. </div>
  821. </div>
  822. <div class="center part1" v-if="isShowPrintType3&&printData.extra2||isShowPrintType6"
  823. :class="printData.extra2? 'simple2':!selectPrint? 'simple':''">
  824. <div class="header1">{{ print_company_name_ew}}结算凭证</div>
  825. <div class="line"></div>
  826. <div class="line"></div>
  827. <div class="header">
  828. <div>单位名称:{{ print_company_name_ew}}</div>
  829. <!-- <div>税务登记编号:91230230MA1BNL7Q93</div> -->
  830. </div>
  831. <div class="header-top">
  832. <div>单位:公斤/元</div>
  833. <div>No.</div>
  834. </div>
  835. <div class="header-top">
  836. <div>开票日期:{{printData.createDate}}</div>
  837. <!-- <div>开票日期:{{new Date(yyyy,mm,dd)}}</div> -->
  838. <div class="number">{{dealNo(printData.paymentNo)}}</div>
  839. </div>
  840. <table class="table">
  841. <td rowspan="2" class="col col-bgc">买方</td>
  842. <td class="col col-bgc">单位名称</td>
  843. <td class="col" colspan="3">{{ print_company_name_ew}}</td>
  844. <td rowspan="4" class="col col-bgc">客户</td>
  845. <td class="col col-bgc">姓名</td>
  846. <td class="col" colspan="4">{{printData.customerName}}</td>
  847. </tr>
  848. <tr class="row">
  849. <td class="col col-bgc">收货仓库</td>
  850. <td v-if="pengyuPrint" class="col" colspan="3">上海首农投资控股有限公司</td>
  851. <td v-if="!pengyuPrint" class="col" colspan="3">
  852. {{printData.warehouseName=='洮南新友谊兴旺库'?'建发农产品-洮南安定自管仓':printData.warehouseName}}</td>
  853. <td class="col col-bgc">身份证号</td>
  854. <td class="col" colspan="4">
  855. {{ printData.identityAuthenticationInfo.customerNumberCard}}
  856. </td>
  857. </tr>
  858. <tr class="row">
  859. <td rowspan="2" class="col col-bgc">卖方</td>
  860. <td class="col col-bgc">单位名称</td>
  861. <td class="col" colspan="3">{{ print_customer_name_ew}}</td>
  862. <td class="col col-bgc">卡号</td>
  863. <td class="col" colspan="4">
  864. {{printData.identityAuthenticationInfo.bankDeposit}}{{printData.identityAuthenticationInfo.bankCard}}
  865. </td>
  866. </tr>
  867. <tr class="row">
  868. <td class="col col-bgc">联系人</td>
  869. <td class="col" colspan="1">{{printData.warehouseName=='洮南新友谊兴旺库'?'程冬冬':''}}</td>
  870. <td class="col col-bgc">联系电话</td>
  871. <td class="col" colspan="1">{{printData.warehouseName=='洮南新友谊兴旺库'?'13946256986':''}}</td>
  872. <td class="col col-bgc">地址</td>
  873. <td class="col" colspan="4">{{printData.identityAuthenticationInfo.compAddress}}</td>
  874. </tr>
  875. <tr class="row">
  876. <td class="col col-bgc">货名</td>
  877. <td class="col col-bgc">类型</td>
  878. <td class="col col-bgc">等级</td>
  879. <td class="col col-bgc">水分%</td>
  880. <td class="col col-bgc">杂质%</td>
  881. <td class="col col-bgc">{{printData.goodsName== '大豆'?'蛋白':'容重'}}</td>
  882. <td class="col col-bgc">毛重</td>
  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. </tr>
  889. <tr class="row">
  890. <td class="col">{{ printData.goodsName}}</td>
  891. <td class="col">{{ printData.type}}</td>
  892. <td class="col">
  893. {{ printData.qualityInspectionManagement.grade}}
  894. </td>
  895. <td class="col">
  896. {{ printData.qualityInspectionManagement.waterContent}}
  897. </td>
  898. <td class="col">
  899. {{ printData.qualityInspectionManagement.impurity}}
  900. </td>
  901. <td class="col">{{printData.goodsName==
  902. '大豆'?printData.qualityInspectionManagement.protein:printData.qualityInspectionManagement.bulkDensity}}
  903. </td>
  904. <td class="col">{{ printData.grossWeight}}</td>
  905. <td class="col">{{ printData.tare}}</td>
  906. <td class="col" v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'
  907. || printData.netWeight == null
  908. || printData.pureWeight == null">
  909. {{printData.weighingManagement?printData.weighingManagement.buckleMiscellaneous:''}}
  910. </td>
  911. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'
  912. && printData.netWeight != null
  913. && printData.pureWeight != null ">{{printData.netWeight-printData.pureWeight}}</td>
  914. <!-- <td class="col">
  915. {{ printData.weighingManagement.buckleMiscellaneous}}
  916. </td> -->
  917. <td class="col">{{ printData.netWeight}}</td>
  918. <!-- <td class="col">{{ printData.pureWeight}}</td> -->
  919. </tr>
  920. <tr class="row">
  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">粮款</td>
  925. <td class="col col-bgc">霉变粒</td>
  926. <td class="col col-bgc">热损伤</td>
  927. <td class="col col-bgc">{{printData.goodsName== '大豆'?'完整粒率(%)':'不完善粒'}}</td>
  928. <td class="col col-bgc">扣重比</td>
  929. <td v-if="printData.type == '潮粮'" class="col col-bgc">扣量%</td>
  930. <td :colspan="printData.type == '潮粮'?1:2" class="col col-bgc">仓位号</td>
  931. <!-- <td class="col col-bgc">1卸车扣款</td> -->
  932. </tr>
  933. <tr class="row">
  934. <td class="col">{{ printData.pureWeight}}</td>
  935. <td class="col " v-if="printData.type == '潮粮' && !pengyuPrint">
  936. {{printData.tidalGrainPrice}}
  937. </td>
  938. <td class="col " v-if="printData.type == '干粮' && !pengyuPrint">
  939. {{printData.qualityInspectionManagement.dryGrainPrice}}
  940. </td>
  941. <td class="col " v-if="pengyuPrint">
  942. {{Number(printData.unitContractPrice/1000).toFixed(3)}}
  943. </td>
  944. <td class="col ">{{ printData.unitDeduction}}</td>
  945. <td class="col " v-if="pengyuPrint">
  946. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  947. </td>
  948. <td class="col " v-if="!pengyuPrint">
  949. {{printData.grainMoney}}
  950. </td>
  951. <td class="col "> {{printData.qualityInspectionManagement.mildewGrain}}</td>
  952. <td class="col "> {{printData.qualityInspectionManagement.jiaorenli}}</td>
  953. <td class="col "> {{printData.goodsName==
  954. '大豆'?printData.qualityInspectionManagement.completeGrain:printData.qualityInspectionManagement.imperfectGrain}}
  955. </td>
  956. <td class="col ">
  957. {{compId=='6a713699e08c4cbc97a87f7648a95e3d'?'1.25':printData.buckleWeightRatio}}</td>
  958. <td class="col " v-if="compId=='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type != '潮粮'">{{
  959. (printData.qualityInspectionManagement.waterContent-14.5)*1.25}}</td>
  960. <td class="col " v-if="compId!='6a713699e08c4cbc97a87f7648a95e3d'&&printData.type != '潮粮'"></td>
  961. <td :colspan="printData.type == '潮粮'?1:2" class="col ">
  962. {{printData.qualityInspectionManagement.binNumber}}</td>
  963. <!-- <td class="col ">{{ printData.unloadDeduction}}</td> -->
  964. </tr>
  965. <tr class="row">
  966. <td class="col col-bgc">卸车扣款</td>
  967. <td class="col col-bgc">质量扣款</td>
  968. <td class="col col-bgc">其他扣款</td>
  969. <!-- <td class="col col-bgc" v-if="printData.type == '潮粮'">
  970. 纯重单价
  971. </td> -->
  972. <td class="col col-bgc">合计应付</td>
  973. <td class="col col-bgc">购粮性质</td>
  974. <td class="col col-bgc">车牌号</td>
  975. <td class="col col-bgc" colspan="4">记事</td>
  976. </tr>
  977. <tr class="row">
  978. <td class="col ">{{ printData.unloadDeduction}}</td>
  979. <td class="col ">{{ printData.qualityDeduction}}</td>
  980. <td class="col ">{{ printData.otherDeduction}}</td>
  981. <!-- <td class="col " v-if="printData.type == '潮粮'">
  982. {{ printData.solidGrainPrice}}
  983. </td> -->
  984. <td class="col " v-if="pengyuPrint&&printData.type != '潮粮'">
  985. {{Number(printData.unitContractPrice/1000*printData.pureWeight).toFixed(2)}}
  986. </td>
  987. <td class="col " v-if="pengyuPrint&&printData.type != '潮粮'">
  988. {{Number(printData.unitContractPrice/1000*printData.weighingManagement.netWeight).toFixed(2)}}
  989. </td>
  990. <td class="col " v-if="!pengyuPrint">
  991. {{printData.calculationPayable}}
  992. </td>
  993. <td class="col ">
  994. {{ printData.qualityInspectionManagement.natureOfGrainPurchase}}
  995. </td>
  996. <td class="col ">{{ printData.carNo}}</td>
  997. <td class="col " colspan="4">{{ printData.remarks}}</td>
  998. </tr>
  999. <tr class="row">
  1000. <td class="col col-bgc">实付金额</td>
  1001. <td class="col " colspan="2"></td>
  1002. <td class="col col-bgc" colspan="3">人民币(大写)</td>
  1003. <td class="col " v-if="!pengyuPrint" colspan="4">
  1004. {{printData.capitalize}}
  1005. </td>
  1006. <td class="col " v-if="pengyuPrint" colspan="4">
  1007. </td>
  1008. </tr>
  1009. </table>
  1010. <div class="bottom">
  1011. <div class="bottom-row1">
  1012. <div>
  1013. 质检:{{ printData.qualityInspectionManagement.qualityInspector}}
  1014. </div>
  1015. <div>
  1016. 毛检:{{ printData.weighingManagement.secretaryWeigher}}
  1017. </div>
  1018. <div>皮检:{{ printData.weighingManagement.skinInspector}}</div>
  1019. <div>结算:{{ printData.settlementClerk}}</div>
  1020. <div>付款:{{ printData.cashier}}</div>
  1021. <div>复点:{{ }}</div>
  1022. <div></div>
  1023. </div>
  1024. <div class="bottom-row2">
  1025. <!-- <div class="left">
  1026. <img src="../../../../public/img/add.png" alt="" />
  1027. </div> -->
  1028. <div class="config">收货单位签名或盖章</div>
  1029. <div class="config">客户签名</div>
  1030. <div class="">司机签名</div>
  1031. </div>
  1032. <!-- <div class="bottom-row3">扫一扫</div> -->
  1033. <!-- <div class="bottom-row4">
  1034. <el-button type="primary">关闭</el-button>
  1035. <el-button type="primary" @click="printSmall">打印小票</el-button>
  1036. <el-button type="primary" @click="printBig">打印单据</el-button>
  1037. </div> -->
  1038. </div>
  1039. </div>
  1040. <div v-if="isShowPrintType4" class="part2">
  1041. <div>
  1042. <div class="title">入库检斤单</div>
  1043. <!-- <div class="leftimg">
  1044. <img :src="tableData.codeUrl" alt="">
  1045. </div> -->
  1046. <div class="number1">{{tableData.number}}</div>
  1047. </div>
  1048. <table class="table">
  1049. <tr class="row">
  1050. <td class="col col-bgc">客户姓名</td>
  1051. <td class="col" colspan="2">{{tableData.customer}}</td>
  1052. <td class="col col-bgc">客户电话</td>
  1053. <td class="col">{{tableData.customerPhone}}</td>
  1054. <td class="col col-bgc">车牌号</td>
  1055. <td class="col" colspan="2">{{tableData.carNumber}}</td>
  1056. </tr>
  1057. <tr class="row">
  1058. <td class="col col-bgc">收货单位</td>
  1059. <td class="col" colspan="2">{{tableData.compName}}</td>
  1060. <td class="col col-bgc">联系人</td>
  1061. <td class="col">{{tableData.person}}</td>
  1062. <td class="col col-bgc">联系电话</td>
  1063. <td class="col" colspan="2">{{tableData.personPhone}}</td>
  1064. </tr>
  1065. <tr class="row">
  1066. <td class="col col-bgc">货名</td>
  1067. <td class="col">{{tableData.goodsName}}</td>
  1068. <td class="col col-bgc">类型</td>
  1069. <td class="col">{{tableData.type}}</td>
  1070. <td class="col col-bgc">{{tableData.goodsName == '大豆'?'蛋白':'容量(克/升)'}}</td>
  1071. <td class="col">
  1072. {{tableData.goodsName ==
  1073. '大豆'?tableData.qualityInspectionManagement.protein:tableData.qualityInspectionManagement.bulkDensity}}
  1074. </td>
  1075. <td class="col col-bgc">{{tableData.goodsName == '大豆'?'完整粒率(%)':'不完善粒(%)'}}</td>
  1076. <td class="col">
  1077. {{tableData.goodsName ==
  1078. '大豆'?tableData.qualityInspectionManagement.completeGrain:tableData.qualityInspectionManagement.imperfectGrain}}
  1079. </td>
  1080. </tr>
  1081. <tr class="row">
  1082. <td class="col col-bgc">等级</td>
  1083. <td class="col">
  1084. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.grade:''}}
  1085. </td>
  1086. <td class="col col-bgc">水分(%)</td>
  1087. <td class="col">
  1088. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.waterContent:''}}
  1089. </td>
  1090. <td class="col col-bgc">热损伤(%)</td>
  1091. <td class="col">
  1092. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.jiaorenli:''}}
  1093. </td>
  1094. <td class="col col-bgc">质检时间</td>
  1095. <td class="col">
  1096. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.qualityDate:''}}
  1097. </td>
  1098. </tr>
  1099. <tr class="row">
  1100. <td class="col col-bgc">杂质(%)</td>
  1101. <td class="col">
  1102. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.impurity:''}}
  1103. </td>
  1104. <td class="col col-bgc">霉变粒(%)</td>
  1105. <td class="col">
  1106. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.mildewGrain:''}}
  1107. </td>
  1108. <td class="col col-bgc">扣杂</td>
  1109. <td class="col">
  1110. {{tableData.qualityInspectionManagement?tableData.qualityInspectionManagement.buckleMiscellaneous:''}}
  1111. </td>
  1112. <td class="col " colspan="2"></td>
  1113. </tr>
  1114. <tr class="row">
  1115. <td class="col col-bgc">毛重(公斤)</td>
  1116. <td class="col">{{tableData.grossWeight}}</td>
  1117. <td class="col col-bgc">皮重(公斤)</td>
  1118. <td class="col">{{tableData.tare}}</td>
  1119. <td class="col col-bgc">扣重(公斤)</td>
  1120. <td class="col">{{tableData.buckleMiscellaneous}}</td>
  1121. <td class="col col-bgc">净重(公斤)</td>
  1122. <td class="col">{{tableData.netWeight}}</td>
  1123. </tr>
  1124. <tr class="row">
  1125. <td class="col col-bgc" colspan="2">毛重检斤时间</td>
  1126. <td class="col" colspan="2">{{tableData.grossDate}}</td>
  1127. <td class="col col-bgc" colspan="2">皮重检斤时间</td>
  1128. <td class="col" colspan="2">{{tableData.tareDate}}</td>
  1129. </tr>
  1130. </table>
  1131. <div class="bottom">
  1132. <div class="bottom-row1">
  1133. <div>毛检:{{tableData.secretaryWeigher}}</div>
  1134. <div style="margin-left:60px">
  1135. 皮检:{{tableData.skinInspector}}
  1136. </div>
  1137. <!-- <div>{{tableData.qualityDate}}</div> -->
  1138. </div>
  1139. <div class="bottom-row2">
  1140. <!-- <div class="left">
  1141. <img src="../img/add.png" alt="">
  1142. </div> -->
  1143. <div class="config">收货单位签名或盖章:</div>
  1144. <div class="autograph">客户签名:</div>
  1145. </div>
  1146. <!-- <div class="bottom-row3">扫一扫</div> -->
  1147. </div>
  1148. </div>
  1149. <div class="sfcard part3" v-if="isShowPrintType1">
  1150. <div class="sfcard-content">
  1151. <div class="sfcard-title">
  1152. {{ printData.customerName}}{{ printData.identityAuthenticationInfo.customerNumberCard}}
  1153. </div>
  1154. <img :src="imageUrl1" class="avatar" />
  1155. </div>
  1156. <!-- <div class="sfcard-content">
  1157. <div class="sfcard-title">
  1158. {{ printData.customerName}}{{ printData.identityAuthenticationInfo.customerNumberCard}}
  1159. </div>
  1160. <img :src="imageUrl2" class="avatar" />
  1161. </div> -->
  1162. </div>
  1163. <div class="bankcard part4" v-if="isShowPrintType2">
  1164. <div class="sfcard-content">
  1165. <div class="sfcard-title">
  1166. {{printData.bankDeposit}}{{printData.bankCard}}
  1167. </div>
  1168. <img :src="imageUrl3" class="avatar" />
  1169. </div>
  1170. <!-- <div class="sfcard-content">
  1171. <div class="sfcard-title">
  1172. {{printData.bankDeposit}}{{printData.bankCard}}
  1173. </div>
  1174. <img :src="imageUrl4" class="avatar" />
  1175. </div> -->
  1176. </div>
  1177. </div>
  1178. <div class="small-content" v-if="smallContent">
  1179. <div class="small-title">
  1180. <div>
  1181. {{printData.compName}}结算凭证
  1182. </div>
  1183. <img class="small-img" src="../img/add.png" alt="" />
  1184. </div>
  1185. <div class="small-row">
  1186. <div>开票日期</div>
  1187. <div>{{printData.createDate}}</div>
  1188. </div>
  1189. <div class="small-row">
  1190. <div>买方单位名称</div>
  1191. <div>{{printData.compName}}</div>
  1192. </div>
  1193. <div class="small-row">
  1194. <div>买方姓名</div>
  1195. <div>{{printData.customerName}}</div>
  1196. </div>
  1197. <div class="small-row">
  1198. <div>税务登记号</div>
  1199. <div>{{printData.taxRegistrationNo}}</div>
  1200. </div>
  1201. <div class="small-row">
  1202. <div>身份证号</div>
  1203. <div>{{printData.customerNumberCard}}</div>
  1204. </div>
  1205. <div class="small-row">
  1206. <div>化验单号</div>
  1207. <div>{{printData.paymentNo}}</div>
  1208. </div>
  1209. <div class="small-row">
  1210. <div>卡号</div>
  1211. <div>{{printData.bankCard}}</div>
  1212. </div>
  1213. <div class="small-row">
  1214. <div>收货仓库</div>
  1215. <div>{{printData.warehouseName}}</div>
  1216. </div>
  1217. <div class="small-row">
  1218. <div>货名</div>
  1219. <div>{{printData.goodsName}}</div>
  1220. </div>
  1221. <div class="small-row">
  1222. <div>类型</div>
  1223. <div>{{printData.type}}</div>
  1224. </div>
  1225. <div class="small-row">
  1226. <div>等级</div>
  1227. <div>{{printData.grade}}</div>
  1228. </div>
  1229. <div class="small-row">
  1230. <div>水分%</div>
  1231. <div>{{printData.waterContent}}</div>
  1232. </div>
  1233. <div class="small-row">
  1234. <div>杂质%</div>
  1235. <div>{{printData.impurity}}</div>
  1236. </div>
  1237. <div class="small-row">
  1238. <div>毛重</div>
  1239. <div>{{printData.grossWeight}}</div>
  1240. </div>
  1241. <div class="small-row">
  1242. <div>皮重</div>
  1243. <div>{{printData.tare}}</div>
  1244. </div>
  1245. <div class="small-row">
  1246. <div>扣杂重</div>
  1247. <div>{{printData.weighingManagement.buckleMiscellaneous}}</div>
  1248. </div>
  1249. <div class="small-row">
  1250. <div>净重</div>
  1251. <div>{{printData.netWeight}}</div>
  1252. </div>
  1253. <div class="small-row">
  1254. <div>纯重</div>
  1255. <div>{{printData.pureWeight}}</div>
  1256. </div>
  1257. <div class="small-row">
  1258. <div>净重单价</div>
  1259. <div>{{printData.tidalGrainPrice}}</div>
  1260. </div>
  1261. <div class="small-row">
  1262. <div>粮款</div>
  1263. <div>{{printData.grainMoney}}</div>
  1264. </div>
  1265. <div class="small-row">
  1266. <div>称重补助</div>
  1267. <div>{{printData.weighingSubsidy}}</div>
  1268. </div>
  1269. <div class="small-row">
  1270. <div>运费补助</div>
  1271. <div>{{printData.freightSubsidy}}</div>
  1272. </div>
  1273. <div class="small-row">
  1274. <div>卸车补助</div>
  1275. <div>{{printData.unloadSubsidy}}</div>
  1276. </div>
  1277. <div class="small-row">
  1278. <div>其他补助</div>
  1279. <div>{{printData.otherSubsidy}}</div>
  1280. </div>
  1281. <div class="small-row">
  1282. <div>称重扣款</div>
  1283. <div>{{printData.weighingDeduction}}</div>
  1284. </div>
  1285. <div class="small-row">
  1286. <div>运费扣款</div>
  1287. <div>{{printData.freightDeduction}}</div>
  1288. </div>
  1289. <div class="small-row">
  1290. <div>卸车扣款</div>
  1291. <div>{{printData.unloadDeduction}}</div>
  1292. </div>
  1293. <div class="small-row">
  1294. <div>质量扣款</div>
  1295. <div>{{printData.qualityDeduction}}</div>
  1296. </div>
  1297. <div class="small-row">
  1298. <div>其他扣款</div>
  1299. <div>{{printData.otherDeduction}}</div>
  1300. </div>
  1301. <div class="small-row">
  1302. <div>纯重单价</div>
  1303. <div>{{printData.solidGrainPrice}}</div>
  1304. </div>
  1305. <div class="small-row">
  1306. <div>合计应付</div>
  1307. <div>{{printData.calculationPayable}}</div>
  1308. </div>
  1309. <div class="small-row">
  1310. <div>购粮性质</div>
  1311. <div>{{printData.natureOfGrainPurchase}}</div>
  1312. </div>
  1313. <div class="small-row">
  1314. <div>车牌号</div>
  1315. <div>{{printData.carNo}}</div>
  1316. </div>
  1317. <div class="small-row">
  1318. <div>记事</div>
  1319. <div>{{printData.remarks}}</div>
  1320. </div>
  1321. <div class="small-row">
  1322. <div>实付金额</div>
  1323. <div>{{printData.actualPayment}}</div>
  1324. </div>
  1325. <div class="small-row">
  1326. <div>人民币(大写)</div>
  1327. <div>{{printData.capitalize}}</div>
  1328. </div>
  1329. <div class="small-row">
  1330. <div>质检</div>
  1331. <div>{{printData.qualityInspector}}</div>
  1332. </div>
  1333. <div class="small-row">
  1334. <div>毛检</div>
  1335. <div>{{printData.secretaryWeigher}}</div>
  1336. </div>
  1337. <div class="small-row">
  1338. <div>皮检</div>
  1339. <div>{{printData.skinInspector}}</div>
  1340. </div>
  1341. <div class="small-row">
  1342. <div>结算</div>
  1343. <div>{{printData.settlementClerk}}</div>
  1344. </div>
  1345. <div class="small-row">
  1346. <div>付款</div>
  1347. <div>{{printData.actualPayment}}</div>
  1348. </div>
  1349. <div class="small-row">
  1350. <div>复点</div>
  1351. <div>&nbsp;&nbsp;&nbsp;</div>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. </body>
  1356. <script src="../cdn/vue/2.6.10/vue.min.js"></script>
  1357. <script src="../cdn/element-ui/2.13.2/index.js"></script>
  1358. <script type="text/javascript">
  1359. new Vue({
  1360. el: '#app',
  1361. data: {
  1362. isShowPrintType1: false,
  1363. isShowPrintType2: false,
  1364. isShowPrintType3: false,
  1365. isShowPrintType4: false,
  1366. isShowPrintType5: false,
  1367. isShowPrintType6: false,
  1368. isShowPrintType7: false,
  1369. showType: [],
  1370. printData: {},
  1371. printData1: [],
  1372. customerList: {},
  1373. customerList1: [],
  1374. name: '',
  1375. bigContent: false,
  1376. smallContent: false,
  1377. date: '',
  1378. imageUrl1: '',
  1379. imageUrl2: '',
  1380. imageUrl3: '',
  1381. imageUrl4: '',
  1382. identity: [],
  1383. bank: [],
  1384. selectPrint: false,
  1385. onlyShowPz: false,
  1386. tableData: [],
  1387. compId: '',
  1388. print_company_name: '',
  1389. print_company_name_ew: '',
  1390. print_customer_name_ew: '',
  1391. pengyuPrint: 'false'
  1392. },
  1393. computed: {},
  1394. methods: {
  1395. dealNo(str) {
  1396. return str.slice(4)
  1397. },
  1398. tableRowClassName({
  1399. row,
  1400. rowIndex
  1401. }) {
  1402. if (rowIndex === 1) {
  1403. return 'warning-row'
  1404. } else if (rowIndex === 3) {
  1405. return 'success-row'
  1406. }
  1407. return ''
  1408. },
  1409. getQueryVariable(variable) {
  1410. var query = window.location.search.substring(1)
  1411. var vars = query.split('&')
  1412. for (var i = 0; i < vars.length; i++) {
  1413. var pair = vars[i].split('=')
  1414. if (pair[0] == variable) {
  1415. return pair[1]
  1416. }
  1417. }
  1418. return false
  1419. },
  1420. printSmall() { },
  1421. printBig() { }
  1422. },
  1423. mounted() {
  1424. this.pengyuPrint = localStorage.getItem('pengyuPrint')
  1425. if (localStorage.getItem('print_company_name')) {
  1426. this.print_company_name = localStorage.getItem('print_company_name')
  1427. }
  1428. if (localStorage.getItem('print_company_name_ew')) {
  1429. this.print_company_name_ew = localStorage.getItem('print_company_name_ew')
  1430. }
  1431. if (localStorage.getItem('print_customer_name_ew')) {
  1432. this.print_customer_name_ew = localStorage.getItem('print_customer_name_ew')
  1433. }
  1434. if (this.pengyuPrint == 'true') {
  1435. this.pengyuPrint = true
  1436. } else {
  1437. this.pengyuPrint = false
  1438. }
  1439. //公司id
  1440. this.compId = localStorage.getItem('ws-pf_compId')
  1441. if (this.compId == 'd4031a7c77694a749058ec87da1a4ff1') {
  1442. this.compId = '6a713699e08c4cbc97a87f7648a95e3d'
  1443. }
  1444. this.date = new Date().toLocaleString()
  1445. // let _data = decodeURIComponent(this.getQueryVariable('dataList'))
  1446. let _data = {}
  1447. if (localStorage.getItem('print_pay_data')) {
  1448. _data = localStorage.getItem('print_pay_data')
  1449. } else {
  1450. _data = decodeURIComponent(this.getQueryVariable("dataList"))
  1451. }
  1452. if (!_data || _data == 'false') {
  1453. this.selectPrint = true
  1454. this.printData1 = JSON.parse(
  1455. localStorage.getItem('selectPrint_selectPrintList')
  1456. )
  1457. console.log("对象", this.printData1)
  1458. console.log("对象", this.printData)
  1459. for (let i = 0; i < this.printData1.length; i++) {
  1460. if (!this.printData1[i].identityAuthenticationInfo.compAddress) this.printData1[i]
  1461. .identityAuthenticationInfo.compAddress = ''
  1462. if (this.printData1[i].identityAuthenticationInfo.compAddress.length > 24) {
  1463. this.printData1[i].identityAuthenticationInfo.compAddress = this.printData1[i]
  1464. .identityAuthenticationInfo
  1465. .compAddress.substring(0, 24)
  1466. }
  1467. }
  1468. } else {
  1469. this.printData = JSON.parse(_data)
  1470. //地址过长截取
  1471. if (this.printData.identityAuthenticationInfo && this.printData.identityAuthenticationInfo.compAddress.length > 24) {
  1472. this.printData.identityAuthenticationInfo.compAddress = this.printData.identityAuthenticationInfo
  1473. .compAddress.substring(0, 24)
  1474. }
  1475. this.selectPrint = false
  1476. }
  1477. let _type = decodeURIComponent(this.getQueryVariable('type'))
  1478. this.showType = decodeURIComponent(
  1479. this.getQueryVariable('printTypeList')
  1480. )
  1481. // this.pzList = this.showType.split(',')
  1482. // if((this.showType.indexOf('打印结算凭证')>-1)&&this.pzList.length==1){
  1483. // this.onlyShowPz = true
  1484. // }
  1485. // this.pageType = decodeURIComponent(this.getQueryVariable('printTypeList'))
  1486. let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
  1487. var cwprint = localStorage.getItem('cwprint')
  1488. if (!_data1) {
  1489. this.customerList1 = JSON.parse(
  1490. localStorage.getItem('selectPrint_selectCustomerList')
  1491. )
  1492. } else {
  1493. if (cwprint == 'true') {
  1494. this.customerList = JSON.parse(localStorage.getItem('printData1'))
  1495. }
  1496. }
  1497. console.log(this.customerList)
  1498. console.log('cwprint', localStorage.getItem('cwprint'))
  1499. console.log(this.selectPrint)
  1500. if (cwprint == 'true') {
  1501. if (this.selectPrint) {
  1502. for (let i = 0; i < this.customerList1.length; i++) {
  1503. let _url1 = this.customerList1[i].identityAuthenticationInfo.cardAddressUrl.split(',')
  1504. // let _url2 = this.customerList1[i].payeeAddressUrl.split(',')
  1505. this.customerList1[i].imgURl = {
  1506. imageUrl1: _url1[0],
  1507. imageUrl2: _url1[1],
  1508. // imageUrl3: _url2[0],
  1509. // imageUrl4: _url2[0]
  1510. }
  1511. }
  1512. for (let i = 0; i < this.printData1.length; i++) {
  1513. if (this.printData1[i].identityAuthenticationInfo.payeeAddressUrl) {
  1514. let _url2 = this.printData1[i].identityAuthenticationInfo.payeeAddressUrl.split(',')
  1515. this.printData1[i].imgURl = {
  1516. imageUrl3: _url2[0],
  1517. imageUrl4: _url2[1]
  1518. }
  1519. }
  1520. }
  1521. } else {
  1522. if (this.customerList.identityAuthenticationInfo.cardAddressUrl) {
  1523. this.identity = this.customerList.identityAuthenticationInfo.cardAddressUrl.split(',')
  1524. this.imageUrl1 = this.identity[0]
  1525. this.imageUrl2 = this.identity[1]
  1526. }
  1527. if (this.customerList.payeeAddressUrl) {
  1528. this.bank = this.customerList.payeeAddressUrl.split(',')
  1529. this.imageUrl3 = this.bank[0]
  1530. this.imageUrl4 = this.bank[1]
  1531. }
  1532. if (this.printData.payeeAddressUrl) {
  1533. this.bank = this.printData.payeeAddressUrl.split(',')
  1534. this.imageUrl3 = this.bank[0]
  1535. this.imageUrl4 = this.bank[1]
  1536. }
  1537. this.tableData = this.printData.weighingManagement
  1538. }
  1539. let _lsit = this.showType.split(',')
  1540. for (let i = 0; i < _lsit.length; i++) {
  1541. switch (_lsit[i]) {
  1542. case '打印身份证':
  1543. this.isShowPrintType1 = !this.isShowPrintType1
  1544. break
  1545. case '打印银行卡':
  1546. this.isShowPrintType2 = !this.isShowPrintType2
  1547. break
  1548. case '打印结算凭证':
  1549. this.isShowPrintType3 = !this.isShowPrintType3
  1550. break
  1551. case '打印检斤单':
  1552. this.isShowPrintType4 = !this.isShowPrintType4
  1553. break
  1554. case '打印回执单':
  1555. this.isShowPrintType5 = !this.isShowPrintType5
  1556. break
  1557. case '打印自产证明':
  1558. this.isShowPrintType7 = !this.isShowPrintType7
  1559. break
  1560. }
  1561. }
  1562. } else {
  1563. this.isShowPrintType3 = true
  1564. }
  1565. if (localStorage.getItem('print_alone_extra') == 'true') {
  1566. this.isShowPrintType6 = true
  1567. }
  1568. if (_type == 2) {
  1569. this.bigContent = true
  1570. this.smallContent = false
  1571. } else {
  1572. this.smallContent = true
  1573. this.bigContent = false
  1574. }
  1575. if (this.printData.compName == undefined) this.printData.compName = ''
  1576. document.title = this.printData.compName + '结算凭证'
  1577. window.print()
  1578. // sessionStorage.removeItem('selectPrint_selectPrintList');
  1579. // sessionStorage.removeItem('selectPrint_selectCustomerList');
  1580. window.onafterprint = function (event) {
  1581. window.history.back(-1)
  1582. }
  1583. },
  1584. watch: {}
  1585. })
  1586. </script>
  1587. </html>