plugin-business.html 21.0 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="generator" content="VuePress 1.7.1">
    
    <meta name="description" content="买买买文档平台">
    
    <link rel="preload" href="/assets/css/0.styles.d07e157f.css" as="style"><link rel="preload" href="/assets/js/app.4b0b728d.js" as="script"><link rel="preload" href="/assets/js/2.ef86ff21.js" as="script"><link rel="preload" href="/assets/js/28.1807ea10.js" as="script"><link rel="prefetch" href="/assets/js/10.5819cc99.js"><link rel="prefetch" href="/assets/js/11.fd597b20.js"><link rel="prefetch" href="/assets/js/12.b2402a37.js"><link rel="prefetch" href="/assets/js/13.e003b70f.js"><link rel="prefetch" href="/assets/js/14.00c355b3.js"><link rel="prefetch" href="/assets/js/15.5f87eecb.js"><link rel="prefetch" href="/assets/js/16.1b53dc86.js"><link rel="prefetch" href="/assets/js/17.ab400218.js"><link rel="prefetch" href="/assets/js/18.20932e4d.js"><link rel="prefetch" href="/assets/js/19.0ac3b9c0.js"><link rel="prefetch" href="/assets/js/20.ecc32992.js"><link rel="prefetch" href="/assets/js/21.86007ef2.js"><link rel="prefetch" href="/assets/js/22.8eb68f06.js"><link rel="prefetch" href="/assets/js/23.f9d43b92.js"><link rel="prefetch" href="/assets/js/24.45b4a9ea.js"><link rel="prefetch" href="/assets/js/25.0458cf97.js"><link rel="prefetch" href="/assets/js/26.28900d1b.js"><link rel="prefetch" href="/assets/js/27.81d86e4f.js"><link rel="prefetch" href="/assets/js/29.c674570a.js"><link rel="prefetch" href="/assets/js/3.3e1e6257.js"><link rel="prefetch" href="/assets/js/30.d9de9467.js"><link rel="prefetch" href="/assets/js/31.c5b3b33e.js"><link rel="prefetch" href="/assets/js/32.267ac0e0.js"><link rel="prefetch" href="/assets/js/4.cbe5fc7a.js"><link rel="prefetch" href="/assets/js/5.6a270bea.js"><link rel="prefetch" href="/assets/js/6.f72612cc.js"><link rel="prefetch" href="/assets/js/7.94e920fe.js"><link rel="prefetch" href="/assets/js/8.b7861e0c.js"><link rel="prefetch" href="/assets/js/9.e023b86e.js">
    <link rel="stylesheet" href="/assets/css/0.styles.d07e157f.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 down"></span></button> <button type="button" aria-label="团队文档" class="mobile-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/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><li class="dropdown-item"><h4>
          前端
        </h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/team/frontend/overview/" class="nav-link">
  概况
</a></li><li class="dropdown-subitem"><a href="/team/frontend/plugins/" class="nav-link router-link-active">
  插件库
</a></li><li class="dropdown-subitem"><a href="/team/frontend/utils/" class="nav-link">
  工具集
</a></li></ul></li></ul></div></div><div class="nav-item"><a href="/standard/" class="nav-link">
  标准与规范
</a></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 down"></span></button> <button type="button" aria-label="团队文档" class="mobile-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/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><li class="dropdown-item"><h4>
          前端
        </h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/team/frontend/overview/" class="nav-link">
  概况
</a></li><li class="dropdown-subitem"><a href="/team/frontend/plugins/" class="nav-link router-link-active">
  插件库
</a></li><li class="dropdown-subitem"><a href="/team/frontend/utils/" class="nav-link">
  工具集
</a></li></ul></li></ul></div></div><div class="nav-item"><a href="/standard/" class="nav-link">
  标准与规范
