payprint3.html 64 KB

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