Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Exemplo: ...rest/meutecnico/getSchedule?cAttendant=D0MG0020000036&cDate=20200902


GET / rest /

...

meutecnico / getProduct


  • Retorna os produtos cadastrados no protheus para serem utilizados no apontamento da ordem de serviço no APP Minhas Ordens de Serviço

Response


Bloco de código
languagejs
themeRDark
collapsetrue
{
    "appointmentsProduto": [
        {
            "datacodigo": "20180420LOC03",
            "stationsnome": [ "ACABADORA DE PISO"
        },
        {
                    "station"codigo": "TOTVS MATRIZFLD0104",
            "nome": "AR CONDICIONADA BTU15000"
       "hrini": "08:00" },
        {
            "hrfimcodigo": "12:00FLD0108",
            "nome": "AR CONDICIONADO  },MULTI-SPLIT LG"
        },
        {
               "codigo": "LOC02",
            "stationnome": "TOTVSBETONEIRA 150 MATRIZ"LITROS"
        },
        {
            "hrinicodigo": "13:12UNIF07",
            "nome": "BLAZER AZUL"
       "hrfim": "18:00"
 },
        {
             }
"codigo": "UNIF04",
            "nome": "BLAZER ]PRETO"
        },
        {
            "datacodigo": "20180423COL02",
            "stationsnome": [ "BLINTEC NÍVEL II"
        },
        {
                    "stationcodigo": "TOTVS MATRIZCOL01",
            "nome": "BLINTEC NÍVEL II A"
      "hrini": "08:00"  },
        {
            "hrfimcodigo": "12:00COL03",
            "nome": "BLINTEC NÍVEL III },A"
        },
        {
                    "stationcodigo": "TOTVS MATRIZUNIF02",
            "nome": "CALÇA SOCIAL AZUL"
       "hrini": "13:12" },
        {
            "hrfimcodigo": "18:00UNIF06",
            "nome": "CALÇA   }
            ]SOCIAL PRETA"
        },
        {
            "datacodigo": "20180424UNIF01",
            "stationsnome": ["CAMISA SOCIAL BRANCA"
        },
        {
                    "stationcodigo": "TOTVS MATRIZUNIF05",
            "nome": "CAMISA SOCIAL PRETA"
       "hrini": "08:00" },
        {
            "hrfimcodigo": "12:00MI01",
            "nome": "CARRINHO DE LIMPEZA },MOP"
        },
        {
                    "stationcodigo": "TOTVS MATRIZMC02",
            "nome": "DESINFETANTE CLORADO"
       "hrini": "13:12" },
        {
            "hrfimcodigo": "18:00MC01",
            "nome":    }
            ]"DESINFETANTE MULTIUSO"
        },
        {
            "datacodigo": "20180425FLD0103",
            "stationsnome": "ELEVADOR [TK"
        },
        {
                    "stationcodigo": "TOTVS MATRIZFLD0105",
            "nome": "EMBALADORA PLASTICA"
      "hrini": "08:00"  },
        {
            "hrfimcodigo": "12:00LOC01",
            "nome": "ENCERADEIRA"
        },
        {
        {
        "codigo": "FLD0112",
            "stationnome": "TOTVSFILTRO HEPA MATRIZCARBONO",
        },
        {
    "hrini        "codigo": "13:12FLD0101",
            "nome": "MODEM 5G"
       "hrfim": "18:00"
 },
        {
          }
   "codigo": "MUN02",
             ]"nome": "MUNIÇÃO CALIBRE .380"
        },
        {
            "datacodigo": "20180426MUN01",
            "stationsnome": [ "MUNIÇÃO CALIBRE 38"
        },
        {
                    "station"codigo": "TOTVS MATRIZMUN03",
                    "hrini"nome": "08:00",MUNIÇÃO CALIBRE 7,65MM"
        },
        {
            "hrfimcodigo": "12:00ARM03",
            "nome": "PISTOLAS SEMI-AUTOMÁT  },7,65 MM"
        },
        {
                    "station"codigo": "TOTVS MATRIZARM02",
            "nome": "PISTOLAS SEMI-AUTOMÁTICAS .380"
       "hrini": "13:12" },
        {
            "hrfimcodigo": "18:00FLD0110",
            "nome": "PRENSA DOBRADEIRA HIDR AHK }321"
        },
    ]
    {
    }
    ],
    "countcodigo": 10
}

