|
@@ -43,12 +43,13 @@ const SEED = {
|
|
|
{ name: "何南", region: "gz", title: "华南渠道", notify: "henan@example", scope: { regions: ["th"], enterprises: [2] }, shareMode: "按每账号", shareValue: 6 },
|
|
{ name: "何南", region: "gz", title: "华南渠道", notify: "henan@example", scope: { regions: ["th"], enterprises: [2] }, shareMode: "按每账号", shareValue: 6 },
|
|
|
],
|
|
],
|
|
|
/* 运维团队按所属区域建档(region 为建档区域节点 id,列表显示全路径),负责范围另在「配置范围」里勾;
|
|
/* 运维团队按所属区域建档(region 为建档区域节点 id,列表显示全路径),负责范围另在「配置范围」里勾;
|
|
|
- type 为团队类型(常规 / 施工,各占一个 tab),mode 为团队内工单分派方式,
|
|
|
|
|
- ticketTypes 为该团队可承接的工单类型(开通与编辑团队时指定,路由工单时只在声明了该类型的团队里落单),
|
|
|
|
|
|
|
+ 运维团队不再按「常规 / 施工」分类,团队上只有一个「可分配工单类型」集合;
|
|
|
|
|
+ mode 为团队内工单分派方式,ticketTypes 为该团队可承接的工单类型(开通与编辑团队时指定,
|
|
|
|
|
+ 路由工单时只在声明了该类型的团队里落单),
|
|
|
shareMode 与 shareValue 为档案级分成配置,口径与运营商、合伙人、运营团队一致。 */
|
|
shareMode 与 shareValue 为档案级分成配置,口径与运营商、合伙人、运营团队一致。 */
|
|
|
teams: [
|
|
teams: [
|
|
|
- { name: "华东常规运维", region: "shp", type: "常规", mode: "手工", ticketTypes: ["开户", "服务开通", "到期停机", "服务停用", "故障", "售后"], scope: { regions: ["sh", "su"], enterprises: [] }, shareMode: "按金额", shareValue: 50 },
|
|
|
|
|
- { name: "沪东施工", region: "sh", type: "施工", mode: "自动平均", ticketTypes: ["开户"], scope: { regions: ["pd"], enterprises: [1] }, shareMode: "按每账号", shareValue: 4 },
|
|
|
|
|
|
|
+ { name: "华东运维", region: "shp", mode: "手工", ticketTypes: ["开户", "服务开通", "到期停机", "服务停用", "故障", "售后"], scope: { regions: ["sh", "su"], enterprises: [] }, shareMode: "按金额", shareValue: 50 },
|
|
|
|
|
+ { name: "沪东开户组", region: "sh", mode: "自动平均", ticketTypes: ["开户"], scope: { regions: ["pd"], enterprises: [1] }, shareMode: "按每账号", shareValue: 4 },
|
|
|
],
|
|
],
|
|
|
/* hq: true 为系统内置的总运营团队:不限所属区域(region 为空),负责范围覆盖全国,列表置顶且不可删除。
|
|
/* hq: true 为系统内置的总运营团队:不限所属区域(region 为空),负责范围覆盖全国,列表置顶且不可删除。
|
|
|
该团队的默认主账号即总运营账号(见 users 中 builtin: true 的一条),不再另设运营团队账号。 */
|
|
该团队的默认主账号即总运营账号(见 users 中 builtin: true 的一条),不再另设运营团队账号。 */
|
|
@@ -58,11 +59,14 @@ const SEED = {
|
|
|
{ name: "华南运营", region: "gdp", scope: { regions: ["gdp"], enterprises: [] }, desc: "覆盖广东省全部下挂客户", shareMode: "按金额", shareValue: 30 },
|
|
{ name: "华南运营", region: "gdp", scope: { regions: ["gdp"], enterprises: [] }, desc: "覆盖广东省全部下挂客户", shareMode: "按金额", shareValue: 30 },
|
|
|
{ name: "上海运营", region: "sh", scope: { regions: ["sh"], enterprises: [] }, desc: "覆盖上海市及其下级区域", shareMode: "按每账号", shareValue: 2.5 },
|
|
{ name: "上海运营", region: "sh", scope: { regions: ["sh"], enterprises: [] }, desc: "覆盖上海市及其下级区域", shareMode: "按每账号", shareValue: 2.5 },
|
|
|
],
|
|
],
|
|
|
|
|
+ /* 成员不再分「常规 / 施工」两种身份:每名成员只配两件事——
|
|
|
|
|
+ ① types=本人可处理的工单类型(必须是所在团队 ticketTypes 的子集);
|
|
|
|
|
+ ② scope=本人负责范围内的客户(必须是团队负责范围的子集)。 */
|
|
|
members: [
|
|
members: [
|
|
|
- { name: "周宁", team: 0, type: "常规", scope: [0, 1, 2, 4] },
|
|
|
|
|
- { name: "李可", team: 0, type: "常规", scope: [0, 3, 4] },
|
|
|
|
|
- { name: "赵工", team: 1, type: "施工", scope: [0, 1, 3] },
|
|
|
|
|
- { name: "钱工", team: 1, type: "施工", scope: [0, 1, 3] },
|
|
|
|
|
|
|
+ { name: "周宁", team: 0, types: ["开户", "服务开通", "到期停机", "服务停用", "故障", "售后"], scope: [0, 1, 2, 4] },
|
|
|
|
|
+ { name: "李可", team: 0, types: ["开户", "服务开通", "到期停机", "服务停用", "故障", "售后"], scope: [0, 3, 4] },
|
|
|
|
|
+ { name: "赵工", team: 1, types: ["开户"], scope: [0, 1, 3] },
|
|
|
|
|
+ { name: "钱工", team: 1, types: ["开户"], scope: [0, 1, 3] },
|
|
|
],
|
|
],
|
|
|
enterprises: [
|
|
enterprises: [
|
|
|
{
|
|
{
|
|
@@ -78,7 +82,7 @@ const SEED = {
|
|
|
region: "pd",
|
|
region: "pd",
|
|
|
operator: 0,
|
|
operator: 0,
|
|
|
partner: 0,
|
|
partner: 0,
|
|
|
- teams: { 常规: 0, 施工: 1 },
|
|
|
|
|
|
|
+ teams: [0, 1],
|
|
|
status: "在用",
|
|
status: "在用",
|
|
|
quota: 5,
|
|
quota: 5,
|
|
|
history: [
|
|
history: [
|
|
@@ -99,7 +103,7 @@ const SEED = {
|
|
|
region: "lg",
|
|
region: "lg",
|
|
|
operator: 1,
|
|
operator: 1,
|
|
|
partner: null,
|
|
partner: null,
|
|
|
- teams: { 常规: 0, 施工: 1 },
|
|
|
|
|
|
|
+ teams: [0, 1],
|
|
|
status: "未开通",
|
|
status: "未开通",
|
|
|
quota: 8,
|
|
quota: 8,
|
|
|
history: [
|
|
history: [
|
|
@@ -119,7 +123,7 @@ const SEED = {
|
|
|
region: "ks",
|
|
region: "ks",
|
|
|
operator: 2,
|
|
operator: 2,
|
|
|
partner: 1,
|
|
partner: 1,
|
|
|
- teams: { 常规: 0 },
|
|
|
|
|
|
|
+ teams: [0],
|
|
|
status: "在用",
|
|
status: "在用",
|
|
|
quota: 1,
|
|
quota: 1,
|
|
|
history: [
|
|
history: [
|
|
@@ -139,7 +143,7 @@ const SEED = {
|
|
|
region: "pd",
|
|
region: "pd",
|
|
|
operator: 2,
|
|
operator: 2,
|
|
|
partner: 1,
|
|
partner: 1,
|
|
|
- teams: { 常规: 0, 施工: 1 },
|
|
|
|
|
|
|
+ teams: [0, 1],
|
|
|
status: "在用",
|
|
status: "在用",
|
|
|
quota: 2,
|
|
quota: 2,
|
|
|
history: [
|
|
history: [
|
|
@@ -160,7 +164,7 @@ const SEED = {
|
|
|
region: "mh",
|
|
region: "mh",
|
|
|
operator: 0,
|
|
operator: 0,
|
|
|
partner: 0,
|
|
partner: 0,
|
|
|
- teams: { 常规: 0 },
|
|
|
|
|
|
|
+ teams: [0],
|
|
|
status: "在用",
|
|
status: "在用",
|
|
|
quota: 2,
|
|
quota: 2,
|
|
|
history: [
|
|
history: [
|
|
@@ -182,14 +186,14 @@ const SEED = {
|
|
|
region: "mh",
|
|
region: "mh",
|
|
|
operator: 0,
|
|
operator: 0,
|
|
|
partner: 1,
|
|
partner: 1,
|
|
|
- teams: { 常规: 0 },
|
|
|
|
|
|
|
+ teams: [0],
|
|
|
status: "未开通",
|
|
status: "未开通",
|
|
|
quota: 1,
|
|
quota: 1,
|
|
|
history: [
|
|
history: [
|
|
|
{ at: "2026-10-15 09:40", field: "挂载区域", before: "未挂载", after: "上海市 / 上海市 / 闵行区", by: "林管" },
|
|
{ at: "2026-10-15 09:40", field: "挂载区域", before: "未挂载", after: "上海市 / 上海市 / 闵行区", by: "林管" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
- /* 广东省内客户(挂在市级节点):名下只有运营商分成——没有合伙人,华东常规运维虽归属在本客户档案上但团队档案未配分成(计 0、不进对账),
|
|
|
|
|
|
|
+ /* 广东省内客户(挂在市级节点):名下只有运营商分成——没有合伙人,华东运维虽归属在本客户档案上但团队档案未配分成(计 0、不进对账),
|
|
|
广东省 / 移动又把对账日覆盖到 20 日,故该客户 2026-09 的应收至今各分成方都未到对账日,用于演示未出账(见 settlements 末三条) */
|
|
广东省 / 移动又把对账日覆盖到 20 日,故该客户 2026-09 的应收至今各分成方都未到对账日,用于演示未出账(见 settlements 末三条) */
|
|
|
{
|
|
{
|
|
|
no: "KL-2026-000031",
|
|
no: "KL-2026-000031",
|
|
@@ -204,7 +208,7 @@ const SEED = {
|
|
|
region: "gz",
|
|
region: "gz",
|
|
|
operator: 5,
|
|
operator: 5,
|
|
|
partner: null,
|
|
partner: null,
|
|
|
- teams: { 常规: 0 },
|
|
|
|
|
|
|
+ teams: [0],
|
|
|
status: "在用",
|
|
status: "在用",
|
|
|
quota: 10,
|
|
quota: 10,
|
|
|
history: [
|
|
history: [
|
|
@@ -227,7 +231,7 @@ const SEED = {
|
|
|
region: "ks",
|
|
region: "ks",
|
|
|
operator: 4,
|
|
operator: 4,
|
|
|
partner: null,
|
|
partner: null,
|
|
|
- teams: { 常规: 0 },
|
|
|
|
|
|
|
+ teams: [0],
|
|
|
status: "停用",
|
|
status: "停用",
|
|
|
quota: 0,
|
|
quota: 0,
|
|
|
history: [
|
|
history: [
|
|
@@ -250,7 +254,7 @@ const SEED = {
|
|
|
region: "mh",
|
|
region: "mh",
|
|
|
operator: 0,
|
|
operator: 0,
|
|
|
partner: null,
|
|
partner: null,
|
|
|
- teams: { 常规: 0 },
|
|
|
|
|
|
|
+ teams: [0],
|
|
|
status: "停用",
|
|
status: "停用",
|
|
|
quota: 0,
|
|
quota: 0,
|
|
|
history: [
|
|
history: [
|
|
@@ -395,7 +399,7 @@ const SEED = {
|
|
|
{ id: "A-20260901-09", enterprise: 8, type: "到期停机", status: "执行成功", ticket: 20, created: "2026-09-01", doneOn: "2026-09-02", extendUntil: null, by: "周宁" },
|
|
{ id: "A-20260901-09", enterprise: 8, type: "到期停机", status: "执行成功", ticket: 20, created: "2026-09-01", doneOn: "2026-09-02", extendUntil: null, by: "周宁" },
|
|
|
{ id: "A-20260701-06", enterprise: 8, type: "到期停机", status: "执行失败", ticket: 21, created: "2026-07-01", doneOn: null, extendUntil: null, by: null },
|
|
{ id: "A-20260701-06", enterprise: 8, type: "到期停机", status: "执行失败", ticket: 21, created: "2026-07-01", doneOn: null, extendUntil: null, by: null },
|
|
|
{ id: "A-20260318-02", enterprise: 0, type: "到期停机", status: "执行失败", ticket: 18, created: "2026-03-18", doneOn: null, extendUntil: null, by: "周宁" },
|
|
{ id: "A-20260318-02", enterprise: 0, type: "到期停机", status: "执行失败", ticket: 18, created: "2026-03-18", doneOn: null, extendUntil: null, by: "周宁" },
|
|
|
- /* 澄澜科技标准档开户(idx26,沪东施工):施工类型成员回填成功后客户账户转在用 */
|
|
|
|
|
|
|
+ /* 澄澜科技标准档开户(idx26,沪东开户组):赵工回填成功后客户账户转在用 */
|
|
|
{ id: "A-20260318-03", enterprise: 0, type: "开户", status: "执行成功", ticket: 26, created: "2026-03-18", doneOn: "2026-03-20", extendUntil: null, by: "赵工" },
|
|
{ id: "A-20260318-03", enterprise: 0, type: "开户", status: "执行成功", ticket: 26, created: "2026-03-18", doneOn: "2026-03-20", extendUntil: null, by: "赵工" },
|
|
|
],
|
|
],
|
|
|
/* 工单:no 为我方工单号(T-创建日-当日流水),贯穿开户回填、竣工回传与联通回执;contractNo 关联合同(主线工单)。
|
|
/* 工单:no 为我方工单号(T-创建日-当日流水),贯穿开户回填、竣工回传与联通回执;contractNo 关联合同(主线工单)。
|
|
@@ -405,7 +409,7 @@ const SEED = {
|
|
|
submitter 是提交口径:客户主账号 / 下属分账号 / 运维代建 / 系统自动。只有客户主账号与下属分账号提交的
|
|
submitter 是提交口径:客户主账号 / 下属分账号 / 运维代建 / 系统自动。只有客户主账号与下属分账号提交的
|
|
|
工单,提交方才能自己撤回关闭(未完成时)或确认关闭形成闭环(已完成后);运维代建与系统自动带出的不放这个入口。 */
|
|
工单,提交方才能自己撤回关闭(未完成时)或确认关闭形成闭环(已完成后);运维代建与系统自动带出的不放这个入口。 */
|
|
|
tickets: [
|
|
tickets: [
|
|
|
- { no: "T-20261007-01", contractNo: "ICT-LG-20260902", type: "开户", enterprise: 1, account: null, team: 1, assignee: null, status: "待派单", created: "2026-10-07", doneOn: null, text: "合同套餐已建立,网络侧尚未开通。本工单只开通客户本身,不含下属分账号;分账号在套餐订阅时按额度对齐开通。", logs: ["2026-10-07 生成待执行开户记录(A-20261007-08)", "2026-10-07 客户已挂施工类型运维团队,开户工单落沪东施工,待孙队分派(团队当时为手工分派)", "2026-10-07 林管登记联通交接单的开通准备资料(办公应用 6 个账号;中国香港 10 兆固定 IP 2 个)"], closeReason: null, materials: ["oss://materials/KL-2026-000008/联通交接单.pdf"],
|
|
|
|
|
|
|
+ { no: "T-20261007-01", contractNo: "ICT-LG-20260902", type: "开户", enterprise: 1, account: null, team: 1, assignee: null, status: "待派单", created: "2026-10-07", doneOn: null, text: "合同套餐已建立,网络侧尚未开通。本工单只开通客户本身,不含下属分账号;分账号在套餐订阅时按额度对齐开通。", logs: ["2026-10-07 生成待执行开户记录(A-20261007-08)", "2026-10-07 客户已挂运维团队,开户工单按「承接开户」落到沪东开户组,待孙队分派(团队当时为手工分派)", "2026-10-07 林管登记联通交接单的开通准备资料(办公应用 6 个账号;中国香港 10 兆固定 IP 2 个)"], closeReason: null, materials: ["oss://materials/KL-2026-000008/联通交接单.pdf"],
|
|
|
prep: {
|
|
prep: {
|
|
|
apps: { 浏览应用: 0, 办公应用: 6, 运营应用: 0, 直播应用: 0, 定制应用: 0 },
|
|
apps: { 浏览应用: 0, 办公应用: 6, 运营应用: 0, 直播应用: 0, 定制应用: 0 },
|
|
|
ips: [{ country: "中国香港", bw: "10兆", count: 2 }],
|
|
ips: [{ country: "中国香港", bw: "10兆", count: 2 }],
|
|
@@ -494,7 +498,7 @@ const SEED = {
|
|
|
} },
|
|
} },
|
|
|
{ no: "T-20261003-01", contractNo: "HT-LG-20261002", type: "开户", enterprise: 1, account: null, team: 1, assignee: null, status: "已关闭", created: "2026-10-03", doneOn: "2026-10-06",
|
|
{ no: "T-20261003-01", contractNo: "HT-LG-20261002", type: "开户", enterprise: 1, account: null, team: 1, assignee: null, status: "已关闭", created: "2026-10-03", doneOn: "2026-10-06",
|
|
|
text: "客户要求先行开户(临港联通交接单已到手),后因工商变更资料不齐暂缓,本单终止。",
|
|
text: "客户要求先行开户(临港联通交接单已到手),后因工商变更资料不齐暂缓,本单终止。",
|
|
|
- logs: ["2026-10-03 生成待执行开户记录(A-20261003-11)", "2026-10-03 客户已挂施工类型运维团队,开户工单落沪东施工", "2026-10-04 林管 登记交接单开通准备资料(办公应用 6 个账号;中国香港 10 兆固定 IP 2 个)",
|
|
|
|
|
|
|
+ logs: ["2026-10-03 生成待执行开户记录(A-20261003-11)", "2026-10-03 客户已挂运维团队,开户工单按「承接开户」落到沪东开户组", "2026-10-04 林管 登记交接单开通准备资料(办公应用 6 个账号;中国香港 10 兆固定 IP 2 个)",
|
|
|
"2026-10-06 孙队关闭:客户营业执照工商变更未完成、资料不齐暂缓开户;A-20261003-11 改执行失败,待变更完成后重新建单"],
|
|
"2026-10-06 孙队关闭:客户营业执照工商变更未完成、资料不齐暂缓开户;A-20261003-11 改执行失败,待变更完成后重新建单"],
|
|
|
closeReason: "客户营业执照工商变更未完成、资料不齐暂缓开户,待完成后重新建单(见 T-20261007-01)。",
|
|
closeReason: "客户营业执照工商变更未完成、资料不齐暂缓开户,待完成后重新建单(见 T-20261007-01)。",
|
|
|
materials: ["oss://materials/KL-2026-000008/联通交接单.pdf"],
|
|
materials: ["oss://materials/KL-2026-000008/联通交接单.pdf"],
|
|
@@ -580,11 +584,11 @@ const SEED = {
|
|
|
{ no: "T-20261014-04", type: "售后", enterprise: 4, account: null, team: 0, assignee: null, status: "待派单", created: "2026-10-14", doneOn: null, text: "咨询续约优惠与单独境外 IP 增购价格,待回复配置说明。", logs: ["2026-10-14 运营商客服转交,周宁代建"], closeReason: null, submitter: "运维代建", materials: [] },
|
|
{ no: "T-20261014-04", type: "售后", enterprise: 4, account: null, team: 0, assignee: null, status: "待派单", created: "2026-10-14", doneOn: null, text: "咨询续约优惠与单独境外 IP 增购价格,待回复配置说明。", logs: ["2026-10-14 运营商客服转交,周宁代建"], closeReason: null, submitter: "运维代建", materials: [] },
|
|
|
{ no: "T-20261013-03", type: "售后", enterprise: 6, account: null, team: 0, assignee: 0, status: "处理中", created: "2026-10-13", doneOn: null, text: "要求出具 7-9 月新加坡出口用量清单与对账单核对说明。", logs: ["2026-10-13 企业微信咨询转工单,周宁代建", "2026-10-13 吴队分派给周宁"], closeReason: null, submitter: "运维代建", materials: [] },
|
|
{ no: "T-20261013-03", type: "售后", enterprise: 6, account: null, team: 0, assignee: 0, status: "处理中", created: "2026-10-13", doneOn: null, text: "要求出具 7-9 月新加坡出口用量清单与对账单核对说明。", logs: ["2026-10-13 企业微信咨询转工单,周宁代建", "2026-10-13 吴队分派给周宁"], closeReason: null, submitter: "运维代建", materials: [] },
|
|
|
{ no: "T-20261009-02", type: "售后", enterprise: 2, account: null, team: 0, assignee: 1, status: "已关闭", created: "2026-10-09", doneOn: "2026-10-10", text: "咨询直播档是否支持多店铺同时开播与链接数。", logs: ["2026-10-09 客户主账号在系统内提交(文字)", "2026-10-09 分派给李可", "2026-10-10 吴队关闭:客户撤回咨询(已电话线下答复),无需继续处理"], closeReason: "客户撤回咨询(已电话线下答复),无需继续处理。", submitter: "客户主账号", materials: [] },
|
|
{ no: "T-20261009-02", type: "售后", enterprise: 2, account: null, team: 0, assignee: 1, status: "已关闭", created: "2026-10-09", doneOn: "2026-10-10", text: "咨询直播档是否支持多店铺同时开播与链接数。", logs: ["2026-10-09 客户主账号在系统内提交(文字)", "2026-10-09 分派给李可", "2026-10-10 吴队关闭:客户撤回咨询(已电话线下答复),无需继续处理"], closeReason: "客户撤回咨询(已电话线下答复),无需继续处理。", submitter: "客户主账号", materials: [] },
|
|
|
- /* ↓ 沪东施工名下的历史开户单(idx26):澄澜科技签 HT-CL-20260318 后由施工类型团队承接开户,
|
|
|
|
|
|
|
+ /* ↓ 沪东开户组名下的历史开户单(idx26):澄澜科技签 HT-CL-20260318 后由承接开户的运维团队(沪东开户组)落单,
|
|
|
2026-03-20 赵工回填成功,客户账户与 2 个分账号转在用,与客户档案的服务开通状态变更记录一一对应。 */
|
|
2026-03-20 赵工回填成功,客户账户与 2 个分账号转在用,与客户档案的服务开通状态变更记录一一对应。 */
|
|
|
{ no: "T-20260318-03", contractNo: "HT-CL-20260318", type: "开户", enterprise: 0, account: null, team: 1, assignee: 2, status: "已完成", created: "2026-03-18", doneOn: "2026-03-20",
|
|
{ no: "T-20260318-03", contractNo: "HT-CL-20260318", type: "开户", enterprise: 0, account: null, team: 1, assignee: 2, status: "已完成", created: "2026-03-18", doneOn: "2026-03-20",
|
|
|
text: "HT-CL-20260318 跨境办公 · 标准档(中国香港出口,合同核定境外 IP 0 条)合同套餐已建立,网络侧开通客户与 2 个分账号。",
|
|
text: "HT-CL-20260318 跨境办公 · 标准档(中国香港出口,合同核定境外 IP 0 条)合同套餐已建立,网络侧开通客户与 2 个分账号。",
|
|
|
- logs: ["2026-03-18 生成待执行开户记录(A-20260318-03)", "2026-03-18 客户已挂施工类型运维团队,开户工单落沪东施工", "2026-03-18 孙队 按自动平均分派给赵工",
|
|
|
|
|
|
|
+ logs: ["2026-03-18 生成待执行开户记录(A-20260318-03)", "2026-03-18 客户已挂运维团队,开户工单按「承接开户」落到沪东开户组", "2026-03-18 孙队 按自动平均分派给赵工",
|
|
|
"2026-03-18 赵工 登记交接单开通准备资料(共 2 个账号):办公应用 2 个;经办人 上海联通 · 王经理(13601700101)· 交接单 2026-03-16",
|
|
"2026-03-18 赵工 登记交接单开通准备资料(共 2 个账号):办公应用 2 个;经办人 上海联通 · 王经理(13601700101)· 交接单 2026-03-16",
|
|
|
"2026-03-20 赵工 回填开户执行结论「成功」:实际开通日 2026-03-20 · 施工人 赵工 · 完成时间 2026-03-20 16:40;本次开通 2 个账号;合同核定境外 IP 0 条,本单无境外 IP 待配"],
|
|
"2026-03-20 赵工 回填开户执行结论「成功」:实际开通日 2026-03-20 · 施工人 赵工 · 完成时间 2026-03-20 16:40;本次开通 2 个账号;合同核定境外 IP 0 条,本单无境外 IP 待配"],
|
|
|
closeReason: null, submitter: "系统自动",
|
|
closeReason: null, submitter: "系统自动",
|
|
@@ -665,69 +669,69 @@ const SEED = {
|
|
|
costs: [], base: 46.45,
|
|
costs: [], base: 46.45,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 9.29 },
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 9.29 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 112.90 },
|
|
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 2.32 },
|
|
|
|
|
|
|
+ { ch: "team", ref: 0, who: "华东运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 112.90 },
|
|
|
|
|
+ { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 2.32 },
|
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 2.32 },
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 2.32 },
|
|
|
],
|
|
],
|
|
|
- attrs: "联通 / 邹合(华东) / 华东常规运维 / 沪东施工",
|
|
|
|
|
|
|
+ attrs: "联通 / 邹合(华东) / 华东运维 / 沪东开户组",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
enterprise: 0, sub: 1, month: "2026-04", days: 30, monthDays: 30, partial: false, std: 120, amount: 120, tail: false, exact: 120,
|
|
enterprise: 0, sub: 1, month: "2026-04", days: 30, monthDays: 30, partial: false, std: 120, amount: 120, tail: false, exact: 120,
|
|
|
costs: [], base: 120,
|
|
costs: [], base: 120,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 250 },
|
|
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
|
|
|
|
+ { ch: "team", ref: 0, who: "华东运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 250 },
|
|
|
|
|
+ { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
],
|
|
],
|
|
|
- attrs: "联通 / 邹合(华东) / 华东常规运维 / 沪东施工",
|
|
|
|
|
|
|
+ attrs: "联通 / 邹合(华东) / 华东运维 / 沪东开户组",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
enterprise: 0, sub: 1, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 120, amount: 120, tail: false, exact: 120,
|
|
enterprise: 0, sub: 1, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 120, amount: 120, tail: false, exact: 120,
|
|
|
costs: [], base: 120,
|
|
costs: [], base: 120,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 250 },
|
|
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
|
|
|
|
+ { ch: "team", ref: 0, who: "华东运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 250 },
|
|
|
|
|
+ { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
],
|
|
],
|
|
|
- attrs: "联通 / 邹合(华东) / 华东常规运维 / 沪东施工",
|
|
|
|
|
|
|
+ attrs: "联通 / 邹合(华东) / 华东运维 / 沪东开户组",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
enterprise: 3, sub: 4, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 480, amount: 480, tail: false, exact: 480,
|
|
enterprise: 3, sub: 4, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 480, amount: 480, tail: false, exact: 480,
|
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 46 }], combo: "上海市 / 移动", base: 434,
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 46 }], combo: "上海市 / 移动", base: 434,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 2, who: "上海市 / 移动", mode: "按总金额比例", rate: 0.15, amount: 65.1 },
|
|
{ ch: "operator", ref: 2, who: "上海市 / 移动", mode: "按总金额比例", rate: 0.15, amount: 65.1 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 43.4 },
|
|
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 21.7 },
|
|
|
|
|
|
|
+ { ch: "team", ref: 0, who: "华东运维", mode: "按总金额比例", rate: 0.1, amount: 43.4 },
|
|
|
|
|
+ { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 21.7 },
|
|
|
{ ch: "partner", ref: 1, who: "何南", mode: "按总金额比例", rate: 0.08, amount: 34.72 },
|
|
{ ch: "partner", ref: 1, who: "何南", mode: "按总金额比例", rate: 0.08, amount: 34.72 },
|
|
|
],
|
|
],
|
|
|
- attrs: "移动 / 何南(华南) / 华东常规运维 / 沪东施工",
|
|
|
|
|
|
|
+ attrs: "移动 / 何南(华南) / 华东运维 / 沪东开户组",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
enterprise: 3, sub: 5, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: false, exact: 160,
|
|
enterprise: 3, sub: 5, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: false, exact: 160,
|
|
|
costs: [{ name: "国际云主机月摊销", amount: 26 }], combo: "上海市 / 移动", base: 134,
|
|
costs: [{ name: "国际云主机月摊销", amount: 26 }], combo: "上海市 / 移动", base: 134,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 2, who: "上海市 / 移动", mode: "按总金额比例", rate: 0.15, amount: 20.1 },
|
|
{ ch: "operator", ref: 2, who: "上海市 / 移动", mode: "按总金额比例", rate: 0.15, amount: 20.1 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 13.4 },
|
|
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 6.7 },
|
|
|
|
|
|
|
+ { ch: "team", ref: 0, who: "华东运维", mode: "按总金额比例", rate: 0.1, amount: 13.4 },
|
|
|
|
|
+ { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 6.7 },
|
|
|
{ ch: "partner", ref: 1, who: "何南", mode: "按总金额比例", rate: 0.08, amount: 10.72 },
|
|
{ ch: "partner", ref: 1, who: "何南", mode: "按总金额比例", rate: 0.08, amount: 10.72 },
|
|
|
],
|
|
],
|
|
|
- attrs: "移动 / 何南(华南) / 华东常规运维 / 沪东施工(叠加订阅各算各的;叠加增值不占分账号额度)",
|
|
|
|
|
|
|
+ attrs: "移动 / 何南(华南) / 华东运维 / 沪东开户组(叠加订阅各算各的;叠加增值不占分账号额度)",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
enterprise: 4, sub: 6, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: true, exact: 160,
|
|
enterprise: 4, sub: 6, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: true, exact: 160,
|
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 50 }], combo: "上海市 / 联通", base: 110,
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 50 }], combo: "上海市 / 联通", base: 110,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 22 },
|
|
{ ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 22 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 11 },
|
|
|
|
|
- { who: "沪东施工(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
|
|
|
|
+ { ch: "team", ref: 0, who: "华东运维", mode: "按总金额比例", rate: 0.1, amount: 11 },
|
|
|
|
|
+ { who: "沪东开户组(该客户未挂,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 5.5 },
|
|
{ ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 5.5 },
|
|
|
],
|
|
],
|
|
|
- attrs: "联通 / 邹合(华东) / 华东常规运维 / 无施工团队",
|
|
|
|
|
|
|
+ attrs: "联通 / 邹合(华东) / 华东运维 / 未挂沪东开户组",
|
|
|
},
|
|
},
|
|
|
/* 广东省 / 移动(客户 6 · 订阅 11)三条连续期次,演示出账状态三态(判据见需求规格说明 8.2):
|
|
/* 广东省 / 移动(客户 6 · 订阅 11)三条连续期次,演示出账状态三态(判据见需求规格说明 8.2):
|
|
|
- 该客户没有合伙人,归属的华东常规运维未配分成取值(计 0、不进对账),唯一分成方广东省 / 移动的对账日是 20 日。
|
|
|
|
|
|
|
+ 该客户没有合伙人,归属的华东运维未配分成取值(计 0、不进对账),唯一分成方广东省 / 移动的对账日是 20 日。
|
|
|
7 月批次生成中断(执行失败)→ 出账异常;8 月批次已执行 → 已出账;
|
|
7 月批次生成中断(执行失败)→ 出账异常;8 月批次已执行 → 已出账;
|
|
|
9 月批次要到 2026-10-20 才出,今天(10-15)各分成方都还没到对账日 → 未出账,这正是未出账该出现的唯一情形 */
|
|
9 月批次要到 2026-10-20 才出,今天(10-15)各分成方都还没到对账日 → 未出账,这正是未出账该出现的唯一情形 */
|
|
|
{
|
|
{
|
|
@@ -735,7 +739,7 @@ const SEED = {
|
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
|
|
{ ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
|
|
|
- { who: "华东常规运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
|
|
|
|
+ { who: "华东运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
],
|
|
],
|
|
|
attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
|
|
attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
|
|
|
},
|
|
},
|
|
@@ -744,7 +748,7 @@ const SEED = {
|
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
|
|
{ ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
|
|
|
- { who: "华东常规运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
|
|
|
|
+ { who: "华东运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
],
|
|
],
|
|
|
attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
|
|
attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
|
|
|
},
|
|
},
|
|
@@ -753,7 +757,7 @@ const SEED = {
|
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
|
|
costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
|
|
|
shares: [
|
|
shares: [
|
|
|
{ ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
|
|
{ ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
|
|
|
- { who: "华东常规运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
|
|
|
|
+ { who: "华东运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
],
|
|
],
|
|
|
attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
|
|
attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
|
|
|
},
|
|
},
|
|
@@ -767,7 +771,7 @@ const SEED = {
|
|
|
{ no: "DZD-20261008-YD", day: "2026-10-08", month: "2026-09", ch: "operator", ref: 2, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-08 06:00", rows: [3, 4], warning: "" },
|
|
{ no: "DZD-20261008-YD", day: "2026-10-08", month: "2026-09", ch: "operator", ref: 2, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-08 06:00", rows: [3, 4], warning: "" },
|
|
|
{ no: "DZD-20261005-ZH", day: "2026-10-05", month: "2026-09", ch: "partner", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 5], warning: "" },
|
|
{ no: "DZD-20261005-ZH", day: "2026-10-05", month: "2026-09", ch: "partner", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 5], warning: "" },
|
|
|
{ no: "DZD-20261005-YW0", day: "2026-10-05", month: "2026-09", ch: "team", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4, 5], warning: "" },
|
|
{ no: "DZD-20261005-YW0", day: "2026-10-05", month: "2026-09", ch: "team", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4, 5], warning: "" },
|
|
|
- { no: "DZD-20261005-SG1", day: "2026-10-05", month: "2026-09", ch: "team", ref: 1, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4], warning: "海岚跨境未挂施工团队,该分成方本月不计分成" },
|
|
|
|
|
|
|
+ { no: "DZD-20261005-SG1", day: "2026-10-05", month: "2026-09", ch: "team", ref: 1, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4], warning: "海岚跨境未挂沪东开户组,该分成方本月不计分成" },
|
|
|
{ no: "DZD-20260905-DX", day: "2026-09-05", month: "2026-08", ch: "operator", ref: 1, trigger: "自动", status: "已打回", by: "系统", at: "2026-09-05 06:00", rows: [], warning: "分成比例误录,运营商尚未付款" },
|
|
{ no: "DZD-20260905-DX", day: "2026-09-05", month: "2026-08", ch: "operator", ref: 1, trigger: "自动", status: "已打回", by: "系统", at: "2026-09-05 06:00", rows: [], warning: "分成比例误录,运营商尚未付款" },
|
|
|
{ no: "DZD-20260912-DX-R", day: "2026-09-12", month: "2026-08", ch: "operator", ref: 1, trigger: "人工", status: "已执行", by: "林管", at: "2026-09-12 10:20", rows: [], warning: "打回后重做,新明细成为 8 月唯一有效分成" },
|
|
{ no: "DZD-20260912-DX-R", day: "2026-09-12", month: "2026-08", ch: "operator", ref: 1, trigger: "人工", status: "已执行", by: "林管", at: "2026-09-12 10:20", rows: [], warning: "打回后重做,新明细成为 8 月唯一有效分成" },
|
|
|
{ no: "DZD-20260605-LT", day: "2026-06-05", month: "2026-05", ch: "operator", ref: 0, trigger: "自动", status: "执行失败", by: "系统", at: "2026-06-05 06:00", rows: [], warning: "对账任务异常中断,等待人工补跑" },
|
|
{ no: "DZD-20260605-LT", day: "2026-06-05", month: "2026-05", ch: "operator", ref: 0, trigger: "自动", status: "执行失败", by: "系统", at: "2026-06-05 06:00", rows: [], warning: "对账任务异常中断,等待人工补跑" },
|
|
@@ -789,17 +793,17 @@ const SEED = {
|
|
|
no: "IMP-2026-0001", file: "闵行区客户建档-20261008.csv", by: "林管", at: "2026-10-08 10:05",
|
|
no: "IMP-2026-0001", file: "闵行区客户建档-20261008.csv", by: "林管", at: "2026-10-08 10:05",
|
|
|
status: "已完成",
|
|
status: "已完成",
|
|
|
rows: [
|
|
rows: [
|
|
|
- { line: "1", cells: ["1", "海岚跨境电商(上海)", "企业", "周岚", "021-54002023", "上海市闵行区申长路 988 号 3 号楼 5 层", "闵行区", "联通", "邹合", "华东常规运维", "", "跨境办公 · 独立 IP 档", "hlkjdssh", ""], status: "成功", reason: "", ent: 4 },
|
|
|
|
|
|
|
+ { line: "1", cells: ["1", "海岚跨境电商(上海)", "企业", "周岚", "021-54002023", "上海市闵行区申长路 988 号 3 号楼 5 层", "闵行区", "联通", "邹合", "华东运维", "", "跨境办公 · 独立 IP 档", "hlkjdssh", ""], status: "成功", reason: "", ent: 4 },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
no: "IMP-2026-0002", file: "临港与张江客户-20261012.csv", by: "周运营", at: "2026-10-12 09:40",
|
|
no: "IMP-2026-0002", file: "临港与张江客户-20261012.csv", by: "周运营", at: "2026-10-12 09:40",
|
|
|
status: "有失败待续传",
|
|
status: "有失败待续传",
|
|
|
rows: [
|
|
rows: [
|
|
|
- { line: "1", cells: ["1", "临港跨境贸易", "企业", "陆港", "021-66002008", "上海市浦东新区环湖西二路 800 号 A 座 11 层", "临港新片区", "电信", "", "华东常规运维", "", "", "lgkjmy", ""], status: "成功", reason: "", ent: 1 },
|
|
|
|
|
- { line: "2", cells: ["2", "澄澜科技有限公司", "企业", "沈澄", "021-66001001", "上海市浦东新区金港路 300 号 6 号楼 3 层", "浦东新区", "联通", "邹合", "华东常规运维", "", "跨境办公 · 标准档", "", ""], status: "失败", reason: "客户名称与已有客户「澄澜科技有限公司」(KL-2026-000001)重复,不覆盖已有客户", ent: null },
|
|
|
|
|
- { line: "3", cells: ["3", "张江芯创半导体", "企业", "何工", "021-50003301", "上海市浦东新区祖冲之路 887 号 2 号楼", "张江区", "联通", "", "华东常规运维", "", "", "", "13900000331"], status: "失败", reason: "所挂区域「张江区」匹配不到,填区域名称原文且需在负责范围内", ent: null },
|
|
|
|
|
- { line: "4", cells: ["4", "陆家嘴外贸服务中心", "个体工商户", "王经理", "021-58002277", "上海市浦东新区世纪大道 100 号 18 层", "浦东新区", "联通", "", "华东常规运维", "", "", "clkj", ""], status: "失败", reason: "主账号登录名 clkj 已被占用,系统不自动加后缀,请改写后重新上传", ent: null },
|
|
|
|
|
|
|
+ { line: "1", cells: ["1", "临港跨境贸易", "企业", "陆港", "021-66002008", "上海市浦东新区环湖西二路 800 号 A 座 11 层", "临港新片区", "电信", "", "华东运维", "", "", "lgkjmy", ""], status: "成功", reason: "", ent: 1 },
|
|
|
|
|
+ { line: "2", cells: ["2", "澄澜科技有限公司", "企业", "沈澄", "021-66001001", "上海市浦东新区金港路 300 号 6 号楼 3 层", "浦东新区", "联通", "邹合", "华东运维", "", "跨境办公 · 标准档", "", ""], status: "失败", reason: "客户名称与已有客户「澄澜科技有限公司」(KL-2026-000001)重复,不覆盖已有客户", ent: null },
|
|
|
|
|
+ { line: "3", cells: ["3", "张江芯创半导体", "企业", "何工", "021-50003301", "上海市浦东新区祖冲之路 887 号 2 号楼", "张江区", "联通", "", "华东运维", "", "", "", "13900000331"], status: "失败", reason: "所挂区域「张江区」匹配不到,填区域名称原文且需在负责范围内", ent: null },
|
|
|
|
|
+ { line: "4", cells: ["4", "陆家嘴外贸服务中心", "个体工商户", "王经理", "021-58002277", "上海市浦东新区世纪大道 100 号 18 层", "浦东新区", "联通", "", "华东运维", "", "", "clkj", ""], status: "失败", reason: "主账号登录名 clkj 已被占用,系统不自动加后缀,请改写后重新上传", ent: null },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
@@ -879,7 +883,7 @@ const SEED = {
|
|
|
{ at: "2026-08-10 10:20", by: "林管", type: "客户挂载", object: "澄澜科技有限公司", before: "未挂载", after: "上海市 / 上海市 / 浦东新区" },
|
|
{ at: "2026-08-10 10:20", by: "林管", type: "客户挂载", object: "澄澜科技有限公司", before: "未挂载", after: "上海市 / 上海市 / 浦东新区" },
|
|
|
{ at: "2026-08-20 11:30", by: "林管", type: "客户改挂区域", object: "王敏", before: "江苏省 / 苏州市 / 昆山市", after: "上海市 / 上海市 / 浦东新区" },
|
|
{ at: "2026-08-20 11:30", by: "林管", type: "客户改挂区域", object: "王敏", before: "江苏省 / 苏州市 / 昆山市", after: "上海市 / 上海市 / 浦东新区" },
|
|
|
{ at: "2026-08-21 16:00", by: "林管", type: "合伙人负责范围首次配置", object: "邹合(华东渠道)", before: "(空)", after: "澄澜科技、临港跨境、陈阿福、王敏、海岚跨境(选定上海市、苏州市,含其下级全部客户)" },
|
|
{ at: "2026-08-21 16:00", by: "林管", type: "合伙人负责范围首次配置", object: "邹合(华东渠道)", before: "(空)", after: "澄澜科技、临港跨境、陈阿福、王敏、海岚跨境(选定上海市、苏州市,含其下级全部客户)" },
|
|
|
- { at: "2026-09-02 09:10", by: "林管", type: "运维团队负责范围调整", object: "沪东施工", before: "澄澜科技、王敏", after: "澄澜科技、临港跨境、王敏(新增直接多选客户:临港跨境)" },
|
|
|
|
|
|
|
+ { at: "2026-09-02 09:10", by: "林管", type: "运维团队负责范围调整", object: "沪东开户组", before: "澄澜科技、王敏", after: "澄澜科技、临港跨境、王敏(新增直接多选客户:临港跨境)" },
|
|
|
{ at: "2026-10-05 15:20", by: "林管", type: "合伙人负责范围调整", object: "何南(华南渠道)", before: "(空)", after: "天河区(暂无直属客户);直接多选客户:陈阿福" },
|
|
{ at: "2026-10-05 15:20", by: "林管", type: "合伙人负责范围调整", object: "何南(华南渠道)", before: "(空)", after: "天河区(暂无直属客户);直接多选客户:陈阿福" },
|
|
|
{ at: "2026-10-05 15:25", by: "林管", type: "分成档案取值变更", object: "何南(华南渠道)", before: "未配分成(计 0)", after: "按总金额比例 0.08(对名下全部客户统一生效)" },
|
|
{ at: "2026-10-05 15:25", by: "林管", type: "分成档案取值变更", object: "何南(华南渠道)", before: "未配分成(计 0)", after: "按总金额比例 0.08(对名下全部客户统一生效)" },
|
|
|
{ at: "2026-10-05 06:00", by: "系统", type: "对账清单自动执行", object: "DZD-20261005-LT · 联通 · 2026-09", before: "待执行", after: "已执行(2 条明细)" },
|
|
{ at: "2026-10-05 06:00", by: "系统", type: "对账清单自动执行", object: "DZD-20261005-LT · 联通 · 2026-09", before: "待执行", after: "已执行(2 条明细)" },
|
|
@@ -897,10 +901,10 @@ const SEED = {
|
|
|
{ name: "林管", role: "admin", regTeam: 0, primary: true, builtin: true, title: "总运营团队主账号", phone: "13900000001", acctStatus: "在用", mustChange: false },
|
|
{ name: "林管", role: "admin", regTeam: 0, primary: true, builtin: true, title: "总运营团队主账号", phone: "13900000001", acctStatus: "在用", mustChange: false },
|
|
|
{ name: "周运营", role: "regAdmin", regTeam: 1, primary: true, title: "华东运营 · 团队主账号", login: "zhouyun@example", phone: "13900000101", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-20" },
|
|
{ name: "周运营", role: "regAdmin", regTeam: 1, primary: true, title: "华东运营 · 团队主账号", login: "zhouyun@example", phone: "13900000101", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-20" },
|
|
|
{ name: "许芸", role: "regAdmin", regTeam: 1, title: "华东运营 · 子账号(客户建档)", login: "xuyun@example", acctStatus: "在用", mustChange: true, pwdResetOn: "2026-10-09" },
|
|
{ name: "许芸", role: "regAdmin", regTeam: 1, title: "华东运营 · 子账号(客户建档)", login: "xuyun@example", acctStatus: "在用", mustChange: true, pwdResetOn: "2026-10-09" },
|
|
|
- { name: "吴队", role: "teamLead", team: 0, title: "华东常规运维 · 团队主账号", login: "wudui@example", phone: "13900000103", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-06" },
|
|
|
|
|
- { name: "周宁", role: "ops", member: 0, title: "常规运维 · 开停回填", login: "zhouning@example", phone: "13900000104", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-18" },
|
|
|
|
|
- { name: "孙队", role: "teamLead", team: 1, title: "沪东施工 · 团队主账号", login: "sundui@example", phone: "13900000105", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-02" },
|
|
|
|
|
- { name: "赵工", role: "worker", member: 2, title: "施工人员", login: "zhaogong@example", phone: "13900000106", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-21" },
|
|
|
|
|
|
|
+ { name: "吴队", role: "teamLead", team: 0, title: "华东运维 · 团队主账号", login: "wudui@example", phone: "13900000103", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-06" },
|
|
|
|
|
+ { name: "周宁", role: "ops", member: 0, title: "运维子账号 · 开停回填", login: "zhouning@example", phone: "13900000104", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-18" },
|
|
|
|
|
+ { name: "孙队", role: "teamLead", team: 1, title: "沪东开户组 · 团队主账号", login: "sundui@example", phone: "13900000105", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-02" },
|
|
|
|
|
+ { name: "赵工", role: "ops", member: 2, title: "运维子账号 · 开户回填", login: "zhaogong@example", phone: "13900000106", acctStatus: "在用", mustChange: false, pwdResetOn: "2026-09-21" },
|
|
|
/* 客户主账号登录名取客户名称的拼音首字母(见《需求规格说明》3.2),不照抄中文客户名称。
|
|
/* 客户主账号登录名取客户名称的拼音首字母(见《需求规格说明》3.2),不照抄中文客户名称。
|
|
|
激活状态只有未激活 / 已激活。样例:未激活且凭证仍有效(临港、王敏)、已激活(澄澜)、
|
|
激活状态只有未激活 / 已激活。样例:未激活且凭证仍有效(临港、王敏)、已激活(澄澜)、
|
|
|
未激活且平台 TTL 已过(陈阿福、海岚,导出时会自动换新码) */
|
|
未激活且平台 TTL 已过(陈阿福、海岚,导出时会自动换新码) */
|
|
@@ -954,34 +958,35 @@ function unfinished(db, memberIndex) {
|
|
|
return db.tickets.filter((t) => t.assignee === memberIndex && (t.status === "待处理" || t.status === "处理中")).length;
|
|
return db.tickets.filter((t) => t.assignee === memberIndex && (t.status === "待处理" || t.status === "处理中")).length;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function ticketTypeOfTeam(team) {
|
|
|
|
|
- return team.type === "施工" ? "施工" : "常规";
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
/* 团队可承接的工单类型:取团队档案上开通/编辑时指定的 ticketTypes;
|
|
/* 团队可承接的工单类型:取团队档案上开通/编辑时指定的 ticketTypes;
|
|
|
- 存量档案没配时按团队类型兜底——施工类型只承接开户,常规类型承接全部类型(原口径) */
|
|
|
|
|
|
|
+ 存量档案没配时按「全部六类」兜底(团队不分类型,没有按类型收窄的默认值) */
|
|
|
function teamTicketTypes(team) {
|
|
function teamTicketTypes(team) {
|
|
|
if (team.ticketTypes && team.ticketTypes.length) return team.ticketTypes;
|
|
if (team.ticketTypes && team.ticketTypes.length) return team.ticketTypes;
|
|
|
- return team.type === "施工" ? ["开户"] : ["开户", "服务开通", "到期停机", "服务停用", "故障", "售后"];
|
|
|
|
|
|
|
+ return ["开户", "服务开通", "到期停机", "服务停用", "故障", "售后"];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* 工单归属团队:在客户挂接的团队里找声明承接该工单类型的团队——开户优先施工类型团队,
|
|
|
|
|
- 其余类型优先常规类型团队;两个挂接团队都不承接该类型时回落常规类型团队(工单照建,等总运营/区域运营改派) */
|
|
|
|
|
|
|
+/* 工单归属团队:在客户挂接的团队里找**声明承接该工单类型**的那一支。
|
|
|
|
|
+ 可能有多支都承接(例如一支全栈团队 + 一支只接开户的专精团队),按「承接类型数更少者优先」定落点
|
|
|
|
|
+ ——专精团队先接专精工单;承接数相同时按挂接顺序。都不承接时回落第一支挂接团队,
|
|
|
|
|
+ 工单照建、留在该团队待派单,等总运营/区域运营改挂团队或补承接类型 */
|
|
|
function ticketTeamFor(db, ent, type) {
|
|
function ticketTeamFor(db, ent, type) {
|
|
|
- const order = type === "开户" ? ["施工", "常规"] : ["常规", "施工"];
|
|
|
|
|
- for (let i = 0; i < order.length; i++) {
|
|
|
|
|
- const ti = ent.teams[order[i]];
|
|
|
|
|
- if (ti !== undefined && teamTicketTypes(db.teams[ti]).includes(type)) return ti;
|
|
|
|
|
|
|
+ const list = Array.isArray(ent.teams) ? ent.teams : [];
|
|
|
|
|
+ const cands = list
|
|
|
|
|
+ .map((ti, ord) => ({ ti, ord, n: db.teams[ti] ? teamTicketTypes(db.teams[ti]).length : 99 }))
|
|
|
|
|
+ .filter((x) => db.teams[x.ti] && teamTicketTypes(db.teams[x.ti]).includes(type));
|
|
|
|
|
+ if (cands.length) {
|
|
|
|
|
+ cands.sort((a, b) => a.n - b.n || a.ord - b.ord);
|
|
|
|
|
+ return cands[0].ti;
|
|
|
}
|
|
}
|
|
|
- return ent.teams.常规;
|
|
|
|
|
|
|
+ return list.length ? list[0] : 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/* 可接单成员=同团队 ∧ 该工单类型在本人可处理类型集合内 ∧ 客户在本人负责范围内。
|
|
|
|
|
+ 成员不再按「常规/施工」分身份,接单能力完全由 types(可处理工单类型)决定 */
|
|
|
function eligible(db, ticket) {
|
|
function eligible(db, ticket) {
|
|
|
- const team = db.teams[ticket.team];
|
|
|
|
|
- const need = ticketTypeOfTeam(team);
|
|
|
|
|
return db.members
|
|
return db.members
|
|
|
.map((m, index) => ({ ...m, index }))
|
|
.map((m, index) => ({ ...m, index }))
|
|
|
- .filter((m) => m.team === ticket.team && m.type === need && m.scope.includes(ticket.enterprise));
|
|
|
|
|
|
|
+ .filter((m) => m.team === ticket.team && (m.types || []).includes(ticket.type) && m.scope.includes(ticket.enterprise));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function pickEven(db, ticket) {
|
|
function pickEven(db, ticket) {
|