Оглавление
Оглавление:
Оглавление:
docs/sync
Тип метода
POST
Назначение
Загрузка шапок документов
Где используется
На форме списка документов
Запрос
Параметры
Наименование | Тип | Описание |
---|---|---|
username | string | Имя пользователя |
device_id | string | Идентификатор устройства |
Тело
Наименование | Тип | Описание |
---|---|---|
docs_ids | array | Массив идентификаторов документов в ПО |
Пример запроса
http://192.168.1.1/DM/hs/DataMobileExch/api/docs/sync?username=Администратор&device_id=1
{
"docs_ids": [
"d82-1ca673b6-6872-11ec-8414-00a0c6000012",
"d82-409f5c35-688e-11ec-8414-00a0c6000012",
"d82-409f5c37-688e-11ec-8414-00a0c6000012",
"d82-409f5c3a-688e-11ec-8414-00a0c6000012"
]
}
Ответ
Тело
Наименование | Тип | Описание |
---|---|---|
doc *обязательное | object array | Массив объектов документа |
Пример ответа
Возвращаются объекты doc
[ { "id": "d82-f586018b-8589-11ec-aa42-18c04d302a2e", "number": "00-00000012", "date_timestamp": "1673864047", "comment": "", "barcode": "87295811161005633592152700077828210760", "is_deleted": false, "is_loaded": false, "is_parent": false, "is_finished": false, "parent_doc_id": "", "priority": 0, "inn": "", "template": { "id": 1, "name": "Заказ клиента", "roles": [ "1", "2" ], "process_id": 3, "dest_template_id": null, "is_notify_getting_doc": false, "is_allow_create_on_device": true, "is_load_arts_with_doc": false, "is_load_rows_on_open_doc": false, "is_use_select_log_as_insert_task": false, "is_scan_art_again": false, "is_from_select_to_insert_art_by_art": false, "is_unload_completed_doc": false, "is_unload_completed_child_doc": false, "unload_incorrect_doc_action": 0, "unload_incorrect_doc_option": 0, "search_barcode_priority": 0, "is_use_second_warehouse": false, "is_disable_manual_change_client": false, "is_disable_manual_change_warehouse": false, "is_use_all_barcodes": true, "unique_barcode_mode": 0, "is_use_barcode_templates": false, "is_manual_apply_cell": false, "is_manual_apply_art": false, "pack_list_generate_mode": 0, "is_can_skip_pack": false, "required_pack_qty": 0, "is_multi_sn_logic": false, "is_get_sn_list_from_server": false, "is_use_additional_forms": false, "is_group_selection_forms": false, "is_update_forms_from_server": false, "is_multi_doc": false, "multi_doc_timeout": 0, "is_play_multi_doc_sound": false, "new_art_action": 2, "is_delete_left_task_qty": false, "online_arts_catalog": 0, "is_deleted": false, "create_mode": 0, "is_warehouse_required": false, "is_client_required": false, "is_check_unit_task": false, "is_check_remaining_expiration_date": false, "is_load_doc_logs": false, "selective_check_pack_mode": 0, "select": { "is_use_operation": true, "art_scan_action": 2, "is_manual_quantity": true, "is_enter_to_commit": true, "is_send_row_to_server": true, "task_exceed_action": 0, "limit_exceed_action": 0, "use_cell_mode": 0, "use_tare_mode": 0, "enter_cell_type": 0, "is_get_cells_from_server": false, "is_check_cell_by_task": false, "is_handle_whole_cell": false, "is_handle_whole_tare": false, "use_sn_mode": 1, "is_check_sn_by_task": false, "is_use_unique_sn": false, "is_require_enter_sn": false, "sn_data_type": 1, "sn_rules": { "mask": "yyyy/dd/mm", "is_expired_year": true }, "use_pack_mode": 0, "is_check_pack_by_task": false, "print_label_mode": 0, "is_use_photo_fixation": false, "is_verify_row_on_server": false, "row_task_replace_mode": 0, "use_kit_mode": 0 }, "insert": { "is_use_operation": true, "art_scan_action": 2, "is_manual_quantity": true, "is_enter_to_commit": true, "is_send_row_to_server": true, "task_exceed_action": 0, "limit_exceed_action": 0, "use_cell_mode": 0, "use_tare_mode": 0, "enter_cell_type": 0, "is_get_cells_from_server": false, "is_check_cell_by_task": false, "is_handle_whole_cell": false, "is_handle_whole_tare": false, "use_sn_mode": 0, "is_check_sn_by_task": false, "is_use_unique_sn": false, "is_require_enter_sn": false, "sn_data_type": 0, "use_pack_mode": 0, "is_check_pack_by_task": false, "print_label_mode": 0, "is_use_photo_fixation": false, "is_verify_row_on_server": false, "row_task_replace_mode": 0, "use_kit_mode": 0 }, "egais": { "is_egais_doc": false, "enter_data_matrix_mode": 0, "is_compare": false, "is_check_mark_on_server": false, "version": 0, "is_use_bottling_date": false, "enter_pdf417_barcode_mode": 0, "is_use_blank_a": false, "is_use_blank_b": false, "is_get_bottling_date_from_server": false }, "marking": { "is_marking_doc": false, "check_task_mode": 0, "ean_scan_type": 0, "without_km_enter_type": 0, "is_ean_equals_gtin": false, "is_search_by_km": false, "is_only_mark_art": false, "check_km_owner_action": 0, "check_km_status_action": 0, "sn_source": 0,
"check_ki_source": 0,"allowed_statuses": [ 0, 1, 2, 6 ] } }, "warehouse_1": { "id": "6f87e83f-722c-11df-b336-0011955cba6b", "name": "Центральный склад" }, "forms": [] }, ]