components.html 22.5 KB
<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>业务组件 | 买买买文档平台</title>
    <meta name="description" content="买买买文档平台">
    <meta name="generator" content="VuePress 1.3.1">
    
    
    <link rel="preload" href="/assets/css/0.styles.fadb700b.css" as="style"><link rel="preload" href="/assets/js/app.86afc1c0.js" as="script"><link rel="preload" href="/assets/js/2.db0c6dc7.js" as="script"><link rel="preload" href="/assets/js/14.bd20a149.js" as="script"><link rel="prefetch" href="/assets/js/10.e67b7016.js"><link rel="prefetch" href="/assets/js/11.8b7cd804.js"><link rel="prefetch" href="/assets/js/12.5e70fe99.js"><link rel="prefetch" href="/assets/js/13.c8bbc7b5.js"><link rel="prefetch" href="/assets/js/15.8f86edff.js"><link rel="prefetch" href="/assets/js/16.a777e61d.js"><link rel="prefetch" href="/assets/js/17.3b0c5f18.js"><link rel="prefetch" href="/assets/js/18.d5abf3da.js"><link rel="prefetch" href="/assets/js/19.fc022644.js"><link rel="prefetch" href="/assets/js/20.e1070a8b.js"><link rel="prefetch" href="/assets/js/21.ba46fa39.js"><link rel="prefetch" href="/assets/js/22.cac934f7.js"><link rel="prefetch" href="/assets/js/23.22aa0470.js"><link rel="prefetch" href="/assets/js/24.e2d5dd9a.js"><link rel="prefetch" href="/assets/js/25.6ad8c6e9.js"><link rel="prefetch" href="/assets/js/26.c898ca98.js"><link rel="prefetch" href="/assets/js/3.7f4a682c.js"><link rel="prefetch" href="/assets/js/4.9dcb0336.js"><link rel="prefetch" href="/assets/js/5.9eb2a68c.js"><link rel="prefetch" href="/assets/js/6.2905d4c7.js"><link rel="prefetch" href="/assets/js/7.005223da.js"><link rel="prefetch" href="/assets/js/8.dcde7083.js"><link rel="prefetch" href="/assets/js/9.cf9ccb1f.js">
    <link rel="stylesheet" href="/assets/css/0.styles.fadb700b.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="买买买文档平台" class="logo"> <span class="site-name can-hide">买买买文档平台</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
  查询导览
</a></div><div class="nav-item"><a href="/product/" class="nav-link">
  项目清单
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="团队文档" class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/team/design/" class="nav-link">
  产品设计
</a></li><li class="dropdown-item"><!----> <a href="/team/frontend/" class="nav-link router-link-active">
  前端
</a></li><li class="dropdown-item"><!----> <a href="/team/ios/" class="nav-link">
  IOS
</a></li><li class="dropdown-item"><!----> <a href="/team/android/" class="nav-link">
  安卓
</a></li><li class="dropdown-item"><!----> <a href="/team/backend/" class="nav-link">
  服务端
</a></li><li class="dropdown-item"><!----> <a href="/team/quality/" class="nav-link">
  测试
</a></li></ul></div></div><div class="nav-item"><a href="/project/" class="nav-link">
  项目管控
</a></div><div class="nav-item"><a href="/adm/" class="nav-link">
  行政管理
</a></div><div class="nav-item"><a href="/util/" class="nav-link">
  协作工具
</a></div><div class="nav-item"><a href="/guide/" class="nav-link">
  文档写作平台入门介绍
</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
  查询导览
</a></div><div class="nav-item"><a href="/product/" class="nav-link">
  项目清单
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="团队文档" class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/team/design/" class="nav-link">
  产品设计
</a></li><li class="dropdown-item"><!----> <a href="/team/frontend/" class="nav-link router-link-active">
  前端
</a></li><li class="dropdown-item"><!----> <a href="/team/ios/" class="nav-link">
  IOS
</a></li><li class="dropdown-item"><!----> <a href="/team/android/" class="nav-link">
  安卓
</a></li><li class="dropdown-item"><!----> <a href="/team/backend/" class="nav-link">
  服务端
</a></li><li class="dropdown-item"><!----> <a href="/team/quality/" class="nav-link">
  测试
</a></li></ul></div></div><div class="nav-item"><a href="/project/" class="nav-link">
  项目管控
</a></div><div class="nav-item"><a href="/adm/" class="nav-link">
  行政管理
</a></div><div class="nav-item"><a href="/util/" class="nav-link">
  协作工具
</a></div><div class="nav-item"><a href="/guide/" class="nav-link">
  文档写作平台入门介绍
