panel.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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. {
  90. options: {
  91. left: 25,
  92. top: 72,
  93. height: 13,
  94. lineHeight: 13,
  95. width: 150,
  96. fontSize: 12.5,
  97. title: '出库单号',
  98. fontFamily: '黑体,宋体,微软雅黑',
  99. field: 'salesId',
  100. color: '#000',
  101. textAlign: 'left'
  102. },
  103. printElementType: { title: '', type: 'text' }
  104. },
  105. {
  106. options: {
  107. left: 300,
  108. top: 72,
  109. height: 13,
  110. lineHeight: 13,
  111. width: 200,
  112. fontSize: 12.5,
  113. title: '发货单号',
  114. fontFamily: '黑体,宋体,微软雅黑',
  115. field: 'invoiceId',
  116. color: '#000',
  117. textAlign: 'left'
  118. },
  119. printElementType: { title: '', type: 'text' }
  120. },
  121. {
  122. options: {
  123. left: 500,
  124. top: 72,
  125. height: 13,
  126. lineHeight: 13,
  127. width: 300,
  128. fontSize: 12.5,
  129. title: '仓库',
  130. fontFamily: '黑体,宋体,微软雅黑',
  131. field: 'correspondName',
  132. testData: '',
  133. color: '#000',
  134. textAlign: 'left'
  135. },
  136. printElementType: { title: '', type: 'text' }
  137. },
  138. {
  139. options: {
  140. left: 25,
  141. top: 89,
  142. height: 13,
  143. lineHeight: 13,
  144. width: 328,
  145. fontSize: 12.5,
  146. title: '工程登录编号',
  147. fontFamily: '黑体,宋体,微软雅黑',
  148. field: 'refEnginRecordNo',
  149. color: '#000',
  150. textAlign: 'left'
  151. },
  152. printElementType: { title: '', type: 'text' }
  153. },
  154. {
  155. options: {
  156. left: 300,
  157. top: 89,
  158. height: 13,
  159. lineHeight: 13,
  160. width: 410,
  161. fontSize: 12.5,
  162. title: '使用单位',
  163. fontFamily: '黑体,宋体,微软雅黑',
  164. field: 'refUseUnit',
  165. color: '#000',
  166. textAlign: 'left'
  167. },
  168. printElementType: { title: '', type: 'text' }
  169. },
  170. {
  171. options: {
  172. left: 25,
  173. top: 106,
  174. height: 13,
  175. lineHeight: 13,
  176. width: 633,
  177. fontSize: 12.5,
  178. title: '备注',
  179. fontFamily: '黑体,宋体,微软雅黑',
  180. field: 'headerRemark',
  181. testData: '',
  182. color: '#000',
  183. textAlign: 'left'
  184. },
  185. printElementType: { title: '', type: 'text', fontSize: 8 }
  186. },
  187. {
  188. options: {
  189. left: 23,
  190. top: 123,
  191. height: 410,
  192. width: 630,
  193. fontSize: 12.5,
  194. field: 'table',
  195. fontFamily: '黑体,宋体,微软雅黑',
  196. lineHeight: 16,
  197. tableFooterRepeat: 'last',
  198. columns: [
  199. [
  200. {
  201. title: '服务单号',
  202. field: 'enginOrderType',
  203. width: 60,
  204. align: 'left',
  205. colspan: 1,
  206. rowspan: 1,
  207. fontSize: 12.5
  208. },
  209. {
  210. title: '发货日期',
  211. field: 'createTime',
  212. width: 50,
  213. align: 'left',
  214. colspan: 1,
  215. rowspan: 1,
  216. fontSize: 12.5
  217. },
  218. {
  219. title: '存货名称',
  220. field: 'materialName',
  221. width: 100,
  222. align: 'left',
  223. colspan: 1,
  224. rowspan: 1,
  225. fontSize: 12.5
  226. },
  227. {
  228. title: '规格型号',
  229. field: 'specification',
  230. width: 140,
  231. align: 'left',
  232. overflow: 'hidden',
  233. colspan: 1,
  234. rowspan: 1,
  235. fontSize: 12.5
  236. },
  237. {
  238. title: '数量',
  239. field: 'refundableQty',
  240. width: 23,
  241. align: 'center',
  242. colspan: 1,
  243. rowspan: 1,
  244. fontSize: 12.5,
  245. tableSummary: 'sum'
  246. },
  247. // , {
  248. // "title": "服务单备注",
  249. // "field": "headerRemark",
  250. // "width": 40,
  251. // "align": "center",
  252. // "colspan": 1,
  253. // "rowspan": 1,
  254. // "fontSize": 12.5,
  255. // }
  256. {
  257. title: '备注说明',
  258. field: 'pjxh1Text',
  259. width: 40,
  260. align: 'left',
  261. colspan: 2,
  262. rowspan: 1,
  263. fontSize: 12.5
  264. }
  265. ]
  266. ]
  267. },
  268. printElementType: {
  269. title: '表格',
  270. type: 'table',
  271. editable: true,
  272. columnDisplayEditable: true, // 列显示是否能编辑
  273. columnDisplayIndexEditable: true, // 列顺序显示是否能编辑
  274. columnTitleEditable: true, // 列标题是否能编辑
  275. columnResizable: true, // 列宽是否能调整
  276. columnAlignEditable: true, // 列对齐是否调整
  277. isEnableEditField: true, // 编辑字段
  278. isEnableContextMenu: true, // 开启右键菜单 默认true
  279. isEnableInsertRow: true, // 插入行
  280. isEnableDeleteRow: true, // 删除行
  281. isEnableInsertColumn: true, // 插入列
  282. isEnableDeleteColumn: true, // 删除列
  283. isEnableMergeCell: true // 合并单元格
  284. }
  285. },
  286. {
  287. options: {
  288. left: 25,
  289. top: 393,
  290. height: 13,
  291. lineHeight: 13,
  292. width: 218,
  293. fontSize: 12.5,
  294. title: '',
  295. fontFamily: '黑体,宋体,微软雅黑',
  296. field: 'takerName',
  297. testData: '',
  298. color: '#000',
  299. textAlign: 'left'
  300. },
  301. printElementType: { title: '', type: 'text' }
  302. },
  303. {
  304. options: {
  305. left: 25,
  306. top: 410,
  307. height: 13,
  308. lineHeight: 13,
  309. width: 218,
  310. fontSize: 12.5,
  311. title: '打单',
  312. fontFamily: '黑体,宋体,微软雅黑',
  313. field: 'createBy',
  314. testData: '',
  315. color: '#000',
  316. textAlign: 'left'
  317. },
  318. printElementType: { title: '', type: 'text' }
  319. },
  320. {
  321. options: {
  322. left: 238,
  323. top: 410,
  324. height: 13,
  325. lineHeight: 13,
  326. width: 218,
  327. fontSize: 12.5,
  328. title: '提单',
  329. fontFamily: '黑体,宋体,微软雅黑',
  330. field: 'takerDa',
  331. testData: '',
  332. color: '#000',
  333. textAlign: 'left'
  334. },
  335. printElementType: { title: '', type: 'text' }
  336. },
  337. {
  338. options: {
  339. left: 238,
  340. top: 393,
  341. height: 13,
  342. lineHeight: 13,
  343. width: 218,
  344. fontSize: 12.5,
  345. title: '联系方式',
  346. fontFamily: '黑体,宋体,微软雅黑',
  347. field: 'takerPhone',
  348. testData: '',
  349. color: '#000',
  350. textAlign: 'left'
  351. },
  352. printElementType: { title: '', type: 'text' }
  353. },
  354. {
  355. options: {
  356. left: 463,
  357. top: 393,
  358. height: 13,
  359. lineHeight: 13,
  360. width: 218,
  361. fontSize: 12.5,
  362. title: '车辆',
  363. fontFamily: '黑体,宋体,微软雅黑',
  364. field: 'pickCar',
  365. testData: '',
  366. color: '#000',
  367. textAlign: 'left'
  368. },
  369. printElementType: { title: '', type: 'text' }
  370. },
  371. {
  372. options: {
  373. left: 463,
  374. top: 410,
  375. height: 13,
  376. lineHeight: 13,
  377. width: 218,
  378. fontSize: 12.5,
  379. title: '仓库',
  380. fontFamily: '黑体,宋体,微软雅黑',
  381. field: 'correspondNames',
  382. testData: '',
  383. color: '#000',
  384. textAlign: 'left'
  385. },
  386. printElementType: { title: '', type: 'text' }
  387. },
  388. // {
  389. // options: {
  390. // left: 600,
  391. // top: 393,
  392. // height: 13,
  393. // lineHeight: 13,
  394. // width: 218,
  395. // fontSize: 12.5,
  396. // title: "合计",
  397. // fontFamily: "黑体,宋体,微软雅黑",
  398. // field: "total",
  399. // testData: "",
  400. // color: "#000",
  401. // textAlign: "left",
  402. // },
  403. // printElementType: { title: "", type: "text" },
  404. // },
  405. {
  406. options: {
  407. left: 610,
  408. top: 410,
  409. height: 13,
  410. lineHeight: 13,
  411. width: 218,
  412. fontSize: 16,
  413. title: '',
  414. fontFamily: '黑体,宋体,微软雅黑',
  415. field: 'pageNumber',
  416. testData: '',
  417. color: '#000',
  418. textAlign: 'left'
  419. },
  420. printElementType: { title: '', type: 'text' }
  421. }
  422. ],
  423. paperNumberDisabled: true
  424. }
  425. ]
  426. }