@voplus/morpho-workspace 1.3.4 → 1.3.5

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.
Files changed (109) hide show
  1. package/es/data/work/interfaces.d.ts +2 -2
  2. package/es/data/work/metas.d.ts +13 -0
  3. package/es/data/work/metas.js +34 -0
  4. package/es/data/work/metas.js.map +1 -0
  5. package/es/data/workerror/interfaces.d.ts +2 -3
  6. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +0 -1
  7. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -1
  8. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +0 -1
  9. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -1
  10. package/es/data/worktype/hook.d.ts +1 -1
  11. package/es/data/worktype/hook.js +3 -3
  12. package/es/data/worktype/hook.js.map +1 -1
  13. package/es/modules/board/components/Board/state.js +1 -1
  14. package/es/modules/board/components/Board/state.js.map +1 -1
  15. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +9 -15
  16. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  17. package/es/modules/tasks/components/SubTaskList/index.js +6 -3
  18. package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
  19. package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -0
  20. package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
  21. package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -0
  22. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +18 -0
  23. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js.map +1 -0
  24. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -0
  25. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  26. package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -0
  27. package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
  28. package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -0
  29. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +19 -0
  30. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -0
  31. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -0
  32. package/es/modules/work/components/NewWorkErrorDialog/index.js +26 -15
  33. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
  34. package/es/modules/work/components/NewWorkErrorDialog/index.less +1 -1
  35. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +2 -0
  36. package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -0
  37. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
  38. package/es/modules/work/components/WorkErrorItem/index.js +18 -8
  39. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
  40. package/es/modules/work/components/WorkErrorItem/index.less +35 -7
  41. package/es/modules/work/components/WorkErrorProperties/index.d.ts +6 -0
  42. package/es/modules/work/components/WorkErrorProperties/index.js +57 -0
  43. package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -0
  44. package/es/modules/work/components/WorkErrorProperties/index.less +8 -0
  45. package/es/modules/work/components/WorkErrorProperties/state.d.ts +5 -0
  46. package/es/modules/work/components/WorkErrorProperties/state.js +26 -0
  47. package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -0
  48. package/es/modules/work/components/WorkErrorPropertiesView/index.js +18 -10
  49. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
  50. package/es/modules/work/components/WorkErrorPropertiesView/index.less +18 -1
  51. package/es/modules/work/components/WorkItem/index.js +1 -1
  52. package/es/modules/work/components/WorkItem/index.js.map +1 -1
  53. package/es/modules/work/components/WorkList/index.d.ts +2 -0
  54. package/es/modules/work/components/WorkList/index.js +12 -3
  55. package/es/modules/work/components/WorkList/index.js.map +1 -1
  56. package/es/modules/work/components/WorkPropertiesView/index.js +1 -1
  57. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  58. package/es/modules/work/components/WorksProperties/index.js +4 -6
  59. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  60. package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -0
  61. package/es/modules/work/controls/WorkErrorMenu/index.js +39 -0
  62. package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -0
  63. package/es/modules/work/controls/WorkErrorMenu/index.less +33 -0
  64. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -1
  65. package/es/modules/work/pages/WorkDefaultView/index.js +2 -4
  66. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
  67. package/es/modules/work/pages/WorkListPage/index.js +3 -2
  68. package/es/modules/work/pages/WorkListPage/index.js.map +1 -1
  69. package/es/modules/workspace/components/MyWorkspaces/index.js +3 -0
  70. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
  71. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +1 -0
  72. package/es/modules/workspace/components/WorkspaceCardList/index.js +6 -5
  73. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
  74. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
  75. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
  76. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +3 -1
  77. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -4
  78. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  79. package/es/modules/workspace/pages/WorkspacePage/index.js +60 -43
  80. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  81. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +12 -6
  82. package/es/modules/workspace/pages/WorkspacePage/state.js +42 -24
  83. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
  84. package/es/modules/worktype/components/RepeatTab/index.d.ts +6 -0
  85. package/es/modules/worktype/components/RepeatTab/index.js +44 -0
  86. package/es/modules/worktype/components/RepeatTab/index.js.map +1 -0
  87. package/es/modules/worktype/components/RepeatTab/index.less +30 -0
  88. package/es/modules/worktype/components/WorkTypeProperties/index.js +23 -20
  89. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  90. package/es/modules/worktype/components/WorkTypeProperties/index.less +0 -9
  91. package/es/modules/worktype/components/WorkTypeProperties/state.js +0 -1
  92. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
  93. package/es/modules/worktype/components/WorkTypeQA/index.js +31 -34
  94. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  95. package/es/modules/worktype/components/WorkTypeTabs/index.js +9 -11
  96. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  97. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +10 -2
  98. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
  99. package/es/pages/Routes.d.ts +4 -12
  100. package/es/pages/Routes.js +6 -28
  101. package/es/pages/Routes.js.map +1 -1
  102. package/es/pages/Space/pages/MySpace/index.js +6 -6
  103. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  104. package/es/pages/Space/pages/MySpace/state.d.ts +16 -4
  105. package/es/pages/Space/pages/MySpace/state.js +139 -59
  106. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  107. package/es/pages/WorkType/WorkTypeSelect/index.js +1 -1
  108. package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
  109. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEH,MAAM,EAEN,IAAI,EAEJ,GAAG,EACH,MAAM,EACN,KAAK,GAER,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,KAAK,MAAM,uC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,QAAQ,aAEzD,CACF,CACH,CACK,CACI,CACX,CACF,CACC,CACR,CAAC,CAAC;IACH,KAAK,UAAU,QAAQ;QACtB,uEAAuE;QACvE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC1C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC9B,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;YAC/C,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC/B,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,YAAY;YAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;IACD,mBAAmB;IACnB,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
