gongchunyi
2026-05-28 2c8a663d12ef967a6378d9f38a4224d14201f9d9
src/views/systemArchitecture/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,626 @@
<template>
  <div class="architecture-page">
    <div class="architecture-shell">
      <header class="page-title">
        <span class="page-title__bar"></span>
        <h1>系统架构图</h1>
      </header>
      <section class="section-card section-card--top">
        <article class="module-title module-title--basic">
          <div class="module-title__icon">
            <img :src="jichupeizhi" alt="基础配置" />
          </div>
          <div class="module-title__text">
            <h2>基础配置</h2>
            <p>系统基础信息管理</p>
          </div>
        </article>
        <div class="flow-row flow-row--top">
          <template v-for="item in basicFlow" :key="item.key">
            <div class="flow-item">
              <article class="flow-node">
                <div class="flow-node__icon">
                  <img :src="item.icon" :alt="item.name" />
                </div>
                <span>{{ item.name }}</span>
              </article>
            </div>
          </template>
        </div>
      </section>
      <section class="middle-layout">
        <div class="panel-card panel-card--sale">
          <article class="module-title module-title--sale">
            <div class="module-title__icon">
              <img :src="xiaoshoupeizhi" alt="销售配置" />
            </div>
            <div class="module-title__text">
              <h2>销售配置</h2>
              <p>客户与销售管理</p>
            </div>
          </article>
          <div class="flow-grid flow-grid--sale">
            <template v-for="(item, index) in saleFlow" :key="item.key">
              <div class="grid-cell">
                <article class="flow-node">
                  <div class="flow-node__icon" :class="{ 'flow-node__icon--accent': item.accent }">
                    <img :src="item.icon" :alt="item.name" />
                  </div>
                  <span>{{ item.name }}</span>
                </article>
                <span
                  v-if="item.arrow === 'right'"
                  class="flow-arrow flow-arrow--right flow-arrow--grid"
                ></span>
                <span
                  v-if="item.arrow === 'down'"
                  class="flow-arrow flow-arrow--down flow-arrow--grid"
                ></span>
              </div>
            </template>
          </div>
        </div>
        <div class="ai-stage">
          <div class="ai-stage__ring">
            <div class="ai-stage__core">
              <img :src="aiHead" alt="AI æ ¸å¿ƒå¼•擎" />
            </div>
          </div>
        </div>
        <div class="panel-card panel-card--purchase">
          <article class="module-title module-title--purchase">
            <div class="module-title__icon">
              <img :src="caigoupeizhi" alt="采购配置" />
            </div>
            <div class="module-title__text">
              <h2>采购配置</h2>
              <p>采购与供应商管理</p>
            </div>
          </article>
          <div class="flow-grid flow-grid--purchase">
            <template v-for="(item, index) in purchaseFlow" :key="item.key">
              <div class="grid-cell">
                <article class="flow-node">
                  <div class="flow-node__icon" :class="{ 'flow-node__icon--accent': item.accent }">
                    <img :src="item.icon" :alt="item.name" />
                  </div>
                  <span>{{ item.name }}</span>
                </article>
                <span
                  v-if="item.arrow === 'right'"
                  class="flow-arrow flow-arrow--right flow-arrow--grid"
                ></span>
                <span
                  v-if="item.arrow === 'down'"
                  class="flow-arrow flow-arrow--down flow-arrow--grid"
                ></span>
              </div>
            </template>
          </div>
        </div>
      </section>
      <section class="section-card section-card--bottom">
        <article class="module-title module-title--produce">
          <div class="module-title__icon">
            <img :src="shengchanpeizhi" alt="生产配置" />
          </div>
          <div class="module-title__text">
            <h2>生产配置</h2>
            <p>生产过程管理</p>
          </div>
        </article>
        <div class="flow-row flow-row--wide">
          <template v-for="(item, index) in produceFlow" :key="item.key">
            <div class="flow-item">
              <article class="flow-node">
                <div class="flow-node__icon" :class="{ 'flow-node__icon--green': item.green, 'flow-node__icon--accent': item.accent }">
                  <img :src="item.icon" :alt="item.name" />
                </div>
                <span>{{ item.name }}</span>
              </article>
              <span v-if="index < produceFlow.length - 1" class="flow-arrow flow-arrow--right"></span>
            </div>
          </template>
        </div>
      </section>
      <section class="section-card section-card--bottom">
        <article class="module-title module-title--store">
          <div class="module-title__icon">
            <img :src="cangchuwuliu" alt="仓储物流" />
          </div>
          <div class="module-title__text">
            <h2>仓储物流</h2>
            <p>库存与出入库管理</p>
          </div>
        </article>
        <div class="flow-row flow-row--store">
          <template v-for="(item, index) in storeFlow" :key="item.key">
            <div class="flow-item">
              <article class="flow-node">
                <div class="flow-node__icon">
                  <img :src="item.icon" :alt="item.name" />
                </div>
                <span>{{ item.name }}</span>
              </article>
              <span v-if="index < storeFlow.length - 1" class="flow-arrow flow-arrow--right"></span>
            </div>
          </template>
        </div>
      </section>
    </div>
  </div>
