panel.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. export default {
  2. "panels": [{
  3. "index": 0,
  4. "height": 150,
  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": 11,
  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": 11,
  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": 11,
  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": 11,
  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": 11,
  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": 11,
  97. "title": "出库单号",
  98. "fontFamily": '黑体',
  99. "field": "salesId",
  100. "color": "#000",
  101. "textAlign": "left"
  102. }, "printElementType": { "title": "", "type": "text" }
  103. },
  104. {
  105. "options": {
  106. "left": 348,
  107. "top": 90,
  108. "height": 13,
  109. "width": 328,
  110. "fontSize": 11,
  111. "title": "发货单号",
  112. "fontFamily": '黑体',
  113. "field": "invoiceId",
  114. "color": "#000",
  115. "textAlign": "left"
  116. }, "printElementType": { "title": "", "type": "text" }
  117. },
  118. {
  119. "options": {
  120. "left": 40,
  121. "top": 110,
  122. "height": 13,
  123. "width": 633,
  124. "fontSize": 11,
  125. "title": "备注",
  126. "fontFamily": '黑体',
  127. "field": "headerRemark",
  128. "testData": "",
  129. "color": "#000",
  130. "textAlign": "left"
  131. }, "printElementType": { "title": "", "type": "text" ,"fontSize": 8,}
  132. },
  133. {
  134. "options": {
  135. "left": 23,
  136. "top": 125,
  137. "height": 410,
  138. "width": 633,
  139. "fontSize": 11,
  140. "field": "table",
  141. "fontFamily": '黑体',
  142. "lineHeight": 16,
  143. "tableFooterRepeat": "",
  144. "columns": [[
  145. {
  146. "title": "订单号",
  147. "field": "enginOrderType",
  148. "width": 60,
  149. "align": "left",
  150. "colspan": 1,
  151. "rowspan": 1,
  152. "fontSize": 11,
  153. } , {
  154. "title": "发货日期",
  155. "field": "createTime",
  156. "width": 50,
  157. "align": "left",
  158. "colspan": 1,
  159. "rowspan": 1,
  160. "fontSize": 11,
  161. }
  162. , {
  163. "title": "存货名称",
  164. "field": "materialName",
  165. "width": 100,
  166. "align": "left",
  167. "colspan": 1,
  168. "rowspan": 1,
  169. "fontSize": 11,
  170. }, {
  171. "title": "规格型号",
  172. "field": "specification",
  173. "width": 140,
  174. "align": "left",
  175. "colspan": 1,
  176. "rowspan": 1,
  177. "fontSize": 11,
  178. }
  179. , {
  180. "title": "数量",
  181. "field": "refundableQty",
  182. "width": 23,
  183. "align": "center",
  184. "colspan": 1,
  185. "rowspan": 1,
  186. "fontSize": 11,
  187. "tableSummary": "sum"
  188. }
  189. // , {
  190. // "title": "订单备注",
  191. // "field": "headerRemark",
  192. // "width": 40,
  193. // "align": "center",
  194. // "colspan": 1,
  195. // "rowspan": 1,
  196. // "fontSize": 11,
  197. // }
  198. ,
  199. {
  200. "title": "备注说明",
  201. "field": "pjxh1Text",
  202. "width": 40,
  203. "align": "left",
  204. "colspan": 2,
  205. "rowspan": 1,
  206. "fontSize": 11,
  207. }]]
  208. }, "printElementType": {
  209. "title": "表格", "type": "table",
  210. editable: true,
  211. columnDisplayEditable: true,//列显示是否能编辑
  212. columnDisplayIndexEditable: true,//列顺序显示是否能编辑
  213. columnTitleEditable: true,//列标题是否能编辑
  214. columnResizable: true, //列宽是否能调整
  215. columnAlignEditable: true,//列对齐是否调整
  216. isEnableEditField: true, //编辑字段
  217. isEnableContextMenu: true, //开启右键菜单 默认true
  218. isEnableInsertRow: true, //插入行
  219. isEnableDeleteRow: true, //删除行
  220. isEnableInsertColumn: true, //插入列
  221. isEnableDeleteColumn: true, //删除列
  222. isEnableMergeCell: true, //合并单元格
  223. }
  224. },
  225. , {
  226. "options": {
  227. "left": 40,
  228. "top": 390,
  229. "height": 13,
  230. "width": 218,
  231. "fontSize": 11,
  232. "title": "",
  233. "fontFamily": '黑体',
  234. "field": "takerName",
  235. "testData": "",
  236. "color": "#000",
  237. "textAlign": "left"
  238. }, "printElementType": { "title": "", "type": "text" }
  239. },
  240. {
  241. "options": {
  242. "left": 40,
  243. "top": 410,
  244. "height": 13,
  245. "width": 218,
  246. "fontSize": 11,
  247. "title": "打单",
  248. "fontFamily": '黑体',
  249. "field": "createBy",
  250. "testData": "",
  251. "color": "#000",
  252. "textAlign": "left"
  253. }, "printElementType": { "title": "", "type": "text" }
  254. },
  255. {
  256. "options": {
  257. "left": 238,
  258. "top": 410,
  259. "height": 13,
  260. "width": 218,
  261. "fontSize": 11,
  262. "title": "车辆",
  263. "fontFamily": '黑体',
  264. "field": "pickCar",
  265. "testData": "",
  266. "color": "#000",
  267. "textAlign": "left"
  268. }, "printElementType": { "title": "", "type": "text" }
  269. },
  270. {
  271. "options": {
  272. "left": 238,
  273. "top": 390,
  274. "height": 13,
  275. "width": 218,
  276. "fontSize": 11,
  277. "title": "联系方式",
  278. "fontFamily": '黑体',
  279. "field": "takerPhone",
  280. "testData": "",
  281. "color": "#000",
  282. "textAlign": "left"
  283. }, "printElementType": { "title": "", "type": "text" }
  284. },
  285. {
  286. "options": {
  287. "left": 463,
  288. "top": 390,
  289. "height": 13,
  290. "width": 218,
  291. "fontSize": 11,
  292. "title": "提单",
  293. "fontFamily": '黑体',
  294. "field": "takerDa",
  295. "testData": "",
  296. "color": "#000",
  297. "textAlign": "left"
  298. }, "printElementType": { "title": "", "type": "text" }
  299. },
  300. {
  301. "options": {
  302. "left": 463,
  303. "top": 410,
  304. "height": 13,
  305. "width": 218,
  306. "fontSize": 11,
  307. "title": "仓库",
  308. "fontFamily": '黑体',
  309. "field": "correspondNames",
  310. "testData": "",
  311. "color": "#000",
  312. "textAlign": "left"
  313. }, "printElementType": { "title": "", "type": "text" }
  314. },
  315. {
  316. "options": {
  317. "left": 650,
  318. "top": 410,
  319. "height": 13,
  320. "width": 218,
  321. "fontSize": 16,
  322. "title": "",
  323. "fontFamily": '黑体',
  324. "field": "pageNumber",
  325. "testData": "",
  326. "color": "#000",
  327. "textAlign": "left"
  328. }, "printElementType": { "title": "", "type": "text" }
  329. }],
  330. "paperNumberDisabled": true
  331. }]
  332. }