Przeglądaj źródła

feat(api): 添加采购方案产品列表接口并优化页面布局

- 移除调试循环中的 debugger 语句
- 添加 getProcurementProgramProductList 接口用于获取采购方案产品列表
- 为我的收藏、我的足迹页面添加 page-container 样式类
- 为采购历史页面的订单管理容器添加宽度样式
- 在首页添加调试日志输出
- 注释掉主文件中的开发者工具保护初始化
- 添加 element-china-area-data 依赖包及其相关依赖
肖路 1 miesiąc temu
rodzic
commit
2f03a524ab

+ 16 - 0
package-lock.json

@@ -18,6 +18,7 @@
         "axios": "1.13.1",
         "crypto-js": "4.2.0",
         "echarts": "5.6.0",
+        "element-china-area-data": "^6.1.0",
         "element-plus": "2.11.7",
         "file-saver": "2.0.5",
         "highlight.js": "11.11.1",
@@ -3882,6 +3883,12 @@
         "node": ">= 16"
       }
     },
+    "node_modules/china-division": {
+      "version": "2.7.0",
+      "resolved": "https://registry.npmmirror.com/china-division/-/china-division-2.7.0.tgz",
+      "integrity": "sha512-4uUPAT+1WfqDh5jytq7omdCmHNk3j+k76zEG/2IqaGcYB90c2SwcixttcypdsZ3T/9tN1TTpBDoeZn+Yw/qBEA==",
+      "license": "MIT"
+    },
     "node_modules/chokidar": {
       "version": "4.0.3",
       "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-4.0.3.tgz",
@@ -4320,6 +4327,15 @@
       "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==",
       "dev": true
     },
+    "node_modules/element-china-area-data": {
+      "version": "6.1.0",
+      "resolved": "https://registry.npmmirror.com/element-china-area-data/-/element-china-area-data-6.1.0.tgz",
+      "integrity": "sha512-IkpcjwQv2A/2AxFiSoaISZ+oMw1rZCPUSOg5sOCwT5jKc96TaawmKZeY81xfxXsO0QbKxU5LLc6AirhG52hUmg==",
+      "license": "MIT",
+      "dependencies": {
+        "china-division": "^2.7.0"
+      }
+    },
     "node_modules/element-plus": {
       "version": "2.11.7",
       "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.11.7.tgz",

+ 9 - 0
src/api/goods/index.ts

@@ -124,3 +124,12 @@ export const getAgreementSupplyProductList = (query: any) => {
     params: query
   });
 };
+
+//查看采购方案列表
+export const getProcurementProgramProductList = (query: any) => {
+  return request({
+    url: '/product/myProduct/getProcurementProgramProductPage',
+    method: 'get',
+    params: query
+  });
+};

+ 1 - 1
src/main.ts

@@ -65,4 +65,4 @@ directive(app);
 app.mount('#app');
 
 // 初始化开发者工具保护(仅生产环境)
-initDevToolsProtection();
+// initDevToolsProtection();

+ 0 - 1
src/utils/devtools-protection.ts

@@ -91,7 +91,6 @@ export function initDevToolsProtection(): void {
   if (initialCheck) {
     devToolsOpen = true;
     debuggerInterval = window.setInterval(() => {
-      debugger; // 循环执行 debugger
     }, 50); // 更频繁的 debugger,每 50ms 一次
   }
 

+ 3 - 0
src/views/enterprise/myCollection/index.vue

@@ -213,6 +213,9 @@ const handleBatchCancel = () => {
 </script>
 
 <style scoped lang="scss">
+.page-container {
+  width: 100%;
+}
 .page-header {
   display: flex;
   justify-content: space-between;

+ 3 - 0
src/views/enterprise/myFootprint/index.vue

@@ -154,6 +154,9 @@ onMounted(() => {
 </script>
 
 <style scoped lang="scss">
+.page-container {
+  width: 100%;
+}
 .page-header {
   display: flex;
   justify-content: space-between;

+ 1 - 0
src/views/enterprise/purchaseHistory/index.vue

@@ -364,6 +364,7 @@ onMounted(() => {
 
 <style scoped lang="scss">
 .order-manage-container {
+  width: 100%;
   padding: 20px;
   background: #fff;
   min-height: 100%;

+ 2 - 0
src/views/home/index.vue

@@ -559,6 +559,8 @@ getClassificationFloorList({}).then(async (res) => {
     }
 
     homeList.value = res.data;
+
+    console.log(homeList.value);
   }
 });