Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let id = Math.floor(Math.random() * 1000000)
- let notaFiscal = {
- elementId: 'IDPARCOMPANHIA',
- id: id,
- pageId: '/cadastros/trp-nota-fiscal-de-servico',
- search: {
- idSearchField: 'CDNC',
- idValue: id,
- type: 'text',
- },
- fieldEdit: {
- id: 'CDNATUREZAOPERACAO',
- value: 'teste',
- type: 'text',
- },
- fields: [
- //
- {
- id: 'MNC_RNCELC_GRID_CONTAINER',
- value: [
- {
- id: 'MNC_RNCELC_VRNCELEMENTOCUSTO',
- value:
- Math.floor(10000000000 + Math.random() * 90000000000) +
- '.' +
- Math.floor(100 + Math.random() * 900),
- type: 'text',
- },
- {
- id: 'MNC_RNCELC_TPCUSTO',
- value: '1',
- type: 'select',
- },
- ],
- type: 'grid',
- },
- // {
- // id: 'MNC_RNCELC_GRID_CONTAINER',
- // value: [
- // {
- // id: 'MNC_RNCELC_VRNCELEMENTOCUSTO',
- // value:
- // Math.floor(10000000000 + Math.random() * 90000000000) +
- // '.' +
- // Math.floor(100 + Math.random() * 900),
- // type: 'text',
- // },
- // {
- // id: 'MNC_RNCELC_TPCUSTO',
- // value: '2',
- // type: 'select',
- // },
- // ],
- // type: 'grid',
- // },
- //
- {
- id: 'MNCI_RCONNC_GRID_CONTAINER',
- value: [
- {
- id: 'MNCI_RCONNC_IDCONHECIMENTO',
- value: '10',
- type: 'foreign',
- },
- {
- id: 'MNCI_RCONNC_IDNOTA',
- value: '10',
- type: 'foreign',
- },
- ],
- type: 'grid',
- },
- // {
- // id: 'MNCI_RCONNC_GRID_CONTAINER',
- // value: [
- // {
- // id: 'MNCI_RCONNC_IDCONHECIMENTO',
- // value: '20',
- // type: 'foreign',
- // },
- // {
- // id: 'MNCI_RCONNC_IDNOTA',
- // value: '20',
- // type: 'foreign',
- // },
- // ],
- // type: 'grid',
- // },
- //
- {
- id: 'MNC_MNCITEM_GRID_CONTAINER',
- value: [
- {
- id: 'MNC_MNCITEM_IDEQUIPAMENTO',
- value: '0001',
- type: 'foreign',
- },
- {
- id: 'MNC_MNCITEM_VRNC',
- value:
- Math.floor(10000000000 + Math.random() * 90000000000) +
- '.' +
- Math.floor(100 + Math.random() * 900),
- type: 'text',
- },
- {
- id: 'MNC_MNCITEM_VRBASECALCULOISS',
- value:
- Math.floor(10000000000 + Math.random() * 90000000000) +
- '.' +
- Math.floor(100 + Math.random() * 900),
- type: 'text',
- },
- {
- id: 'MNC_MNCITEM_VRISS',
- value:
- Math.floor(10000000000 + Math.random() * 90000000000) +
- '.' +
- Math.floor(100 + Math.random() * 900),
- type: 'text',
- },
- {
- id: 'MNC_MNCITEM_CDSOLICITACAOCOLETA',
- value: Math.floor(1000000000 + Math.random() * 9000000000),
- type: 'text',
- },
- {
- id: 'MNC_MNCITEM_CDROMANEIO',
- value: Math.floor(1000000000 + Math.random() * 9000000000),
- type: 'text',
- },
- {
- id: 'MNC_MNCITEM_VRPESOTRANSPORCOBRADO',
- value: Math.floor(1000 + Math.random() * 9000),
- type: 'text',
- },
- {
- id: 'MNC_MNCITEM_VRNOTATRANSPORCOBRADO',
- value: Math.floor(1000 + Math.random() * 9000),
- type: 'text',
- },
- ],
- type: 'grid',
- },
- {
- id: 'IDPARCOMPANHIA',
- value: 'JEJ',
- type: 'foreign',
- },
- {
- id: 'IDPARTRANSPORTADORA',
- value: '',
- type: 'foreign',
- },
- {
- id: 'IDTIPONC',
- value: 'NSF',
- type: 'foreign',
- },
- {
- id: 'CDNC',
- value: id,
- type: 'text',
- },
- {
- id: 'DTEMISSAO',
- value: 1,
- type: 'text',
- },
- {
- id: 'TPFECHAMENTOFISCAL',
- value: '1',
- type: 'select',
- },
- {
- id: 'STRECALCULONC',
- value: '1',
- type: 'select',
- },
- {
- id: 'IDCIDORIGEM',
- value: 'ABADIANIA',
- type: 'foreign',
- },
- ],
- }
- module.exports.notaFiscal = notaFiscal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement