feat: update project order types

This commit is contained in:
Frudrax Cheng
2026-06-06 13:58:53 +08:00
parent 15a9f80b7f
commit c4b005adb8
5 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ VITE_API_BASE_URL=/api
- 管理员可进行工单分配(重新分配工单负责人)或强制关闭工单 - 管理员可进行工单分配(重新分配工单负责人)或强制关闭工单
- 工单状态机:待处理 → 待客户确认 → 已完成 / 已退回 - 工单状态机:待处理 → 待客户确认 → 已完成 / 已退回
- 项目工单 - 项目工单
- 用于现场勘查、现场实施等项目任务 - 用于项目勘察、工程实施、定期维保、商务合作等项目任务
- 现场图片最多 18 张,工程师签名后提交完成 - 现场图片最多 18 张,工程师签名后提交完成
- 无客户签字环节,完成后形成项目完成电子表单 - 无客户签字环节,完成后形成项目完成电子表单
- 用户资料管理 - 用户资料管理
+5 -4
View File
@@ -16,9 +16,10 @@ import './styles/PublicQuery.css';
import './styles/AftersalesConfirm.css'; import './styles/AftersalesConfirm.css';
const PROJECT_TYPE_LABEL: Record<ProjectType, string> = { const PROJECT_TYPE_LABEL: Record<ProjectType, string> = {
survey: '现场勘查', survey: '项目勘察',
implementation: '现场实施', implementation: '工程实施',
maintenance: '项目维保', maintenance: '定期维保',
business: '商务合作',
other: '其他', other: '其他',
}; };
@@ -304,7 +305,7 @@ function ProjectOrderCompletePage() {
rows={4} rows={4}
value={completionNote} value={completionNote}
onChange={(e) => setCompletionNote(e.target.value)} onChange={(e) => setCompletionNote(e.target.value)}
placeholder="请描述现场勘查、实施过程和最终完成情况" placeholder="请描述项目勘察、工程实施或现场完成情况"
/> />
</div> </div>
+5 -4
View File
@@ -38,9 +38,10 @@ import type {
import './styles/AftersalesDetail.css'; import './styles/AftersalesDetail.css';
const PROJECT_TYPE_LABEL: Record<ProjectType, string> = { const PROJECT_TYPE_LABEL: Record<ProjectType, string> = {
survey: '现场勘查', survey: '项目勘察',
implementation: '现场实施', implementation: '工程实施',
maintenance: '项目维保', maintenance: '定期维保',
business: '商务合作',
other: '其他', other: '其他',
}; };
@@ -483,7 +484,7 @@ function ProjectOrderDetailPage() {
label="完成说明" label="完成说明"
tooltip="现场完成后填写,扫码页和电子表单会展示此内容" tooltip="现场完成后填写,扫码页和电子表单会展示此内容"
> >
<Input.TextArea rows={4} placeholder="请描述现场勘查、实施过程和最终完成情况" /> <Input.TextArea rows={4} placeholder="请描述项目勘察、工程实施或现场完成情况" />
</Form.Item> </Form.Item>
{canEdit && ( {canEdit && (
+4 -3
View File
@@ -40,9 +40,10 @@ const WORK_ORDER_STATUS_COLOR: Record<ProjectOrderStatus, string> = {
}; };
const PROJECT_TYPE_LABEL: Record<ProjectType, string> = { const PROJECT_TYPE_LABEL: Record<ProjectType, string> = {
survey: '现场勘查', survey: '项目勘察',
implementation: '现场实施', implementation: '工程实施',
maintenance: '项目维保', maintenance: '定期维保',
business: '商务合作',
other: '其他', other: '其他',
}; };
+1 -1
View File
@@ -270,7 +270,7 @@ export interface CustomerConfirmRequest {
rejectReason?: string; rejectReason?: string;
} }
export type ProjectType = 'survey' | 'implementation' | 'maintenance' | 'other'; export type ProjectType = 'survey' | 'implementation' | 'maintenance' | 'business' | 'other';
export type ProjectOrderStatus = 'created' | 'pending_completion' | 'closed'; export type ProjectOrderStatus = 'created' | 'pending_completion' | 'closed';
export interface ProjectOrder { export interface ProjectOrder {