项目作者: steedos

项目描述 :
steedos-sap-plugin
高级语言: C
项目地址: git://github.com/steedos/steedos-sap-plugin.git
创建时间: 2019-06-21T01:24:28Z
项目社区:https://github.com/steedos/steedos-sap-plugin

开源协议:

下载


steedos连接sap工具包

本系统基于Steedos开发。您只需要在这里的配置业务对象,设定对象、关系、字段、视图、触发器、报表,即可拥有一套自定义的合同管理系统。

界面效果图

安装前准备

安装 yarn

  1. npm i yarn -g

国内建议使用npm淘宝镜像

  1. npm config set registry http://registry.npm.taobao.org/

使用yarn安装依赖包

  1. yarn

启动服务器

  1. yarn start

了解更多

docker-compose方式启动服务

  1. docker-compose up -d

如果修改了代码或者配置,执行docker-compose build --no-cache后,docker-compose up -d

sap同步服务准备工作

  • 配置steedos-config.yml, 启动steedos-sap-plugin
    1. datasources:
    2. default:
    3. connection:
    4. url: mongodb://127.0.0.1/steedos
    5. objectFiles:
    6. - "./src"
    7. appFiles:
    8. - "./src/SAP.app.yml"
    9. public:
    10. cfs:
    11. store: "local"
    12. local:
    13. folder: "/storage"
    14. webservices:
    15. workflow:
    16. url: "http://127.0.0.1/"
    17. cron:
    18. sap_sync_rule: "0 03 * * * *"
    19. sap_get_draft_rule: "0 15 * * * *"
    20. plugins:
    21. sap:
    22. abapConfig:
    23. user: 'xxx'
    24. passwd: '123456'
    25. ashost: '172.16.2.103'
    26. sysnr: '00'
    27. client: '300'
    28. lang: 'ZH'
    29. spaceId: 'xxx'
    30. flows:
    31. yongkuandan: 'xxx'
    32. wuliao: 'xxx'
    33. wuzicaigou: 'xxx'
  • 设置流程的脚本:
    • 服务合同会签流程(生成采购单号按钮)
    • 用款审批流程(数据刷新按钮)
    • 物资申购流程(数据刷新按钮)
    • 物资采购订单审批流程(数据刷新按钮)
  • 配置流程的webhook,用于状态回传:
    • 用款审批单
    • 物资申购单
    • 物资采购订单审批流程
  • 启动审批王服务,并配置settings
    1. {
    2. "public": {
    3. "webservices": {
    4. "workflow": {
    5. "url": "http://steedos.ticp.net:8821/"
    6. },
    7. "creator": {
    8. "status": "active",
    9. "url": "http://127.0.0.1/sap"
    10. }
    11. }
    12. },
    13. "cron": {
    14. "webhookqueue_interval": 1000
    15. }
    16. }
  • 启动流程设计器后台服务steedos-server
  • 配置nginx