[WIP] Фикс переменных, правка стилей
This commit is contained in:
42
server.js
42
server.js
@@ -31,13 +31,13 @@ const dataClients = {
|
||||
updated_at: "2022-10-24T15:44:29.235350Z",
|
||||
deleted_flg: false,
|
||||
kind: "Паспорт",
|
||||
numba: "1233 123312",
|
||||
number: "1233 123312",
|
||||
issued_by_org: "Отделом УФМС России по рязанской области",
|
||||
issued_by_date: "2022-10-10",
|
||||
issued_by_org_code: "426–234",
|
||||
created_by: null,
|
||||
updated_by: null,
|
||||
person_id: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||
person: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -67,13 +67,13 @@ const dataClients = {
|
||||
updated_at: "2022-10-24T15:44:29.235350Z",
|
||||
deleted_flg: false,
|
||||
kind: "Паспорт",
|
||||
numba: "9543 547021",
|
||||
number: "9543 547021",
|
||||
issued_by_org: "Отделом УФМС России по владимирской области",
|
||||
issued_by_date: "2014-09-08",
|
||||
issued_by_org_code: "743–126",
|
||||
created_by: null,
|
||||
updated_by: null,
|
||||
person_id: "db831a14-e836-481f-a653-6325de7c311e",
|
||||
person: "db831a14-e836-481f-a653-6325de7c311e",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -113,13 +113,13 @@ const dataClients = {
|
||||
updated_at: "2022-10-24T15:44:29.235350Z",
|
||||
deleted_flg: false,
|
||||
kind: "Паспорт",
|
||||
numba: "4308 205732",
|
||||
number: "4308 205732",
|
||||
issued_by_org: "Отделом УФМС России по московской области",
|
||||
issued_by_date: "2018-11-03",
|
||||
issued_by_org_code: "902–571",
|
||||
created_by: null,
|
||||
updated_by: null,
|
||||
person_id: "db8jd58x-e836-481f-a653-oq1m4e7c09e1",
|
||||
person: "db8jd58x-e836-481f-a653-oq1m4e7c09e1",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -154,13 +154,13 @@ const dataClients = {
|
||||
updated_at: "2022-10-24T15:44:29.235350Z",
|
||||
deleted_flg: false,
|
||||
kind: "Паспорт",
|
||||
numba: "1602 671922",
|
||||
number: "1602 671922",
|
||||
issued_by_org: "Отделом УФМС России по тульской области",
|
||||
issued_by_date: "2017-01-21",
|
||||
issued_by_org_code: "101–238",
|
||||
created_by: null,
|
||||
updated_by: null,
|
||||
person_id: "cs5ms771-e836-kdc4-a653-sc4n567sx123",
|
||||
person: "cs5ms771-e836-kdc4-a653-sc4n567sx123",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -169,12 +169,12 @@ const dataClients = {
|
||||
|
||||
const clientDetail = [
|
||||
{
|
||||
person_id: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||
person: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||
snils: {
|
||||
numba: "812–183–139 21",
|
||||
number: "812–183–139 21",
|
||||
},
|
||||
inn: {
|
||||
numba: "138291382731",
|
||||
number: "138291382731",
|
||||
},
|
||||
birthday: {
|
||||
date: "1994-12-04",
|
||||
@@ -239,12 +239,12 @@ const clientDetail = [
|
||||
],
|
||||
},
|
||||
{
|
||||
person_id: "db831a14-e836-481f-a653-6325de7c311e",
|
||||
person: "db831a14-e836-481f-a653-6325de7c311e",
|
||||
snils: {
|
||||
numba: "834–001–555 35",
|
||||
number: "834–001–555 35",
|
||||
},
|
||||
inn: {
|
||||
numba: "371942327342",
|
||||
number: "371942327342",
|
||||
},
|
||||
birthday: {
|
||||
date: "1997-09-03",
|
||||
@@ -307,12 +307,12 @@ const clientDetail = [
|
||||
],
|
||||
},
|
||||
{
|
||||
person_id: "db8jd58x-e836-481f-a653-oq1m4e7c09e1",
|
||||
person: "db8jd58x-e836-481f-a653-oq1m4e7c09e1",
|
||||
snils: {
|
||||
numba: "812–183–139 21",
|
||||
number: "812–183–139 21",
|
||||
},
|
||||
inn: {
|
||||
numba: "138291382731",
|
||||
number: "138291382731",
|
||||
},
|
||||
birthday: {
|
||||
date: "1990-11-05",
|
||||
@@ -377,12 +377,12 @@ const clientDetail = [
|
||||
],
|
||||
},
|
||||
{
|
||||
person_id: "cs5ms771-e836-kdc4-a653-sc4n567sx123",
|
||||
person: "cs5ms771-e836-kdc4-a653-sc4n567sx123",
|
||||
snils: {
|
||||
numba: "834–001–555 35",
|
||||
number: "834–001–555 35",
|
||||
},
|
||||
inn: {
|
||||
numba: "371942327342",
|
||||
number: "371942327342",
|
||||
},
|
||||
birthday: {
|
||||
date: "2000-08-17",
|
||||
@@ -720,7 +720,7 @@ export function clientsServer() {
|
||||
this.passthrough("https://astra-dev.dopcore.com/**");
|
||||
this.get("/api/detail/:id", (schema, request) => {
|
||||
let id = request.params.id;
|
||||
return clientDetail.find((el) => el.person_id === id);
|
||||
return clientDetail.find((el) => el.person === id);
|
||||
});
|
||||
this.get("/api/detail/identity_document/:id", (schema, request) => {
|
||||
let id = request.params.id;
|
||||
|
||||
Reference in New Issue
Block a user