Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. let id = Math.floor(Math.random() * 1000000)
  2.  
  3. let notaFiscal = {
  4. elementId: 'IDPARCOMPANHIA',
  5. id: id,
  6. pageId: '/cadastros/trp-nota-fiscal-de-servico',
  7. search: {
  8. idSearchField: 'CDNC',
  9. idValue: id,
  10. type: 'text',
  11. },
  12. fieldEdit: {
  13. id: 'CDNATUREZAOPERACAO',
  14. value: 'teste',
  15. type: 'text',
  16. },
  17.  
  18. fields: [
  19. //
  20. {
  21. id: 'MNC_RNCELC_GRID_CONTAINER',
  22. value: [
  23. {
  24. id: 'MNC_RNCELC_VRNCELEMENTOCUSTO',
  25. value:
  26. Math.floor(10000000000 + Math.random() * 90000000000) +
  27. '.' +
  28. Math.floor(100 + Math.random() * 900),
  29. type: 'text',
  30. },
  31. {
  32. id: 'MNC_RNCELC_TPCUSTO',
  33. value: '1',
  34. type: 'select',
  35. },
  36. ],
  37. type: 'grid',
  38. },
  39. // {
  40. // id: 'MNC_RNCELC_GRID_CONTAINER',
  41. // value: [
  42. // {
  43. // id: 'MNC_RNCELC_VRNCELEMENTOCUSTO',
  44. // value:
  45. // Math.floor(10000000000 + Math.random() * 90000000000) +
  46. // '.' +
  47. // Math.floor(100 + Math.random() * 900),
  48. // type: 'text',
  49. // },
  50. // {
  51. // id: 'MNC_RNCELC_TPCUSTO',
  52. // value: '2',
  53. // type: 'select',
  54. // },
  55. // ],
  56. // type: 'grid',
  57. // },
  58. //
  59. {
  60. id: 'MNCI_RCONNC_GRID_CONTAINER',
  61. value: [
  62. {
  63. id: 'MNCI_RCONNC_IDCONHECIMENTO',
  64. value: '10',
  65. type: 'foreign',
  66. },
  67. {
  68. id: 'MNCI_RCONNC_IDNOTA',
  69. value: '10',
  70. type: 'foreign',
  71. },
  72. ],
  73. type: 'grid',
  74. },
  75. // {
  76. // id: 'MNCI_RCONNC_GRID_CONTAINER',
  77. // value: [
  78. // {
  79. // id: 'MNCI_RCONNC_IDCONHECIMENTO',
  80. // value: '20',
  81. // type: 'foreign',
  82. // },
  83. // {
  84. // id: 'MNCI_RCONNC_IDNOTA',
  85. // value: '20',
  86. // type: 'foreign',
  87. // },
  88. // ],
  89. // type: 'grid',
  90. // },
  91. //
  92. {
  93. id: 'MNC_MNCITEM_GRID_CONTAINER',
  94. value: [
  95. {
  96. id: 'MNC_MNCITEM_IDEQUIPAMENTO',
  97. value: '0001',
  98. type: 'foreign',
  99. },
  100. {
  101. id: 'MNC_MNCITEM_VRNC',
  102. value:
  103. Math.floor(10000000000 + Math.random() * 90000000000) +
  104. '.' +
  105. Math.floor(100 + Math.random() * 900),
  106. type: 'text',
  107. },
  108. {
  109. id: 'MNC_MNCITEM_VRBASECALCULOISS',
  110. value:
  111. Math.floor(10000000000 + Math.random() * 90000000000) +
  112. '.' +
  113. Math.floor(100 + Math.random() * 900),
  114. type: 'text',
  115. },
  116. {
  117. id: 'MNC_MNCITEM_VRISS',
  118. value:
  119. Math.floor(10000000000 + Math.random() * 90000000000) +
  120. '.' +
  121. Math.floor(100 + Math.random() * 900),
  122. type: 'text',
  123. },
  124. {
  125. id: 'MNC_MNCITEM_CDSOLICITACAOCOLETA',
  126. value: Math.floor(1000000000 + Math.random() * 9000000000),
  127. type: 'text',
  128. },
  129. {
  130. id: 'MNC_MNCITEM_CDROMANEIO',
  131. value: Math.floor(1000000000 + Math.random() * 9000000000),
  132. type: 'text',
  133. },
  134. {
  135. id: 'MNC_MNCITEM_VRPESOTRANSPORCOBRADO',
  136. value: Math.floor(1000 + Math.random() * 9000),
  137. type: 'text',
  138. },
  139. {
  140. id: 'MNC_MNCITEM_VRNOTATRANSPORCOBRADO',
  141. value: Math.floor(1000 + Math.random() * 9000),
  142. type: 'text',
  143. },
  144. ],
  145. type: 'grid',
  146. },
  147. {
  148. id: 'IDPARCOMPANHIA',
  149. value: 'JEJ',
  150. type: 'foreign',
  151. },
  152. {
  153. id: 'IDPARTRANSPORTADORA',
  154. value: '',
  155. type: 'foreign',
  156. },
  157. {
  158. id: 'IDTIPONC',
  159. value: 'NSF',
  160. type: 'foreign',
  161. },
  162. {
  163. id: 'CDNC',
  164. value: id,
  165. type: 'text',
  166. },
  167. {
  168. id: 'DTEMISSAO',
  169. value: 1,
  170. type: 'text',
  171. },
  172. {
  173. id: 'TPFECHAMENTOFISCAL',
  174. value: '1',
  175. type: 'select',
  176. },
  177. {
  178. id: 'STRECALCULONC',
  179. value: '1',
  180. type: 'select',
  181. },
  182. {
  183. id: 'IDCIDORIGEM',
  184. value: 'ABADIANIA',
  185. type: 'foreign',
  186. },
  187. ],
  188. }
  189.  
  190. module.exports.notaFiscal = notaFiscal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement