panel.js 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. export default {
  2. "panels": [{
  3. "index": 0,
  4. "height": 140,
  5. "width": 241,
  6. "paperCount":222,
  7. "printElements": [{
  8. "options": {
  9. "left": 0,
  10. "top": 25,
  11. "height": 27,
  12. "width": 656,
  13. "field": "company",
  14. "fontSize": 19,
  15. "fontWeight": "600",
  16. "fontFamily": '黑体',
  17. "textAlign": "center",
  18. "lineHeight": 26
  19. }, "printElementType": { "title": "", "type": "text" }
  20. }, {
  21. "options": {
  22. "left": 40,
  23. "top": 50,
  24. "height": 13,
  25. "width": 328,
  26. "fontSize": 12.5,
  27. "title": "经销商编码",
  28. "fontFamily": '黑体',
  29. "field": "customerNumber",
  30. "color": "#000",
  31. "textAlign": "left"
  32. }, "printElementType": { "title": "", "type": "text" }
  33. },
  34. {
  35. "options": {
  36. "left": 550,
  37. "top": 50,
  38. "height": 13,
  39. "width": 328,
  40. "fontSize": 12.5,
  41. "title": "打印次数",
  42. "fontFamily": '黑体',
  43. "field": "printNum",
  44. "color": "#000",
  45. "textAlign": "left"
  46. }, "printElementType": { "title": "", "type": "text" }
  47. }, {
  48. "options": {
  49. "left": 348,
  50. "top": 50,
  51. "height": 13,
  52. "width": 328,
  53. "fontSize": 12.5,
  54. "title": "打印日期",
  55. "fontFamily": '黑体',
  56. "field": "nowDate",
  57. "testData": "",
  58. "color": "#000",
  59. "textAlign": "left"
  60. }, "printElementType": { "title": "", "type": "text" }
  61. }
  62. ,{
  63. "options": {
  64. "left": 40,
  65. "top": 70,
  66. "height": 13,
  67. "width": 328,
  68. "fontSize": 12.5,
  69. "title": "经销商",
  70. "fontFamily": '黑体',
  71. "field": "customerName",
  72. "color": "#000",
  73. "textAlign": "left"
  74. }, "printElementType": { "title": "", "type": "text" }
  75. }, {
  76. "options": {
  77. "left": 348,
  78. "top": 70,
  79. "height": 13,
  80. "width": 328,
  81. "fontSize": 12.5,
  82. "title": "仓库",
  83. "fontFamily": '黑体',
  84. "field": "correspondName",
  85. "testData": "",
  86. "color": "#000",
  87. "textAlign": "left"
  88. }, "printElementType": { "title": "", "type": "text" }
  89. },
  90. , {
  91. "options": {
  92. "left": 40,
  93. "top": 90,
  94. "height": 13,
  95. "width": 328,
  96. "fontSize": 12.5,
  97. "title": "备注",
  98. "fontFamily": '黑体',
  99. "field": "headerRemark",
  100. "testData": "",
  101. "color": "#000",
  102. "textAlign": "left"
  103. }, "printElementType": { "title": "", "type": "text" }
  104. },
  105. {
  106. "options": {
  107. "left": 23,
  108. "top": 105,
  109. "height": 381,
  110. "width": 633,
  111. "fontSize": 12.5,
  112. "field": "table",
  113. "fontFamily": '黑体',
  114. "lineHeight": 16,
  115. "tableFooterRepeat": "",
  116. "columns": [[
  117. {
  118. "title": "出库单号",
  119. "field": "salesId",
  120. "width": 40,
  121. "align": "left",
  122. "colspan": 1,
  123. "rowspan": 1,
  124. "fontSize": 12.5,
  125. }, {
  126. "title": "发货单号",
  127. "field": "invoiceId",
  128. "width": 47,
  129. "align": "left",
  130. "colspan": 1,
  131. "rowspan": 1,
  132. "fontSize": 12.5,
  133. }
  134. , {
  135. "title": "发货日期",
  136. "field": "createTime",
  137. "width": 25,
  138. "align": "left",
  139. "colspan": 1,
  140. "rowspan": 1,
  141. "fontSize": 12.5,
  142. }
  143. , {
  144. "title": "订单号",
  145. "field": "enginOrderType",
  146. "width": 40,
  147. "align": "left",
  148. "colspan": 1,
  149. "rowspan": 1,
  150. "fontSize": 12.5,
  151. }
  152. , {
  153. "title": "存货名称",
  154. "field": "materialName",
  155. "width": 40,
  156. "align": "left",
  157. "colspan": 1,
  158. "rowspan": 1,
  159. "fontSize": 12.5,
  160. }, {
  161. "title": "规格型号",
  162. "field": "specification",
  163. "width": 120,
  164. "align": "left",
  165. "colspan": 1,
  166. "rowspan": 1,
  167. "fontSize": 12.5,
  168. }
  169. , {
  170. "title": "数量",
  171. "field": "refundableQty",
  172. "width": 23,
  173. "align": "center",
  174. "colspan": 1,
  175. "rowspan": 1,
  176. "fontSize": 12.5,
  177. "tableSummary": "sum"
  178. }
  179. // , {
  180. // "title": "订单备注",
  181. // "field": "headerRemark",
  182. // "width": 40,
  183. // "align": "center",
  184. // "colspan": 1,
  185. // "rowspan": 1,
  186. // "fontSize": 12.5,
  187. // }
  188. ,
  189. {
  190. "title": "备注说明",
  191. "field": "pjxh1Text",
  192. "width": 40,
  193. "align": "left",
  194. "colspan": 2,
  195. "rowspan": 1,
  196. "fontSize": 12.5,
  197. }]]
  198. }, "printElementType": {
  199. "title": "表格", "type": "table",
  200. editable: true,
  201. columnDisplayEditable: true,//列显示是否能编辑
  202. columnDisplayIndexEditable: true,//列顺序显示是否能编辑
  203. columnTitleEditable: true,//列标题是否能编辑
  204. columnResizable: true, //列宽是否能调整
  205. columnAlignEditable: true,//列对齐是否调整
  206. isEnableEditField: true, //编辑字段
  207. isEnableContextMenu: true, //开启右键菜单 默认true
  208. isEnableInsertRow: true, //插入行
  209. isEnableDeleteRow: true, //删除行
  210. isEnableInsertColumn: true, //插入列
  211. isEnableDeleteColumn: true, //删除列
  212. isEnableMergeCell: true, //合并单元格
  213. }
  214. },
  215. , {
  216. "options": {
  217. "left": 40,
  218. "top": 360,
  219. "height": 13,
  220. "width": 218,
  221. "fontSize": 12.5,
  222. "title": "",
  223. "fontFamily": '黑体',
  224. "field": "takerName",
  225. "testData": "",
  226. "color": "#000",
  227. "textAlign": "left"
  228. }, "printElementType": { "title": "", "type": "text" }
  229. },
  230. {
  231. "options": {
  232. "left": 40,
  233. "top": 381,
  234. "height": 13,
  235. "width": 218,
  236. "fontSize": 12.5,
  237. "title": "打单",
  238. "fontFamily": '黑体',
  239. "field": "createBy",
  240. "testData": "",
  241. "color": "#000",
  242. "textAlign": "left"
  243. }, "printElementType": { "title": "", "type": "text" }
  244. },
  245. {
  246. "options": {
  247. "left": 238,
  248. "top": 381,
  249. "height": 13,
  250. "width": 218,
  251. "fontSize": 12.5,
  252. "title": "车辆",
  253. "fontFamily": '黑体',
  254. "field": "pickCar",
  255. "testData": "",
  256. "color": "#000",
  257. "textAlign": "left"
  258. }, "printElementType": { "title": "", "type": "text" }
  259. },
  260. {
  261. "options": {
  262. "left": 238,
  263. "top": 360,
  264. "height": 13,
  265. "width": 218,
  266. "fontSize": 12.5,
  267. "title": "联系方式",
  268. "fontFamily": '黑体',
  269. "field": "takerPhone",
  270. "testData": "",
  271. "color": "#000",
  272. "textAlign": "left"
  273. }, "printElementType": { "title": "", "type": "text" }
  274. },
  275. {
  276. "options": {
  277. "left": 463,
  278. "top": 360,
  279. "height": 13,
  280. "width": 218,
  281. "fontSize": 12.5,
  282. "title": "提单",
  283. "fontFamily": '黑体',
  284. "field": "takerDa",
  285. "testData": "",
  286. "color": "#000",
  287. "textAlign": "left"
  288. }, "printElementType": { "title": "", "type": "text" }
  289. },
  290. {
  291. "options": {
  292. "left": 463,
  293. "top": 381,
  294. "height": 13,
  295. "width": 218,
  296. "fontSize": 12.5,
  297. "title": "仓库",
  298. "fontFamily": '黑体',
  299. "field": "correspondNames",
  300. "testData": "",
  301. "color": "#000",
  302. "textAlign": "left"
  303. }, "printElementType": { "title": "", "type": "text" }
  304. },
  305. {
  306. "options": {
  307. "left": 650,
  308. "top": 381,
  309. "height": 13,
  310. "width": 218,
  311. "fontSize": 16,
  312. "title": "",
  313. "fontFamily": '黑体',
  314. "field": "pageNumber",
  315. "testData": "",
  316. "color": "#000",
  317. "textAlign": "left"
  318. }, "printElementType": { "title": "", "type": "text" }
  319. }],
  320. "paperNumberDisabled": true
  321. }]
  322. }