panel.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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": 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. }
  164. // , {
  165. // "title": "订单备注",
  166. // "field": "headerRemark",
  167. // "width": 40,
  168. // "align": "center",
  169. // "colspan": 1,
  170. // "rowspan": 1,
  171. // "fontSize": 13,
  172. // }
  173. ,
  174. {
  175. "title": "备注说明",
  176. "field": "pjxh1Text",
  177. "width": 40,
  178. "align": "left",
  179. "colspan": 2,
  180. "rowspan": 1,
  181. "fontSize": 13,
  182. }]]
  183. }, "printElementType": {
  184. "title": "表格", "type": "table",
  185. editable: true,
  186. columnDisplayEditable: true,//列显示是否能编辑
  187. columnDisplayIndexEditable: true,//列顺序显示是否能编辑
  188. columnTitleEditable: true,//列标题是否能编辑
  189. columnResizable: true, //列宽是否能调整
  190. columnAlignEditable: true,//列对齐是否调整
  191. isEnableEditField: true, //编辑字段
  192. isEnableContextMenu: true, //开启右键菜单 默认true
  193. isEnableInsertRow: true, //插入行
  194. isEnableDeleteRow: true, //删除行
  195. isEnableInsertColumn: true, //插入列
  196. isEnableDeleteColumn: true, //删除列
  197. isEnableMergeCell: true, //合并单元格
  198. }
  199. },
  200. , {
  201. "options": {
  202. "left": 40,
  203. "top": 360,
  204. "height": 13,
  205. "width": 218,
  206. "fontSize": 13,
  207. "title": "",
  208. "fontFamily": '黑体',
  209. "field": "takerName",
  210. "testData": "",
  211. "color": "#000",
  212. "textAlign": "left"
  213. }, "printElementType": { "title": "", "type": "text" }
  214. },
  215. {
  216. "options": {
  217. "left": 40,
  218. "top": 381,
  219. "height": 13,
  220. "width": 218,
  221. "fontSize": 13,
  222. "title": "打单",
  223. "fontFamily": '黑体',
  224. "field": "createBy",
  225. "testData": "",
  226. "color": "#000",
  227. "textAlign": "left"
  228. }, "printElementType": { "title": "", "type": "text" }
  229. },
  230. {
  231. "options": {
  232. "left": 238,
  233. "top": 381,
  234. "height": 13,
  235. "width": 218,
  236. "fontSize": 13,
  237. "title": "车辆",
  238. "fontFamily": '黑体',
  239. "field": "pickCar",
  240. "testData": "",
  241. "color": "#000",
  242. "textAlign": "left"
  243. }, "printElementType": { "title": "", "type": "text" }
  244. },
  245. {
  246. "options": {
  247. "left": 238,
  248. "top": 360,
  249. "height": 13,
  250. "width": 218,
  251. "fontSize": 13,
  252. "title": "联系方式",
  253. "fontFamily": '黑体',
  254. "field": "takerPhone",
  255. "testData": "",
  256. "color": "#000",
  257. "textAlign": "left"
  258. }, "printElementType": { "title": "", "type": "text" }
  259. },
  260. {
  261. "options": {
  262. "left": 463,
  263. "top": 360,
  264. "height": 13,
  265. "width": 218,
  266. "fontSize": 13,
  267. "title": "提单",
  268. "fontFamily": '黑体',
  269. "field": "takerDa",
  270. "testData": "",
  271. "color": "#000",
  272. "textAlign": "left"
  273. }, "printElementType": { "title": "", "type": "text" }
  274. },
  275. {
  276. "options": {
  277. "left": 463,
  278. "top": 381,
  279. "height": 13,
  280. "width": 218,
  281. "fontSize": 13,
  282. "title": "仓库",
  283. "fontFamily": '黑体',
  284. "field": "correspondNames",
  285. "testData": "",
  286. "color": "#000",
  287. "textAlign": "left"
  288. }, "printElementType": { "title": "", "type": "text" }
  289. },
  290. {
  291. "options": {
  292. "left": 650,
  293. "top": 381,
  294. "height": 13,
  295. "width": 218,
  296. "fontSize": 16,
  297. "title": "",
  298. "fontFamily": '黑体',
  299. "field": "pageNumber",
  300. "testData": "",
  301. "color": "#000",
  302. "textAlign": "left"
  303. }, "printElementType": { "title": "", "type": "text" }
  304. }],
  305. "paperNumberDisabled": true
  306. }]
  307. }