detail.ejs 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709
  1. <script type="text/javascript" src="/public/jspdf/jspdf.min.js"></script>
  2. <script type="text/javascript" src="/public/report/js/rpt_public.js"></script>
  3. <script type="text/javascript" src="/public/js/common_ajax.js"></script>
  4. <script type="text/javascript" src="/public/report/js/jpc_output_value_define.js"></script>
  5. <script type="text/javascript" src="/public/report/js/rpt_signature.js"></script>
  6. <script type="text/javascript" src="/public/report/js/jpc_output.js"></script>
  7. <script type="text/javascript" src="/public/report/js/rpt_move_signature.js"></script>
  8. <script type="text/javascript" src="/public/report/js/rpt_jspdf.js"></script>
  9. <div class="panel-content">
  10. <div class="panel-title fluid">
  11. <div class="title-main d-flex justify-content-between">
  12. <div><a href="payment-approval-detail.html"><i class="fa fa-chevron-left mr-2"></i></a>土建01标 / 报表2 / YFK 003</div>
  13. <div>
  14. <a href="#add-lot" data-toggle="modal" data-target="#add-lot" class="btn btn-sm btn-warning pull-right">审批退回</a>
  15. <a href="#add-lot" data-toggle="modal" data-target="#add-lot" class="btn btn-sm btn-success pull-right mr-2">审批通过</a>
  16. <a href="#add-lot" data-toggle="modal" data-target="#add-lot" class="btn btn-sm btn-primary pull-right mr-2">上报审批</a>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="content-wrap">
  21. <div class="c-body">
  22. <div class="sjs-height-0">
  23. <div class="row m-0 my-3">
  24. <div class="col-6">
  25. <form>
  26. <h5>表头内容</h5>
  27. <div class="form-group">
  28. <label>编号:</label>
  29. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  30. </div>
  31. <div class="form-group">
  32. <label>合同号:</label>
  33. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  34. </div>
  35. <div class="form-group">
  36. <label>工程名称:</label>
  37. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  38. </div>
  39. <div class="form-group">
  40. <label>项目公司名称:</label>
  41. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  42. </div>
  43. <div class="form-group">
  44. <label>合同价款:</label>
  45. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  46. </div>
  47. <div class="form-group">
  48. <label>已付价款:</label>
  49. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  50. </div>
  51. <div class="form-group">
  52. <label>结算价款:</label>
  53. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  54. </div>
  55. <h5>表单内容</h5>
  56. <div class="form-group">
  57. <label>单位名称:</label>
  58. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  59. </div>
  60. <div class="form-group">
  61. <label>申请内容及金额:</label>
  62. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  63. </div>
  64. <div class="form-group">
  65. <label>开票或者收据编号:</label>
  66. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  67. </div>
  68. <div class="form-group">
  69. <label>开户银行:</label>
  70. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  71. </div>
  72. <div class="form-group">
  73. <label>账号:</label>
  74. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  75. </div>
  76. <div class="form-group">
  77. <label>联系电话:</label>
  78. <input type="text" class="form-control form-control-sm" placeholder="请输入">
  79. </div>
  80. </form>
  81. </div>
  82. <div class="col-6">
  83. <div class="d-flex flex-row">
  84. <a href="#" class="mr-2" >刷新</a>
  85. <a href="javascript: void(0);" class="mr-2" onclick="auditRptPrintHelper.directPDF()">导出pdf</a>
  86. <a href="javascript: void(0);" onclick="auditRptPrintHelper.directPrint()">打印</a>
  87. </div>
  88. <div align="center">
  89. <canvas id="auditRptCanvas" height="820" width="920"></canvas>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <script type="text/javascript">
  98. let tesRpttData = {
  99. "control_collection": {
  100. "Default": {
  101. "Shrink": "F",
  102. "ShowZero": "T",
  103. "Horizon": "left",
  104. "Vertical": "bottom",
  105. "Wrap": "T",
  106. "ShrinkFirst": "F",
  107. "CloseOutput": "F"
  108. },
  109. "Title": {
  110. "Shrink": "F",
  111. "ShowZero": "T",
  112. "Horizon": "center",
  113. "Vertical": "center",
  114. "Wrap": "T",
  115. "ShrinkFirst": "F",
  116. "CloseOutput": "F"
  117. },
  118. "Header": {
  119. "Shrink": "F",
  120. "ShowZero": "T",
  121. "Horizon": "left",
  122. "Vertical": "center",
  123. "Wrap": "F",
  124. "ShrinkFirst": "F",
  125. "CloseOutput": "F"
  126. },
  127. "Header_Right": {
  128. "Shrink": "F",
  129. "ShowZero": "T",
  130. "Horizon": "right",
  131. "Vertical": "center",
  132. "Wrap": "F",
  133. "ShrinkFirst": "F",
  134. "CloseOutput": "F"
  135. },
  136. "Footer": {
  137. "Shrink": "F",
  138. "ShowZero": "T",
  139. "Horizon": "left",
  140. "Vertical": "center",
  141. "Wrap": "F",
  142. "ShrinkFirst": "F",
  143. "CloseOutput": "F"
  144. },
  145. "Footer_Right": {
  146. "Shrink": "F",
  147. "ShowZero": "T",
  148. "Horizon": "right",
  149. "Vertical": "center",
  150. "Wrap": "F",
  151. "ShrinkFirst": "F",
  152. "CloseOutput": "F"
  153. },
  154. "Column": {
  155. "Shrink": "F",
  156. "ShowZero": "F",
  157. "Horizon": "center",
  158. "Vertical": "center",
  159. "Wrap": "T",
  160. "ShrinkFirst": "F",
  161. "CloseOutput": "F"
  162. },
  163. "Column_Left": {
  164. "Shrink": "F",
  165. "ShowZero": "F",
  166. "Horizon": "left",
  167. "Vertical": "center",
  168. "Wrap": "T",
  169. "ShrinkFirst": "F",
  170. "CloseOutput": "F"
  171. },
  172. "Column_Right": {
  173. "Shrink": "F",
  174. "ShowZero": "F",
  175. "Horizon": "right",
  176. "Vertical": "center",
  177. "Wrap": "T",
  178. "ShrinkFirst": "F",
  179. "CloseOutput": "F"
  180. },
  181. "Content_Left": {
  182. "Shrink": "T",
  183. "ShowZero": "F",
  184. "Horizon": "left",
  185. "Vertical": "bottom",
  186. "Wrap": "F",
  187. "ShrinkFirst": "F",
  188. "CloseOutput": "T"
  189. },
  190. "Content_Right": {
  191. "Shrink": "T",
  192. "ShowZero": "F",
  193. "Horizon": "right",
  194. "Vertical": "bottom",
  195. "Wrap": "F",
  196. "ShrinkFirst": "F",
  197. "CloseOutput": "T"
  198. },
  199. "Content_Center": {
  200. "Shrink": "T",
  201. "ShowZero": "F",
  202. "Horizon": "center",
  203. "Vertical": "bottom",
  204. "Wrap": "F",
  205. "ShrinkFirst": "F",
  206. "CloseOutput": "T"
  207. },
  208. "NewContent_Left": {
  209. "Shrink": "T",
  210. "ShowZero": "F",
  211. "Horizon": "left",
  212. "Vertical": "center",
  213. "Wrap": "F",
  214. "ShrinkFirst": "F",
  215. "CloseOutput": "T"
  216. },
  217. "NewContent_Right": {
  218. "Shrink": "T",
  219. "ShowZero": "F",
  220. "Horizon": "right",
  221. "Vertical": "center",
  222. "Wrap": "F",
  223. "ShrinkFirst": "F",
  224. "CloseOutput": "T"
  225. },
  226. "NewContent_Center": {
  227. "Shrink": "T",
  228. "ShowZero": "F",
  229. "Horizon": "center",
  230. "Vertical": "center",
  231. "Wrap": "F",
  232. "ShrinkFirst": "F",
  233. "CloseOutput": "T"
  234. },
  235. "Currency": {
  236. "Shrink": "T",
  237. "ShowZero": "F",
  238. "Horizon": "right",
  239. "Vertical": "center",
  240. "Wrap": "F",
  241. "ShrinkFirst": "T",
  242. "CloseOutput": "F"
  243. },
  244. "Left_Top": {
  245. "Shrink": "F",
  246. "ShowZero": "T",
  247. "Horizon": "left",
  248. "Vertical": "top",
  249. "Wrap": "T",
  250. "ShrinkFirst": "F",
  251. "CloseOutput": "T"
  252. },
  253. "Center_Top": {
  254. "Shrink": "F",
  255. "ShowZero": "T",
  256. "Horizon": "center",
  257. "Vertical": "top",
  258. "Wrap": "T",
  259. "ShrinkFirst": "F",
  260. "CloseOutput": "T"
  261. },
  262. "Right_Top": {
  263. "Shrink": "F",
  264. "ShowZero": "T",
  265. "Horizon": "right",
  266. "Vertical": "top",
  267. "Wrap": "T",
  268. "ShrinkFirst": "F",
  269. "CloseOutput": "T"
  270. },
  271. "Left_Center": {
  272. "Shrink": "F",
  273. "ShowZero": "T",
  274. "Horizon": "left",
  275. "Vertical": "center",
  276. "Wrap": "T",
  277. "ShrinkFirst": "F",
  278. "CloseOutput": "T"
  279. },
  280. "Center_Center": {
  281. "Shrink": "F",
  282. "ShowZero": "T",
  283. "Horizon": "center",
  284. "Vertical": "center",
  285. "Wrap": "T",
  286. "ShrinkFirst": "F",
  287. "CloseOutput": "T"
  288. },
  289. "Right_Center": {
  290. "Shrink": "F",
  291. "ShowZero": "T",
  292. "Horizon": "right",
  293. "Vertical": "center",
  294. "Wrap": "T",
  295. "ShrinkFirst": "F",
  296. "CloseOutput": "T"
  297. }
  298. },
  299. "style_collection": {
  300. "Default_None": {
  301. "Left": {
  302. "LineWeight": "0",
  303. "DashStyle": "SOLID",
  304. "Color": "BLACK"
  305. },
  306. "Right": {
  307. "LineWeight": "0",
  308. "DashStyle": "SOLID",
  309. "Color": "BLACK"
  310. },
  311. "Top": {
  312. "LineWeight": "0",
  313. "DashStyle": "SOLID",
  314. "Color": "BLACK"
  315. },
  316. "Bottom": {
  317. "LineWeight": "0",
  318. "DashStyle": "SOLID",
  319. "Color": "BLACK"
  320. }
  321. },
  322. "Default": {
  323. "Left": {
  324. "LineWeight": "1",
  325. "DashStyle": "SOLID",
  326. "Color": "BLACK"
  327. },
  328. "Right": {
  329. "LineWeight": "1",
  330. "DashStyle": "SOLID",
  331. "Color": "BLACK"
  332. },
  333. "Top": {
  334. "LineWeight": "0",
  335. "DashStyle": "SOLID",
  336. "Color": "BLACK"
  337. },
  338. "Bottom": {
  339. "LineWeight": "0",
  340. "DashStyle": "SOLID",
  341. "Color": "BLACK"
  342. }
  343. },
  344. "Default_Normal": {
  345. "Left": {
  346. "LineWeight": "1",
  347. "DashStyle": "SOLID",
  348. "Color": "BLACK"
  349. },
  350. "Right": {
  351. "LineWeight": "1",
  352. "DashStyle": "SOLID",
  353. "Color": "BLACK"
  354. },
  355. "Top": {
  356. "LineWeight": "1",
  357. "DashStyle": "SOLID",
  358. "Color": "BLACK"
  359. },
  360. "Bottom": {
  361. "LineWeight": "1",
  362. "DashStyle": "SOLID",
  363. "Color": "BLACK"
  364. }
  365. },
  366. "Label_Underline": {
  367. "Left": {
  368. "LineWeight": "0",
  369. "DashStyle": "SOLID",
  370. "Color": "BLACK"
  371. },
  372. "Right": {
  373. "LineWeight": "0",
  374. "DashStyle": "SOLID",
  375. "Color": "BLACK"
  376. },
  377. "Top": {
  378. "LineWeight": "0",
  379. "DashStyle": "SOLID",
  380. "Color": "BLACK"
  381. },
  382. "Bottom": {
  383. "LineWeight": "1",
  384. "DashStyle": "SOLID",
  385. "Color": "BLACK"
  386. }
  387. },
  388. "Label_Left": {
  389. "Left": {
  390. "LineWeight": "1",
  391. "DashStyle": "SOLID",
  392. "Color": "BLACK"
  393. },
  394. "Right": {
  395. "LineWeight": "0",
  396. "DashStyle": "SOLID",
  397. "Color": "BLACK"
  398. },
  399. "Top": {
  400. "LineWeight": "0",
  401. "DashStyle": "SOLID",
  402. "Color": "BLACK"
  403. },
  404. "Bottom": {
  405. "LineWeight": "0",
  406. "DashStyle": "SOLID",
  407. "Color": "BLACK"
  408. }
  409. },
  410. "Label_Right": {
  411. "Left": {
  412. "LineWeight": "0",
  413. "DashStyle": "SOLID",
  414. "Color": "BLACK"
  415. },
  416. "Right": {
  417. "LineWeight": "1",
  418. "DashStyle": "SOLID",
  419. "Color": "BLACK"
  420. },
  421. "Top": {
  422. "LineWeight": "0",
  423. "DashStyle": "SOLID",
  424. "Color": "BLACK"
  425. },
  426. "Bottom": {
  427. "LineWeight": "0",
  428. "DashStyle": "SOLID",
  429. "Color": "BLACK"
  430. }
  431. },
  432. "Label_Top": {
  433. "Left": {
  434. "LineWeight": "0",
  435. "DashStyle": "SOLID",
  436. "Color": "BLACK"
  437. },
  438. "Right": {
  439. "LineWeight": "0",
  440. "DashStyle": "SOLID",
  441. "Color": "BLACK"
  442. },
  443. "Top": {
  444. "LineWeight": "1",
  445. "DashStyle": "SOLID",
  446. "Color": "BLACK"
  447. },
  448. "Bottom": {
  449. "LineWeight": "0",
  450. "DashStyle": "SOLID",
  451. "Color": "BLACK"
  452. }
  453. },
  454. "Label_LeftTop": {
  455. "Left": {
  456. "LineWeight": "1",
  457. "DashStyle": "SOLID",
  458. "Color": "BLACK"
  459. },
  460. "Right": {
  461. "LineWeight": "0",
  462. "DashStyle": "SOLID",
  463. "Color": "BLACK"
  464. },
  465. "Top": {
  466. "LineWeight": "1",
  467. "DashStyle": "SOLID",
  468. "Color": "BLACK"
  469. },
  470. "Bottom": {
  471. "LineWeight": "0",
  472. "DashStyle": "SOLID",
  473. "Color": "BLACK"
  474. }
  475. },
  476. "Label_LeftBottom": {
  477. "Left": {
  478. "LineWeight": "1",
  479. "DashStyle": "SOLID",
  480. "Color": "BLACK"
  481. },
  482. "Right": {
  483. "LineWeight": "0",
  484. "DashStyle": "SOLID",
  485. "Color": "BLACK"
  486. },
  487. "Top": {
  488. "LineWeight": "0",
  489. "DashStyle": "SOLID",
  490. "Color": "BLACK"
  491. },
  492. "Bottom": {
  493. "LineWeight": "1",
  494. "DashStyle": "SOLID",
  495. "Color": "BLACK"
  496. }
  497. },
  498. "Label_RightTop": {
  499. "Left": {
  500. "LineWeight": "0",
  501. "DashStyle": "SOLID",
  502. "Color": "BLACK"
  503. },
  504. "Right": {
  505. "LineWeight": "1",
  506. "DashStyle": "SOLID",
  507. "Color": "BLACK"
  508. },
  509. "Top": {
  510. "LineWeight": "1",
  511. "DashStyle": "SOLID",
  512. "Color": "BLACK"
  513. },
  514. "Bottom": {
  515. "LineWeight": "0",
  516. "DashStyle": "SOLID",
  517. "Color": "BLACK"
  518. }
  519. },
  520. "Label_RightBottom": {
  521. "Left": {
  522. "LineWeight": "0",
  523. "DashStyle": "SOLID",
  524. "Color": "BLACK"
  525. },
  526. "Right": {
  527. "LineWeight": "1",
  528. "DashStyle": "SOLID",
  529. "Color": "BLACK"
  530. },
  531. "Top": {
  532. "LineWeight": "0",
  533. "DashStyle": "SOLID",
  534. "Color": "BLACK"
  535. },
  536. "Bottom": {
  537. "LineWeight": "1",
  538. "DashStyle": "SOLID",
  539. "Color": "BLACK"
  540. }
  541. },
  542. "Label_TopBottom": {
  543. "Left": {
  544. "LineWeight": "0",
  545. "DashStyle": "SOLID",
  546. "Color": "BLACK"
  547. },
  548. "Right": {
  549. "LineWeight": "0",
  550. "DashStyle": "SOLID",
  551. "Color": "BLACK"
  552. },
  553. "Top": {
  554. "LineWeight": "1",
  555. "DashStyle": "SOLID",
  556. "Color": "BLACK"
  557. },
  558. "Bottom": {
  559. "LineWeight": "1",
  560. "DashStyle": "SOLID",
  561. "Color": "BLACK"
  562. }
  563. },
  564. "Label_TopCover": {
  565. "Left": {
  566. "LineWeight": "1",
  567. "DashStyle": "SOLID",
  568. "Color": "BLACK"
  569. },
  570. "Right": {
  571. "LineWeight": "1",
  572. "DashStyle": "SOLID",
  573. "Color": "BLACK"
  574. },
  575. "Top": {
  576. "LineWeight": "1",
  577. "DashStyle": "SOLID",
  578. "Color": "BLACK"
  579. },
  580. "Bottom": {
  581. "LineWeight": "0",
  582. "DashStyle": "SOLID",
  583. "Color": "BLACK"
  584. }
  585. },
  586. "Label_BottomCover": {
  587. "Left": {
  588. "LineWeight": "1",
  589. "DashStyle": "SOLID",
  590. "Color": "BLACK"
  591. },
  592. "Right": {
  593. "LineWeight": "1",
  594. "DashStyle": "SOLID",
  595. "Color": "BLACK"
  596. },
  597. "Top": {
  598. "LineWeight": "0",
  599. "DashStyle": "SOLID",
  600. "Color": "BLACK"
  601. },
  602. "Bottom": {
  603. "LineWeight": "1",
  604. "DashStyle": "SOLID",
  605. "Color": "BLACK"
  606. }
  607. },
  608. "Label_LeftCover": {
  609. "Left": {
  610. "LineWeight": "1",
  611. "DashStyle": "SOLID",
  612. "Color": "BLACK"
  613. },
  614. "Right": {
  615. "LineWeight": "0",
  616. "DashStyle": "SOLID",
  617. "Color": "BLACK"
  618. },
  619. "Top": {
  620. "LineWeight": "1",
  621. "DashStyle": "SOLID",
  622. "Color": "BLACK"
  623. },
  624. "Bottom": {
  625. "LineWeight": "1",
  626. "DashStyle": "SOLID",
  627. "Color": "BLACK"
  628. }
  629. },
  630. "Label_RightCover": {
  631. "Left": {
  632. "LineWeight": "0",
  633. "DashStyle": "SOLID",
  634. "Color": "BLACK"
  635. },
  636. "Right": {
  637. "LineWeight": "1",
  638. "DashStyle": "SOLID",
  639. "Color": "BLACK"
  640. },
  641. "Top": {
  642. "LineWeight": "1",
  643. "DashStyle": "SOLID",
  644. "Color": "BLACK"
  645. },
  646. "Bottom": {
  647. "LineWeight": "1",
  648. "DashStyle": "SOLID",
  649. "Color": "BLACK"
  650. }
  651. },
  652. "BORDER_ALL_AROUND": {
  653. "Left": {
  654. "LineWeight": "2.0",
  655. "DashStyle": "SOLID",
  656. "Color": "BLACK"
  657. },
  658. "Right": {
  659. "LineWeight": "2.0",
  660. "DashStyle": "SOLID",
  661. "Color": "BLACK"
  662. },
  663. "Top": {
  664. "LineWeight": "2.0",
  665. "DashStyle": "SOLID",
  666. "Color": "BLACK"
  667. },
  668. "Bottom": {
  669. "LineWeight": "2.0",
  670. "DashStyle": "SOLID",
  671. "Color": "BLACK"
  672. }
  673. }
  674. },
  675. "font_collection": {
  676. "ReportTitle_Main": {
  677. "Name": "宋体",
  678. "FontHeight": "32",
  679. "FontColor": "BLACK",
  680. "FontBold": "T",
  681. "FontItalic": "F",
  682. "FontUnderline": "F",
  683. "FontStrikeOut": "F",
  684. "FontAngle": "0"
  685. },
  686. "ReportTitle_Vice_1": {
  687. "Name": "宋体",
  688. "FontHeight": "22",
  689. "FontColor": "BLACK",
  690. "FontBold": "T",
  691. "FontItalic": "F",
  692. "FontUnderline": "F",
  693. "FontStrikeOut": "F",
  694. "FontAngle": "0"
  695. },
  696. "ReportTitle_Vice_2": {
  697. "Name": "宋体",
  698. "FontHeight": "18",
  699. "FontColor": "BLACK",
  700. "FontBold": "T",
  701. "FontItalic": "F",
  702. "FontUnderline": "F",
  703. "FontStrikeOut": "F",
  704. "FontAngle": "0"
  705. },
  706. "HeaderColumn": {
  707. "Name": "宋体",
  708. "FontHeight": "12",
  709. "FontColor": "BLACK",
  710. "FontBold": "F",
  711. "FontItalic": "F",
  712. "FontUnderline": "F",
  713. "FontStrikeOut": "F",
  714. "FontAngle": "0"
  715. },
  716. "Header": {
  717. "Name": "宋体",
  718. "FontHeight": "12",
  719. "FontColor": "BLACK",
  720. "FontBold": "F",
  721. "FontItalic": "F",
  722. "FontUnderline": "F",
  723. "FontStrikeOut": "F",
  724. "FontAngle": "0"
  725. },
  726. "FooterColumn": {
  727. "Name": "宋体",
  728. "FontHeight": "12",
  729. "FontColor": "BLACK",
  730. "FontBold": "F",
  731. "FontItalic": "F",
  732. "FontUnderline": "F",
  733. "FontStrikeOut": "F",
  734. "FontAngle": "0"
  735. },
  736. "Footer": {
  737. "Name": "宋体",
  738. "FontHeight": "12",
  739. "FontColor": "BLACK",
  740. "FontBold": "F",
  741. "FontItalic": "F",
  742. "FontUnderline": "F",
  743. "FontStrikeOut": "F",
  744. "FontAngle": "0"
  745. },
  746. "GrandTotal": {
  747. "Name": "宋体",
  748. "FontHeight": "12",
  749. "FontColor": "BLACK",
  750. "FontBold": "F",
  751. "FontItalic": "F",
  752. "FontUnderline": "F",
  753. "FontStrikeOut": "F",
  754. "FontAngle": "0"
  755. },
  756. "SectionTotal": {
  757. "Name": "宋体",
  758. "FontHeight": "12",
  759. "FontColor": "BLACK",
  760. "FontBold": "F",
  761. "FontItalic": "F",
  762. "FontUnderline": "F",
  763. "FontStrikeOut": "F",
  764. "FontAngle": "0"
  765. },
  766. "Content": {
  767. "Name": "宋体",
  768. "FontHeight": "12",
  769. "FontColor": "BLACK",
  770. "FontBold": "F",
  771. "FontItalic": "F",
  772. "FontUnderline": "F",
  773. "FontStrikeOut": "F",
  774. "FontAngle": "0"
  775. },
  776. "Content_Narrow": {
  777. "Name": "Arial Narrow",
  778. "FontHeight": "12",
  779. "FontColor": "BLACK",
  780. "FontBold": "F",
  781. "FontItalic": "F",
  782. "FontUnderline": "F",
  783. "FontStrikeOut": "F",
  784. "FontAngle": "0"
  785. },
  786. "Header_V1": {
  787. "Name": "宋体",
  788. "FontHeight": "12",
  789. "FontColor": "BLACK",
  790. "FontBold": "F",
  791. "FontItalic": "F",
  792. "FontUnderline": "F",
  793. "FontStrikeOut": "F",
  794. "FontAngle": "90"
  795. },
  796. "Header_V2": {
  797. "Name": "宋体",
  798. "FontHeight": "12",
  799. "FontColor": "BLACK",
  800. "FontBold": "F",
  801. "FontItalic": "F",
  802. "FontUnderline": "F",
  803. "FontStrikeOut": "F",
  804. "FontAngle": "-90"
  805. }
  806. },
  807. "打印页面_信息": {
  808. "报表名称": "测试报表",
  809. "纸张宽高": [8.27, 11.69],
  810. "页边距": {
  811. "Top": "1.0",
  812. "Left": 1.2,
  813. "Right": 1.2,
  814. "Bottom": "1.0"
  815. }
  816. },
  817. "items": [{
  818. "page_seq": 1,
  819. "cells": [{
  820. "font": "ReportTitle_Main",
  821. "control": "Column",
  822. "style": "Default_None",
  823. "Value": "工程结算款支付申请单",
  824. "area": {
  825. "Left": 45,
  826. "Right": 749,
  827. "Top": 38,
  828. "Bottom": 88
  829. }
  830. }, {
  831. "font": "ReportTitle_Vice_1",
  832. "control": "Column",
  833. "style": "Default_None",
  834. "Value": "余姚市交通运输局",
  835. "area": {
  836. "Left": 45,
  837. "Right": 749,
  838. "Top": 88,
  839. "Bottom": 123
  840. }
  841. }, {
  842. "font": "Content",
  843. "control": "Column_Left",
  844. "style": "Default_None",
  845. "Value": "编号:",
  846. "area": {
  847. "Left": 45,
  848. "Right": 222,
  849. "Top": 123,
  850. "Bottom": 146
  851. }
  852. }, {
  853. "font": "Content",
  854. "control": "Column_Left",
  855. "style": "Default_None",
  856. "Value": "工程名称:",
  857. "area": {
  858. "Left": 222,
  859. "Right": 336,
  860. "Top": 123,
  861. "Bottom": 146
  862. }
  863. }, {
  864. "font": "Content",
  865. "control": "Column_Left",
  866. "style": "Default_None",
  867. "Value": " 合同价款:",
  868. "area": {
  869. "Left": 336,
  870. "Right": 570,
  871. "Top": 123,
  872. "Bottom": 146
  873. }
  874. }, {
  875. "font": "Content",
  876. "control": "Column_Left",
  877. "style": "Default_None",
  878. "Value": "结算价款:",
  879. "area": {
  880. "Left": 570,
  881. "Right": 749,
  882. "Top": 123,
  883. "Bottom": 146
  884. }
  885. }, {
  886. "font": "Content",
  887. "control": "Column_Left",
  888. "style": "Default_None",
  889. "Value": "合同号:",
  890. "area": {
  891. "Left": 45,
  892. "Right": 222,
  893. "Top": 146,
  894. "Bottom": 168
  895. }
  896. }, {
  897. "font": "Content",
  898. "control": "Column_Left",
  899. "style": "Default_None",
  900. "Value": "项目公司名称:",
  901. "area": {
  902. "Left": 222,
  903. "Right": 336,
  904. "Top": 146,
  905. "Bottom": 168
  906. }
  907. }, {
  908. "font": "Content",
  909. "control": "Column_Left",
  910. "style": "Default_None",
  911. "Value": "已付价款:",
  912. "area": {
  913. "Left": 570,
  914. "Right": 749,
  915. "Top": 146,
  916. "Bottom": 168
  917. }
  918. }, {
  919. "font": "Content",
  920. "control": "Column_Left",
  921. "style": "Default_None",
  922. "Value": "备注:适用于采购、测绘、察、设计、监理、造价咨询(招标代理)费用支出。",
  923. "area": {
  924. "Left": 45,
  925. "Right": 749,
  926. "Top": 1046,
  927. "Bottom": 1084
  928. }
  929. }, {
  930. "font": "Content",
  931. "control": "Column",
  932. "style": "Default_Normal",
  933. "Value": "内容(意见)栏",
  934. "area": {
  935. "Left": 222,
  936. "Right": 570,
  937. "Top": 168,
  938. "Bottom": 214
  939. }
  940. }, {
  941. "font": "Content",
  942. "control": "NewContent_Center",
  943. "style": "Default_Normal",
  944. "Value": "承包单位|(由单位申请并盖章)",
  945. "area": {
  946. "Left": 45,
  947. "Right": 222,
  948. "Top": 214,
  949. "Bottom": 489
  950. }
  951. }, {
  952. "font": "Content",
  953. "control": "Left_Top",
  954. "style": "Default_Normal",
  955. "Value": "项目负责人或项目总监:",
  956. "area": {
  957. "Left": 570,
  958. "Right": 749,
  959. "Top": 214,
  960. "Bottom": 489
  961. }
  962. }, {
  963. "font": "Content",
  964. "control": "Column_Left",
  965. "style": "Default_Normal",
  966. "Value": "人民币 (大写) :元整_¥:77479.00 元",
  967. "area": {
  968. "Left": 45,
  969. "Right": 749,
  970. "Top": 856,
  971. "Bottom": 985
  972. }
  973. }, {
  974. "font": "Content",
  975. "control": "Column",
  976. "style": "Default_Normal",
  977. "Value": "单位",
  978. "area": {
  979. "Left": 45,
  980. "Right": 222,
  981. "Top": 168,
  982. "Bottom": 214
  983. }
  984. }, {
  985. "font": "Content",
  986. "control": "Column",
  987. "style": "Default_Normal",
  988. "Value": "签字栏",
  989. "area": {
  990. "Left": 570,
  991. "Right": 749,
  992. "Top": 168,
  993. "Bottom": 214
  994. }
  995. }, {
  996. "font": "Content",
  997. "control": "Column",
  998. "style": "Default_Normal",
  999. "Value": "单位名称",
  1000. "area": {
  1001. "Left": 222,
  1002. "Right": 336,
  1003. "Top": 214,
  1004. "Bottom": 260
  1005. }
  1006. }, {
  1007. "font": "Content",
  1008. "control": "Column",
  1009. "style": "Default_Normal",
  1010. "Value": "申请内容及金额:",
  1011. "area": {
  1012. "Left": 222,
  1013. "Right": 336,
  1014. "Top": 260,
  1015. "Bottom": 305
  1016. }
  1017. }, {
  1018. "font": "Content",
  1019. "control": "Column",
  1020. "style": "Default_Normal",
  1021. "Value": "发票或收据编号:",
  1022. "area": {
  1023. "Left": 222,
  1024. "Right": 336,
  1025. "Top": 305,
  1026. "Bottom": 351
  1027. }
  1028. }, {
  1029. "font": "Content",
  1030. "control": "Column",
  1031. "style": "Default_Normal",
  1032. "Value": "开户银行",
  1033. "area": {
  1034. "Left": 222,
  1035. "Right": 336,
  1036. "Top": 351,
  1037. "Bottom": 397
  1038. }
  1039. }, {
  1040. "font": "Content",
  1041. "control": "Column",
  1042. "style": "Default_Normal",
  1043. "Value": "账号",
  1044. "area": {
  1045. "Left": 222,
  1046. "Right": 336,
  1047. "Top": 397,
  1048. "Bottom": 443
  1049. }
  1050. }, {
  1051. "font": "Content",
  1052. "control": "Column",
  1053. "style": "Default_Normal",
  1054. "Value": "联系电话",
  1055. "area": {
  1056. "Left": 222,
  1057. "Right": 336,
  1058. "Top": 443,
  1059. "Bottom": 489
  1060. }
  1061. }, {
  1062. "font": "Content",
  1063. "control": "Column",
  1064. "style": "Default_Normal",
  1065. "Value": "监理公司|(总监或总监代表)|(审核意见)",
  1066. "area": {
  1067. "Left": 45,
  1068. "Right": 222,
  1069. "Top": 489,
  1070. "Bottom": 551
  1071. }
  1072. }, {
  1073. "font": "Content",
  1074. "control": "Column",
  1075. "style": "Default_Normal",
  1076. "Value": "",
  1077. "area": {
  1078. "Left": 222,
  1079. "Right": 336,
  1080. "Top": 489,
  1081. "Bottom": 551
  1082. }
  1083. }, {
  1084. "font": "Content",
  1085. "control": "Column",
  1086. "style": "Default_Normal",
  1087. "Value": "",
  1088. "area": {
  1089. "Left": 336,
  1090. "Right": 570,
  1091. "Top": 489,
  1092. "Bottom": 551
  1093. }
  1094. }, {
  1095. "font": "Content",
  1096. "control": "Column",
  1097. "style": "Default_Normal",
  1098. "Value": "",
  1099. "area": {
  1100. "Left": 570,
  1101. "Right": 749,
  1102. "Top": 489,
  1103. "Bottom": 551
  1104. }
  1105. }, {
  1106. "font": "Content",
  1107. "control": "Column",
  1108. "style": "Default_Normal",
  1109. "Value": "造价咨询单位|(项目负责人)|(审核意见)",
  1110. "area": {
  1111. "Left": 45,
  1112. "Right": 222,
  1113. "Top": 551,
  1114. "Bottom": 612
  1115. }
  1116. }, {
  1117. "font": "Content",
  1118. "control": "Column",
  1119. "style": "Default_Normal",
  1120. "Value": "",
  1121. "area": {
  1122. "Left": 222,
  1123. "Right": 336,
  1124. "Top": 551,
  1125. "Bottom": 612
  1126. }
  1127. }, {
  1128. "font": "Content",
  1129. "control": "Column",
  1130. "style": "Default_Normal",
  1131. "Value": "",
  1132. "area": {
  1133. "Left": 336,
  1134. "Right": 570,
  1135. "Top": 551,
  1136. "Bottom": 612
  1137. }
  1138. }, {
  1139. "font": "Content",
  1140. "control": "Column",
  1141. "style": "Default_Normal",
  1142. "Value": "",
  1143. "area": {
  1144. "Left": 570,
  1145. "Right": 749,
  1146. "Top": 551,
  1147. "Bottom": 612
  1148. }
  1149. }, {
  1150. "font": "Content",
  1151. "control": "Column",
  1152. "style": "Default_Normal",
  1153. "Value": "经办人|审核意见",
  1154. "area": {
  1155. "Left": 45,
  1156. "Right": 222,
  1157. "Top": 612,
  1158. "Bottom": 674
  1159. }
  1160. }, {
  1161. "font": "Content",
  1162. "control": "Column",
  1163. "style": "Default_Normal",
  1164. "Value": "",
  1165. "area": {
  1166. "Left": 222,
  1167. "Right": 336,
  1168. "Top": 612,
  1169. "Bottom": 674
  1170. }
  1171. }, {
  1172. "font": "Content",
  1173. "control": "Column",
  1174. "style": "Default_Normal",
  1175. "Value": "",
  1176. "area": {
  1177. "Left": 336,
  1178. "Right": 570,
  1179. "Top": 612,
  1180. "Bottom": 674
  1181. }
  1182. }, {
  1183. "font": "Content",
  1184. "control": "Column",
  1185. "style": "Default_Normal",
  1186. "Value": "",
  1187. "area": {
  1188. "Left": 570,
  1189. "Right": 749,
  1190. "Top": 612,
  1191. "Bottom": 674
  1192. }
  1193. }, {
  1194. "font": "Content",
  1195. "control": "Column",
  1196. "style": "Default_Normal",
  1197. "Value": "合同管理人|审核意见",
  1198. "area": {
  1199. "Left": 45,
  1200. "Right": 222,
  1201. "Top": 674,
  1202. "Bottom": 733
  1203. }
  1204. }, {
  1205. "font": "Content",
  1206. "control": "Column",
  1207. "style": "Default_Normal",
  1208. "Value": "",
  1209. "area": {
  1210. "Left": 222,
  1211. "Right": 336,
  1212. "Top": 674,
  1213. "Bottom": 733
  1214. }
  1215. }, {
  1216. "font": "Content",
  1217. "control": "Column",
  1218. "style": "Default_Normal",
  1219. "Value": "",
  1220. "area": {
  1221. "Left": 336,
  1222. "Right": 570,
  1223. "Top": 674,
  1224. "Bottom": 733
  1225. }
  1226. }, {
  1227. "font": "Content",
  1228. "control": "Column",
  1229. "style": "Default_Normal",
  1230. "Value": "",
  1231. "area": {
  1232. "Left": 570,
  1233. "Right": 749,
  1234. "Top": 674,
  1235. "Bottom": 733
  1236. }
  1237. }, {
  1238. "font": "Content",
  1239. "control": "Column",
  1240. "style": "Default_Normal",
  1241. "Value": "相关科室负责人|审核意见",
  1242. "area": {
  1243. "Left": 45,
  1244. "Right": 222,
  1245. "Top": 733,
  1246. "Bottom": 795
  1247. }
  1248. }, {
  1249. "font": "Content",
  1250. "control": "Column",
  1251. "style": "Default_Normal",
  1252. "Value": "",
  1253. "area": {
  1254. "Left": 222,
  1255. "Right": 336,
  1256. "Top": 733,
  1257. "Bottom": 795
  1258. }
  1259. }, {
  1260. "font": "Content",
  1261. "control": "Column",
  1262. "style": "Default_Normal",
  1263. "Value": "",
  1264. "area": {
  1265. "Left": 336,
  1266. "Right": 570,
  1267. "Top": 733,
  1268. "Bottom": 795
  1269. }
  1270. }, {
  1271. "font": "Content",
  1272. "control": "Column",
  1273. "style": "Default_Normal",
  1274. "Value": "",
  1275. "area": {
  1276. "Left": 570,
  1277. "Right": 749,
  1278. "Top": 733,
  1279. "Bottom": 795
  1280. }
  1281. }, {
  1282. "font": "Content",
  1283. "control": "Column",
  1284. "style": "Default_Normal",
  1285. "Value": "计划财务科科长|审核意见",
  1286. "area": {
  1287. "Left": 45,
  1288. "Right": 222,
  1289. "Top": 795,
  1290. "Bottom": 856
  1291. }
  1292. }, {
  1293. "font": "Content",
  1294. "control": "Column",
  1295. "style": "Default_Normal",
  1296. "Value": "",
  1297. "area": {
  1298. "Left": 222,
  1299. "Right": 336,
  1300. "Top": 795,
  1301. "Bottom": 856
  1302. }
  1303. }, {
  1304. "font": "Content",
  1305. "control": "Column",
  1306. "style": "Default_Normal",
  1307. "Value": "",
  1308. "area": {
  1309. "Left": 336,
  1310. "Right": 570,
  1311. "Top": 795,
  1312. "Bottom": 856
  1313. }
  1314. }, {
  1315. "font": "Content",
  1316. "control": "Column",
  1317. "style": "Default_Normal",
  1318. "Value": "",
  1319. "area": {
  1320. "Left": 570,
  1321. "Right": 749,
  1322. "Top": 795,
  1323. "Bottom": 856
  1324. }
  1325. }, {
  1326. "font": "Content",
  1327. "control": "Column",
  1328. "style": "Default_Normal",
  1329. "Value": "分管领导审核意见",
  1330. "area": {
  1331. "Left": 45,
  1332. "Right": 222,
  1333. "Top": 985,
  1334. "Bottom": 1046
  1335. }
  1336. }, {
  1337. "font": "Content",
  1338. "control": "Column",
  1339. "style": "Default_Normal",
  1340. "Value": "",
  1341. "area": {
  1342. "Left": 222,
  1343. "Right": 336,
  1344. "Top": 985,
  1345. "Bottom": 1046
  1346. }
  1347. }, {
  1348. "font": "Content",
  1349. "control": "Column",
  1350. "style": "Default_Normal",
  1351. "Value": "",
  1352. "area": {
  1353. "Left": 336,
  1354. "Right": 570,
  1355. "Top": 985,
  1356. "Bottom": 1046
  1357. }
  1358. }, {
  1359. "font": "Content",
  1360. "control": "Column",
  1361. "style": "Default_Normal",
  1362. "Value": "",
  1363. "area": {
  1364. "Left": 570,
  1365. "Right": 749,
  1366. "Top": 985,
  1367. "Bottom": 1046
  1368. }
  1369. }
  1370. ],
  1371. "interact_cells": [{
  1372. "font": "Content",
  1373. "control": "Column_Left",
  1374. "style": "Default_Normal",
  1375. "Value": "",
  1376. "area": {
  1377. "Left": 336,
  1378. "Right": 570,
  1379. "Top": 214,
  1380. "Bottom": 260
  1381. },
  1382. "BandName": "ContentBand",
  1383. "DataType": "intact_type_text"
  1384. }, {
  1385. "font": "Content",
  1386. "control": "Default",
  1387. "style": "Default_None",
  1388. "Value": "",
  1389. "area": {
  1390. "Left": 336,
  1391. "Right": 570,
  1392. "Top": 260,
  1393. "Bottom": 305
  1394. },
  1395. "BandName": "ContentBand",
  1396. "DataType": "intact_type_number"
  1397. }, {
  1398. "font": "Content",
  1399. "control": "Column_Left",
  1400. "style": "Default_Normal",
  1401. "Value": "",
  1402. "area": {
  1403. "Left": 336,
  1404. "Right": 570,
  1405. "Top": 305,
  1406. "Bottom": 351
  1407. },
  1408. "BandName": "ContentBand",
  1409. "DataType": "intact_type_text"
  1410. }, {
  1411. "font": "Content",
  1412. "control": "Column_Left",
  1413. "style": "Default_Normal",
  1414. "Value": "",
  1415. "area": {
  1416. "Left": 336,
  1417. "Right": 570,
  1418. "Top": 351,
  1419. "Bottom": 397
  1420. },
  1421. "BandName": "ContentBand",
  1422. "DataType": "intact_type_text"
  1423. }, {
  1424. "font": "Content",
  1425. "control": "Column_Left",
  1426. "style": "Default_Normal",
  1427. "Value": "",
  1428. "area": {
  1429. "Left": 336,
  1430. "Right": 570,
  1431. "Top": 397,
  1432. "Bottom": 443
  1433. },
  1434. "BandName": "ContentBand",
  1435. "DataType": "intact_type_text"
  1436. }, {
  1437. "font": "Content",
  1438. "control": "Column_Left",
  1439. "style": "Default_Normal",
  1440. "Value": "",
  1441. "area": {
  1442. "Left": 336,
  1443. "Right": 570,
  1444. "Top": 443,
  1445. "Bottom": 489
  1446. },
  1447. "BandName": "ContentBand",
  1448. "DataType": "intact_type_text"
  1449. }
  1450. ],
  1451. "page_merge_border": {
  1452. "Left": 45,
  1453. "Right": 749,
  1454. "Top": 168,
  1455. "Bottom": 1046
  1456. },
  1457. "signature_cells": [],
  1458. "signature_date_cells": [],
  1459. "signature_audit_cells": []
  1460. }
  1461. ],
  1462. "MergeBand": {
  1463. "Left": 45,
  1464. "Right": 749,
  1465. "Top": 168,
  1466. "Bottom": 1046,
  1467. "style": {
  1468. "ID": "BORDER_ALL_AROUND",
  1469. "CfgDispName": "报表边框",
  1470. "border_style": [{
  1471. "Color": "BLACK",
  1472. "Position": "Left",
  1473. "DashStyle": "SOLID",
  1474. "LineWeight": "2.0"
  1475. }, {
  1476. "Color": "BLACK",
  1477. "Position": "Right",
  1478. "DashStyle": "SOLID",
  1479. "LineWeight": "2.0"
  1480. }, {
  1481. "Color": "BLACK",
  1482. "Position": "Top",
  1483. "DashStyle": "SOLID",
  1484. "LineWeight": "2.0"
  1485. }, {
  1486. "Color": "BLACK",
  1487. "Position": "Bottom",
  1488. "DashStyle": "SOLID",
  1489. "LineWeight": "2.0"
  1490. }
  1491. ]
  1492. }
  1493. }
  1494. };
  1495. const SCREEN_DPI = [];
  1496. const PAGE_SHOW = {closeWaterMark: 1};
  1497. const current_stage_status = -1;
  1498. const VIEW_CANVAS = document.getElementById("auditRptCanvas");
  1499. const CUST_CFG = {
  1500. "fonts": [
  1501. {
  1502. "ID": "ReportTitle_Main",
  1503. "Name": "宋体",
  1504. "FontBold": "T",
  1505. "FontHeight": 32,
  1506. "FontItalic": "F",
  1507. "CfgDispName": "表标题",
  1508. "FontUnderline": "F"
  1509. },
  1510. {
  1511. "ID": "Column",
  1512. "Name": "宋体",
  1513. "FontBold": "F",
  1514. "FontHeight": 12,
  1515. "FontItalic": "F",
  1516. "CfgDispName": "列标题",
  1517. "FontUnderline": "F"
  1518. },
  1519. {
  1520. "ID": "Content",
  1521. "Name": "宋体",
  1522. "FontBold": "F",
  1523. "FontHeight": 12,
  1524. "FontItalic": "F",
  1525. "CfgDispName": "正文内容",
  1526. "FontUnderline": "F"
  1527. },
  1528. {
  1529. "ID": "Total",
  1530. "Name": "宋体",
  1531. "FontBold": "F",
  1532. "FontHeight": 12,
  1533. "FontItalic": "F",
  1534. "CfgDispName": "合计",
  1535. "FontUnderline": "F"
  1536. },
  1537. {
  1538. "ID": "Header",
  1539. "Name": "宋体",
  1540. "FontBold": "F",
  1541. "FontHeight": 12,
  1542. "FontItalic": "F",
  1543. "CfgDispName": "表眉/表脚",
  1544. "FontUnderline": "F"
  1545. }
  1546. ],
  1547. "margins": {
  1548. "Top": 12,
  1549. "Left": 15,
  1550. "Right": 15,
  1551. "Bottom": 15
  1552. },
  1553. "fillZero": false,
  1554. "isNarrow": false,
  1555. "borderThick": 2,
  1556. "showVerticalLine": true,
  1557. "closeWarterMark": false,
  1558. "continuousOutput": true
  1559. }
  1560. let zTreeOprObj = {
  1561. _chkPrePayStatus: function() {
  1562. return -1;
  1563. }
  1564. };
  1565. let rptTplObj = {
  1566. pdfFont: {'SmartSimsun': [], 'simhei': [], 'simkai': []},
  1567. isLoading: false,
  1568. };
  1569. let auditRptPrintHelper = {
  1570. currentPageData: null,
  1571. currentDownloadIdx: 0,
  1572. showPage: function() {
  1573. JpcCanvasOutput.cleanCanvas(VIEW_CANVAS);
  1574. JpcCanvasOutput.drawPageBorder(tesRpttData, VIEW_CANVAS, getScreenDPI());
  1575. JpcCanvasOutput.drawToCanvas(tesRpttData, VIEW_CANVAS, 1);
  1576. },
  1577. directPrint: function() {
  1578. sessionStorage.report_direct_data = JSON.stringify(tesRpttData);
  1579. sessionStorage.closeWaterMark = 1;
  1580. sessionStorage.pageSize = 'A4';
  1581. window.open('/printReport/A4');
  1582. },
  1583. directPDF: function() {
  1584. if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
  1585. downloadPDFReport([tesRpttData], 'A4', ['测试审核表'], [], [], [-1], []);
  1586. } else {
  1587. dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-normal2.js', 'normal', getPdfFontCallback);
  1588. dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', 'bold', getPdfFontCallback);
  1589. }
  1590. },
  1591. };
  1592. $(document).ready(() => {
  1593. autoFlashHeight();
  1594. auditRptPrintHelper.showPage();
  1595. iniPage();
  1596. });
  1597. function downloadPDFReport(pageDataArr, pageSize, rpt_names, signatureRelArr, signatureRelInfo, refRptTplIds, STAGE_AUDIT) {
  1598. auditRptPrintHelper.currentDownloadIdx = 0;
  1599. const private_download = function(newPageDataArr, new_rpt_names) {
  1600. if (auditRptPrintHelper.currentDownloadIdx < newPageDataArr.length) {
  1601. let singleSignatureRelArr = [];
  1602. for (let rIdx = 0; rIdx < signatureRelInfo.length; rIdx++) {
  1603. let rptId = refRptTplIds[auditRptPrintHelper.currentDownloadIdx];
  1604. if (signatureRelInfo[rIdx].rpt_id === rptId) {
  1605. singleSignatureRelArr = signatureRelArr[rIdx]; // 有些报表可能没有签名
  1606. break;
  1607. }
  1608. }
  1609. let pageData = newPageDataArr[auditRptPrintHelper.currentDownloadIdx];
  1610. let rptName = new_rpt_names[auditRptPrintHelper.currentDownloadIdx];
  1611. auditRptPrintHelper.currentDownloadIdx++;
  1612. JpcJsPDFHelper.outputAsPdf(pageData, pageSize, rptName, singleSignatureRelArr, STAGE_AUDIT); // 精确控制签名
  1613. if (auditRptPrintHelper.currentDownloadIdx < newPageDataArr.length) setTimeout(private_download(newPageDataArr, new_rpt_names), 2000);
  1614. }
  1615. };
  1616. // 导出PDF真实优化代码
  1617. let picPaths = [], dummyPicAmt = 0, dummyCells = [], dupPicPath = [], dupPicCell = [];
  1618. // 1. 先找有没有dummy
  1619. for (let pageData of pageDataArr) {
  1620. for (let page of pageData.items) {
  1621. for (let dCell of page.signature_cells) {
  1622. if (dCell.signature_name.indexOf('dummy_pic') >= 0) {
  1623. let picIdx = picPaths.indexOf(dCell.path);
  1624. if (picIdx < 0) {
  1625. picPaths.push(dCell.path);
  1626. dummyCells.push(dCell);
  1627. dummyPicAmt++;
  1628. } else {
  1629. let dPicIdx = dupPicPath.indexOf(dCell.path);
  1630. if (dPicIdx < 0) {
  1631. dupPicPath.push(dCell.path);
  1632. dupPicCell.push([]);
  1633. dPicIdx = dupPicPath.length - 1;
  1634. }
  1635. dupPicCell[dPicIdx].push(dCell);
  1636. }
  1637. }
  1638. }
  1639. }
  1640. }
  1641. if (dummyPicAmt > 0) {
  1642. // 2. 有则一个个请求下载图片,下载完后统一导出PDF
  1643. $.bootstrapLoading.start();
  1644. let handledAmt = 0, exceptionAmt = 0;
  1645. for (let pIdx = 0; pIdx < dummyCells.length; pIdx++) {
  1646. let dCell = dummyCells[pIdx];
  1647. getBlobPublic(dCell.path).then(blob => {
  1648. if (blob === 'not found!') {
  1649. exceptionAmt++;
  1650. if ((handledAmt + exceptionAmt) === dummyPicAmt) {
  1651. $.bootstrapLoading.end();
  1652. private_download(pageDataArr, rpt_names);
  1653. }
  1654. } else {
  1655. let oFileReader = new FileReader();
  1656. oFileReader.onloadend = function (e) {
  1657. let base64 = e.target.result;
  1658. dCell.pic = base64;
  1659. handledAmt++;
  1660. let pPathIdx = dupPicPath.indexOf(dCell.path);
  1661. if (pPathIdx >= 0) {
  1662. for (let dupCell of dupPicCell[pPathIdx]) {
  1663. dupCell.pic = base64;
  1664. }
  1665. }
  1666. // console.log(`已处理草图: ${handledAmt}`);
  1667. if ((handledAmt + exceptionAmt) === dummyPicAmt) {
  1668. $.bootstrapLoading.end();
  1669. private_download(pageDataArr, rpt_names);
  1670. }
  1671. };
  1672. oFileReader.readAsDataURL(blob);
  1673. }
  1674. });
  1675. }
  1676. } else {
  1677. // 3. 无则普通导出
  1678. private_download(pageDataArr, rpt_names);
  1679. }
  1680. //*/
  1681. }
  1682. function iniPage() {
  1683. dynamicLoadJs('/public/jspdf/Arial Narrow-normal.js');
  1684. dynamicLoadJs('/public/jspdf/Arial Narrow-bold.js');
  1685. dynamicLoadJs('/public/jspdf/Arial Narrow-italic.js');
  1686. dynamicLoadJs('/public/jspdf/Arial Narrow-bolditalic.js');
  1687. rptTplObj.isLoading = true;
  1688. dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-normal2.js', 'normal', getPdfFontCallbackLight);
  1689. dynamicLoadJs('https://d2.smartcost.com.cn/cach/SmartSimsun-bold.js', 'bold', getPdfFontCallbackLight);
  1690. }
  1691. function getPdfFontCallbackLight(fontProperty) {
  1692. rptTplObj.pdfFont['SmartSimsun'].push(fontProperty);
  1693. if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
  1694. rptTplObj.isLoading = false;
  1695. }
  1696. }
  1697. function getPdfFontCallback(fontProperty) {
  1698. if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
  1699. downloadPDFReport([tesRpttData], 'A4', ['测试审核表'], [], [], [-1], []);
  1700. }
  1701. }
  1702. </script>