From: marina Date: Fri, 9 Aug 2024 01:51:31 +0000 (+0300) Subject: ERP-102 Приёмник для эксель файла (корректировка) X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cd4195b390d8eb3269d77c1b1755edbfba11bd88;p=erp24_rep%2Fyii-erp24%2F.git ERP-102 Приёмник для эксель файла (корректировка) --- diff --git a/erp24/actions/motivation/IndexAction.php b/erp24/actions/motivation/IndexAction.php index c103b8e7..82ca192b 100644 --- a/erp24/actions/motivation/IndexAction.php +++ b/erp24/actions/motivation/IndexAction.php @@ -33,7 +33,7 @@ class IndexAction extends Action $adjustment = Yii::$app->request->post('adjustment'); if ($adjustment && in_array(Admin::findOne(Yii::$app->user->id)->group_id, Motivation::getAdjustmentEditors())) { - return implode('
', ['Вы не можете вносить корректировки']); + return implode('
', ['Вы не можете вносить корректировки']); } $fileName = $adjustment ? '/template_adjustment_temp.xlsx' : '/template_plan_temp.xlsx'; diff --git a/erp24/web/js/motivation/index.js b/erp24/web/js/motivation/index.js index db6b338f..c2057655 100644 --- a/erp24/web/js/motivation/index.js +++ b/erp24/web/js/motivation/index.js @@ -73,6 +73,7 @@ function openUploadDictionary(buttonType) { body: formData, }); const text = await response.text(); + console.log(text) if (text === 'not ok') { info.innerHTML = 'Не смог загрузить файл'; } else if (text.replaceAll('
', '') === '') {