</a></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/plugins/" aria-current="page" class="sidebar-link">功能插件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/plugins/#拼图验证码插件" class="sidebar-link">拼图验证码插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/#短信验证" class="sidebar-link">短信验证</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/#侧边栏抽屉" class="sidebar-link">侧边栏抽屉</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/#数据下载-导出" class="sidebar-link">数据下载/导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/plugins/plugin-business.html" aria-current="page" class="active sidebar-link">业务组件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/plugins/plugin-business.html#数据导入导出" class="sidebar-link">数据导入导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/plugin-business.html#操作权限应用" class="sidebar-link">操作权限应用</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins/plugin-business.html#选择器" class="sidebar-link">选择器</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> <h3 id="素-平台"><a href="#素-平台" class="header-anchor">#</a> 素+平台</h3> <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> <tr><td>公司调价利润</td> <td>WORKBENCH_TARGET-PLAN_BASE_ADJUST-PROFIT</td> <td>✔️</td> <td></td></tr> <tr><td>个人毛利档案</td> <td>WORKBENCH_TARGET-PLAN_PERFORMANCE_GROSS-MARGIN</td> <td></td> <td>✔️</td></tr></tbody></table> <h3 id="小牛制造"><a href="#小牛制造" class="header-anchor">#</a> 小牛制造</h3> <table><thead><tr><th>业务模块</th> <th>编码</th> <th>导入</th> <th>导出</th></tr></thead> <tbody><tr><td>采购 - 采购单</td> <td>PURCHASE_ORDER</td> <td>✔️</td> <td></td></tr> <tr><td>配料 - 产品配方</td> <td>INGREDIENTS_PRODUCT-FORMULA</td> <td>✔️</td> <td></td></tr> <tr><td>配料 - 制料记录</td> <td>INGREDIENTS_MAKING-MATERIALS</td> <td></td> <td>✔️</td></tr> <tr><td>配料 - 用料明细</td> <td>INGREDIENTS_USE-MATERIALS</td> <td></td> <td>✔️</td></tr> <tr><td>配料 - 混合料配方</td> <td>INGREDIENTS_MIXED-MATERIAL-FORMULA</td> <td>✔️</td> <td></td></tr> <tr><td>配料 - 混合料记录</td> <td>INGREDIENTS_MIXED-MATERIAL-RECORD</td> <td></td> <td>✔️</td></tr> <tr><td>配料 - 混合料用料明细</td> <td>INGREDIENTS_MIXED-MATERIAL-USAGE-RECORD</td> <td></td> <td>✔️</td></tr> <tr><td>库存 - 原料库存</td> <td>STOCK_RAW-MATERIAL</td> <td></td> <td>✔️</td></tr> <tr><td>库存 - 在制品库存</td> <td>STOCK_IN-PRODUCTION</td> <td></td> <td>✔️</td></tr> <tr><td>库存 - 成品库存</td> <td>STOCK_FINISHED-GOODS</td> <td></td> <td>✔️</td></tr> <tr><td>库存 - 采购入库</td> <td>STOCK_PURCHASE-INBOUND</td> <td></td> <td>✔️</td></tr> <tr><td>库存 - 入库流水</td> <td>STOCK_INBOUND-RECORD</td> <td></td> <td>✔️</td></tr> <tr><td>库存 - 出库流水</td> <td>STOCK_OUTBOUND-RECORD</td> <td></td> <td>✔️</td></tr> <tr><td>物料 - 物料档案</td> <td>MATERIAL_FILE</td> <td>✔️</td> <td></td></tr> <tr><td>物料 - 物料对照表</td> <td>MATERIAL_CHART</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"><!----> <div class="last-updated"><span class="prefix">最后更新时间:</span> <span class="time">10/13/2020, 10:23:58 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">

      <a href="/team/frontend/plugins/" class="prev router-link-active">
        功能插件
      </a></span> <!----></p></div> </main></div><div class="global-ui"><!----></div></div>
    <script src="/assets/js/app.4b0b728d.js" defer></script><script src="/assets/js/2.ef86ff21.js" defer></script><script src="/assets/js/28.1807ea10.js" defer></script>
  </body>
</html>