From 99a83d93748cd2bd786d17e06ee06ad2b7b2f508 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 10 Feb 2026 09:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../www/html/safetyPlan/safetyPlanShipment.js | 13 +- .../safetyPlan/safetyPlanShipmentDetail.html | 4 +- .../safetyPlan/safetyPlanShipmentDetail.js | 70 +++++--- .../safetyPlan/safetyPlanShipmentItem.html | 4 +- .../html/safetyPlan/safetyPlanShipmentItem.js | 159 ++++++++++++++++-- .../assets/apps/H52D34F00/www/js/dataBase.js | 54 +++--- .../assets/apps/H52D34F00/www/js/public.js | 4 +- 7 files changed, 234 insertions(+), 74 deletions(-) diff --git a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js index 4212408..def6253 100644 --- a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js +++ b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipment.js @@ -1,5 +1,5 @@ // 全局变量 -const API_BASE_URL = commonService+'/backstage/'; +const API_BASE_URL = commonService + '/backstage/'; const API_ENDPOINT = 'purchase/getProPurchaseList'; let token = localStorage.getItem("safetyToken"); console.log('safetyPlanShipment.js - 初始化,从localStorage获取safetyToken:', token); @@ -34,11 +34,11 @@ function loadProjectList(pageNum) { type: 'GET', url: url, dataType: 'json', - beforeSend: function(xhr) { + beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', token); console.log('📤 设置Authorization header:', token ? '已设置' : '未设置'); }, - success: function(response) { + success: function (response) { showLoading(false); console.log('✅ API响应成功'); console.log('完整响应:', JSON.stringify(response, null, 2)); @@ -64,7 +64,7 @@ function loadProjectList(pageNum) { showEmpty(true); } }, - error: function(xhr, errorStatus, error) { + error: function (xhr, errorStatus, error) { showLoading(false); console.error('❌ API请求失败'); console.error('状态码:', xhr.status); @@ -80,7 +80,7 @@ function loadProjectList(pageNum) { // 渲染工程列表 function renderProjectList(projects) { const projectList = document.getElementById('projectList'); - + if (!projects || projects.length === 0) { showEmpty(true); return; @@ -212,7 +212,8 @@ function showEmpty(show) { // 返回上一页 function goBack() { - window.location.href = 'safetyPlanIndex.html'; + // window.location.href = 'safetyPlanIndex.html'; + window.location.href = '../index.html'; } // 进入工程详情(第2层) diff --git a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html index 4663961..0815739 100644 --- a/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html +++ b/app/src/main/assets/apps/H52D34F00/www/html/safetyPlan/safetyPlanShipmentDetail.html @@ -1,5 +1,6 @@ +
@@ -7,6 +8,7 @@ +