Exemplo: ... rest/CHECKINGS/getAppointments?cAttendant=matheus&cBeginDate=2018042&cEndDate=20180426

GET / rest / checkings / getAppointmentsbyScale

Response

Bloco de código
languagejs
themeRDark
collapsetrue
{
"MI03",
            "appointmentsnome": [ "PULVERIZADOR MANUAL COM GATILH"
        },
        {
            "datacodigo": "20180426FLD0102",
            "stationsnome": ["RECEPTOR TV"
        },
        {
            "codigo": "ARM01",
            "stationnome": "TOTVSREVÓLVER CALIBRE MATRIZ38",
        },
        {
    "schedule        "codigo": "08:00MI02",
            "nome": "RODO DE ALUMÍNIO 40 E 60 CM"
       "inout": "1" },
        {
            "executedcodigo": "2FLD0106",
            "nome": "ROTEADOR CISCO  },ISR 900 SERIES"
        },
        {
                    "station"codigo": "TOTVS MATRIZMC03",
            "nome": "SABONETE DESENGRAXANTE"
       "schedule": "12:00" },
        {
            "inoutcodigo": "2UNIF03",
                    "executednome": "2SAPATO SOCIAL"
        },
        },{
                {"codigo": "FLD0111",
            "nome": "SENSOR RLK91-6-IR/25/31/115"
      "station": "TOTVS MATRIZ"},
        {
            "schedulecodigo": "13:12SERV02",
            "nome": "SERVIÇO DE LIMPEZA"
       "inout": "1" },
        {
            "executedcodigo": "2SERV01",
            "nome": "SERVIÇO DE  },PORTARIA"
        },
        {
                    "station"codigo": "TOTVS MATRIZSERV03",
            "nome": "SERVIÇO DE VIGILANCIA"
     "schedule": "18:00"   },
        {
            "inoutcodigo": "2FLD0107",
                    "executednome": "2"
SMART SWITCH               }
            ]CISCO SG200-08P"
        },
        {
            "datacodigo": "20180425FLD0109",
            "stationsnome": [
"TORNO CNC INDEX MC 200"
        }
    {
          ],
          "station"count": "TOTVS MATRIZ",
    40
}

Exemplo: ... rest/meutecnico/getProduct


GET / rest / meutecnico / getService


  • Retorna os serviços cadastrados no protheus módulo Gestão de serviços para serem utilizados no apontamento da ordem de serviço no APP Minhas Ordens de Serviço

Response


Bloco de código
languagejs
themeRDark
collapsetrue
{
    "Service": [
        {
            "schedulecodigo": "08:00000001",
            "nome": "TROCA DE EQUIPAMENTO"
       "inout": "1" },
        {
            "executedcodigo": "2000002",
            "nome": "MANUTENÇÃO PREVENTIVA"
  },
       },
         {
                    "stationcodigo": "TOTVS MATRIZ000003",
            "nome": "CABEAMENTO"
       "schedule": "12:00" },
        {
            "inoutcodigo": "2000004",
                    "executednome": "2CONFIGURAÇÃO DE EQUIPAMENTO"
        },
        },{
            "codigo": "000005",
   {
         "nome": "TROCA DE SENSORES"
        "station": "TOTVS MATRIZ"},
        {
            "schedulecodigo": "13:12000006",
            "nome": "LIMPEZA"
       "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180424",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180423",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        },
        {
            "data": "20180420",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1",
                    "executed": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2",
                    "executed": "2"
                }
            ]
        }
    ],
    "count": 20
}

Exemplo: ... /rest/CHECKINGS/getAppointmentsByScale?cAttendant=matheus&cBeginDate=2018042&cEndDate=20180426

GET / rest / checkings / getStationsbyDay

Response

Bloco de código
languagejs
themeRDark
collapsetrue
{
    "stations": [
        {
            "id": "00000040",
            "requiredPhoto": "1",
            "station": "TOTVS MATRIZ"
        }
    ],
    "count": 1
}

Exemplo: .../rest/CHECKINGS/getStationsByDay?cAttendant=matheus&cDate=20180426

GET / rest / checkings / getHistoricCheckIns

Response


    ],
    "count": 6
}

Exemplo: ... /rest/meutecnico/getService



