站内搜索:

SeaTable办公云端化(不支持子表)

浏览人数:

针对个人,可以免费有api和脚本,对于运算复杂的,可以使用脚本实现。
https://seatable.cn/product/table_price/

支持 APi、脚本等
API 文档:https://docs.seatable.cn/published/seatable-api/home.md

脚本编程手册: https://seatable.github.io/seatable-scripts-cn/

论坛:https://bbs.seatable.cn/

不同的表格有不同的API Token,如:
API Token:a货柜质保期管理系统:ee82af17ecd512ba6b63bf1b3b23e8a4847613c6

不同版本名词解释参考:https://cloud.seatable.cn/dtable/external-links/3e6dc8e259be427ebee3/?tid=0000&vid=0000&row-id=fFLxXT0ITTKGRUWCCtWkdw

下面是用豆包ai生成rpython脚本,用来计算补货总量。条件为大于当前行日期的值的求和:

from seatable_api import Base, context
from datetime import datetime

api_token = 'ee82af17ecd512ba6b63bf1b3b23e8a4847613c6'
server_url = 'https://cloud.seatable.cn'

base = Base(api_token, server_url)
base.auth()
table_name = context.current_table
rows = base.list_rows(table_name)

def convert_to_date(date_str):
    try:
        return datetime.strptime(date_str, '%Y-%m-%dT%H:%M:%S%z')
    except (ValueError, TypeError):
        print(f"日期转换失败: {date_str}")
        return None

for current_row in rows:
    # 获取当前行的补货日期
    current_restock_date_str = current_row.get('补货日期')
    current_restock_date = convert_to_date(current_restock_date_str)
    if not current_restock_date:
        continue

    total_restock = 0
    for other_row in rows:
        # 跳过当前行自身
        if other_row == current_row:
            continue
        
        other_restock_date_str = other_row.get('补货日期')
        other_restock_date = convert_to_date(other_restock_date_str)
        if other_restock_date and other_restock_date > current_restock_date:
            total_restock += other_row.get('补货数量', 0)
    
    # 更新当前行的补货总量列
    base.update_row(table_name, current_row['_id'], {'补货总量': total_restock})
    print(f"更新行 {current_row['_id']} 的补货总量为: {total_restock}")

print('补货总量计算完成。')


用链接列功能
链接列:https://docs.seatable.cn/published/seatable-user-manual/link.md
链接公式:https://docs.seatable.cn/published/seatable-user-manual/link-formula.md
视频教程:https://market.seatable.cn/videos/?name=seatable-row-linking

彭婵:
应用是以表格为数据后台

彭婵:
可以这么理解

彭婵:
通用应用使用说明:https://docs.seatable.cn/published/seatable-user-manual/universal-application.md

彭婵:
然后关于应用搭建 和跨表链接的 培训可参考
https://cloud.seafile.com/f/930f80dadd5243fb9cb4/

彭婵:
可以

彭婵:
导入导出介绍:https://docs.seatable.cn/published/seatable-user-manual/import-export.md

 

制作表格zhizuobiaoge.com
Copyright@all rights reserved