feat: crm初步

This commit is contained in:
砂糖
2025-12-16 09:27:37 +08:00
parent 8f110f6a58
commit dbc9ac727a
15 changed files with 1328 additions and 45 deletions

View File

@@ -0,0 +1,26 @@
// 需要被记录的操作
const actions = {
// 创建预订单
createPreOrder: {
type: 'createPreOrder',
name: '创建预订单',
description: '创建一个预订单',
// 预订单的相关信息
async handler(payload, ) {
}
},
// 修改预订单
// 预订单明细变更
// 预订单取消
// 预订单审批为正式订单
// 直接创建正式订单
// 正式订单修改
// 正式订单明细修改
}

View File

@@ -0,0 +1,21 @@
// 订单状态
export const ORDER_STATUS = {
'待生产': 0,
'生产中': 1,
'部分发货': 2,
'已发货': 3,
'已签收': 4,
}
// 预订单状态
export const PRE_ORDER_STATUS = {
'待审核': 0,
'已审核': 1,
'已取消': 2,
}
// 订单类型
export const ORDER_TYPE = {
'预订单': 0,
'正式订单': 1,
}