https://github.com/steedos/steedos-sap-plugin
steedos-sap-plugin
https://github.com/steedos/steedos-sap-plugin
sap
Last synced: 8 months ago
JSON representation
steedos-sap-plugin
- Host: GitHub
- URL: https://github.com/steedos/steedos-sap-plugin
- Owner: steedos
- Created: 2019-06-21T01:24:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T06:04:08.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T14:28:39.192Z (9 months ago)
- Topics: sap
- Language: C
- Homepage:
- Size: 10.1 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# steedos连接sap工具包
本系统基于[Steedos](https://github.com/steedos/object-server)开发。您只需要在这里的[配置业务对象](src/),设定对象、关系、字段、视图、触发器、报表,即可拥有一套自定义的合同管理系统。
### 安装前准备
- [Install NodeJS, v8.0.0 or later.](https://nodejs.org/en/)
- [Install MongoDB Community Server v3.4 or later](https://www.mongodb.com/download-center/community)
- [Install Visual Studio Code](https://code.visualstudio.com/)### 安装 yarn
```
npm i yarn -g
```### 国内建议使用npm淘宝镜像
```
npm config set registry http://registry.npm.taobao.org/
```### 使用yarn安装依赖包
```
yarn
```### 启动服务器
```
yarn start
```### 了解更多
- [开发文档](https://steedos.github.io)### docker-compose方式启动服务
```
docker-compose up -d
```
如果修改了代码或者配置,执行`docker-compose build --no-cache`后,`docker-compose up -d`### sap同步服务准备工作
- 配置steedos-config.yml, 启动steedos-sap-plugin
```yml
datasources:
default:
connection:
url: mongodb://127.0.0.1/steedos
objectFiles:
- "./src"
appFiles:
- "./src/SAP.app.yml"
public:
cfs:
store: "local"
local:
folder: "/storage"
webservices:
workflow:
url: "http://127.0.0.1/"
cron:
sap_sync_rule: "0 03 * * * *"
sap_get_draft_rule: "0 15 * * * *"
plugins:
sap:
abapConfig:
user: 'xxx'
passwd: '123456'
ashost: '172.16.2.103'
sysnr: '00'
client: '300'
lang: 'ZH'
spaceId: 'xxx'
flows:
yongkuandan: 'xxx'
wuliao: 'xxx'
wuzicaigou: 'xxx'
```
- 设置流程的脚本:
- 服务合同会签流程(生成采购单号按钮)
- 用款审批流程(数据刷新按钮)
- 物资申购流程(数据刷新按钮)
- 物资采购订单审批流程(数据刷新按钮)
- 配置流程的webhook,用于状态回传:
- 用款审批单
- 物资申购单
- 物资采购订单审批流程
- 启动审批王服务,并配置settings
```json
{
"public": {
"webservices": {
"workflow": {
"url": "http://steedos.ticp.net:8821/"
},
"creator": {
"status": "active",
"url": "http://127.0.0.1/sap"
}
}
},
"cron": {
"webhookqueue_interval": 1000
}
}
```
- 启动流程设计器后台服务steedos-server
- 配置nginx