</a></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/team/frontend/" class="sidebar-link">前端 Frontend</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/#能力输出" class="sidebar-link">能力输出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目构建说明" class="sidebar-link">项目构建说明</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目环境要求" class="sidebar-link">项目环境要求</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目技术组成" class="sidebar-link">项目技术组成</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#代码版本控制位置" class="sidebar-link">代码版本控制位置</a></li></ul></li><li><a href="/team/frontend/showcase.html" class="sidebar-link">陈列柜</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#网站" class="sidebar-link">网站</a></li><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#微信小程序" class="sidebar-link">微信小程序</a></li><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#桌面客户端" class="sidebar-link">桌面客户端</a></li></ul></li><li><a href="/team/frontend/standard.html" class="sidebar-link">开发规范</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#vscode-插件" class="sidebar-link">VSCode 插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#文件与目录命名规范" class="sidebar-link">文件与目录命名规范</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#css-样式预处理" class="sidebar-link">CSS 样式预处理</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#路由命名规则" class="sidebar-link">路由命名规则</a></li></ul></li><li><a href="/team/frontend/http.html" class="sidebar-link">数据交互格式标准</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/http.html#数据格式样例" class="sidebar-link">数据格式样例</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#api-交互规则" class="sidebar-link">API 交互规则</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#跨域与重复请求" class="sidebar-link">跨域与重复请求</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#登录授权" class="sidebar-link">登录授权</a></li></ul></li><li><a href="/team/frontend/system-model.html" class="sidebar-link">系统交互模型</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#基础原则" class="sidebar-link">基础原则</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#流程示意" class="sidebar-link">流程示意</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#数据模型" class="sidebar-link">数据模型</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#api-接口" class="sidebar-link">API 接口</a></li></ul></li><li><a href="/team/frontend/plugins.html" class="sidebar-link">功能插件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#拼图验证码插件" class="sidebar-link">拼图验证码插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#短信验证" class="sidebar-link">短信验证</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#侧边栏抽屉" class="sidebar-link">侧边栏抽屉</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#数据下载-导出" class="sidebar-link">数据下载/导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/components.html" class="active sidebar-link">业务组件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/components.html#数据导入导出" class="sidebar-link">数据导入导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/components.html#操作权限应用" class="sidebar-link">操作权限应用</a></li><li class="sidebar-sub-header"><a href="/team/frontend/components.html#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/framework.html" class="sidebar-link">系统框架</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#目录结构描述" class="sidebar-link">目录结构描述</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#api" class="sidebar-link">API</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#自定义指令集-directive" class="sidebar-link">自定义指令集 directive</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#表单校验规则" class="sidebar-link">表单校验规则</a></li></ul></li><li><a href="/team/frontend/web-open-platform.html" class="sidebar-link">网页能力开放平台</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/web-open-platform.html#平台介绍及使用规范" class="sidebar-link">平台介绍及使用规范</a></li><li class="sidebar-sub-header"><a href="/team/frontend/web-open-platform.html#现有项目-模块" class="sidebar-link">现有项目/模块</a></li></ul></li><li><a href="/team/frontend/quality.html" class="sidebar-link">质量保证体系</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#团队应用现状" class="sidebar-link">团队应用现状</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#语法检查" class="sidebar-link">语法检查</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#单元测试" class="sidebar-link">单元测试</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#端对端测试(end-to-end)" class="sidebar-link">端对端测试(End-to-end)</a></li></ul></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="业务组件"><a href="#业务组件" class="header-anchor">#</a> 业务组件</h1> <p>整合了部分业务功能或特殊定制化需求的组件</p> <h2 id="数据导入导出"><a href="#数据导入导出" class="header-anchor">#</a> 数据导入导出</h2> <p>公用数据导入导出组件,功能包含有数据介质模板下载(空或部分业务数据)、数据介质模板导出以及数据介质文件导入(上传)</p> <img src="/frontend/plugins/import-and-export.png" class="border-shadow"> <p>使用流程</p> <ol><li>手机短信验证身份</li> <li>下载、导出数据介质模板文件(非必须)</li> <li>选择并上传已填写/修改的数据介质文件</li> <li>预览文件内容</li> <li>执行数据介质文件上传</li> <li>上传成功/失败详细报告</li></ol> <p>目前已配置并使用在素+管理平台的以下业务场景中</p> <table><thead><tr><th>业务模块</th> <th>编码</th> <th>导入</th> <th>导出</th></tr></thead> <tbody><tr><td>通讯录</td> <td>ADDRESS_BOOK</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>客户档案</td> <td>WORKBENCH_CUSTOMER_FILE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>组织架构</td> <td>ENTERPRISE_ORGANIZATION</td> <td>✔️</td> <td></td></tr> <tr><td>常购产品</td> <td>WORKBENCH_SALE_PRICE_CUSTOMER_PRICE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>存货档案</td> <td>WORKBENCH_STOCK_FILE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>客户活动政策</td> <td>WORKBENCH_SALE_ACTIVITY_POLICY</td> <td></td> <td>✔️</td></tr> <tr><td>销售订单</td> <td>WORKBENCH_SALE_ORDER_LIST</td> <td></td> <td>✔️</td></tr> <tr><td>期初数据</td> <td>WORKBENCH_WAREHOUSE_BASE_INITIAL_DATA</td> <td>✔️</td> <td></td></tr> <tr><td>销售发货数据</td> <td>WORKBENCH_SALE_SHIP</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>薪资档案</td> <td>WORKBENCH_SALARY_MANAGE_FILE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>产品价格</td> <td>WORKBENCH_TARGET-PLAN_CONFIG_PRODUCT-PRICE</td> <td>✔️</td> <td></td></tr> <tr><td>年度业绩目标</td> <td>WORKBENCH_TARGET-PLAN_MANAGE_YEAR-PERFORMANCE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>同期业绩目标</td> <td>WORKBENCH_TARGET-PLAN_MANAGE_SAME-PERIOD-PERFORMANCE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>利润率</td> <td>WORKBENCH_TARGET-PLAN_MANAGE_PROFIT-MARGIN</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>费用率</td> <td>WORKBENCH_TARGET-PLAN_MANAGE_EXPENSE-RATIO</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>月度计划</td> <td>WORKBENCH_TARGET-PLAN_PLAN_MONTH</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>业绩源数据</td> <td>WORKBENCH_TARGET-PLAN_PERFORMANCE_SOURCE</td> <td>✔️</td> <td>✔️</td></tr> <tr><td>个人业绩档案</td> <td>WORKBENCH_TARGET-PLAN_PERFORMANCE_PROFILE</td> <td></td> <td>✔️</td></tr> <tr><td>个人利润档案</td> <td>WORKBENCH_TARGET-PLAN_PERFORMANCE_PROFIT</td> <td></td> <td>✔️</td></tr> <tr><td>销售费用登记</td> <td>WORKBENCH_TARGET-PLAN_COST_SALES</td> <td>✔️</td> <td></td></tr> <tr><td>费用统计</td> <td>WORKBENCH_TARGET-PLAN_COST_COUNT</td> <td></td> <td>✔️</td></tr> <tr><td>退货单</td> <td>WORKBENCH_TARGET-PLAN_PERFORMANCE_RETURN-ORDER</td> <td>✔️</td> <td>✔️</td></tr></tbody></table> <h2 id="操作权限应用"><a href="#操作权限应用" class="header-anchor">#</a> 操作权限应用</h2> <p>适配根据对用户或角色指定的权限设置(例:增加、删除、导出等),对界面元素的权限控制应用(例:按钮、链接等),自动根据配置内容决定该元素是否出现于当前界面</p> <blockquote><p>如果用户角色为主管理员,则所有功能始终可用,不受该操作权限控制</p></blockquote> <p>完整权限字段如下:</p> <div class="language-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
  add<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  delete<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  addCustom<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  edit<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  export<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  import<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  addGroup<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  deleteGroup<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  editGroup<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
  column<span class="token operator">:</span> <span class="token punctuation">{</span>
    addCustom<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    basic<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    others<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    picture<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    price<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    contactWay<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    credit<span class="token operator">:</span> <span class="token punctuation">{</span>
      check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
      edit<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br></div></div><h2 id="选择器"><a href="#选择器" class="header-anchor">#</a> 选择器</h2> <p>用于挑选数据的选择器</p> <h3 id="存货选择器"><a href="#存货选择器" class="header-anchor">#</a> 存货选择器</h3> <img src="/frontend/plugins/product.png" class="border-shadow"></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">

      <a href="/team/frontend/plugins.html" class="prev">
        功能插件
      </a></span> <span class="next"><a href="/team/frontend/framework.html">
        系统框架
      </a>

    </span></p></div> </main></div><div class="global-ui"><!----></div></div>
    <script src="/assets/js/app.86afc1c0.js" defer></script><script src="/assets/js/2.db0c6dc7.js" defer></script><script src="/assets/js/14.bd20a149.js" defer></script>
  </body>
</html>