panel2.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. export default {
  2. panels: [
  3. {
  4. index: 0,
  5. height: 150,
  6. width: 241,
  7. paperCount: 222,
  8. printElements: [
  9. {
  10. options: {
  11. left: 0,
  12. top: 25,
  13. height: 27,
  14. width: 640,
  15. field: 'company',
  16. fontSize: 19,
  17. fontWeight: '600',
  18. fontFamily: '黑体,宋体,微软雅黑',
  19. textAlign: 'center',
  20. lineHeight: 26
  21. },
  22. printElementType: { title: '', type: 'text' }
  23. },
  24. {
  25. options: {
  26. left: 25,
  27. top: 35,
  28. height: 13,
  29. lineHeight: 13,
  30. width: 328,
  31. fontSize: 12.5,
  32. title: '打印日期',
  33. fontFamily: '黑体,宋体,微软雅黑',
  34. field: 'nowDate',
  35. testData: '',
  36. color: '#000',
  37. textAlign: 'left'
  38. },
  39. printElementType: { title: '', type: 'text' }
  40. },
  41. {
  42. options: {
  43. left: 590,
  44. top: 35,
  45. height: 13,
  46. lineHeight: 13,
  47. width: 328,
  48. fontSize: 12.5,
  49. title: '打印次数',
  50. fontFamily: '黑体,宋体,微软雅黑',
  51. field: 'printNum',
  52. color: '#000',
  53. textAlign: 'left'
  54. },
  55. printElementType: { title: '', type: 'text' }
  56. },
  57. // {
  58. // "options": {
  59. // "left": 25,
  60. // "top": 35,
  61. // "height": 13,
  62. // "lineHeight": 13,
  63. // "width": 328,
  64. // "fontSize": 12.5,
  65. // "title": "经销商编码",
  66. // "fontFamily": '黑体,宋体,微软雅黑',
  67. // "field": "customerNumber",
  68. // "color": "#000",
  69. // "textAlign": "left"
  70. // }, "printElementType": { "title": "", "type": "text" }
  71. // },
  72. {
  73. options: {
  74. left: 25,
  75. top: 55,
  76. height: 13,
  77. lineHeight: 13,
  78. width: 640,
  79. fontSize: 12.5,
  80. title: '经销商',
  81. fontFamily: '黑体,宋体,微软雅黑',
  82. field: 'customerName',
  83. color: '#000',
  84. textAlign: 'left'
  85. },
  86. printElementType: { title: '', type: 'text' }
  87. },
  88. {
  89. options: {
  90. left: 500,
  91. top: 55,
  92. height: 13,
  93. lineHeight: 13,
  94. width: 300,
  95. fontSize: 12.5,
  96. title: '提货方式',
  97. fontFamily: '黑体,宋体,微软雅黑',
  98. field: 'pickTypeName',
  99. color: '#000',
  100. textAlign: 'left'
  101. },
  102. printElementType: { title: '', type: 'text' }
  103. },
  104. {
  105. options: {
  106. left: 25,
  107. top: 72,
  108. height: 13,
  109. lineHeight: 13,
  110. width: 150,
  111. fontSize: 12.5,
  112. title: '出库单号',
  113. fontFamily: '黑体,宋体,微软雅黑',
  114. field: 'salesId',
  115. color: '#000',
  116. textAlign: 'left'
  117. },
  118. printElementType: { title: '', type: 'text' }
  119. },
  120. {
  121. options: {
  122. left: 300,
  123. top: 72,
  124. height: 13,
  125. lineHeight: 13,
  126. width: 200,
  127. fontSize: 12.5,
  128. title: '发货单号',
  129. fontFamily: '黑体,宋体,微软雅黑',
  130. field: 'invoiceId',
  131. color: '#000',
  132. textAlign: 'left'
  133. },
  134. printElementType: { title: '', type: 'text' }
  135. },
  136. {
  137. options: {
  138. left: 500,
  139. top: 72,
  140. height: 13,
  141. lineHeight: 13,
  142. width: 300,
  143. fontSize: 12.5,
  144. title: '仓库',
  145. fontFamily: '黑体,宋体,微软雅黑',
  146. field: 'correspondName',
  147. testData: '',
  148. color: '#000',
  149. textAlign: 'left'
  150. },
  151. printElementType: { title: '', type: 'text' }
  152. },
  153. {
  154. options: {
  155. left: 25,
  156. top: 89,
  157. height: 13,
  158. lineHeight: 13,
  159. width: 328,
  160. fontSize: 12.5,
  161. title: '工程登录编号',
  162. fontFamily: '黑体,宋体,微软雅黑',
  163. field: 'refEnginRecordNo',
  164. color: '#000',
  165. textAlign: 'left'
  166. },
  167. printElementType: { title: '', type: 'text' }
  168. },
  169. {
  170. options: {
  171. left: 300,
  172. top: 89,
  173. height: 13,
  174. lineHeight: 13,
  175. width: 410,
  176. fontSize: 12.5,
  177. title: '使用单位',
  178. fontFamily: '黑体,宋体,微软雅黑',
  179. field: 'refUseUnit',
  180. color: '#000',
  181. textAlign: 'left'
  182. },
  183. printElementType: { title: '', type: 'text' }
  184. },
  185. {
  186. options: {
  187. left: 25,
  188. top: 106,
  189. height: 13,
  190. lineHeight: 13,
  191. width: 633,
  192. fontSize: 12.5,
  193. title: '备注',
  194. fontFamily: '黑体,宋体,微软雅黑',
  195. field: 'headerRemark',
  196. testData: '',
  197. color: '#000',
  198. textAlign: 'left'
  199. },
  200. printElementType: { title: '', type: 'text', fontSize: 8 }
  201. },
  202. {
  203. options: {
  204. left: 23,
  205. top: 123,
  206. height: 410,
  207. width: 630,
  208. fontSize: 12.5,
  209. field: 'table',
  210. fontFamily: '黑体,宋体,微软雅黑',
  211. lineHeight: 16,
  212. tableFooterRepeat: 'last',
  213. columns: [
  214. [
  215. {
  216. title: '订单号',
  217. field: 'enginOrderType',
  218. width: 60,
  219. align: 'left',
  220. colspan: 1,
  221. rowspan: 1,
  222. fontSize: 12.5
  223. },
  224. {
  225. title: '发货日期',
  226. field: 'createTime',
  227. width: 50,
  228. align: 'left',
  229. colspan: 1,
  230. rowspan: 1,
  231. fontSize: 12.5
  232. },
  233. {
  234. title: '存货名称',
  235. field: 'materialName',
  236. width: 100,
  237. align: 'left',
  238. colspan: 1,
  239. rowspan: 1,
  240. fontSize: 12.5
  241. },
  242. {
  243. title: '规格型号',
  244. field: 'specification',
  245. width: 140,
  246. align: 'left',
  247. overflow: 'hidden',
  248. colspan: 1,
  249. rowspan: 1,
  250. fontSize: 12.5
  251. },
  252. {
  253. title: '数量',
  254. field: 'refundableQty',
  255. width: 23,
  256. align: 'center',
  257. colspan: 1,
  258. rowspan: 1,
  259. fontSize: 12.5,
  260. tableSummary: 'sum'
  261. },
  262. // , {
  263. // "title": "订单备注",
  264. // "field": "headerRemark",
  265. // "width": 40,
  266. // "align": "center",
  267. // "colspan": 1,
  268. // "rowspan": 1,
  269. // "fontSize": 12.5,
  270. // }
  271. {
  272. title: '备注说明',
  273. field: 'pjxh1Text',
  274. width: 40,
  275. align: 'left',
  276. colspan: 2,
  277. rowspan: 1,
  278. fontSize: 12.5
  279. }
  280. ]
  281. ]
  282. },
  283. printElementType: {
  284. title: '表格',
  285. type: 'table',
  286. editable: true,
  287. columnDisplayEditable: true, // 列显示是否能编辑
  288. columnDisplayIndexEditable: true, // 列顺序显示是否能编辑
  289. columnTitleEditable: true, // 列标题是否能编辑
  290. columnResizable: true, // 列宽是否能调整
  291. columnAlignEditable: true, // 列对齐是否调整
  292. isEnableEditField: true, // 编辑字段
  293. isEnableContextMenu: true, // 开启右键菜单 默认true
  294. isEnableInsertRow: true, // 插入行
  295. isEnableDeleteRow: true, // 删除行
  296. isEnableInsertColumn: true, // 插入列
  297. isEnableDeleteColumn: true, // 删除列
  298. isEnableMergeCell: true // 合并单元格
  299. }
  300. },
  301. {
  302. options: {
  303. left: 25,
  304. top: 376,
  305. height: 13,
  306. lineHeight: 13,
  307. width: 218,
  308. fontSize: 12.5,
  309. title: '',
  310. fontFamily: '黑体,宋体,微软雅黑',
  311. field: 'takerName',
  312. testData: '',
  313. color: '#000',
  314. textAlign: 'left'
  315. },
  316. printElementType: { title: '', type: 'text' }
  317. },
  318. {
  319. options: {
  320. left: 25,
  321. top: 410,
  322. height: 13,
  323. lineHeight: 13,
  324. width: 218,
  325. fontSize: 12.5,
  326. title: '打单',
  327. fontFamily: '黑体,宋体,微软雅黑',
  328. field: 'createBy',
  329. testData: '',
  330. color: '#000',
  331. textAlign: 'left'
  332. },
  333. printElementType: { title: '', type: 'text' }
  334. },
  335. {
  336. options: {
  337. left: 238,
  338. top: 410,
  339. height: 13,
  340. lineHeight: 13,
  341. width: 218,
  342. fontSize: 12.5,
  343. title: '提单',
  344. fontFamily: '黑体,宋体,微软雅黑',
  345. field: 'takerDa',
  346. testData: '',
  347. color: '#000',
  348. textAlign: 'left'
  349. },
  350. printElementType: { title: '', type: 'text' }
  351. },
  352. {
  353. options: {
  354. left: 238,
  355. top: 376,
  356. height: 13,
  357. lineHeight: 13,
  358. width: 218,
  359. fontSize: 12.5,
  360. title: '联系方式',
  361. fontFamily: '黑体,宋体,微软雅黑',
  362. field: 'takerPhone',
  363. testData: '',
  364. color: '#000',
  365. textAlign: 'left'
  366. },
  367. printElementType: { title: '', type: 'text' }
  368. },
  369. {
  370. options: {
  371. left: 463,
  372. top: 376,
  373. height: 13,
  374. lineHeight: 13,
  375. width: 218,
  376. fontSize: 12.5,
  377. title: '车辆',
  378. fontFamily: '黑体,宋体,微软雅黑',
  379. field: 'pickCar',
  380. testData: '',
  381. color: '#000',
  382. textAlign: 'left'
  383. },
  384. printElementType: { title: '', type: 'text' }
  385. },
  386. {
  387. options: {
  388. left: 463,
  389. top: 410,
  390. height: 13,
  391. lineHeight: 13,
  392. width: 218,
  393. fontSize: 12.5,
  394. title: '仓库',
  395. fontFamily: '黑体,宋体,微软雅黑',
  396. field: 'correspondNames',
  397. testData: '',
  398. color: '#000',
  399. textAlign: 'left'
  400. },
  401. printElementType: { title: '', type: 'text' }
  402. },
  403. {
  404. options: {
  405. left: 25,
  406. top: 393,
  407. height: 13,
  408. lineHeight: 13,
  409. width: 640,
  410. fontSize: 12.5,
  411. title: "送货地址",
  412. fontFamily: "黑体,宋体,微软雅黑",
  413. field: "address",
  414. testData: "",
  415. color: "#000",
  416. textAlign: "left",
  417. },
  418. printElementType: { title: "", type: "text" },
  419. },
  420. {
  421. options: {
  422. left: 610,
  423. top: 410,
  424. height: 13,
  425. lineHeight: 13,
  426. width: 218,
  427. fontSize: 16,
  428. title: '',
  429. fontFamily: '黑体,宋体,微软雅黑',
  430. field: 'pageNumber',
  431. testData: '',
  432. color: '#000',
  433. textAlign: 'left'
  434. },
  435. printElementType: { title: '', type: 'text' }
  436. }
  437. ],
  438. paperNumberDisabled: true
  439. }
  440. ]
  441. }