GET / rest / meutecnico / getHistoric


  • Retorna as ordens de serviços que foram abertas e atendidas para o equipamento, com isso o técnico tem a possibilidade de visualizar o histórico do equipamento 

Response


Bloco de código
languagejs
themeRDark
collapsetrue
{
    "Historic": [
Bloco de código
languagejs
themeRDark
collapsetrue
{
    "appointments": [
        {
            "data": "20180417",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180416",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180413",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180411",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180406",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180404",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180223",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180219",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180215",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180214",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180212",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180206",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180205",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180124",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180123",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180122",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "13:12",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "18:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180119",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180115",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                },
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "12:00",
                    "inout": "2"
                }
            ]
        },
        {
            "data": "20180111",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
                    "schedule": "08:00",
                    "inout": "1"
                }
            ]
        },
        {
            "data": "20180105",
            "stations": [
                {
                    "station": "TOTVS MATRIZ",
        {
            "scheduledataAbertura": "08:0020201022",
                    "inoutstatusOs": "1Encerrada",
            "numOs": "000051",
   },
         "itemOS": "01",
      {
      "equipamento": "FLD0101",
             "stationnomeEquipamento": "TOTVSMODEM MATRIZ5G",
                    "scheduleidUnico": "12:00NJKHJFS786F78SD6FSHB",
                    "inoutocorrencia": "2SEM INTERNET"
        },
        },{
            "dataAbertura": "20201027",
     {
       "statusOs": "Encerrada",
            "stationnumOs": "TOTVS MATRIZ000068",
                    "schedule"itemOS": "13:1201",
                    "inout"equipamento": "1FLD0101",
            "nomeEquipamento":    }"MODEM 5G",
                {"idUnico": "NJKHJFS786F78SD6FSHB",
            "ocorrencia": "NÃO LIGA"
      "station": "TOTVS MATRIZ"},
        {
            "scheduledataAbertura": "18:0020201103",
                    "inoutstatusOs": "2Encerrada",
              "numOs": "000079",
  }
            ]
   "itemOS": "01",
     },
        {"equipamento": "FLD0101",
            "datanomeEquipamento": "20180104MODEM 5G",
            "stationsidUnico": [
"NJKHJFS786F78SD6FSHB",
            "ocorrencia": "ELEVADOR TRAVADO"
        {}
    ],
      "count": 3
}

Exemplo: .../rest/meutecnico/getHistoric?cEquipament=FLD0101&cID=NJKHJFS786F78SD6FSHB


GET / rest / meutecnico/ getDetail


  • Retorna os detalhes da ordem de serviço selecionada pelo serviço GetHistoric, assim, o técnico vai visualizar detalhes do atendimento da ordem de serviço selecionada

Response


Bloco de código
languagejs
themeRDark
collapsetrue
{
          "station"Detail": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANA",[
        {
            "scheduleatendente": "08:00",
    LUIZ GABRIEL GOMES DE JESUS",
                "inoutdtInicio": "1"
                },
                {
        20201028",
            "stationhrInicio": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANA",
"14:24",
            "dtFim": "20201028",
            "schedulehrFim": "1214:0031",
            "laudo": "serviço realizado com sucesso!",
            "inoutitensApontados": "2"[
                },{
                {     "produto": "FLD0105",
                    "stationnomeProduto": "POSTO - RUA VERGUEIRO, 2577 - VILA MARIANAEMBALADORA PLASTICA",
                    "scheduleid": "13:12",
                    "inoutquantidade": "1",
                    }"houveTroca": "true",
                    {"produtoTroca": "FLD0106",
                    "stationnomeProdutoTroca": "POSTOROTEADOR -CISCO RUAISR VERGUEIRO, 2577 - VILA MARIANA900 SERIES",
                    "scheduleIdTroca": "18:00",
                    "inoutservico": "2TROCA DE EQUIPAMENTO"
                },
            ]
        },{
        {
            "dataproduto": "20180103FLD0104",
                    "stationsnomeProduto": [ "AR CONDICIONADA BTU15000",
                {     "id": "",
                    "stationquantidade": "TOTVS MATRIZ1",
                    "schedulehouveTroca": "08:00true",
                    "inoutprodutoTroca": "1FLD0104",
                    "nomeProdutoTroca": "AR CONDICIONADA BTU15000",
      },
                {"IdTroca": "",
                    "stationservico": "TOTVSTROCA DE MATRIZEQUIPAMENTO",
                }
    "schedule": "12:00",
        ],
            "inoutocorrencia": "2ELEVADOR TRAVADO"
        }
    ],
    }"count": 1
}

Exemplo: ... rest/meutecnico/getDetail?cNumOS=000071&cItemOS=01


PUT/ rest / meutecnico/ putStatus


  • Atualiza o status da ordem de serviço de acordo com o serviço realizado

Response


Bloco de código
languagejs
themeRDark
collapsetrue
{
,
      "status":  
        {
                    "stationnumOS": "TOTVS MATRIZ000013",
                    "schedule"statusOs": "13:122",
                    "inout"dtIniVisita": "1",
                },"hrIniVisita": ""
                {
                    "station": "TOTVS MATRIZ} 
}

Exemplo: .../rest/meutecnico/putStatus


PUT / rest / meutecnico/ putEnceramento


  • Realiza o atendimento da ordem de serviço

Response


Bloco de código
languagejs
themeRDark
collapsetrue
{
   "CodTec":"D0MG0020000036",
   "numOS":"000043",
   "statusOs":"5",
   "dtIniChegada":"20200915",
   "hrIniChegada":"09:56",
          "dtIniEncerra":"20200915",
    "schedulehrIniEncerra": "1810:0043",
   "assinatura": "hjdhasjkdhakjshdjahdkjahdjahsdkjahdkjashdkajhsdkajhdkajsdhkasjdhasjhdkajdhkadhsa",
   "responsavel": "nome    do responsável",
        "inoutitensOs": "2"[
      {
          }"numeroItem":"01",
         "solicitaPeca": "true"
  ]
        }"apontamento":{
    ],
    "count": 45
}


Exemplo: ... rest/CHECKINGS/getHistoricCheckIns?cAttendant=matheus&cBeginDate=2018042&cEndDate=20180426

GET / rest / checkings / getSchedules

Response

Bloco de código
languagejs
themeRDark
collapsetrue
{
    "scheduleslaudo":"visita [
improdutiva para a ordem de serviço   {",
            "scheduleprodutos": "08:00",[
            "code": "000000005902"
    
    },
        {],
            "schedulefoto": "13:12",
[
               { "code": "000000005903"
  
      }
    ],
    "count": 2
}

Exemplo: .../rest/CHECKINGS/getSchedules?cAttendant=matheus&cDate=20180426&cIdStation=00000040&cInOut=1

GET / rest / checkings / getCheckin

Response

Bloco de código
languagejs
themeRDark
collapsetrue
{
    "checkinbase64": ["",
        {
            "idscheduledescription":"visita improdutiva"000000005902",
             "inout": "1",  }
            "schedule": "08:00"
]
         }
    ],
  }
  "count": 1]
}

