|
|
|
|
@@ -254,6 +254,7 @@ function renderProjects() {
|
|
|
|
|
</div>
|
|
|
|
|
${renderTable(["项目", "项目说明", "当前阶段", "项目金额", "负责人", "进展"], rows, items.map((x) => ({ resource: "operations", id: x.id })))}
|
|
|
|
|
</div>`;
|
|
|
|
|
if (window.lucide) window.lucide.createIcons();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function renderProjectTasks(projectId) {
|
|
|
|
|
@@ -447,14 +448,14 @@ function openDrawer(resource, id) {
|
|
|
|
|
const fields = resource === "sales"
|
|
|
|
|
? [["target_customer","业务机会"],["priority","优先级"],["status","状态"]]
|
|
|
|
|
: resource === "operations"
|
|
|
|
|
? [["project_name","项目名称"],["project_version","项目版本"],["project_status","项目状态"],["current_stage","当前阶段"],["target_customer","业务机会"],["customer_need","客户需求"],["expected_contract_amount","预计签约金额"],["expected_sign_date","预计签约时间"],["sign_probability","签约概率"],["sop_stage","SOP 阶段"],["execution_progress","执行进度"],["current_deliverable","当前交付物"],["risks","风险与阻塞"],["next_action","下一步动作"]]
|
|
|
|
|
? [["project_name","项目名称"],["owner","负责人"],["current_stage","当前阶段"],["expected_sign_date","截止时间"],["expected_contract_amount","金额"],["notes","项目说明"]]
|
|
|
|
|
: resource === "proposals"
|
|
|
|
|
? [["customer_or_project_name","客户/项目"],["version","版本号"],["description","版本说明"],["created_date","创建日期"],["status","状态"]]
|
|
|
|
|
: [["product_name","产品名称"],["version","版本号"],["version_goal","版本目标"],["feature_list","核心功能清单"],["platform","平台"],["launch_date","上线日期"],["status","当前状态"],["notes","备注"]];
|
|
|
|
|
const fieldIcons = {
|
|
|
|
|
target_customer: "user", priority: "flag", status: "circle-dot",
|
|
|
|
|
project_name: "briefcase-business", project_version: "git-branch", project_status: "circle-dot", current_stage: "map-pin",
|
|
|
|
|
customer_need: "file-text", expected_contract_amount: "banknote", expected_sign_date: "calendar",
|
|
|
|
|
owner: "user", customer_need: "file-text", expected_contract_amount: "banknote", expected_sign_date: "calendar",
|
|
|
|
|
sign_probability: "percent", sop_stage: "list-checks", execution_progress: "activity",
|
|
|
|
|
current_deliverable: "package", risks: "alert-triangle", next_action: "arrow-right",
|
|
|
|
|
product_name: "box", version: "tag", version_goal: "target", feature_list: "list", platform: "layers",
|
|
|
|
|
|