panel.js 8.0 KB

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