@@ -6,7 +6,7 @@
6
6
  width: 100%;
7
7
  }
8
8
  .proseMirror {
9
- height: 10rem !important;
9
+ height: 22rem !important;
10
10
  .editor-toolbar {
11
11
  padding: 0.2rem 0.65rem;
12
12
  }
@@ -3,12 +3,14 @@ export declare class State {
3
3
  Params: {
4
4
  Type: string;
5
5
  Severity: string;
6
+ IncidentDate: undefined;
6
7
  CauserIds: string[];
7
8
  Description: string;
8
9
  };
9
10
  params: {
10
11
  Type: string;
11
12
  Severity: string;
13
+ IncidentDate: undefined;
12
14
  CauserIds: string[];
13
15
  Description: string;
14
16
  };
@@ -9,6 +9,7 @@ export class State {
9
9
  value: {
10
10
  Type: "Type1",
11
11
  Severity: "S1",
12
+ IncidentDate: undefined,
12
13
  CauserIds: [""],
13
14
  Description: "",
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC,EAAE,CAAC;gBACf,WAAW,EAAE,EAAE;aACf;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QATlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CASD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,IAAI;gBACd,YAAY,EAAE,SAAS;gBACvB,SAAS,EAAE,CAAC,EAAE,CAAC;gBACf,WAAW,EAAE,EAAE;aACf;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QAVlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
@@ -1,24 +1,34 @@
1
- import "./index.less";
1
+ import React, { useState } from "react";
2
+ import moment from "moment";
2
3
  import { Col, Row, Tag } from "@voplus/antd";
3
4
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
4
- import { ExclamationCircleOutlined } from "@ant-design/icons";
5
- import React from "react";
6
- import moment from "moment";
5
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
6
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
7
7
  import { observe } from "@voplus/morpho-ui";
8
8
  import { useApplicationContext } from "@voplus/morpho-data";
9
9
  import { useWorkError } from "../../../../data/workerror";
10
+ import WorkErrorMenu from "../../controls/WorkErrorMenu";
11
+ import classnames from "classnames";
12
+ import "./index.less";
10
13
  const WorkErrorItem = (props) => {
11
14
  const { user } = useApplicationContext();
12
15
  const workError = useWorkError(props.id);
13
- return observe(() => React.createElement("div", { className: "workerror-item" },
16
+ const [hover, setHover] = useState(false);
17
+ return observe(() => (React.createElement("div", { className: "workerror-item", onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
14
18
  React.createElement(Row, null,
15
19
  React.createElement(Col, { flex: 3 },
16
20
  React.createElement("div", null,
17
- React.createElement(ExclamationCircleOutlined, { style: { color: "red" } }),
18
- React.createElement(Tag, { color: "purple" }, workError.type)),
21
+ React.createElement("div", { className: "workerror-info" }, workError.type),
22
+ React.createElement(Tag, { color: "purple" }, workError.severity)),
19
23
  React.createElement("div", { className: "workerror-date" }, moment(workError.due).format("DD MMM yyyy"))),
20
24
  React.createElement(Col, { flex: 2, className: "workerror-causers" },
21
- React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false })))));
25
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false }))),
26
+ React.createElement("div", { className: classnames("hover-operate-icon", {
27
+ show: hover,
28
+ }) },
29
+ React.createElement(ToolBar, { id: props.id, showMenu: false },
30
+ React.createElement(Open, { size: "middle", url: `/workerror}` }),
31
+ React.createElement(WorkErrorMenu, { id: props.id, size: "middle", closeAside: true }))))));
22
32
  };
23
33
  export default WorkErrorItem;
24
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC5C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,6BAAK,SAAS,EAAC,gBAAgB;QAC3B,oBAAC,GAAG;YACA,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC;gBACR;oBACI,oBAAC,yBAAyB,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAI;oBACtD,oBAAC,GAAG,IAAC,KAAK,EAAC,QAAQ,IAAE,SAAS,CAAC,IAAI,CAAO,CACxC;gBACN,6BAAK,SAAS,EAAC,gBAAgB,IAC1B,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC1C,CACJ;YACN,oBAAC,G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f3f1f1;
7
- }
8
- .workerror-causers{
3
+ padding: 10px 20px;
4
+ background: transparent;
5
+ position: relative;
6
+
7
+ &:hover {
8
+ background: #f3f1f1;
9
+ }
10
+
11
+ .workerror-info {
12
+ display: inline-block;
13
+ color: #000;
14
+ font-size: 15px;
15
+ // font-weight: 500;
16
+ cursor: pointer;
17
+ }
18
+
19
+ .workerror-causers {
9
20
  display: flex;
10
21
  align-items: center;
11
22
  }
23
+
12
24
  .workerror-name {
13
25
  font-size: 15px;
14
26
  color: #000;
@@ -16,11 +28,27 @@
16
28
  word-break: break-all;
17
29
  margin: 0 8px;
18
30
  }
31
+
19
32
  .ant-tag {
20
33
  padding: 0 5px;
21
34
  font-size: 12px;
22
35
  line-height: 15px;
23
36
  margin-left: 8px;
24
37
  }
38
+
39
+ .hover-operate-icon {
40
+ display: none;
41
+ position: absolute;
42
+ right: 20px;
43
+ top: 16px;
44
+
45
+ .ant-btn:first-child {
46
+ margin-left: 0;
47
+ }
48
+
49
+ &.show {
50
+ display: block;
51
+ }
52
+ }
25
53
  }
26
- }
54
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkErrorProperties: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorkErrorProperties;
@@ -0,0 +1,57 @@
1
+ import "./index.less";
2
+ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
3
+ import { Form, Select } from "@voplus/antd";
4
+ import React, { useState } from "react";
5
+ import moment from "moment";
6
+ import { InlineEdit, observe } from "@voplus/morpho-ui";
7
+ import { useWorkError, useWorkErrorStore } from "../../../../data/workerror";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
9
+ import { State } from "./state";
10
+ import { runInAction } from "mobx";
11
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
12
+ const WorkErrorProperties = (props) => {
13
+ const { id } = props;
14
+ const Option = Select.Option;
15
+ const [state] = useState(new State());
16
+ const workerror = useWorkError(id);
17
+ const { user } = useApplicationContext();
18
+ const store = useWorkErrorStore();
19
+ return observe(() => (React.createElement("div", { className: "workerror-properties" },
20
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
21
+ React.createElement(Form.Item, { label: "Type" }, state.editType ?
22
+ React.createElement(Select, { defaultValue: workerror.type, onChange: async (value) => {
23
+ await save({ Type: value });
24
+ runInAction(() => state.editType = false);
25
+ }, onBlur: () => state.editType = false },
26
+ React.createElement(Option, { value: "Type1" }, "Type1"),
27
+ React.createElement(Option, { value: "Type2" }, "Type2"),
28
+ React.createElement(Option, { value: "Type3" }, "Type3"))
29
+ :
30
+ React.createElement("div", { onClick: () => runInAction(() => state.editType = true) }, workerror.type || "ADD Type")),
31
+ React.createElement(Form.Item, { label: "Severity" }, state.editSeverity ?
32
+ React.createElement(Select, { defaultValue: workerror.severity, onChange: async (value) => {
33
+ await save({ Severity: value });
34
+ runInAction(() => state.editSeverity = false);
35
+ } },
36
+ React.createElement(Option, { value: "S1" }, "S1"),
37
+ React.createElement(Option, { value: "S2" }, "S2"),
38
+ React.createElement(Option, { value: "S3" }, "S3"))
39
+ :
40
+ React.createElement("div", { onClick: () => runInAction(() => state.editSeverity = true) }, workerror.severity || "ADD Severity")),
41
+ React.createElement(Form.Item, { label: "Due Data" },
42
+ React.createElement(InlineEdit, { defaultValue: moment(workerror.due), editable: false, content: (v) => (React.createElement("span", null, workerror.due ? moment(workerror.due).format("DD MMM YYYY") : "No Date")), editor: DateInputEditor })),
43
+ React.createElement(Form.Item, { label: "Incident Date" },
44
+ React.createElement(InlineEdit, { defaultValue: moment(workerror.incidentDate), content: (v) => (React.createElement("span", null, workerror.incidentDate ? moment(workerror.incidentDate).format("DD MMM YYYY") : "Add Date")), editor: DateInputEditor, onSave: (v) => {
45
+ // date未变更不保存
46
+ if (moment(v).isSame(workerror.incidentDate, "day"))
47
+ return;
48
+ save({ IncidentDate: v.format("YYYY-MM-DD") });
49
+ } })),
50
+ React.createElement(Form.Item, { label: "Causers" },
51
+ React.createElement(AvatarList, { list: workerror.causers || [], multiple: true, buttonText: "Ok", organizationId: user.info.organizationId, onChange: (ids) => save({ CauserIds: ids }) }))))));
52
+ async function save(params) {
53
+ await store.edit(id, { data: params, error: "message" });
54
+ }
55
+ };
56
+ export default WorkErrorProperties;
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAE/F,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IACnC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,M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ACb,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC;4BAAE,OAAO;wBAC5D,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;oBACnD,CAAC,GACH,CACM;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS;gBACtB,oBAAC,UAAU,IACP,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,QACR,UAAU,EAAC,IAAI,EACf,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,GACvD,CACM,CACT,CACL,CACT,CAAC,CAAC;IAEH,KAAK,UAAU,IAAI,CAAC,MAA+B;QAC/C,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7D,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ :global {
2
+ .workerror-properties {
3
+ padding: 20px;
4
+ .no-data {
5
+ color: #00000040;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare class State {
2
+ constructor();
3
+ editType: boolean;
4
+ editSeverity: boolean;
5
+ }
@@ -0,0 +1,26 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "editType", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: false
10
+ });
11
+ Object.defineProperty(this, "editSeverity", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: false
16
+ });
17
+ makeObservable(this);
18
+ }
19
+ }
20
+ __decorate([
21
+ observable
22
+ ], State.prototype, "editType", void 0);
23
+ __decorate([
24
+ observable
25
+ ], State.prototype, "editSeverity", void 0);
26
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACd;QAGY;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAsB,KAAK;WAAC;QAHpC,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CAGJ;AAFe;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;2CAA6B"}
@@ -6,36 +6,44 @@ import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/Activ
6
6
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
7
7
  import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
8
8
  import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
9
- import { ExclamationCircleOutlined } from "@ant-design/icons";
9
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
10
+ import WorkErrorMenu from "../../controls/WorkErrorMenu";
11
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
10
12
  import moment from "moment";
11
13
  import { observe } from "@voplus/morpho-ui";
12
14
  import { useApplicationContext } from "@voplus/morpho-data";
15
+ import WorkErrorProperties from "../WorkErrorProperties";
13
16
  const WorkErrorPropertiesView = (props) => {
14
17
  const { id } = props;
15
18
  const workerror = useWorkError(id);
16
19
  const store = useWorkErrorStore();
17
20
  const { user } = useApplicationContext();
18
21
  /**Tabs 当前激活 tab 面板的 key */
19
- const [activeKey, setActiveKey] = useState("Activities");
22
+ const [activeKey, setActiveKey] = useState("Properties");
20
23
  useEffect(() => {
21
- setActiveKey("Activities");
24
+ setActiveKey("Properties");
22
25
  }, [props.id]);
23
- return observe(() => React.createElement("div", { className: "workerror-properties-view" },
26
+ return observe(() => (React.createElement("div", { className: "workerror-properties-view" },
24
27
  workerror.loaded !== true ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
25
28
  React.createElement("div", { className: "workerror-header" },
26
- React.createElement("div", { className: "document-name-content" },
27
- React.createElement(ExclamationCircleOutlined, { style: { color: "red" } }),
28
- React.createElement(Tag, { color: "purple" }, workerror.type)),
29
+ React.createElement("div", { className: "workerror-header-content" },
30
+ React.createElement("div", { className: "document-name-content" },
31
+ React.createElement("div", { className: "workerror-info" }, workerror.type),
32
+ React.createElement(Tag, { color: "purple" }, workerror.severity)),
33
+ React.createElement(ToolBar, { id: props.id, showMenu: false },
34
+ React.createElement(Open, { size: "small", url: `/workerror}` }),
35
+ React.createElement(WorkErrorMenu, { id: props.id, size: "small", closeAside: true }))),
36
+ React.createElement("div", { className: "workerror-date" }, moment(workerror.due).format("DD MMM yyyy")),
29
37
  React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workerror.causers || [], onChange: (ids) => {
30
38
  store.edit(id, { data: { CauserIds: ids }, error: "message" });
31
- } }),
32
- React.createElement("div", { className: "workerror-date" }, moment(workerror.due).format("DD MMM yyyy"))),
39
+ } })),
33
40
  React.createElement(DescriptionEditor, { id: id, description: workerror.description, onSave: (description) => {
34
41
  store.edit(id, { data: { Description: description }, error: "message" });
35
42
  } }))),
36
43
  React.createElement(Tabs, { activeKey: activeKey, className: "workerror-tabs", onChange: onChange },
44
+ React.createElement(Tabs.TabPane, { tab: "Properties", key: "Properties" }, activeKey === "Properties" && React.createElement(WorkErrorProperties, { id: id })),
37
45
  React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
38
- React.createElement(Tabs.TabPane, { tab: "Document", key: "Document" }, activeKey === "Document" && (React.createElement(DocumentList, { id: id, multiple: true }))))));
46
+ React.createElement(Tabs.TabPane, { tab: "Document", key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true }))))));
39
47
  /**切换面板的回调*/
40
48
  function onChange(activeKey) {
41
49
  setActiveKey(activeKey);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,uBAAuB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACX,YA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C,GACH,CACW,CACpB;QACD,oBAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAC,gBAAgB,EAAC,QAAQ,EAAE,QAAQ;YACrE,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY,IAC1C,SAAS,KAAK,YAAY,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3C;YACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,UAAU,EAAC,GAAG,EAAC,UAAU,IACtC,SAAS,KAAK,UAAU,IAAI,CACzB,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,SAAG,CACpC,CACU,CACZ,CACL,CACT,CAAA;IAED,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAC/B,YAAY,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;AACL,CAAC,CAAA;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC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C,YAAY,IAC7C,SAAS,KAAK,YAAY,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CACxC;YACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,UAAU,EAAC,GAAG,EAAC,UAAU,IACzC,SAAS,KAAK,UAAU,IAAI,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,SAAG,CAChD,CACT,CACF,CACN,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -3,8 +3,23 @@
3
3
  height: 100%;
4
4
  display: flex;
5
5
  flex-direction: column;
6
+
6
7
  .workerror-header {
7
8
  padding: 10px 20px;
9
+
10
+ .workerror-header-content{
11
+ display: flex;
12
+ justify-content: space-between;
13
+ }
14
+
15
+ .workerror-info {
16
+ display: inline-block;
17
+ color: #000;
18
+ font-size: 24px;
19
+ font-weight: 500;
20
+ cursor: pointer;
21
+ }
22
+
8
23
  .ant-tag {
9
24
  padding: 0 5px;
10
25
  font-size: 12px;
@@ -12,11 +27,13 @@
12
27
  margin-left: 8px;
13
28
  }
14
29
  }
30
+
15
31
  .workerror-tabs {
16
32
  flex: 1;
33
+
17
34
  .ant-tabs-nav {
18
35
  padding-left: 20px;
19
36
  }
20
37
  }
21
38
  }
22
- }
39
+ }
@@ -34,7 +34,7 @@ const WorkItem = (props) => {
34
34
  default: React.createElement(WorkMenu, { id: id })
35
35
  }
36
36
  } },
37
- React.createElement(Open, { size: "middle", url: `/work/${id}` }))) }));
37
+ React.createElement(Open, { size: "middle", url: meta.getRoute(work) }))) }));
38
38
  });
39
39
  };
40
40
  export default WorkItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAA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,CAAA,EAChC,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EACnC,YAAY,EACX,oBAAC,KAAK,CAAC,QAAQ;gBACd,oBAAC,WAAW;oBACX,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;oBACzB,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;oBAC5B,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;oBAC3B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;oBACzB,oBAAC,OAAO,IAAC,KAAK,EAAC,aAAa;wBAC3B,8BAAM,SAAS,EAAC,WAAW,IACzB,IAAI,CAAC,UAAU,CACV,CACE,CACG,CACE,EAElB,KAAK,EACJ,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;oBAC3C,IAAI,EAAE,KAAK;iBACX,CAAC;gBAEF,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC/B,KAAK,EAAE;4BACN,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI;yBAC7B;qBACD;oBAED,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,SAAS,EAAE,EAAE,GAAI,CACjC,CACL,GAEN,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,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oBAAC,KAAK,CAAC,QAAQ;gBACd,oBAAC,WAAW;oBACX,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;oBACzB,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;oBAC5B,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;oBAC3B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;oBACzB,oBAAC,OAAO,IAAC,KAAK,EAAC,aAAa;wBAC3B,8BAAM,SAAS,EAAC,WAAW,IACzB,IAAI,CAAC,UAAU,CACV,CACE,CACG,CACE,EAElB,KAAK,EACJ,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;oBAC3C,IAAI,EAAE,KAAK;iBACX,CAAC;gBAEF,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC/B,KAAK,EAAE;4BACN,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI;yBAC7B;qBACD;oBACD,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CACvC,CACL,GAEN,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -4,6 +4,8 @@ import { IWork } from "../../../../data/work";
4
4
  declare const WorkList: (props: {
5
5
  /** status of works shown on the list. */
6
6
  status?: string | undefined;
7
+ /** types id of works shown on the list. */
8
+ typesId?: string | undefined;
7
9
  /** dueDate of works shown on the list. */
8
10
  dueDate?: string | undefined;
9
11
  /** The current active item */
@@ -14,13 +14,13 @@ import moment from "moment";
14
14
  import { observe } from "@voplus/morpho-ui";
15
15
  import { useRenderOnChange } from "@voplus/morpho-ui";
16
16
  const WorkList = (props) => {
17
- const { dueDate } = props;
17
+ const { dueDate, typesId } = props;
18
18
  const [activeId, setActiveId] = useState("");
19
19
  const documentStore = useDocumentStore();
20
20
  const { user } = useApplicationContext();
21
21
  const list = useCreateListDataState({
22
22
  filterDefaults: { filters: filters() }
23
- }, [props.status, dueDate]);
23
+ }, [props.status, dueDate, typesId]);
24
24
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
25
25
  useAutoUpdateListData(list, (d) => d.type === "Work");
26
26
  useRenderOnChange(() => list.filters.options);
@@ -49,7 +49,8 @@ const WorkList = (props) => {
49
49
  } },
50
50
  React.createElement(WorkItem, { id: item.id, toolsVisible: false })))) }))));
51
51
  function filters() {
52
- const filter = [{ c: "Owners", o: "contains", l: "And", v1: JSON.stringify([user.info.unit.id]) }];
52
+ // const filter = [{ c: "Roles", o: "contains", l: "And", v1: "Owner" }];
53
+ const filter = [];
53
54
  if (props.status) {
54
55
  filter.push({
55
56
  c: "WorkStatus",
@@ -58,6 +59,14 @@ const WorkList = (props) => {
58
59
  v1: S(props.status).capitalize().toString(),
59
60
  });
60
61
  }
62
+ if (typesId) {
63
+ filter.push({
64
+ c: "WorkType",
65
+ o: "=",
66
+ l: "And",
67
+ v1: typesId,
68
+ });
69
+ }
61
70
  if (dueDate) {
62
71
  let date = "day";
63
72
  let v1 = "";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAqB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,iB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;gBACtB,IAAI,GAAG,OAAoC,CAAC;YAE7C,IAAI,OAAO,KAAK,aAAa,EAAE;gBAC9B,EAAE,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC1D,EAAE,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aACxD;iBAAM;gBACN,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC9E,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aAC5E;YACD,MAAM,CAAC,IAAI,CAAC;gBACX,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,EAAE;aACU,CAAC,CAAA;SAClB;QACD,OAAO,MAAwB,CAAC;IACjC,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -26,7 +26,7 @@ const WorkPropertiesView = (props) => {
26
26
  }
27
27
  } },
28
28
  React.createElement(Reload, { action: onReload }),
29
- React.createElement(Open, { url: `/work/${id}` }))), descriptionVisible: false }),
29
+ React.createElement(Open, { url: meta.getRoute(work) }))), descriptionVisible: false }),
30
30
  React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly }),
31
31
  React.createElement(WorkTabs, { id: id, propertie: true }))))));
32
32
  /** reload data */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,kBAAkB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACpE,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAEpB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAE5C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAE7B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACjB,6BAAK,SAAS,EAAC,oBAAoB,IAC9B,MAAM,IAAI,CACP,oBAAC,KAAK,CAAC,QAAQ;QACX,oBAAC,cAAc,IACX,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,IAAI,EACT,YAAY,EAAE,KAAK,EACnB,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,SAAS,EAAC,6BAA6B,EACvC,KAAK,EACD,6BAAK,SAAS,EAAC,WAAW;gBACtB,oBAAC,OAAO,IACJ,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACP,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE;4BACH,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI;yBAChC;qBACJ;oBACD,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,SAAS,EAAE,EAAE,GAAI,CACtB,CACR,EAEV,kBAAkB,EAAE,KAAK,GAC3B;QACF,oBAAC,iBAAiB,IACd,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACzB;QACF,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CACjB,CACpB,CACC,CACT,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QACb,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACZ,SAAS,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,GAAG,CAAC,CAAC;IACZ,CAAC;AACL,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,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ACN,SAAS,EAAE;wBACP,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE;4BACH,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI;yBAChC;qBACJ;oBACD,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CAC5B,CACR,EAEV,kBAAkB,EAAE,KAAK,GAC3B;QACF,oBAAC,iBAAiB,IACd,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACzB;QACF,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CACjB,CACpB,CACC,CACT,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QACb,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACZ,SAAS,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,GAAG,CAAC,CAAC;IACZ,CAAC;AACL,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
@@ -4,25 +4,23 @@ import { Form } from "@voplus/antd";
4
4
  import React from "react";
5
5
  import moment from "moment";
6
6
  import { observe } from "@voplus/morpho-ui";
7
- import { useApplicationContext } from "@voplus/morpho-data";
8
7
  import { useWork } from "../../../../data/work";
9
8
  const WorksProperties = (props) => {
10
9
  const work = useWork(props.id);
11
- const { user } = useApplicationContext();
12
10
  const noData = (React.createElement("span", { className: "no-data" }, "no data"));
13
11
  return observe(() => {
14
12
  var _a, _b;
15
13
  return (React.createElement("div", { className: "work-roperties" },
16
14
  React.createElement("h2", null, (_a = work.workType) === null || _a === void 0 ? void 0 : _a.name),
17
15
  React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
18
- React.createElement(Form.Item, { label: "No" }, work.no || noData),
16
+ React.createElement(Form.Item, { label: "No" }, work.number || noData),
19
17
  React.createElement(Form.Item, { label: "Type" }, work.type || noData),
20
- React.createElement(Form.Item, { label: "Status" }, work.status || noData),
18
+ React.createElement(Form.Item, { label: "Status" }, work.workStatus || noData),
21
19
  React.createElement(Form.Item, { label: "Contact" }),
22
- React.createElement(Form.Item, { label: "Folder" }, ((_b = work.folder) === null || _b === void 0 ? void 0 : _b.name) || noData),
20
+ React.createElement(Form.Item, { label: "Folder" }, ((_b = work.document) === null || _b === void 0 ? void 0 : _b.name) || noData),
23
21
  React.createElement(Form.Item, { label: "Due" }, work.due ? moment(work.due).format("DD MMM yyyy") : noData),
24
22
  React.createElement(Form.Item, { label: "Owner" },
25
- React.createElement(AvatarList, { list: work.owners, editable: false })))));
23
+ React.createElement(AvatarList, { list: work.owners || [], editable: false })))));
26
24
  });
27
25
  };
28
26
  export default WorksProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,CAAC,8BAAM,SAAS,EAAC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IAAI,KAAI,MAAM,CACtB;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,KAAK,IACjB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CACnD;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACpB,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,GAAI,CAChD,CACT,CACL,CACT,CAAA;KAAA,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkErrorMenu: {
4
+ (props: {
5
+ id: string;
6
+ className?: string;
7
+ closeAside?: boolean;
8
+ size: "small" | "middle" | "large" | undefined;
9
+ }): JSX.Element;
10
+ defaultProps: {
11
+ size: string;
12
+ };
13
+ };
14
+ export default WorkErrorMenu;