Install
openclaw skills install pms-worklog自动填写 PingCode/PMS 系统工时记录。支持批量填写多天的工时,自动登录、选择事项类型、填写事项、工时、日期和说明。
openclaw skills install pms-worklog自动在 PingCode/PMS 系统中填写工时记录,支持:
npm install -g playwright
playwright install chromium
NODE_PATH=/Users/aispeech/.npm-global/lib/node_modules node ~/.openclaw/workspace/skills/pms-worklog/scripts/fill_worklog.js
exec: node ~/.openclaw/workspace/skills/pms-worklog/scripts/fill_worklog.js
编辑脚本中的配置区域:
// ===== 配置区域 =====
const username = 'your_username@company.com'; // 你的 PMS 账号
const password = 'your_password'; // 你的 PMS 密码
const dates = ['2026-03-09', '2026-03-10', '2026-03-11']; // 填写日期
const workItem = 'IOTxxxxxx-xxxx'; // 事项编号
const hours = '8'; // 每天工时
const description = '工作内容说明'; // 工作说明
const pmsUrl = 'https://pms.aispeech.com.cn/workspace/workload/insight';
const screenshotDir = '/Users/aispeech/.openclaw/workspace';
// ===================
也可以将敏感信息放在环境变量中:
export PMS_USERNAME="your_username@company.com"
export PMS_PASSWORD="your_password"
然后在脚本中使用:
const username = process.env.PMS_USERNAME || 'default_user';
const password = process.env.PMS_PASSWORD || 'default_pass';
脚本运行后会:
screenshotDir/pms_png 目录:
day1_filled.png - 填写完成截图day1_done.png - 提交成功截图day1_error.png - 提交失败截图(如有)# 确保 Chrome 已安装
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
# 重新安装 Playwright
npm install -g playwright
playwright install chromium
waitForTimeout(3000) 改为更长时间)day*_error.png 截图确认错误信息