index.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /*
  2. * mock 存放全局静态数据
  3. */
  4. import Vue from 'vue';
  5. const allMock = {
  6. test: ['静态数据'],
  7. //面单数据
  8. order_data: {
  9. SALES_SLIP: "XS202211056",
  10. CUSTOMER_NAME: "青岛山高汽车科技服务有限公司",
  11. SALES_DATE: '2022-12-24'
  12. },
  13. printTemplate: {
  14. "pagConfig": {
  15. "pageLeft": "0",
  16. "pageTop": "0",
  17. "pageHeight": "60",
  18. "pageWidth": "74"
  19. },
  20. "printItem": [
  21. {
  22. "top": "10",
  23. "left": "120",
  24. "textAlign": "start",
  25. "width": "247",
  26. "fontSize": 9,
  27. "text": "销售单",
  28. "type": "text",
  29. "fontWeight": "400",
  30. "height": "20"
  31. },
  32. {
  33. "top": "30",
  34. "left": "10",
  35. "textAlign": "start",
  36. "width": "148",
  37. "fontSize": 9,
  38. "text": "NO.",
  39. "type": "text",
  40. "fontWeight": "20",
  41. "height": "20"
  42. },
  43. {
  44. "dataId": "SALES_SLIP",
  45. "top": "30",
  46. "left": "30",
  47. "textAlign": "start",
  48. "width": "148",
  49. "fontSize": 9,
  50. "text": "",
  51. "type": "field",
  52. "fontWeight": "400",
  53. "height": "20"
  54. },
  55. {
  56. "top": "50",
  57. "left": "10",
  58. "textAlign": "start",
  59. "width": "150",
  60. "fontSize": 8,
  61. "text": "客户:",
  62. "type": "text",
  63. "fontWeight": "400",
  64. "height": "20"
  65. },
  66. {
  67. "dataId": "CUSTOMER_NAME",
  68. "top": "50",
  69. "left": "40",
  70. "textAlign": "start",
  71. "width": "160",
  72. "fontSize": 8,
  73. "text": "",
  74. "type": "field",
  75. "fontWeight": "400",
  76. "height": "20"
  77. },
  78. {
  79. "top": "50",
  80. "left": "185",
  81. "textAlign": "start",
  82. "width": "100",
  83. "fontSize": 6,
  84. "text": "销售日期:",
  85. "type": "text",
  86. "fontWeight": "400",
  87. "height": "20"
  88. },
  89. {
  90. "dataId": "SALES_DATE",
  91. "top": "50",
  92. "left": "220",
  93. "textAlign": "start",
  94. "width": "148",
  95. "fontSize": 6,
  96. "text": "",
  97. "type": "field",
  98. "fontWeight": "400",
  99. "height": "20"
  100. },
  101. {
  102. "top": "70",
  103. "left": "20",
  104. "textAlign": "start",
  105. "width": "40",
  106. "fontSize": 8,
  107. "text": "产品",
  108. "type": "text",
  109. "fontWeight": "400",
  110. "height": "20"
  111. },
  112. {
  113. "top": "70",
  114. "left": "130",
  115. "textAlign": "start",
  116. "width": "40",
  117. "fontSize": 8,
  118. "text": "数量",
  119. "type": "text",
  120. "fontWeight": "400",
  121. "height": "20"
  122. },
  123. {
  124. "top": "70",
  125. "left": "160",
  126. "textAlign": "start",
  127. "width": "50",
  128. "fontSize": 8,
  129. "text": "单价",
  130. "type": "text",
  131. "fontWeight": "400",
  132. "height": "20"
  133. },
  134. {
  135. "top": "70",
  136. "left": "215",
  137. "textAlign": "start",
  138. "width": "60",
  139. "fontSize": 8,
  140. "text": "金额",
  141. "type": "text",
  142. "fontWeight": "400",
  143. "height": "20"
  144. }
  145. ]
  146. }
  147. }
  148. export default allMock;