panel.js 7.5 KB

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