payprint1.html 81 KB

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