@appthen/cli 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +1 -0
- package/bin/main.js +45 -0
- package/dist/index.js +1108 -267
- package/package.json +1 -1
- package/tests/test-app/.appthen/shadow-space-100001-test-app-e99876b1.json +1406 -0
- package/tests/test-app/.appthen/shadow-space-unknown-user-test-app-e99876b1.json +1060 -0
- package/tests/test-app/.appthen/space-config.json +8 -0
- package/tests/test-app/docs/AI-Workflow.flow +112 -0
- package/tests/test-app/docs/Logic-1.flow +16 -0
- package/tests/test-app/docs/Logic.flow +16 -0
- package/tests/test-app/docs/Project-Blueprint-1.flow +119 -0
- package/tests/test-app/docs/Project-Blueprint.flow +119 -0
- package/tests/test-app/docs/README.md +3 -0
- package/tests/test-app/docs/claude.md +194 -0
- package/tests/test-app/docs/page_requirement_analysis.md +149 -0
- package/tests/test-app/docs//345/267/245/345/215/225/347/256/241/347/220/206/347/263/273/347/273/237/350/257/246/347/273/206/350/256/276/350/256/241.md +377 -0
- package/tests/test-app/src/apis/AddTodoPost.api.ts +42 -0
- package/tests/test-app/src/apis/DeleteTodoPost.api.ts +32 -0
- package/tests/test-app/src/apis/GetListPost.api.ts +38 -0
- package/tests/test-app/src/apis/TicketAttachmentUploadPost.api.ts +42 -0
- package/tests/test-app/src/apis/UpdateTodoPost.api.ts +46 -0
- package/tests/test-app/src/app.css +15 -0
- package/tests/test-app/src/cloud_functions/ticket|attachment|upload.node.ts +86 -0
- package/tests/test-app/src/cloud_functions/ticket|comment|add.node.ts +65 -0
- package/tests/test-app/src/cloud_functions/types|entity|Ticket.node.ts +88 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketAttachment.node.ts +70 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketCategory.node.ts +56 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketComment.node.ts +62 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketHistory.node.ts +74 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketPriority.node.ts +68 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketStatus.node.ts +63 -0
- package/tests/test-app/src/cloud_functions/types|models|CreateTicketParams.node.ts +20 -0
- package/tests/test-app/src/cloud_functions/types|models|TicketListParams.node.ts +30 -0
- package/tests/test-app/src/cloud_functions/types|models|UpdateTicketParams.node.ts +22 -0
- package/tests/test-app/src/components/Button.js +11 -0
- package/tests/test-app/src/components/MouduleDemoNzp.tsx +40 -0
- package/tests/test-app/src/components/Timeline.tsx +145 -0
- package/tests/test-app/src/index.ts +2 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketCommentAddPost.api.ts +48 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketCreatePost.api.ts +52 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketDeleteDelete.api.ts +39 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketDetailGet.api.ts +39 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketListGet.api.ts +61 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketUpdatePut.api.ts +57 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorFaultListGet.ts +76 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorListGet.ts +76 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorOperationRecordsGet.ts +284 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorStatisticsGet.ts +96 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/category|list.node.ts +40 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/priority|list.node.ts +26 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/status|list.node.ts +26 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|create.node.ts +54 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|delete.node.ts +55 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|detail.node.ts +65 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|list.node.ts +85 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|update.node.ts +73 -0
- package/tests/test-app/src/modules/work_order_module/data_model/Ticket.m.ts +85 -0
- package/tests/test-app/src/modules/work_order_module/data_model/TicketCategory.m.ts +53 -0
- package/tests/test-app/src/modules/work_order_module/data_model/TicketStatus.m.ts +60 -0
- package/tests/test-app/src/modules/work_order_module//345/267/245/345/215/225/347/263/273/347/273/237/344/272/247/345/223/201/350/256/276/350/256/241/346/226/207/346/241/243.md +301 -0
- package/tests/test-app/src/modules/work_order_module//345/267/245/345/215/225/347/263/273/347/273/237/345/274/200/345/217/221/344/273/273/345/212/241/345/210/206/345/267/245/346/226/207/346/241/243.md +345 -0
- package/tests/test-app/src/pages/SLAManagement.tsx +668 -0
- package/tests/test-app/src/pages/TicketCreate.tsx +27 -0
- package/tests/test-app/src/pages/TicketDetail.tsx +27 -0
- package/tests/test-app/src/pages/TicketList.tsx +27 -0
- package/tests/test-app/src/pages/TicketManagementPage.tsx +1238 -0
- package/tests/test-app/src/pages/VisualAIIDEUpgrade.tsx +245 -0
- package/tests/test-app/src/pages/appthen_guide/ComponentTreeUnderstanding.tsx +26 -0
- package/tests/test-app/src/pages/appthen_guide/DataBindingLearning.tsx +26 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout.tsx +155 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout10.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout2.tsx +156 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout3.tsx +156 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout4.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout5.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout6.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout7.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout8.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout9.tsx +157 -0
- package/tests/test-app/src/pages/back-end/backgroundManagementSystem.css +5 -0
- package/tests/test-app/src/pages/back-end/backgroundManagementSystem.tsx +1745 -0
- package/tests/test-app/src/pages/component/WorkOrderCard.tsx +140 -0
- package/tests/test-app/src/pages/cover.tsx +42 -0
- package/tests/test-app/src/pages/data_dashboard/blueBrightGreenTechnologyWind.css +181 -0
- package/tests/test-app/src/pages/data_dashboard/blueBrightGreenTechnologyWind.tsx +225 -0
- package/tests/test-app/src/pages/data_dashboard/blueLargeScreen.css +181 -0
- package/tests/test-app/src/pages/data_dashboard/blueLargeScreen.tsx +138 -0
- package/tests/test-app/src/pages/data_dashboard/component_library/BlueBrightGreenBorder.tsx +47 -0
- package/tests/test-app/src/pages/data_dashboard/component_library/FullScreenContainer.tsx +133 -0
- package/tests/test-app/src/pages/description_of_mock_interface.md +32 -0
- package/tests/test-app/src/pages/digitalLargeScreen.css +181 -0
- package/tests/test-app/src/pages/digitalLargeScreen.tsx +1417 -0
- package/tests/test-app/src/pages/mobile_terminal/PersonalCenter.css +3 -0
- package/tests/test-app/src/pages/mobile_terminal/PersonalCenter.tsx +362 -0
- package/tests/test-app/src/pages/mobile_terminal/WorkOrderHomepage.tsx +337 -0
- package/tests/test-app/src/pages/mobile_terminal/newWorkOrder.tsx +224 -0
- package/tests/test-app/src/pages/mobile_terminal/tabbar.tsx +67 -0
- package/tests/test-app/src/pages/mobile_terminal/uiHandsOnPractice.tsx +638 -0
- package/tests/test-app/src/pages/mobile_terminal/workOrderDetails.tsx +346 -0
- package/tests/test-app/src/pages/mobile_terminal/workOrderPage.tsx +345 -0
- package/tests/test-app/src/pages/testPage.css +3 -0
- package/tests/test-app/src/pages/testPage.tsx +158 -0
- package/tests/test-app/src/pages/web_version/website.css +205 -0
- package/tests/test-app/src/pages/web_version/website.tsx +1066 -0
- package/tests/test-app/src/pages//345/276/205/345/212/236.apidoc.json +336 -0
- package/tests/test-app/src/project.json +1120 -0
- package/tests/test-app/src/store/global.store.ts +10 -0
- package/tests/test-app/src/types/CreateTicketParams.m.ts +20 -0
- package/tests/test-app/src/types/SLAPolicy.ts +50 -0
- package/tests/test-app/src/types/Ticket.ts +68 -0
- package/tests/test-app/src/types/TicketAttachment.m.ts +67 -0
- package/tests/test-app/src/types/TicketComment.m.ts +59 -0
- package/tests/test-app/src/types/TicketEvaluation.ts +44 -0
- package/tests/test-app/src/types/TicketHistory.m.ts +71 -0
- package/tests/test-app/src/types/TicketListParams.m.ts +30 -0
- package/tests/test-app/src/types/TicketPriority.m.ts +65 -0
- package/tests/test-app/src/types/TicketRecord.ts +47 -0
- package/tests/test-app/src/types/TrainDoor.ts +284 -0
- package/tests/test-app/src/types/UpdateTicketParams.m.ts +22 -0
- package/tests/test-app/src/utils/__afterRequest.util.ts +3 -0
- package/tests/test-app/src/utils/__beforeRequest.util.ts +10 -0
- package/tests/test-app/src/utils/testGlobalAction.util.ts +7 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工单首页
|
|
3
|
+
* @type Component
|
|
4
|
+
* @screen 375w
|
|
5
|
+
* @frames app
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { AtIcon, Component, HeaderBar, Input, ScrollView, Text, View } from 'cross-ui';
|
|
9
|
+
import WorkOrderCard from '/src/pages/component/WorkOrderCard';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class IProps {}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* 数据与接口请求定义
|
|
16
|
+
*/
|
|
17
|
+
class IState {
|
|
18
|
+
tabs: {
|
|
19
|
+
/* @example 全部 */text?: string,
|
|
20
|
+
/* @example all */value?: string,
|
|
21
|
+
}[];
|
|
22
|
+
currentTab: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class Document extends React.Component<IProps, IState> {
|
|
26
|
+
state = {
|
|
27
|
+
tabs: [
|
|
28
|
+
{ text: '全部', value: 'all' },
|
|
29
|
+
{ text: '高优先级', value: 'high' },
|
|
30
|
+
{ text: '待处理', value: 'process' },
|
|
31
|
+
{ text: '进行中', value: 'going' },
|
|
32
|
+
{ text: '已完成', value: 'completed' },
|
|
33
|
+
],
|
|
34
|
+
currentTab: 'all',
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
render() {
|
|
38
|
+
return (
|
|
39
|
+
<React.Fragment>
|
|
40
|
+
<View className="h-full flex flex-col bg-[#f5f5f5]">
|
|
41
|
+
<HeaderBar
|
|
42
|
+
backgroundColor="#6749ff"
|
|
43
|
+
mode="dark"
|
|
44
|
+
showBack={false}
|
|
45
|
+
title="工单管理"
|
|
46
|
+
titleAlign="center"
|
|
47
|
+
translucent={true}
|
|
48
|
+
rightContent={
|
|
49
|
+
<View className="flex flex-row">
|
|
50
|
+
<View className="pt-[5px] pb-[5px] pl-[5px] pr-[5px] mr-[10px]">
|
|
51
|
+
<AtIcon
|
|
52
|
+
color="#ffffff"
|
|
53
|
+
size={24}
|
|
54
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 24 24"> \t<defs> \t\t<clipPath id="clipPath5783052353"> \t\t\t<path d="M0 0L24 0L24 24L0 24L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath5783052353)"> \t\t<path d="M17.6371 14.4989C17.5593 14.4052 17.4829 14.3114 17.4079 14.2209C16.3766 12.9736 15.7527 12.2208 15.7527 8.68969C15.7527 6.86156 15.3154 5.36156 14.4533 4.23656C13.8177 3.40547 12.9585 2.775 11.826 2.30906C11.8187 2.30501 11.8118 2.30035 11.8054 2.29507C11.7989 2.28979 11.793 2.28399 11.7876 2.27766C11.3802 0.913594 10.2655 0 9.00835 0C7.75116 0 6.63694 0.913594 6.2296 2.27625C6.22416 2.28235 6.21826 2.28796 6.21189 2.29307C6.20552 2.29818 6.19876 2.30273 6.19163 2.30672C3.54882 3.39469 2.26444 5.48203 2.26444 8.68828C2.26444 12.2208 1.64148 12.9736 0.609288 14.2195C0.534288 14.31 0.457882 14.4019 0.380069 14.4975C0.174856 14.745 0.0525298 15.0283 0.0130913 15.3473C-0.026347 15.6664 0.0233227 15.9709 0.162101 16.2609C0.451319 16.8703 1.06773 17.2486 1.77132 17.2486L16.2505 17.2486C16.9509 17.2486 17.563 16.8708 17.8532 16.2642C17.9926 15.9741 18.0427 15.6694 18.0036 15.3499C17.9645 15.0305 17.8423 14.7468 17.6371 14.4989ZM9.00835 21C9.69835 20.9994 10.3394 20.8221 10.9316 20.4679C11.5238 20.1137 11.9833 19.6328 12.3102 19.0252C12.3433 18.9627 12.3415 18.9012 12.305 18.8407C12.2685 18.7802 12.215 18.7499 12.1443 18.75L5.87335 18.75C5.80258 18.7498 5.74888 18.7799 5.71225 18.8405C5.67562 18.901 5.67386 18.9626 5.70694 19.0252C6.03381 19.6327 6.49328 20.1136 7.08535 20.4678C7.67743 20.822 8.31843 20.9994 9.00835 21Z" fill-rule="nonzero" transform="matrix(1 0 0 1 2.99165 1.5)" fill="currentColor"/> \t</g> </svg> "
|
|
55
|
+
/>
|
|
56
|
+
</View>
|
|
57
|
+
<View
|
|
58
|
+
onClick={e => this.newWorkOrder(e)}
|
|
59
|
+
className="pt-[5px] pb-[5px] pl-[5px] pr-[5px] mr-[10px]"
|
|
60
|
+
>
|
|
61
|
+
<AtIcon
|
|
62
|
+
color="#ffffff"
|
|
63
|
+
size={24}
|
|
64
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 24 24"> \t<defs> \t\t<clipPath id="clipPath8223961733"> \t\t\t<path d="M0 0L24 0L24 24L0 24L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath8223961733)"> \t\t<path d="M6.75 -0.75C6.33579 -0.75 6 -0.41421 6 0L6 6L0 6C-0.41421 6 -0.75 6.33579 -0.75 6.75C-0.75 7.16421 -0.41421 7.5 0 7.5L6 7.5L6 13.5C6 13.9142 6.33579 14.25 6.75 14.25C7.16421 14.25 7.5 13.9142 7.5 13.5L7.5 7.5L13.5 7.5C13.9142 7.5 14.25 7.16421 14.25 6.75C14.25 6.33579 13.9142 6 13.5 6L7.5 6L7.5 0C7.5 -0.41421 7.16421 -0.75 6.75 -0.75Z" fill-rule="evenodd" transform="matrix(1 0 0 1 5.25 5.25)" fill="currentColor"/> \t</g> </svg> "
|
|
65
|
+
/>
|
|
66
|
+
</View>
|
|
67
|
+
</View>
|
|
68
|
+
}
|
|
69
|
+
/>
|
|
70
|
+
<View
|
|
71
|
+
__hidePh={true}
|
|
72
|
+
className="h-[120px] fixed top-[0px] right-[0px] left-[0px] bg-gradient-to-r bg-[linear-gradient(to right, rgba(33,99,235,1), rgba(96,165,250,1))] z-[1]"
|
|
73
|
+
/>
|
|
74
|
+
<View
|
|
75
|
+
__hidePh={true}
|
|
76
|
+
className="mt-[10px] h-[110px] bg-[#ffffff] z-[2] rounded-tl-[20px] rounded-tr-[20px] pt-[12px] pl-[12px] pr-[12px]"
|
|
77
|
+
>
|
|
78
|
+
<View className="pt-[6px] pb-[6px] bg-[#f3f4f6] rounded-[20px] pl-[10px] pr-[10px]">
|
|
79
|
+
<Input
|
|
80
|
+
type="text"
|
|
81
|
+
confirmType="done"
|
|
82
|
+
value=""
|
|
83
|
+
placeholder="搜索工单信息"
|
|
84
|
+
/>
|
|
85
|
+
</View>
|
|
86
|
+
<View className="mt-[20px] flex flex-row">
|
|
87
|
+
{this.state.tabs.map((item, index) => (
|
|
88
|
+
<View
|
|
89
|
+
onClick={e =>
|
|
90
|
+
this.switchTabs(e, {
|
|
91
|
+
item: item,
|
|
92
|
+
index: index,
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
className="pl-[10px] pr-[10px] pt-[5px] pb-[5px] mr-[2px] ml-[2px]"
|
|
96
|
+
>
|
|
97
|
+
<View>
|
|
98
|
+
<Text
|
|
99
|
+
inlineStyle={[
|
|
100
|
+
{
|
|
101
|
+
enable: this.state.currentTab == item?.value,
|
|
102
|
+
name: '动态样式1',
|
|
103
|
+
style: { color: '#3b82f6' },
|
|
104
|
+
},
|
|
105
|
+
]}
|
|
106
|
+
className="text-sm text-[#333333]"
|
|
107
|
+
>
|
|
108
|
+
{item?.text}
|
|
109
|
+
</Text>
|
|
110
|
+
</View>
|
|
111
|
+
<View
|
|
112
|
+
inlineStyle={[
|
|
113
|
+
{
|
|
114
|
+
enable: this.state.currentTab == item?.value,
|
|
115
|
+
name: '动态样式1',
|
|
116
|
+
style: { backgroundColor: '#3b82f6' },
|
|
117
|
+
},
|
|
118
|
+
]}
|
|
119
|
+
className="h-[4px] bg-[#ffffff] mt-[10px]"
|
|
120
|
+
/>
|
|
121
|
+
</View>
|
|
122
|
+
))}
|
|
123
|
+
</View>
|
|
124
|
+
</View>
|
|
125
|
+
<ScrollView className="pb-[20px]">
|
|
126
|
+
<View className="mt-[12px] pl-[12px] pr-[12px]">
|
|
127
|
+
<WorkOrderCard
|
|
128
|
+
status="completed"
|
|
129
|
+
onGoDetail={e => {
|
|
130
|
+
this.utils.navigateTo('workOrderDetails');
|
|
131
|
+
}}
|
|
132
|
+
/>
|
|
133
|
+
</View>
|
|
134
|
+
<View className="pl-[12px] pr-[12px] mt-[12px] flex flex-row">
|
|
135
|
+
<View
|
|
136
|
+
__hidePh={true}
|
|
137
|
+
className="bg-[#f97316] bottom-[0px] top-[0px] left-[0px] w-[17px] rounded-tl-[20px] rounded-bl-[20px] mr-[-11px]"
|
|
138
|
+
/>
|
|
139
|
+
<View
|
|
140
|
+
__hidePh={true}
|
|
141
|
+
className="bg-[#ffffff] rounded-xl relative flex-1 pt-[10px] pb-[10px] pl-[10px] pr-[10px]"
|
|
142
|
+
>
|
|
143
|
+
<View className="flex flex-row items-center">
|
|
144
|
+
<View className="flex-1">
|
|
145
|
+
<Text className="text-sm text-[#666666]">
|
|
146
|
+
WO-2023110001
|
|
147
|
+
</Text>
|
|
148
|
+
</View>
|
|
149
|
+
<View className="bg-[#3b82f6] pt-[6px] pr-[10px] pb-[6px] pl-[10px] rounded-[15px]">
|
|
150
|
+
<Text className="text-xs text-[#ffffff]">进行中</Text>
|
|
151
|
+
</View>
|
|
152
|
+
</View>
|
|
153
|
+
<View className="mt-[10px]">
|
|
154
|
+
<Text className="text-sm text-[#333] font-bold">
|
|
155
|
+
设备故障维修申请
|
|
156
|
+
</Text>
|
|
157
|
+
</View>
|
|
158
|
+
<View className="mt-[10px]">
|
|
159
|
+
<Text numberOfLines={1} className="text-xs text-[#333]">
|
|
160
|
+
3号生产线主轴电机出现异常噪音,需要紧急检修以比
|
|
161
|
+
</Text>
|
|
162
|
+
</View>
|
|
163
|
+
<View className="mt-[10px] flex flex-row items-center">
|
|
164
|
+
<View className="flex flex-row">
|
|
165
|
+
<AtIcon
|
|
166
|
+
color="#666"
|
|
167
|
+
size={20}
|
|
168
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 12 12"> \t<defs> \t\t<clipPath id="clipPath5115394031"> \t\t\t<path d="M0 0L12 0L12 12L0 12L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath5115394031)"> \t\t<path d="M1.67816 6.0308L1.67816 2.65931C1.67816 2.45221 1.51027 2.28431 1.30316 2.28431C1.09606 2.28431 0.928164 2.45221 0.928164 2.65931L0.928164 6.0308Q0.936713 6.57501 1.32039 6.95267Q1.70406 7.33034 2.24242 7.33034Q2.78078 7.33034 3.16446 6.95267Q3.54813 6.57501 3.55663 6.03672L3.55973 1.61191Q3.56967 0.794366 2.99203 0.209683Q2.4144 -0.375 1.5925 -0.375Q0.770602 -0.375 0.192968 0.209683Q-0.384667 0.794366 -0.374698 1.6162L-0.374726 6.06056Q-0.390517 7.14867 0.377193 7.92757Q1.1449 8.70648 2.23856 8.70648Q3.33221 8.70648 4.09992 7.92758Q4.86763 7.14867 4.8518 6.05513L4.85184 1.90322C4.85184 1.69611 4.68394 1.52822 4.47684 1.52822C4.26973 1.52822 4.10184 1.69611 4.10184 1.90322L4.10188 6.06599Q4.11316 6.84572 3.56576 7.4011Q3.01836 7.95648 2.23856 7.95648Q1.45875 7.95648 0.911348 7.4011Q0.363947 6.84572 0.375274 6.06056L0.375246 1.60711Q0.369078 1.09857 0.726504 0.736788Q1.08393 0.375 1.5925 0.375Q2.10107 0.375 2.4585 0.736788Q2.81592 1.09858 2.80973 1.6114L2.80673 6.02487Q2.80308 6.25601 2.63833 6.41817Q2.47359 6.58034 2.24242 6.58034Q2.01126 6.58034 1.84651 6.41817Q1.68177 6.25601 1.67816 6.0308Z" fill-rule="evenodd" transform="matrix(1 0 0 1 3.76121 1.84069)" fill="currentColor"/> \t</g> </svg> "
|
|
169
|
+
/>
|
|
170
|
+
</View>
|
|
171
|
+
<View className="ml-[5px]">
|
|
172
|
+
<Text className="text-xs text-[#666666]">2个附件</Text>
|
|
173
|
+
</View>
|
|
174
|
+
</View>
|
|
175
|
+
<View className="mt-[10px] flex flex-row">
|
|
176
|
+
<View className="flex flex-row items-center">
|
|
177
|
+
<View className="w-[28px] h-[28px] bg-[#add2ff] rounded-[15px] flex flex-col justify-center items-center">
|
|
178
|
+
<Text className="text-sm text-[#3b82f6]">李</Text>
|
|
179
|
+
</View>
|
|
180
|
+
<View className="ml-[10px]">
|
|
181
|
+
<Text className="text-sm text-[#666666]">李明</Text>
|
|
182
|
+
</View>
|
|
183
|
+
</View>
|
|
184
|
+
<View className="flex-row flex-1 flex justify-end">
|
|
185
|
+
<View
|
|
186
|
+
__hidePh={true}
|
|
187
|
+
onClick={e => this.jumpToTheDetailsPage(e)}
|
|
188
|
+
className="bg-[#f3f4f6] w-[40px] h-[40px] rounded-[20px] flex flex-col justify-center items-center mr-[10px]"
|
|
189
|
+
>
|
|
190
|
+
<AtIcon
|
|
191
|
+
color="#666"
|
|
192
|
+
size={20}
|
|
193
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20"> \t<defs> \t\t<clipPath id="clipPath0894376390"> \t\t\t<path d="M0 0L20 0L20 20L0 20L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath0894376390)"> \t\t<circle cx="2.5" cy="2.5" r="2.5" transform="matrix(1 0 0 1 7.5 7.5)" fill="currentColor"/> \t\t<path d="M18.5492 5.57031C17.5156 3.97188 16.1746 2.61406 14.6715 1.64336C13.0086 0.568359 11.1727 0 9.36252 0C7.70158 0 6.06837 0.474609 4.50822 1.41055C2.9172 2.36484 1.4758 3.75898 0.223843 5.55391C0.079313 5.76135 0.00477175 5.99146 0.000219643 6.24425C-0.00433246 6.49703 0.0618755 6.72968 0.198843 6.94219C1.23048 8.55664 2.55822 9.91641 4.03791 10.8738C5.70392 11.9531 7.49689 12.5 9.36252 12.5C11.1871 12.5 13.027 11.9363 14.6828 10.8703C16.1852 9.90273 17.5235 8.53984 18.5531 6.92812C18.6852 6.72088 18.7509 6.49438 18.7501 6.24865C18.7494 6.00291 18.6825 5.7768 18.5492 5.57031ZM9.3758 10C8.34026 10 7.45638 9.63388 6.72415 8.90165C5.99191 8.16942 5.6258 7.28553 5.6258 6.25C5.6258 5.21447 5.99191 4.33058 6.72415 3.59835C7.45638 2.86612 8.34026 2.5 9.3758 2.5C10.4113 2.5 11.2952 2.86612 12.0274 3.59835C12.7597 4.33058 13.1258 5.21447 13.1258 6.25C13.1246 7.28504 12.7581 8.16851 12.0262 8.90039C11.2943 9.63228 10.4108 9.99882 9.3758 10Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0.624204 3.75)" fill="currentColor"/> \t</g> </svg> "
|
|
194
|
+
/>
|
|
195
|
+
</View>
|
|
196
|
+
<View
|
|
197
|
+
__hidePh={true}
|
|
198
|
+
className="bg-[#f3f4f6] w-[40px] h-[40px] rounded-[20px] flex flex-col justify-center items-center mr-[10px]"
|
|
199
|
+
>
|
|
200
|
+
<AtIcon
|
|
201
|
+
color="#666"
|
|
202
|
+
size={20}
|
|
203
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20"> \t<defs> \t\t<clipPath id="clipPath2557746411"> \t\t\t<path d="M0 0L20 0L20 20L0 20L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath2557746411)"> \t\t<path d="M12.7935 -0.418716L12.7938 -0.419009Q13.2343 -0.859375 13.8572 -0.859375Q14.4804 -0.859375 14.921 -0.418751L14.9505 -0.389229Q15.3907 0.0513004 15.3907 0.674075Q15.3907 1.29685 14.9502 1.7376L14.4897 2.19815Q14.4299 2.258 14.3595 2.30503Q14.2891 2.35205 14.2109 2.38444Q14.1327 2.41683 14.0497 2.43334Q13.9667 2.44986 13.882 2.44986Q13.7974 2.44986 13.7144 2.43334Q13.6314 2.41683 13.5532 2.38444Q13.475 2.35205 13.4046 2.30503Q13.3342 2.258 13.2744 2.19815L12.3327 1.25649Q12.2729 1.19661 12.2259 1.12621Q12.1789 1.05582 12.1465 0.977606Q12.1142 0.899394 12.0977 0.816373Q12.0812 0.733351 12.0812 0.64871Q12.0813 0.564069 12.0978 0.481061Q12.1144 0.398054 12.1468 0.319869Q12.1792 0.241685 12.2263 0.171328Q12.2733 0.100972 12.3332 0.0411472L12.7935 -0.418716ZM10.6665 1.70781L0.035724 12.3648Q-0.084919 12.4857 -0.150137 12.6436L-0.794278 14.203Q-0.826593 14.2812 -0.843025 14.3643Q-0.859457 14.4473 -0.859375 14.5319Q-0.859292 14.6166 -0.842699 14.6996Q-0.826106 14.7826 -0.793639 14.8607Q-0.761172 14.9389 -0.71408 15.0092Q-0.666988 15.0796 -0.607079 15.1394Q-0.547171 15.1992 -0.476749 15.2461Q-0.406327 15.2931 -0.328097 15.3254Q-0.170506 15.3905 7.45058e-09 15.3905Q0.170506 15.3905 0.328097 15.3254L1.88747 14.6812Q2.04536 14.616 2.1663 14.4954L12.8225 3.8653Q12.8825 3.80553 12.9296 3.73521Q12.9767 3.66489 13.0092 3.58673Q13.0417 3.50857 13.0583 3.42558Q13.0749 3.34259 13.075 3.25794Q13.0751 3.1733 13.0587 3.09027Q13.0423 3.00723 13.01 2.929Q12.9777 2.85076 12.9308 2.78032Q12.8838 2.70989 12.824 2.64997L11.8819 1.70781Q11.822 1.64796 11.7517 1.60094Q11.6813 1.55391 11.6031 1.52152Q11.5249 1.48913 11.4419 1.47262Q11.3589 1.45611 11.2742 1.45611Q11.1896 1.45611 11.1066 1.47262Q11.0235 1.48913 10.9453 1.52152Q10.8672 1.55391 10.7968 1.60094Q10.7264 1.64796 10.6665 1.70781Z" fill-rule="evenodd" transform="matrix(1 0 0 1 2.73438 2.73452)" fill="currentColor"/> \t</g> </svg> "
|
|
204
|
+
/>
|
|
205
|
+
</View>
|
|
206
|
+
<View
|
|
207
|
+
__hidePh={true}
|
|
208
|
+
className="bg-[#f3f4f6] w-[40px] h-[40px] rounded-[20px] flex flex-col justify-center items-center"
|
|
209
|
+
>
|
|
210
|
+
<AtIcon
|
|
211
|
+
color="#666"
|
|
212
|
+
size={20}
|
|
213
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20"> \t<defs> \t\t<clipPath id="clipPath0406936548"> \t\t\t<path d="M0 0L20 0L20 20L0 20L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath0406936548)"> \t\t<path d="M12.5003 6.875C11.6972 6.875 10.9206 6.51641 10.3128 5.86563C9.72178 5.23086 9.36084 4.38438 9.29717 3.48281C9.2292 2.52109 9.52256 1.63672 10.123 0.992188C10.7233 0.347657 11.5628 0 12.5003 0C13.4312 0 14.273 0.353906 14.8714 0.996875C15.4757 1.64609 15.7698 2.52891 15.7019 3.48242C15.6366 4.38516 15.2761 5.23125 14.6862 5.86523C14.08 6.51641 13.3038 6.875 12.5003 6.875ZM17.6499 13.75L7.35108 13.75C7.18329 13.7509 7.02391 13.7147 6.87293 13.6415C6.72196 13.5683 6.59488 13.4655 6.4917 13.3332C6.3823 13.1898 6.30957 13.0298 6.27353 12.853C6.23748 12.6763 6.24172 12.5006 6.28623 12.3258C6.61514 11.0051 7.42999 9.90976 8.64248 9.15859C9.71866 8.49219 11.0886 8.125 12.5003 8.125C13.9398 8.125 15.2737 8.47656 16.3562 9.14258C17.5714 9.88984 18.3874 10.9914 18.7148 12.3281C18.7587 12.503 18.7625 12.6788 18.726 12.8554C18.6896 13.032 18.6166 13.1919 18.5069 13.3352C18.4039 13.4669 18.2771 13.5691 18.1265 13.642C17.976 13.7149 17.8171 13.7509 17.6499 13.75ZM5.11749 7.03125C3.74288 7.03125 2.53428 5.75313 2.42217 4.18242C2.3667 3.37773 2.61749 2.63359 3.1253 2.08789C3.62764 1.54766 4.33624 1.25 5.11749 1.25C5.89874 1.25 6.60186 1.54922 7.10694 2.09258C7.61866 2.64258 7.86866 3.38516 7.81006 4.1832C7.69795 5.75352 6.48975 7.03125 5.11749 7.03125ZM7.68233 8.25977C6.99522 7.92383 6.10342 7.75586 5.11788 7.75586C3.96709 7.75586 2.84952 8.05586 1.97061 8.60039C0.974126 9.21875 0.303814 10.1191 0.0331106 11.2063C-0.00701755 11.3646 -0.010671 11.5239 0.0221504 11.6839C0.0549717 11.844 0.120995 11.9889 0.22022 12.1187C0.314407 12.2397 0.430431 12.3336 0.568293 12.4006C0.706154 12.4676 0.851718 12.5007 1.00499 12.5L5.34092 12.5C5.41644 12.5 5.48318 12.4758 5.54114 12.4274C5.59911 12.379 5.63485 12.3177 5.64834 12.2434C5.65264 12.2187 5.65811 12.1941 5.66436 12.1699C5.99561 10.8395 6.77178 9.71523 7.91866 8.8957C8.01024 8.82968 8.05338 8.74029 8.04808 8.62751C8.04277 8.51473 7.99143 8.42978 7.89405 8.37265C7.83272 8.33672 7.76241 8.29883 7.68233 8.25977Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0.624702 3.125)" fill="currentColor"/> \t</g> </svg> "
|
|
214
|
+
/>
|
|
215
|
+
</View>
|
|
216
|
+
</View>
|
|
217
|
+
</View>
|
|
218
|
+
<View className="mt-[10px] flex flex-row items-center justify-between">
|
|
219
|
+
<View>
|
|
220
|
+
<Text className="text-sm text-[#9b9b9b]">
|
|
221
|
+
创建于 2023-11-05
|
|
222
|
+
</Text>
|
|
223
|
+
</View>
|
|
224
|
+
<View>
|
|
225
|
+
<Text className="text-sm text-[#ef4444]">
|
|
226
|
+
期望完成:2023-11-08
|
|
227
|
+
</Text>
|
|
228
|
+
</View>
|
|
229
|
+
</View>
|
|
230
|
+
</View>
|
|
231
|
+
</View>
|
|
232
|
+
<View className="pl-[12px] pr-[12px] mt-[12px] flex flex-row">
|
|
233
|
+
<View
|
|
234
|
+
__hidePh={true}
|
|
235
|
+
className="bg-[#ef4444] bottom-[0px] top-[0px] left-[0px] w-[17px] rounded-tl-[20px] rounded-bl-[20px] mr-[-11px]"
|
|
236
|
+
/>
|
|
237
|
+
<View
|
|
238
|
+
__hidePh={true}
|
|
239
|
+
className="bg-[#ffffff] rounded-xl relative flex-1 pt-[10px] pb-[10px] pl-[10px] pr-[10px]"
|
|
240
|
+
>
|
|
241
|
+
<View className="flex flex-row items-center">
|
|
242
|
+
<View className="flex-1">
|
|
243
|
+
<Text className="text-sm text-[#666666]">
|
|
244
|
+
WO-2023110001
|
|
245
|
+
</Text>
|
|
246
|
+
</View>
|
|
247
|
+
<View className="bg-[#f97316] pt-[6px] pr-[10px] pb-[6px] pl-[10px] rounded-[15px]">
|
|
248
|
+
<Text className="text-xs text-[#ffffff]">待处理</Text>
|
|
249
|
+
</View>
|
|
250
|
+
</View>
|
|
251
|
+
<View className="mt-[10px]">
|
|
252
|
+
<Text className="text-sm text-[#333] font-bold">
|
|
253
|
+
设备故障维修申请
|
|
254
|
+
</Text>
|
|
255
|
+
</View>
|
|
256
|
+
<View className="mt-[10px]">
|
|
257
|
+
<Text numberOfLines={1} className="text-xs text-[#333]">
|
|
258
|
+
3号生产线主轴电机出现异常噪音,需要紧急检修以比
|
|
259
|
+
</Text>
|
|
260
|
+
</View>
|
|
261
|
+
<View className="mt-[10px] flex flex-row items-center">
|
|
262
|
+
<View className="flex flex-row">
|
|
263
|
+
<AtIcon
|
|
264
|
+
color="#666"
|
|
265
|
+
size={20}
|
|
266
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 12 12"> \t<defs> \t\t<clipPath id="clipPath5115394031"> \t\t\t<path d="M0 0L12 0L12 12L0 12L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath5115394031)"> \t\t<path d="M1.67816 6.0308L1.67816 2.65931C1.67816 2.45221 1.51027 2.28431 1.30316 2.28431C1.09606 2.28431 0.928164 2.45221 0.928164 2.65931L0.928164 6.0308Q0.936713 6.57501 1.32039 6.95267Q1.70406 7.33034 2.24242 7.33034Q2.78078 7.33034 3.16446 6.95267Q3.54813 6.57501 3.55663 6.03672L3.55973 1.61191Q3.56967 0.794366 2.99203 0.209683Q2.4144 -0.375 1.5925 -0.375Q0.770602 -0.375 0.192968 0.209683Q-0.384667 0.794366 -0.374698 1.6162L-0.374726 6.06056Q-0.390517 7.14867 0.377193 7.92757Q1.1449 8.70648 2.23856 8.70648Q3.33221 8.70648 4.09992 7.92758Q4.86763 7.14867 4.8518 6.05513L4.85184 1.90322C4.85184 1.69611 4.68394 1.52822 4.47684 1.52822C4.26973 1.52822 4.10184 1.69611 4.10184 1.90322L4.10188 6.06599Q4.11316 6.84572 3.56576 7.4011Q3.01836 7.95648 2.23856 7.95648Q1.45875 7.95648 0.911348 7.4011Q0.363947 6.84572 0.375274 6.06056L0.375246 1.60711Q0.369078 1.09857 0.726504 0.736788Q1.08393 0.375 1.5925 0.375Q2.10107 0.375 2.4585 0.736788Q2.81592 1.09858 2.80973 1.6114L2.80673 6.02487Q2.80308 6.25601 2.63833 6.41817Q2.47359 6.58034 2.24242 6.58034Q2.01126 6.58034 1.84651 6.41817Q1.68177 6.25601 1.67816 6.0308Z" fill-rule="evenodd" transform="matrix(1 0 0 1 3.76121 1.84069)" fill="currentColor"/> \t</g> </svg> "
|
|
267
|
+
/>
|
|
268
|
+
</View>
|
|
269
|
+
<View className="ml-[5px]">
|
|
270
|
+
<Text className="text-xs text-[#666666]">2个附件</Text>
|
|
271
|
+
</View>
|
|
272
|
+
</View>
|
|
273
|
+
<View className="mt-[10px] flex flex-row">
|
|
274
|
+
<View className="flex flex-row items-center">
|
|
275
|
+
<View className="w-[28px] h-[28px] bg-[#add2ff] rounded-[15px] flex flex-col justify-center items-center">
|
|
276
|
+
<Text className="text-sm text-[#3b82f6]">李</Text>
|
|
277
|
+
</View>
|
|
278
|
+
<View className="ml-[10px]">
|
|
279
|
+
<Text className="text-sm text-[#666666]">李明</Text>
|
|
280
|
+
</View>
|
|
281
|
+
</View>
|
|
282
|
+
<View className="flex-row flex-1 flex justify-end">
|
|
283
|
+
<View
|
|
284
|
+
__hidePh={true}
|
|
285
|
+
onClick={e => this.jumpToTheDetailsPage(e)}
|
|
286
|
+
className="bg-[#f3f4f6] w-[40px] h-[40px] rounded-[20px] flex flex-col justify-center items-center mr-[10px]"
|
|
287
|
+
>
|
|
288
|
+
<AtIcon
|
|
289
|
+
color="#666"
|
|
290
|
+
size={20}
|
|
291
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20"> \t<defs> \t\t<clipPath id="clipPath0894376390"> \t\t\t<path d="M0 0L20 0L20 20L0 20L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath0894376390)"> \t\t<circle cx="2.5" cy="2.5" r="2.5" transform="matrix(1 0 0 1 7.5 7.5)" fill="currentColor"/> \t\t<path d="M18.5492 5.57031C17.5156 3.97188 16.1746 2.61406 14.6715 1.64336C13.0086 0.568359 11.1727 0 9.36252 0C7.70158 0 6.06837 0.474609 4.50822 1.41055C2.9172 2.36484 1.4758 3.75898 0.223843 5.55391C0.079313 5.76135 0.00477175 5.99146 0.000219643 6.24425C-0.00433246 6.49703 0.0618755 6.72968 0.198843 6.94219C1.23048 8.55664 2.55822 9.91641 4.03791 10.8738C5.70392 11.9531 7.49689 12.5 9.36252 12.5C11.1871 12.5 13.027 11.9363 14.6828 10.8703C16.1852 9.90273 17.5235 8.53984 18.5531 6.92812C18.6852 6.72088 18.7509 6.49438 18.7501 6.24865C18.7494 6.00291 18.6825 5.7768 18.5492 5.57031ZM9.3758 10C8.34026 10 7.45638 9.63388 6.72415 8.90165C5.99191 8.16942 5.6258 7.28553 5.6258 6.25C5.6258 5.21447 5.99191 4.33058 6.72415 3.59835C7.45638 2.86612 8.34026 2.5 9.3758 2.5C10.4113 2.5 11.2952 2.86612 12.0274 3.59835C12.7597 4.33058 13.1258 5.21447 13.1258 6.25C13.1246 7.28504 12.7581 8.16851 12.0262 8.90039C11.2943 9.63228 10.4108 9.99882 9.3758 10Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0.624204 3.75)" fill="currentColor"/> \t</g> </svg> "
|
|
292
|
+
/>
|
|
293
|
+
</View>
|
|
294
|
+
<View
|
|
295
|
+
__hidePh={true}
|
|
296
|
+
className="bg-[#f3f4f6] w-[40px] h-[40px] rounded-[20px] flex flex-col justify-center items-center mr-[10px]"
|
|
297
|
+
>
|
|
298
|
+
<AtIcon
|
|
299
|
+
color="#666"
|
|
300
|
+
size={20}
|
|
301
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20"> \t<defs> \t\t<clipPath id="clipPath2557746411"> \t\t\t<path d="M0 0L20 0L20 20L0 20L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath2557746411)"> \t\t<path d="M12.7935 -0.418716L12.7938 -0.419009Q13.2343 -0.859375 13.8572 -0.859375Q14.4804 -0.859375 14.921 -0.418751L14.9505 -0.389229Q15.3907 0.0513004 15.3907 0.674075Q15.3907 1.29685 14.9502 1.7376L14.4897 2.19815Q14.4299 2.258 14.3595 2.30503Q14.2891 2.35205 14.2109 2.38444Q14.1327 2.41683 14.0497 2.43334Q13.9667 2.44986 13.882 2.44986Q13.7974 2.44986 13.7144 2.43334Q13.6314 2.41683 13.5532 2.38444Q13.475 2.35205 13.4046 2.30503Q13.3342 2.258 13.2744 2.19815L12.3327 1.25649Q12.2729 1.19661 12.2259 1.12621Q12.1789 1.05582 12.1465 0.977606Q12.1142 0.899394 12.0977 0.816373Q12.0812 0.733351 12.0812 0.64871Q12.0813 0.564069 12.0978 0.481061Q12.1144 0.398054 12.1468 0.319869Q12.1792 0.241685 12.2263 0.171328Q12.2733 0.100972 12.3332 0.0411472L12.7935 -0.418716ZM10.6665 1.70781L0.035724 12.3648Q-0.084919 12.4857 -0.150137 12.6436L-0.794278 14.203Q-0.826593 14.2812 -0.843025 14.3643Q-0.859457 14.4473 -0.859375 14.5319Q-0.859292 14.6166 -0.842699 14.6996Q-0.826106 14.7826 -0.793639 14.8607Q-0.761172 14.9389 -0.71408 15.0092Q-0.666988 15.0796 -0.607079 15.1394Q-0.547171 15.1992 -0.476749 15.2461Q-0.406327 15.2931 -0.328097 15.3254Q-0.170506 15.3905 7.45058e-09 15.3905Q0.170506 15.3905 0.328097 15.3254L1.88747 14.6812Q2.04536 14.616 2.1663 14.4954L12.8225 3.8653Q12.8825 3.80553 12.9296 3.73521Q12.9767 3.66489 13.0092 3.58673Q13.0417 3.50857 13.0583 3.42558Q13.0749 3.34259 13.075 3.25794Q13.0751 3.1733 13.0587 3.09027Q13.0423 3.00723 13.01 2.929Q12.9777 2.85076 12.9308 2.78032Q12.8838 2.70989 12.824 2.64997L11.8819 1.70781Q11.822 1.64796 11.7517 1.60094Q11.6813 1.55391 11.6031 1.52152Q11.5249 1.48913 11.4419 1.47262Q11.3589 1.45611 11.2742 1.45611Q11.1896 1.45611 11.1066 1.47262Q11.0235 1.48913 10.9453 1.52152Q10.8672 1.55391 10.7968 1.60094Q10.7264 1.64796 10.6665 1.70781Z" fill-rule="evenodd" transform="matrix(1 0 0 1 2.73438 2.73452)" fill="currentColor"/> \t</g> </svg> "
|
|
302
|
+
/>
|
|
303
|
+
</View>
|
|
304
|
+
<View
|
|
305
|
+
__hidePh={true}
|
|
306
|
+
className="bg-[#f3f4f6] w-[40px] h-[40px] rounded-[20px] flex flex-col justify-center items-center"
|
|
307
|
+
>
|
|
308
|
+
<AtIcon
|
|
309
|
+
color="#666"
|
|
310
|
+
size={20}
|
|
311
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20"> \t<defs> \t\t<clipPath id="clipPath0406936548"> \t\t\t<path d="M0 0L20 0L20 20L0 20L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath0406936548)"> \t\t<path d="M12.5003 6.875C11.6972 6.875 10.9206 6.51641 10.3128 5.86563C9.72178 5.23086 9.36084 4.38438 9.29717 3.48281C9.2292 2.52109 9.52256 1.63672 10.123 0.992188C10.7233 0.347657 11.5628 0 12.5003 0C13.4312 0 14.273 0.353906 14.8714 0.996875C15.4757 1.64609 15.7698 2.52891 15.7019 3.48242C15.6366 4.38516 15.2761 5.23125 14.6862 5.86523C14.08 6.51641 13.3038 6.875 12.5003 6.875ZM17.6499 13.75L7.35108 13.75C7.18329 13.7509 7.02391 13.7147 6.87293 13.6415C6.72196 13.5683 6.59488 13.4655 6.4917 13.3332C6.3823 13.1898 6.30957 13.0298 6.27353 12.853C6.23748 12.6763 6.24172 12.5006 6.28623 12.3258C6.61514 11.0051 7.42999 9.90976 8.64248 9.15859C9.71866 8.49219 11.0886 8.125 12.5003 8.125C13.9398 8.125 15.2737 8.47656 16.3562 9.14258C17.5714 9.88984 18.3874 10.9914 18.7148 12.3281C18.7587 12.503 18.7625 12.6788 18.726 12.8554C18.6896 13.032 18.6166 13.1919 18.5069 13.3352C18.4039 13.4669 18.2771 13.5691 18.1265 13.642C17.976 13.7149 17.8171 13.7509 17.6499 13.75ZM5.11749 7.03125C3.74288 7.03125 2.53428 5.75313 2.42217 4.18242C2.3667 3.37773 2.61749 2.63359 3.1253 2.08789C3.62764 1.54766 4.33624 1.25 5.11749 1.25C5.89874 1.25 6.60186 1.54922 7.10694 2.09258C7.61866 2.64258 7.86866 3.38516 7.81006 4.1832C7.69795 5.75352 6.48975 7.03125 5.11749 7.03125ZM7.68233 8.25977C6.99522 7.92383 6.10342 7.75586 5.11788 7.75586C3.96709 7.75586 2.84952 8.05586 1.97061 8.60039C0.974126 9.21875 0.303814 10.1191 0.0331106 11.2063C-0.00701755 11.3646 -0.010671 11.5239 0.0221504 11.6839C0.0549717 11.844 0.120995 11.9889 0.22022 12.1187C0.314407 12.2397 0.430431 12.3336 0.568293 12.4006C0.706154 12.4676 0.851718 12.5007 1.00499 12.5L5.34092 12.5C5.41644 12.5 5.48318 12.4758 5.54114 12.4274C5.59911 12.379 5.63485 12.3177 5.64834 12.2434C5.65264 12.2187 5.65811 12.1941 5.66436 12.1699C5.99561 10.8395 6.77178 9.71523 7.91866 8.8957C8.01024 8.82968 8.05338 8.74029 8.04808 8.62751C8.04277 8.51473 7.99143 8.42978 7.89405 8.37265C7.83272 8.33672 7.76241 8.29883 7.68233 8.25977Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0.624702 3.125)" fill="currentColor"/> \t</g> </svg> "
|
|
312
|
+
/>
|
|
313
|
+
</View>
|
|
314
|
+
</View>
|
|
315
|
+
</View>
|
|
316
|
+
<View className="mt-[10px] flex flex-row items-center justify-between">
|
|
317
|
+
<View>
|
|
318
|
+
<Text className="text-sm text-[#9b9b9b]">
|
|
319
|
+
创建于 2023-11-05
|
|
320
|
+
</Text>
|
|
321
|
+
</View>
|
|
322
|
+
<View>
|
|
323
|
+
<Text className="text-sm text-[#ef4444]">
|
|
324
|
+
期望完成:2023-11-08
|
|
325
|
+
</Text>
|
|
326
|
+
</View>
|
|
327
|
+
</View>
|
|
328
|
+
</View>
|
|
329
|
+
</View>
|
|
330
|
+
</ScrollView>
|
|
331
|
+
</View>
|
|
332
|
+
</React.Fragment>
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export default Document;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 新建工单
|
|
3
|
+
* @type Page
|
|
4
|
+
* @screen 375w
|
|
5
|
+
* @frames app
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { AtIcon, HeaderBar, Image, Input, Page, Picker, ScrollView, Text, Textarea, View } from 'cross-ui';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class IProps {}
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* 数据与接口请求定义
|
|
15
|
+
*/
|
|
16
|
+
class IState {}
|
|
17
|
+
|
|
18
|
+
class Document extends React.Component<IProps, IState> {
|
|
19
|
+
state = {};
|
|
20
|
+
|
|
21
|
+
render() {
|
|
22
|
+
return (
|
|
23
|
+
<Page statusBarMode="light" className="bg-[#f5f5f5]">
|
|
24
|
+
<HeaderBar
|
|
25
|
+
backgroundColor="#ffffff"
|
|
26
|
+
mode="light"
|
|
27
|
+
showBack={true}
|
|
28
|
+
title="新建工单"
|
|
29
|
+
titleAlign="center"
|
|
30
|
+
translucent={false}
|
|
31
|
+
/>
|
|
32
|
+
<ScrollView>
|
|
33
|
+
<View className="pl-[12px] pr-[12px] mt-[12px]">
|
|
34
|
+
<View
|
|
35
|
+
__hidePh={true}
|
|
36
|
+
className="bg-[#ffffff] rounded-xl pt-[12px] pl-[12px] pr-[12px] pb-[12px]"
|
|
37
|
+
>
|
|
38
|
+
<View>
|
|
39
|
+
<View className="flex flex-row">
|
|
40
|
+
<Text className="text-sm text-[#333]">工单标题</Text>
|
|
41
|
+
<Text className="text-sm text-[#ef4444]">*</Text>
|
|
42
|
+
</View>
|
|
43
|
+
<View className="border border-[#e5e7eb] border-solid rounded-lg mt-[10px] pt-[5px] pb-[5px] pl-[10px] pr-[10px]">
|
|
44
|
+
<Input
|
|
45
|
+
type="text"
|
|
46
|
+
confirmType="done"
|
|
47
|
+
value=""
|
|
48
|
+
placeholder="请输入工单标题"
|
|
49
|
+
/>
|
|
50
|
+
</View>
|
|
51
|
+
</View>
|
|
52
|
+
<View className="mt-[12px]">
|
|
53
|
+
<View className="flex flex-row">
|
|
54
|
+
<Text className="text-sm text-[#333]">工单描述</Text>
|
|
55
|
+
</View>
|
|
56
|
+
<View className="border border-[#e5e7eb] border-solid rounded-lg mt-[10px] pt-[5px] pb-[5px] pl-[10px] pr-[10px]">
|
|
57
|
+
<Textarea
|
|
58
|
+
value=""
|
|
59
|
+
placeholder="请输入工单描述"
|
|
60
|
+
className="text-sm min-h-[80px]"
|
|
61
|
+
/>
|
|
62
|
+
</View>
|
|
63
|
+
</View>
|
|
64
|
+
<View className="mt-[12px]">
|
|
65
|
+
<View className="flex flex-row">
|
|
66
|
+
<Text className="text-sm text-[#333]">附件</Text>
|
|
67
|
+
</View>
|
|
68
|
+
<View className="border border-[#e5e7eb] border-dashed rounded-lg mt-[10px] pt-[5px] pb-[5px] pl-[10px] pr-[10px] w-[80px] h-[80px] flex flex-col justify-center items-center">
|
|
69
|
+
<AtIcon
|
|
70
|
+
color="#999999"
|
|
71
|
+
size={24}
|
|
72
|
+
svg="<?xml version="1.0" encoding="utf-8" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 24 24"> \t<defs> \t\t<clipPath id="clipPath4183841512"> \t\t\t<path d="M0 0L24 0L24 24L0 24L0 0Z" fill-rule="nonzero" transform="matrix(1 0 0 1 0 0)" fill="currentColor"/> \t\t</clipPath> \t</defs> \t<g clip-path="url(#clipPath4183841512)"> \t\t<path d="M6.75 -0.75C6.33579 -0.75 6 -0.41421 6 0L6 6L0 6C-0.41421 6 -0.75 6.33579 -0.75 6.75C-0.75 7.16421 -0.41421 7.5 0 7.5L6 7.5L6 13.5C6 13.9142 6.33579 14.25 6.75 14.25C7.16421 14.25 7.5 13.9142 7.5 13.5L7.5 7.5L13.5 7.5C13.9142 7.5 14.25 7.16421 14.25 6.75C14.25 6.33579 13.9142 6 13.5 6L7.5 6L7.5 0C7.5 -0.41421 7.16421 -0.75 6.75 -0.75Z" fill-rule="evenodd" transform="matrix(1 0 0 1 5.25 5.25)" fill="currentColor"/> \t</g> </svg> "
|
|
73
|
+
/>
|
|
74
|
+
</View>
|
|
75
|
+
</View>
|
|
76
|
+
<View className="mt-[12px]">
|
|
77
|
+
<View className="flex flex-row">
|
|
78
|
+
<Text className="text-sm text-[#333]">优先级</Text>
|
|
79
|
+
</View>
|
|
80
|
+
<View className="mt-[10px] flex flex-row items-center">
|
|
81
|
+
<View className="flex flex-row items-center pt-[5px] pb-[5px] pl-[5px] pr-[5px] mr-[10px]">
|
|
82
|
+
<View>
|
|
83
|
+
<View
|
|
84
|
+
__hidePh={true}
|
|
85
|
+
className="w-[16px] h-[16px] rounded-[10px] border border-[#3b82f6] border-solid bg-[#3b82f6] flex flex-col justify-center items-center"
|
|
86
|
+
>
|
|
87
|
+
<View
|
|
88
|
+
__hidePh={true}
|
|
89
|
+
className="w-[14px] h-[14px] border-[2px] border-[#ffffff] border-solid rounded-[7px]"
|
|
90
|
+
/>
|
|
91
|
+
</View>
|
|
92
|
+
</View>
|
|
93
|
+
<View className="flex flex-row ml-[5px] mr-[5px]">
|
|
94
|
+
<View className="w-[8px] h-[8px] bg-[#ef4444] rounded-[5px]" />
|
|
95
|
+
</View>
|
|
96
|
+
<View className="flex flex-row">
|
|
97
|
+
<View>
|
|
98
|
+
<Text className="text-sm text-[#333]">紧急</Text>
|
|
99
|
+
</View>
|
|
100
|
+
</View>
|
|
101
|
+
</View>
|
|
102
|
+
<View className="flex flex-row items-center pt-[5px] pb-[5px] pl-[5px] pr-[5px] mr-[10px]">
|
|
103
|
+
<View>
|
|
104
|
+
<View
|
|
105
|
+
__hidePh={true}
|
|
106
|
+
className="w-[16px] h-[16px] rounded-[10px] border border-[#d1d5db] border-solid"
|
|
107
|
+
/>
|
|
108
|
+
</View>
|
|
109
|
+
<View className="flex flex-row ml-[5px] mr-[5px]">
|
|
110
|
+
<View className="w-[8px] h-[8px] bg-[#f97316] rounded-[5px]" />
|
|
111
|
+
</View>
|
|
112
|
+
<View className="flex flex-row">
|
|
113
|
+
<View>
|
|
114
|
+
<Text className="text-sm text-[#333]">一般</Text>
|
|
115
|
+
</View>
|
|
116
|
+
</View>
|
|
117
|
+
</View>
|
|
118
|
+
<View className="flex flex-row items-center pt-[5px] pb-[5px] pl-[5px] pr-[5px] mr-[10px]">
|
|
119
|
+
<View>
|
|
120
|
+
<View
|
|
121
|
+
__hidePh={true}
|
|
122
|
+
className="w-[16px] h-[16px] rounded-[10px] border border-[#d1d5db] border-solid"
|
|
123
|
+
/>
|
|
124
|
+
</View>
|
|
125
|
+
<View className="flex flex-row ml-[5px] mr-[5px]">
|
|
126
|
+
<View className="w-[8px] h-[8px] bg-[#3b82f6] rounded-[5px]" />
|
|
127
|
+
</View>
|
|
128
|
+
<View className="flex flex-row">
|
|
129
|
+
<View>
|
|
130
|
+
<Text className="text-sm text-[#333]">不紧急</Text>
|
|
131
|
+
</View>
|
|
132
|
+
</View>
|
|
133
|
+
</View>
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
136
|
+
<View className="mt-[12px]">
|
|
137
|
+
<View className="flex flex-row">
|
|
138
|
+
<Text className="text-sm text-[#333]">状态</Text>
|
|
139
|
+
</View>
|
|
140
|
+
<View className="mt-[10px]">
|
|
141
|
+
<Picker mode="selector" value="">
|
|
142
|
+
<View className="flex flex-row h-[40px] rounded-md pr-[5px] mt-[10px] border border-[#e5e7eb] border-solid">
|
|
143
|
+
<View className="flex-1 flex flex-col justify-center pl-[10px]">
|
|
144
|
+
<Text className="text-sm text-[#333333]">待处理</Text>
|
|
145
|
+
</View>
|
|
146
|
+
<View className="flex flex-col justify-center">
|
|
147
|
+
<AtIcon
|
|
148
|
+
value="chevron-down"
|
|
149
|
+
size={20}
|
|
150
|
+
color="#e5e7eb"
|
|
151
|
+
/>
|
|
152
|
+
</View>
|
|
153
|
+
</View>
|
|
154
|
+
</Picker>
|
|
155
|
+
</View>
|
|
156
|
+
</View>
|
|
157
|
+
<View className="mt-[12px]">
|
|
158
|
+
<View className="flex flex-row">
|
|
159
|
+
<Text className="text-sm text-[#333]">期望完成日期</Text>
|
|
160
|
+
</View>
|
|
161
|
+
<View className="mt-[10px] h-[40px] border border-[#e5e7eb] border-solid rounded-md flex flex-row items-center pl-[10px]">
|
|
162
|
+
<View>
|
|
163
|
+
<Image
|
|
164
|
+
src="https://cdn.appthen.com/Frk-8aFGbyfVURwxEf0k6F3ZXdQO"
|
|
165
|
+
remote={false}
|
|
166
|
+
fit={false}
|
|
167
|
+
className="w-[20px] h-[20px]"
|
|
168
|
+
/>
|
|
169
|
+
</View>
|
|
170
|
+
<View className="ml-[10px]">
|
|
171
|
+
<Text className="text-sm text-[#999999]">选择日期</Text>
|
|
172
|
+
</View>
|
|
173
|
+
</View>
|
|
174
|
+
</View>
|
|
175
|
+
<View className="mt-[12px]">
|
|
176
|
+
<View className="flex flex-row">
|
|
177
|
+
<Text className="text-sm text-[#333]">工单开始时间</Text>
|
|
178
|
+
</View>
|
|
179
|
+
<View className="mt-[10px] h-[40px] border border-[#e5e7eb] border-solid rounded-md flex flex-row items-center pl-[10px]">
|
|
180
|
+
<View>
|
|
181
|
+
<Image
|
|
182
|
+
src="https://cdn.appthen.com/FoqyzS5iYqiaADVq5gUYDONZMVGm"
|
|
183
|
+
remote={false}
|
|
184
|
+
fit={false}
|
|
185
|
+
className="w-[20px] h-[20px]"
|
|
186
|
+
/>
|
|
187
|
+
</View>
|
|
188
|
+
<View className="ml-[10px]">
|
|
189
|
+
<Text className="text-sm text-[#999999]">选择时间</Text>
|
|
190
|
+
</View>
|
|
191
|
+
</View>
|
|
192
|
+
</View>
|
|
193
|
+
<View className="mt-[12px]">
|
|
194
|
+
<View className="flex flex-row">
|
|
195
|
+
<Text className="text-sm text-[#333]">工单结束时间</Text>
|
|
196
|
+
</View>
|
|
197
|
+
<View className="mt-[10px] h-[40px] border border-[#e5e7eb] border-solid rounded-md flex flex-row items-center pl-[10px]">
|
|
198
|
+
<View>
|
|
199
|
+
<Image
|
|
200
|
+
src="https://cdn.appthen.com/FoqyzS5iYqiaADVq5gUYDONZMVGm"
|
|
201
|
+
remote={false}
|
|
202
|
+
fit={false}
|
|
203
|
+
className="w-[20px] h-[20px]"
|
|
204
|
+
/>
|
|
205
|
+
</View>
|
|
206
|
+
<View className="ml-[10px]">
|
|
207
|
+
<Text className="text-sm text-[#999999]">选择时间</Text>
|
|
208
|
+
</View>
|
|
209
|
+
</View>
|
|
210
|
+
</View>
|
|
211
|
+
</View>
|
|
212
|
+
</View>
|
|
213
|
+
<View className="pl-[20px] pr-[20px] pb-[20px] pt-[20px]">
|
|
214
|
+
<View className="bg-[#3b82f6] pt-[12px] pb-[12px] flex flex-col justify-center items-center rounded-[10px]">
|
|
215
|
+
<Text className="text-sm text-[#ffffff]">提交</Text>
|
|
216
|
+
</View>
|
|
217
|
+
</View>
|
|
218
|
+
</ScrollView>
|
|
219
|
+
</Page>
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export default Document;
|