</template>
<script setup>
import aiHead from '@/assets/system/ai.svg'
import jichupeizhi from '@/assets/system/jichupeizhi.svg'
import xiaoshoupeizhi from '@/assets/system/xiaoshoupeizhi.svg'
import caigoupeizhi from '@/assets/system/caigoupeizhi.svg'
import shengchanpeizhi from '@/assets/system/shengchanpeizhi.svg'
import cangchuwuliu from '@/assets/system/cangchuwuliu.svg'
import yonghuguanli from '@/assets/system/yonghuguanli.svg'
import shenpiguanli from '@/assets/system/shenpiguanli.svg'
import chanpinweihu from '@/assets/system/chanpinweihu.svg'
import kehudangan from '@/assets/system/kehudangan.svg'
import xiaoshoubaojia from '@/assets/system/xiaoshoubaojia.svg'
import xiaoshoutaizhang from '@/assets/system/xiaoshoutaizhang.svg'
import fahuotaizhang from '@/assets/system/fahuotaizhang.svg'
import xiaoshoutuihuo from '@/assets/system/xiaoshoutuihuo.svg'
import gongyingshangdangan from '@/assets/system/gongyingshangdangan.svg'
import caigoutaizhang from '@/assets/system/caigoutaizhang.svg'
import caigoutuihuo from '@/assets/system/caigoutuihuo.svg'
import gongyingshangwanglai from '@/assets/system/gongyingshangwanglai.svg'
import caigoubaobiao from '@/assets/system/caigoubaobiao.svg'
import gongxu from '@/assets/system/gongxu.svg'
import BOM from '@/assets/system/BOM.svg'
import shengchandingdan from '@/assets/system/shengchandingdan.svg'
import shengchanpaichan from '@/assets/system/shengchanpaichan.svg'
import baogong from '@/assets/system/baogong.svg'
import baogongtaizhang from '@/assets/system/baogongtaizhang.svg'
import shengchanheduan from '@/assets/system/shengchanheduan.svg'
import rukuguanli from '@/assets/system/rukuguanli.svg'
import chukuguanli from '@/assets/system/chukuguanli.svg'
import kucunguanli from '@/assets/system/kucunguanli.svg'
const basicFlow = [
  { key: 'basic-user', name: '用户管理', icon: yonghuguanli },
  { key: 'basic-approval', name: '审批管理', icon: shenpiguanli },
  { key: 'basic-product', name: '产品维护', icon: chanpinweihu }
]
const saleFlow = [
  { key: 'sale-customer', name: '客户档案', icon: kehudangan, arrow: 'right' },
  { key: 'sale-quote', name: '销售报价', icon: xiaoshoubaojia, arrow: 'right' },
  { key: 'sale-ledger', name: '销售台账', icon: xiaoshoutaizhang, arrow: 'right' },
  { key: 'sale-delivery', name: '发货台账', icon: fahuotaizhang, arrow: 'right' },
  { key: 'sale-return', name: '销售退货', icon: xiaoshoutuihuo, accent: true }
]
const purchaseFlow = [
  { key: 'purchase-supplier', name: '供应商档案', icon: gongyingshangdangan, arrow: 'right' },
  { key: 'purchase-ledger', name: '采购台账', icon: caigoutaizhang, arrow: 'right' },
  { key: 'purchase-return', name: '采购退货', icon: caigoutuihuo, accent: true },
  { key: 'purchase-contact', name: '供应商往来', icon: gongyingshangwanglai, arrow: 'right' },
  { key: 'purchase-report', name: '采购报表', icon: caigoubaobiao }
]
const produceFlow = [
  { key: 'produce-process', name: '工序', icon: gongxu },
  { key: 'produce-bom', name: 'BOM', icon: BOM },
  { key: 'produce-order', name: '生产订单', icon: shengchandingdan, green: true },
  { key: 'produce-schedule', name: '生产排产', icon: shengchanpaichan },
  { key: 'produce-work', name: '生产报工', icon: baogong },
  { key: 'produce-ledger', name: '报工台账', icon: baogongtaizhang },
  { key: 'produce-cost', name: '生产核算', icon: shengchanheduan, accent: true }
]
const storeFlow = [
  { key: 'store-in', name: '入库管理', icon: rukuguanli },
  { key: 'store-out', name: '出库管理', icon: chukuguanli },
  { key: 'store-stock', name: '库存管理', icon: kucunguanli }
]
</script>
<style scoped>
.architecture-page {
  padding: 20px 0;
}
.architecture-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px 12px 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  box-shadow:
    0 18px 48px rgba(117, 146, 198, 0.12),
    inset 0 0 0 1px rgba(228, 237, 250, 0.9);
}
.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 18px;
}
.page-title__bar {
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f71ff 0%, #5daaff 100%);
}
.page-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2d3d;
}
.section-card,
.panel-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  box-shadow:
    0 12px 28px rgba(118, 147, 204, 0.08),
    0 4px 12px rgba(118, 147, 204, 0.05);
}
.section-card {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 18px 24px;
}
.section-card + .section-card {
  margin-top: 18px;
}
.middle-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 420px minmax(300px, 1fr);
  gap: 18px;
  align-items: center;
}
.panel-card {
  min-height: 284px;
  padding: 16px 18px 18px;
}
.module-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.module-title__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.module-title__icon img {
  width: 100%;
  height: 100%;
}
.module-title__text h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #1f2d3d;
}
.module-title__text p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #7f8ba3;
}
.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.flow-row--top {
  padding-right: 16px;
}
.flow-row--wide {
  gap: 2px;
}
.flow-row--store {
  justify-content: flex-start;
  gap: 36px;
}
.flow-item {
  display: flex;
  align-items: center;
  min-width: 0;
}
.flow-node {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.flow-node__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #3f76f3;
  font-size: 24px;
}
.flow-node__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.flow-node__icon--accent {
  color: #ff6c4f;
}
.flow-node__icon--green {
  color: #2bb875;
}
.flow-node span {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: #1f2d3d;
}
.flow-arrow {
  position: relative;
  flex: 0 0 auto;
  opacity: 0.68;
}
.flow-arrow--right {
  width: 24px;
  height: 1px;
  margin: 0 4px;
  background: linear-gradient(90deg, rgba(182, 205, 255, 0.9) 0%, rgba(127, 168, 255, 0.9) 100%);
}
.flow-arrow--right::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #8aacff;
  border-right: 1px solid #8aacff;
  transform: translateY(-50%) rotate(45deg);
}
.flow-arrow--down {
  width: 1px;
  height: 22px;
  margin: 2px auto 0;
  background: linear-gradient(180deg, rgba(182, 205, 255, 0.9) 0%, rgba(127, 168, 255, 0.9) 100%);
}
.flow-arrow--down::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid #8aacff;
  border-bottom: 1px solid #8aacff;
  transform: translateX(-50%) rotate(45deg);
}
.flow-grid {
  display: grid;
  margin-top: 26px;
}
.flow-grid--sale {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 18px;
}
.flow-grid--purchase {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  row-gap: 34px;
}
.grid-cell {
  position: relative;
  min-height: 80px;
}
.flow-arrow--grid.flow-arrow--right {
  position: absolute;
  top: 18px;
  right: 2px;
  margin: 0;
}
.flow-arrow--grid.flow-arrow--down {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  margin: 0;
}
.ai-stage {
  position: relative;
  height: 388px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-30px);
}
.ai-stage__ring {
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  position: relative;
}
.ai-stage__core {
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
}
.ai-stage__core img {
  width: 360px;
  height: 360px;
  object-fit: contain;
  transform: translateY(-24px);
  filter: drop-shadow(0 10px 24px rgba(76, 135, 255, 0.22));
}
.ai-stage__base {
  width: 210px;
  height: 42px;
  margin-top: -14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(111, 223, 255, 0.8) 0%, rgba(111, 223, 255, 0.22) 34%, rgba(111, 223, 255, 0) 66%),
    linear-gradient(180deg, #ffffff 0%, #dce9ff 100%);
  box-shadow:
    0 10px 22px rgba(102, 145, 222, 0.14),
    inset 0 -4px 10px rgba(94, 170, 255, 0.2);
}
.ai-stage__label {
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #537ae5;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(118, 147, 204, 0.08);
}
@media (max-width: 1440px) {
  .middle-layout {
    grid-template-columns: 1fr 360px 1fr;
  }
  .ai-stage__ring {
    width: 260px;
    height: 260px;
  }
  .ai-stage__core img {
    width: 272px;
    height: 272px;
  }
}
@media (max-width: 1180px) {
  .section-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .middle-layout {
    grid-template-columns: 1fr;
  }
  .ai-stage {
    order: 2;
    height: 360px;
  }
  .panel-card--sale {
    order: 1;
  }
  .panel-card--purchase {
    order: 3;
  }
}
@media (max-width: 860px) {
  .architecture-page {
    padding: 12px;
  }
  .architecture-shell {
    padding: 10px;
    border-radius: 24px;
  }
  .page-title h1 {
    font-size: 22px;
  }
  .section-card,
  .panel-card {
    padding: 16px;
    border-radius: 20px;
  }
  .module-title__icon {
    width: 40px;
    height: 46px;
    font-size: 16px;
  }
  .module-title__text h2 {
    font-size: 16px;
  }
  .flow-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .flow-grid--sale,
  .flow-grid--purchase {
    grid-template-columns: repeat(2, 1fr);
  }
}
</style>