Exemplo: ... /rest/CHECKINGS/getCheckIn?cAttendant=matheus&cDate=20180426&cIdStation=00000040meutecnico/putEnceramento


PUT / rest /

...

meutecnico/ putRequest


  • Realiza a requisição de peças para a ordem de serviço

Request


Bloco de código
languagejs
themeRDark
collapsetrue
{
{
   "CodTec":"D0MG0020000036",
   "numOS":"000042",
   "itensOs":[
      {
         "numeroItem":"01",
         "requisicao":{
            "cIdSchedule": "00000040",
produtos":[
               {
                  "uid":0,
                  "cInOutcodigo": "1FLD0104",
                  "cCommentsnome":"AR "Check-in"CONDICIONADA BTU15000",
                  "nLatitudequantidade": -23.50942221,
                  "nLongitudecodService": -46.6463977"000002",
                  "cRealTimenomeService": "08:00",
"100% CLIENTE"
               }
           "oSelfie": {"image": "imagem", "path": "path"},  
 ]
         }
      }
   ]
}

Exemplo: ... rest/meutecnico/putRequest


POST / rest / meutecnico/ postsolicitation


  • Atualiza e sinaliza que o técnico recebeu todas as peças para dar prosseguimento no atendimento da ordem de serviço 

Request


Bloco de código
languagejs
themeRDark
collapsetrue
{
   "aImagesCodTec": [{"image"D0MG0020000036",
   "numOS": "imagem000037",
   "pathitemOS": "path01"}]
}

Exemplo: ... rest/putCheckInmeutecnico/postsolicitation