@kmkf-fe-packages/kmkf-work-order-service-component 2.2.10 → 2.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.
Files changed (30) hide show
  1. package/dist/esm/CustomerServiceToDoList/index.d.ts +3 -0
  2. package/dist/esm/CustomerServiceToDoList/index.js +155 -0
  3. package/dist/esm/CustomerServiceToDoList/index.module.less +134 -0
  4. package/dist/esm/FlowTemplateDetailV2/common.js +1 -0
  5. package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +28 -10
  6. package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.d.ts +6 -0
  7. package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.js +66 -0
  8. package/dist/esm/FlowTemplateDetailV2/index.js +12 -4
  9. package/dist/esm/WorkOrder/components/CustomerServiceToDoCard/index.d.ts +3 -0
  10. package/dist/esm/WorkOrder/components/CustomerServiceToDoCard/index.js +76 -0
  11. package/dist/esm/WorkOrder/components/CustomerServiceToDoCard/index.module.less +20 -0
  12. package/dist/esm/WorkOrder/components/WorkOrderList/components/CustomizeWorkOrderCard/index.js +6 -0
  13. package/dist/esm/WorkOrder/components/WorkOrderList/index.js +7 -2
  14. package/dist/esm/WorkOrder/components/WorkOrderList/index.less +4 -3
  15. package/dist/esm/WorkOrder/index.js +21 -1
  16. package/dist/esm/common/constant.d.ts +5 -0
  17. package/dist/esm/common/constant.js +3 -2
  18. package/dist/esm/common/imgs/ai.png +0 -0
  19. package/dist/esm/common/imgs/notification.png +0 -0
  20. package/dist/esm/common/utils/tools.js +2 -3
  21. package/dist/esm/common/utils/xzSDK.d.ts +2 -0
  22. package/dist/esm/common/utils/xzSDK.js +45 -1
  23. package/dist/esm/index.d.ts +1 -0
  24. package/dist/esm/index.js +1 -0
  25. package/dist/esm/model/customizeWorkOrder/index.d.ts +1 -1
  26. package/dist/esm/model/customizeWorkOrder/index.js +17 -3
  27. package/dist/esm/model/customizeWorkOrder/types.d.ts +2 -0
  28. package/dist/esm/model/servers/api.d.ts +1 -0
  29. package/dist/esm/model/servers/api.js +8 -0
  30. package/package.json +5 -5
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CustomerServiceToDoList: React.FC;
3
+ export default CustomerServiceToDoList;
@@ -0,0 +1,155 @@
1
+ import { Button, Card, Tag, Badge, Spin, Empty } from 'antd';
2
+ import React, { useRef, useEffect } from 'react';
3
+ import { useInfiniteScroll } from 'ahooks';
4
+ import { CloseOutlined } from '@ant-design/icons';
5
+ import { useAppDispatch, useAppSelector } from "../model/hooks";
6
+ import { nodeWorkOrderPending } from "../model/servers/api";
7
+ import moment from 'moment';
8
+ import { setWorkOrderProcessStatus } from "../model/customizeWorkOrder";
9
+ import { WORK_ORDER_STATUS_AI_BUILD } from "../common/constant";
10
+ import styles from "./index.module.less";
11
+ var getTableData = function getTableData(params) {
12
+ return nodeWorkOrderPending(params).then(function (res) {
13
+ var _res$data, _res$data2;
14
+ // console.log('API response:', res?.data);
15
+ return {
16
+ list: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [],
17
+ total: (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.total) || 0
18
+ };
19
+ }).catch(function (error) {
20
+ console.error('API error:', error);
21
+ return {
22
+ list: [],
23
+ total: 0
24
+ };
25
+ });
26
+ };
27
+ var CustomerServiceToDoList = function CustomerServiceToDoList(props) {
28
+ var _ref, _data$list;
29
+ var shopUniqueKey = props.shopUniqueKey;
30
+ var dispatch = useAppDispatch();
31
+ var workOrderProcessStatus = useAppSelector(function (state) {
32
+ var _state$customizeWorkO;
33
+ return (_state$customizeWorkO = state.customizeWorkOrder) === null || _state$customizeWorkO === void 0 ? void 0 : _state$customizeWorkO.workOrderProcessStatus;
34
+ });
35
+ var containerRef = useRef(null);
36
+ var _useInfiniteScroll = useInfiniteScroll(function (d) {
37
+ var page = d ? Math.ceil(d.list.length / 10) + 1 : 1;
38
+ return getTableData({
39
+ pageNo: page,
40
+ pageSize: 10,
41
+ onlyWaitForMe: true,
42
+ onlyCount: false,
43
+ onlyStartNode: true,
44
+ flowTags: ['AI_BUILD'],
45
+ shopUniqueKeyList: [shopUniqueKey]
46
+ });
47
+ }, {
48
+ target: containerRef,
49
+ reloadDeps: [],
50
+ // 添加空的 reloadDeps 避免不必要的重新加载
51
+ isNoMore: function isNoMore(d) {
52
+ var _d$list;
53
+ return (d === null || d === void 0 ? void 0 : d.total) <= (d === null || d === void 0 ? void 0 : (_d$list = d.list) === null || _d$list === void 0 ? void 0 : _d$list.length);
54
+ }
55
+ }),
56
+ data = _useInfiniteScroll.data,
57
+ loading = _useInfiniteScroll.loading,
58
+ reload = _useInfiniteScroll.reload,
59
+ noMore = _useInfiniteScroll.noMore;
60
+ var handleProcess = function handleProcess(item) {
61
+ dispatch({
62
+ type: 'customizeWorkOrder/setCurrentCustomizeRecord',
63
+ payload: {
64
+ flowTemplateName: item === null || item === void 0 ? void 0 : item.flowTemplateName
65
+ }
66
+ });
67
+ dispatch({
68
+ type: 'customizeWorkOrder/setLogicFlowId',
69
+ payload: item.flowTemplateKey
70
+ });
71
+ dispatch({
72
+ type: 'customizeWorkOrder/setFlowWorkOrderId',
73
+ payload: item.flowWorkOrderId
74
+ });
75
+ dispatch({
76
+ type: 'customizeWorkOrder/setFormModalVisible',
77
+ payload: true
78
+ });
79
+ };
80
+ var onCancel = function onCancel() {
81
+ dispatch({
82
+ type: 'customizeWorkOrder/setCustomerServiceToDoListOpen',
83
+ payload: false
84
+ });
85
+ };
86
+ useEffect(function () {
87
+ reload();
88
+ }, []);
89
+ useEffect(function () {
90
+ if (['submit'].includes(workOrderProcessStatus)) {
91
+ reload();
92
+ dispatch(setWorkOrderProcessStatus(''));
93
+ }
94
+ }, [workOrderProcessStatus, dispatch]);
95
+ return /*#__PURE__*/React.createElement("div", {
96
+ className: styles.container,
97
+ onClick: onCancel
98
+ }, /*#__PURE__*/React.createElement("div", {
99
+ className: styles.todoSection,
100
+ onClick: function onClick(e) {
101
+ return e.stopPropagation();
102
+ }
103
+ }, /*#__PURE__*/React.createElement("div", {
104
+ className: styles.todoTabs
105
+ }, /*#__PURE__*/React.createElement(Badge, {
106
+ count: data === null || data === void 0 ? void 0 : data.total
107
+ }, /*#__PURE__*/React.createElement("div", {
108
+ className: styles.todoTab
109
+ }, "\u5BA2\u670D\u5F85\u529E")), /*#__PURE__*/React.createElement(CloseOutlined, {
110
+ onClick: onCancel
111
+ })), /*#__PURE__*/React.createElement("main", {
112
+ className: styles.todoList,
113
+ ref: containerRef
114
+ }, ((data === null || data === void 0 ? void 0 : data.list) || []).length > 0 ? /*#__PURE__*/React.createElement(Spin, {
115
+ spinning: loading
116
+ }, (_ref = (data === null || data === void 0 ? void 0 : data.list) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
117
+ var _item$jsonMap;
118
+ return /*#__PURE__*/React.createElement(Card, {
119
+ key: item.id,
120
+ className: "".concat(styles.todoItem),
121
+ bodyStyle: {
122
+ padding: '12px 16px'
123
+ }
124
+ }, /*#__PURE__*/React.createElement("div", {
125
+ className: styles.todoContent
126
+ }, /*#__PURE__*/React.createElement("div", {
127
+ className: styles.todoMain
128
+ }, /*#__PURE__*/React.createElement("div", {
129
+ className: styles.todoDescription
130
+ }, item.buyerNick ? "".concat(item.buyerNick, "\u6709\u4E00\u6761") : '', item === null || item === void 0 ? void 0 : (_item$jsonMap = item.jsonMap) === null || _item$jsonMap === void 0 ? void 0 : _item$jsonMap.scene, " \u5DE5\u5355\u9700\u8981\u5904\u7406\uFF0C\u8BF7\u53CA\u65F6\u5904\u7406"), /*#__PURE__*/React.createElement("div", {
131
+ className: styles.todoMeta
132
+ }, /*#__PURE__*/React.createElement("span", {
133
+ className: styles.timestamp
134
+ }, moment(item.created).format('YYYY-MM-DD HH:mm:ss')))), /*#__PURE__*/React.createElement("div", {
135
+ className: styles.todoAction
136
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tag, {
137
+ color: "blue",
138
+ className: styles.aiAction
139
+ }, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[item.flowStatus]))), /*#__PURE__*/React.createElement(Button, {
140
+ type: "primary",
141
+ size: "small",
142
+ ghost: true,
143
+ onClick: function onClick() {
144
+ return handleProcess(item);
145
+ }
146
+ }, "\u53BB\u5904\u7406"))));
147
+ })) : /*#__PURE__*/React.createElement("div", {
148
+ className: styles.todoEmpty
149
+ }, /*#__PURE__*/React.createElement(Empty, {
150
+ description: "\u6682\u65E0\u6570\u636E"
151
+ })), noMore && data !== null && data !== void 0 && (_data$list = data.list) !== null && _data$list !== void 0 && _data$list.length ? /*#__PURE__*/React.createElement("p", {
152
+ className: styles.todoNoMore
153
+ }, "\u6CA1\u6709\u66F4\u591A\u6570\u636E\u4E86") : null)));
154
+ };
155
+ export default CustomerServiceToDoList;
@@ -0,0 +1,134 @@
1
+ .container {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ background: rgba(0, 0, 0, 0.5);
8
+ z-index: 90;
9
+ }
10
+ .todoTabs {
11
+ display: flex;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ padding: 0 16px;
15
+ height: 45px;
16
+ .todoTab {
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ width: 90px;
21
+ height: 45px;
22
+ font-size: 16px;
23
+ font-weight: 500;
24
+ color: #1890ff;
25
+ border-bottom: 2px solid #1890ff;
26
+ }
27
+ }
28
+ .todoSection {
29
+ position: absolute;
30
+ bottom: 0;
31
+ left: 0;
32
+ right: 0;
33
+ width: 100%;
34
+ height: 80%;
35
+ background: #fff;
36
+
37
+ .todoList {
38
+ height: calc(100% - 50px);
39
+ overflow-y: auto;
40
+ background: #f0f0f0;
41
+ padding-top: 8px;
42
+ .todoItem {
43
+ margin-bottom: 8px;
44
+ border-radius: 6px;
45
+ transition: all 0.3s;
46
+
47
+ &:hover {
48
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
49
+ }
50
+
51
+ &.highlighted {
52
+ border: 2px dashed #ff4d4f;
53
+ background: #fff2f0;
54
+ }
55
+
56
+ .todoContent {
57
+ height: 90px;
58
+
59
+ .todoMain {
60
+ flex: 1;
61
+
62
+ .todoDescription {
63
+ display: -webkit-box;
64
+ -webkit-box-orient: vertical;
65
+ -webkit-line-clamp: 2;
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ white-space: normal;
69
+ height: 48px;
70
+ font-size: 14px;
71
+ font-weight: 500;
72
+ }
73
+
74
+ .todoMeta {
75
+ display: flex;
76
+ align-items: center;
77
+ gap: 12px;
78
+ flex-wrap: wrap;
79
+
80
+ .timestamp {
81
+ font-size: 12px;
82
+ color: #999;
83
+ }
84
+
85
+ .source {
86
+ font-size: 12px;
87
+ color: #666;
88
+ background: #f5f5f5;
89
+ padding: 2px 6px;
90
+ border-radius: 3px;
91
+ }
92
+
93
+ .aiAction {
94
+ font-size: 11px;
95
+ margin: 0;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ .todoEmpty {
102
+ display: flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ height: 100%;
106
+ }
107
+ .todoNoMore {
108
+ display: flex;
109
+ justify-content: center;
110
+ align-items: center;
111
+ height: 32px;
112
+ color: #999;
113
+ font-size: 14px;
114
+ }
115
+ }
116
+ }
117
+
118
+ // 响应式设计
119
+ @media (max-width: 768px) {
120
+ .filterOptions {
121
+ gap: 8px;
122
+ }
123
+
124
+ .todoContent {
125
+ flex-direction: column;
126
+ gap: 12px;
127
+
128
+ .todoAction {
129
+ width: 100%;
130
+ display: flex;
131
+ justify-content: space-between;
132
+ }
133
+ }
134
+ }
@@ -24,6 +24,7 @@ export var getFlowOperate = {
24
24
  MODIFY_WORK_ORDER: '修改',
25
25
  WITHDRAW: '撤回',
26
26
  REMINDER: '催单',
27
+ AI_BUILD: 'AI自动建单',
27
28
  CANCEL_REMINDER: '取消催单',
28
29
  AUTO_TASK_RETRY: '自动任务重试'
29
30
  };
@@ -43,7 +43,7 @@ import { jsonParseSecurity, findComponentUniqueKeyByType } from "../../../common
43
43
  import { NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE } from "../../constant";
44
44
  import { Context } from "../../context";
45
45
  import { orderBackKmAddress } from "./constants";
46
- import { onBlurExpressLogisticsCode, onBlurErpAfterSaleTradeId, onBlurSkxOutboundNoticeNo, onBlurSkxReturnBillNo, onBlurSkxLogisticsCode } from "./onBlur";
46
+ import { onBlurExpressLogisticsCode, onBlurErpAfterSaleTradeId, onBlurSkxOutboundNoticeNo, onBlurSkxReturnBillNo, onBlurSkxLogisticsCode, onBlurSkxReturnTHLogisticsCode } from "./onBlur";
47
47
  import { findAllDependencies } from "./component-dependency-finder";
48
48
  import { findValueDependencies } from "./value-mapping-finder";
49
49
  // 记录显隐触发隐藏的组件。显示后,重新出发一遍映射规则
@@ -936,7 +936,7 @@ var FormRender = function FormRender(props, ref) {
936
936
  setKmLoading: setKmLoading
937
937
  });
938
938
  case 3:
939
- _context6.next = 36;
939
+ _context6.next = 41;
940
940
  break;
941
941
  case 5:
942
942
  if (!(type === 'expressLogisticsCode')) {
@@ -964,7 +964,7 @@ var FormRender = function FormRender(props, ref) {
964
964
  componentOnBlur: componentOnBlur
965
965
  });
966
966
  case 11:
967
- _context6.next = 36;
967
+ _context6.next = 41;
968
968
  break;
969
969
  case 13:
970
970
  if (!(type === 'skxOutboundNoticeNo')) {
@@ -981,7 +981,7 @@ var FormRender = function FormRender(props, ref) {
981
981
  componentOnBlur: componentOnBlur
982
982
  });
983
983
  case 17:
984
- _context6.next = 36;
984
+ _context6.next = 41;
985
985
  break;
986
986
  case 19:
987
987
  if (!(type === 'skxReturnBillNo')) {
@@ -996,9 +996,24 @@ var FormRender = function FormRender(props, ref) {
996
996
  componentOnBlur: componentOnBlur
997
997
  });
998
998
  case 22:
999
- _context6.next = 36;
999
+ _context6.next = 41;
1000
1000
  break;
1001
1001
  case 24:
1002
+ if (!(type === 'skxReturnTHLogisticsCode')) {
1003
+ _context6.next = 29;
1004
+ break;
1005
+ }
1006
+ _context6.next = 27;
1007
+ return onBlurSkxReturnTHLogisticsCode({
1008
+ form: form,
1009
+ value: value,
1010
+ templateDetail: templateDetail,
1011
+ componentOnBlur: componentOnBlur
1012
+ });
1013
+ case 27:
1014
+ _context6.next = 41;
1015
+ break;
1016
+ case 29:
1002
1017
  // 收集所有需要执行的异步操作
1003
1018
  promises = [];
1004
1019
  if (type === 'tradeId') {
@@ -1010,7 +1025,7 @@ var FormRender = function FormRender(props, ref) {
1010
1025
  promises.push(handleChangeTradeId(value));
1011
1026
  }
1012
1027
  if (value) {
1013
- _context6.next = 31;
1028
+ _context6.next = 36;
1014
1029
  break;
1015
1030
  }
1016
1031
  setReplaceValue(function (prev) {
@@ -1021,18 +1036,18 @@ var FormRender = function FormRender(props, ref) {
1021
1036
  });
1022
1037
  replaceValueRef.current = _objectSpread(_objectSpread({}, replaceValue), {}, _defineProperty({}, type, 0));
1023
1038
  return _context6.abrupt("return");
1024
- case 31:
1039
+ case 36:
1025
1040
  promises.push(queryReplaceCount(_defineProperty({}, type, value), templateDetail));
1026
1041
  // TODO: ERP不走订单反弹逻辑
1027
1042
  if ((type === 'tradeId' || type === 'enterprisePaymentTid') && !isErpUse) {
1028
1043
  promises.push(changeHandle(value));
1029
1044
  }
1030
1045
  // 等待所有异步操作完成
1031
- _context6.next = 35;
1046
+ _context6.next = 40;
1032
1047
  return Promise.all(promises);
1033
- case 35:
1048
+ case 40:
1034
1049
  return _context6.abrupt("return", Promise.resolve());
1035
- case 36:
1050
+ case 41:
1036
1051
  case "end":
1037
1052
  return _context6.stop();
1038
1053
  }
@@ -1561,6 +1576,9 @@ var FormRender = function FormRender(props, ref) {
1561
1576
  }), /*#__PURE__*/React.createElement(Form.Item, {
1562
1577
  name: "fixed_field_buyerOpenUid",
1563
1578
  hidden: true
1579
+ }), /*#__PURE__*/React.createElement(Form.Item, {
1580
+ name: "skx_return_billNo_blur_from",
1581
+ hidden: true
1564
1582
  }), finalFormItems));
1565
1583
  };
1566
1584
  export default /*#__PURE__*/forwardRef(FormRender);
@@ -30,3 +30,9 @@ export declare const onBlurSkxLogisticsCode: ({ form, value, templateDetail, com
30
30
  templateDetail: any;
31
31
  componentOnBlur: (value: any, type: string) => Promise<void>;
32
32
  }) => Promise<void>;
33
+ export declare const onBlurSkxReturnTHLogisticsCode: ({ form, value, templateDetail, componentOnBlur, }: {
34
+ form: FormInstance;
35
+ value: string;
36
+ templateDetail: any;
37
+ componentOnBlur: (value: any, type: string) => Promise<void>;
38
+ }) => Promise<void>;
@@ -325,4 +325,70 @@ export var onBlurSkxLogisticsCode = /*#__PURE__*/function () {
325
325
  return function onBlurSkxLogisticsCode(_x7) {
326
326
  return _ref12.apply(this, arguments);
327
327
  };
328
+ }();
329
+ export var onBlurSkxReturnTHLogisticsCode = /*#__PURE__*/function () {
330
+ var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_ref14) {
331
+ var form, value, templateDetail, componentOnBlur, hasSkxReturnBillNoComponent;
332
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
333
+ while (1) switch (_context10.prev = _context10.next) {
334
+ case 0:
335
+ form = _ref14.form, value = _ref14.value, templateDetail = _ref14.templateDetail, componentOnBlur = _ref14.componentOnBlur;
336
+ if (value) {
337
+ _context10.next = 3;
338
+ break;
339
+ }
340
+ return _context10.abrupt("return");
341
+ case 3:
342
+ hasSkxReturnBillNoComponent = templateDetail.componentDtoList.some(function (item) {
343
+ return item.workOrderComponentType === 'SKX_RETURN_BILL_NO';
344
+ });
345
+ if (hasSkxReturnBillNoComponent) {
346
+ _context10.next = 6;
347
+ break;
348
+ }
349
+ return _context10.abrupt("return");
350
+ case 6:
351
+ _context10.next = 8;
352
+ return servers.SKX.queryReturnOrderDetailSingleton({
353
+ expressCode: value
354
+ }).then( /*#__PURE__*/function () {
355
+ var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(res) {
356
+ var _list$;
357
+ var data, list, oldValue, returnBillNo, blurPromise;
358
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
359
+ while (1) switch (_context9.prev = _context9.next) {
360
+ case 0:
361
+ data = res.data;
362
+ list = (data === null || data === void 0 ? void 0 : data.skqReturnOrderDetailInfoDtos) || [];
363
+ oldValue = form.getFieldValue('4487c6516b');
364
+ returnBillNo = (list === null || list === void 0 ? void 0 : list.length) === 1 ? (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.returnBillNo : ''; // 创建一个异步操作的Promise
365
+ blurPromise = componentOnBlur(returnBillNo, 'skxReturnBillNo'); // 等待异步操作完成后再执行setTimeout
366
+ _context9.next = 7;
367
+ return blurPromise;
368
+ case 7:
369
+ // // 所有异步操作完成后执行
370
+
371
+ form.setFieldsValue({
372
+ fe10d6f36b: returnBillNo,
373
+ '4487c6516b': oldValue
374
+ });
375
+ case 8:
376
+ case "end":
377
+ return _context9.stop();
378
+ }
379
+ }, _callee9);
380
+ }));
381
+ return function (_x10) {
382
+ return _ref16.apply(this, arguments);
383
+ };
384
+ }()).catch(console.debug);
385
+ case 8:
386
+ case "end":
387
+ return _context10.stop();
388
+ }
389
+ }, _callee10);
390
+ }));
391
+ return function onBlurSkxReturnTHLogisticsCode(_x9) {
392
+ return _ref15.apply(this, arguments);
393
+ };
328
394
  }();
@@ -18,7 +18,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
18
18
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
19
19
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  import React, { useEffect, useState, useRef, useMemo, useContext } from 'react';
21
- import { Timeline, ConfigProvider, Form, message, Alert, Button, Spin, Row, Col, Popover, Typography } from 'antd';
21
+ import { Timeline, ConfigProvider, Form, message, Alert, Button, Spin, Row, Col, Popover, Typography, Tag } from 'antd';
22
22
  import { InfoCircleOutlined } from '@ant-design/icons';
23
23
  import { get, find, isEmpty } from 'lodash';
24
24
  import { batch } from 'react-redux';
@@ -53,6 +53,7 @@ import "./index.less";
53
53
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
54
54
  import { PlatformAvatar } from '@kmkf-fe-packages/services-components';
55
55
  import { Provide, Context } from "./context";
56
+ import { WORK_ORDER_STATUS_AI_BUILD } from "../common/constant";
56
57
  import { useSelector } from "./context/useSelector";
57
58
  import { pollOperationResult } from "./pollOperationResult";
58
59
  import { pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
@@ -60,7 +61,7 @@ import { PlatForm } from "../WorkOrder/types";
60
61
  var Text = Typography.Text,
61
62
  Link = Typography.Link;
62
63
  var FlowTemplateDetail = function FlowTemplateDetail(props) {
63
- var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _shopList$find, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23, _currentNodeDetail$no24;
64
+ var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _shopList$find, _JSON$parse, _currentNodeDetail$wo30, _currentNodeDetail$wo31, _currentNodeDetail$wo32, _currentNodeDetail$wo33, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23, _currentNodeDetail$no24;
64
65
  var flowTemplateKey = props.flowTemplateKey,
65
66
  _props$shopList = props.shopList,
66
67
  shopList = _props$shopList === void 0 ? [] : _props$shopList,
@@ -1227,7 +1228,12 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1227
1228
  spinning: loading || orderBackLoading || orderBackKmLoading
1228
1229
  }, /*#__PURE__*/React.createElement("div", {
1229
1230
  className: "flowWorkOrderDetail"
1230
- }, flowWorkOrderId && /*#__PURE__*/React.createElement("div", null, [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
1231
+ }, flowWorkOrderId && /*#__PURE__*/React.createElement("div", {
1232
+ style: {
1233
+ display: 'flex',
1234
+ justifyContent: 'space-between'
1235
+ }
1236
+ }, /*#__PURE__*/React.createElement("div", null, [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
1231
1237
  type: shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopSource,
1232
1238
  styles: {
1233
1239
  marginRight: 5
@@ -1235,7 +1241,9 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1235
1241
  }), shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopName, "-"), /*#__PURE__*/React.createElement("span", null, flowWorkOrderId), /*#__PURE__*/React.createElement(Button, {
1236
1242
  type: "link",
1237
1243
  onClick: handleFollow
1238
- }, !follow ? '关注' : '已关注')), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
1244
+ }, !follow ? '关注' : '已关注')), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo30 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo30 === void 0 ? void 0 : (_currentNodeDetail$wo31 = _currentNodeDetail$wo30.jsonMap) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : _currentNodeDetail$wo31.flowTags) || '[]')) !== null && _JSON$parse !== void 0 && _JSON$parse.includes('AI_BUILD') ? /*#__PURE__*/React.createElement(Tag, {
1245
+ color: "blue"
1246
+ }, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo32 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : (_currentNodeDetail$wo33 = _currentNodeDetail$wo32.jsonMap) === null || _currentNodeDetail$wo33 === void 0 ? void 0 : _currentNodeDetail$wo33.flowStatus])) : null)), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
1239
1247
  justify: 'space-between',
1240
1248
  className: "header"
1241
1249
  }, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CustomerServiceToDoCard: (props: any) => React.JSX.Element;
3
+ export default CustomerServiceToDoCard;
@@ -0,0 +1,76 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React from 'react';
12
+ import { Image } from 'antd';
13
+ import { useEffect, useState } from 'react';
14
+ import { useAppDispatch, useAppSelector } from "../../../model/hooks";
15
+ import notificationIcon from "../../../common/imgs/notification.png";
16
+ import { nodeWorkOrderPending } from "../../../model/servers/api";
17
+ import styles from "./index.module.less";
18
+ var CustomerServiceToDoCard = function CustomerServiceToDoCard(props) {
19
+ var shopUniqueKey = props.shopUniqueKey;
20
+ var dispatch = useAppDispatch();
21
+ var _useState = useState(0),
22
+ _useState2 = _slicedToArray(_useState, 2),
23
+ number = _useState2[0],
24
+ setNumber = _useState2[1];
25
+ var customerServiceToDoListOpen = useAppSelector(function (state) {
26
+ var _state$customizeWorkO;
27
+ return (_state$customizeWorkO = state.customizeWorkOrder) === null || _state$customizeWorkO === void 0 ? void 0 : _state$customizeWorkO.customerServiceToDoListOpen;
28
+ });
29
+ var initHandle = /*#__PURE__*/function () {
30
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31
+ var _yield$nodeWorkOrderP, data;
32
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33
+ while (1) switch (_context.prev = _context.next) {
34
+ case 0:
35
+ _context.next = 2;
36
+ return nodeWorkOrderPending({
37
+ flowTags: ['AI_BUILD'],
38
+ onlyCount: true,
39
+ shopUniqueKeyList: [shopUniqueKey]
40
+ });
41
+ case 2:
42
+ _yield$nodeWorkOrderP = _context.sent;
43
+ data = _yield$nodeWorkOrderP.data;
44
+ setNumber((data === null || data === void 0 ? void 0 : data.total) || 0);
45
+ case 5:
46
+ case "end":
47
+ return _context.stop();
48
+ }
49
+ }, _callee);
50
+ }));
51
+ return function initHandle() {
52
+ return _ref.apply(this, arguments);
53
+ };
54
+ }();
55
+ useEffect(function () {
56
+ initHandle();
57
+ }, [customerServiceToDoListOpen]);
58
+ var sendMsgToTab = function sendMsgToTab() {
59
+ dispatch({
60
+ type: 'customizeWorkOrder/setCustomerServiceToDoListOpen',
61
+ payload: true
62
+ });
63
+ };
64
+ return /*#__PURE__*/React.createElement("div", {
65
+ className: styles.container,
66
+ onClick: sendMsgToTab
67
+ }, /*#__PURE__*/React.createElement(Image, {
68
+ src: notificationIcon,
69
+ width: 20,
70
+ height: 20,
71
+ preview: false
72
+ }), "\u5BA2\u670D\u5F85\u529E", /*#__PURE__*/React.createElement("span", {
73
+ className: styles.number
74
+ }, "(", number, ")"));
75
+ };
76
+ export default CustomerServiceToDoCard;
@@ -0,0 +1,20 @@
1
+ .container {
2
+ position: fixed;
3
+ right: 0px;
4
+ bottom: 30px;
5
+ z-index: 10;
6
+ display: flex;
7
+ justify-content: space-around;
8
+ align-items: center;
9
+ width: 120px;
10
+ height: 32px;
11
+ font-size: 12px;
12
+ font-weight: 600;
13
+ background-color: #fffbe6;
14
+ border: 1px solid #ffe5ba;
15
+ cursor: pointer;
16
+ color:#333;
17
+ .number {
18
+ color: #1890ff;
19
+ }
20
+ }
@@ -17,6 +17,7 @@ import { setFormModalVisible, setLogicFlowId, setFlowWorkOrderId, setCurrentCust
17
17
  import { queryPanelInfo } from "../../../../../model/flowTemplateDetail/api";
18
18
  import reject from "../../../../../common/imgs/reject.png";
19
19
  import reminder from "../../../../../common/imgs/reminder.png";
20
+ import ai from "../../../../../common/imgs/ai.png";
20
21
  import "./index.less";
21
22
  var FlowStatus = {
22
23
  WAIT_COMMIT: {
@@ -171,6 +172,11 @@ var CustomizeWorkOrderCard = function CustomizeWorkOrderCard(props) {
171
172
  style: {
172
173
  width: '20px'
173
174
  }
175
+ }), item.flowTags.includes('AI_BUILD') && /*#__PURE__*/React.createElement("img", {
176
+ src: ai,
177
+ style: {
178
+ width: '20px'
179
+ }
174
180
  })))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement("span", {
175
181
  className: "order_card_header_detail",
176
182
  onClick: function onClick() {
@@ -18,7 +18,7 @@ import { useInfiniteScroll, useRequest } from 'ahooks';
18
18
  import { last } from 'lodash';
19
19
  import moment from 'moment';
20
20
  import { useAppSelector, useAppDispatch } from "../../../model/hooks";
21
- import { fetchCompanyUserList, setFormModalVisible, setCurrentCustomizeRecord, setCurrentBuyerChecked, setLogicFlowId, setFlowWorkOrderId } from "../../../model/customizeWorkOrder";
21
+ import { fetchCompanyUserList, setFormModalVisible, setCurrentCustomizeRecord, setCurrentBuyerChecked, setLogicFlowId, setFlowWorkOrderId, setWorkOrderProcessStatus } from "../../../model/customizeWorkOrder";
22
22
  import { selectorCurrentBuyerChecked, selectorFormModalVisible, selectorCurrentCustomizeRecord, selectorLogicFlowId, selectorCompanyUserList, selectorFlowWorkOrderId } from "../../../model/customizeWorkOrder/selector";
23
23
  import { selectFlowList, selectFlowTemplateGroupWorkOrderTemplateList } from "../../../model/logicFlow/selector";
24
24
  import CustomizeWorkOrderCard from "./components/CustomizeWorkOrderCard/index";
@@ -97,6 +97,10 @@ var getTableData = function getTableData(_ref) {
97
97
  };
98
98
  var FlowOrderList = function FlowOrderList(props) {
99
99
  var _data$list;
100
+ var customerServiceToDoListOpen = useAppSelector(function (state) {
101
+ var _state$customizeWorkO;
102
+ return (_state$customizeWorkO = state.customizeWorkOrder) === null || _state$customizeWorkO === void 0 ? void 0 : _state$customizeWorkO.customerServiceToDoListOpen;
103
+ });
100
104
  var refValue = props.refValue,
101
105
  data = props.data,
102
106
  loading = props.loading,
@@ -107,7 +111,7 @@ var FlowOrderList = function FlowOrderList(props) {
107
111
  return /*#__PURE__*/React.createElement(Spin, {
108
112
  spinning: loading
109
113
  }, /*#__PURE__*/React.createElement("main", {
110
- className: "custom_box_main",
114
+ className: "custom_box_main ".concat(customerServiceToDoListOpen ? 'customer_service_to_do_list_open' : ''),
111
115
  style: {
112
116
  height: height
113
117
  },
@@ -449,6 +453,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
449
453
  dispatch(setFormModalVisible(true));
450
454
  };
451
455
  var onDealWorkOrderSuccess = function onDealWorkOrderSuccess(type) {
456
+ dispatch(setWorkOrderProcessStatus(type));
452
457
  if (['submit', 'forward', 'close', 'rejected'].includes(type)) {
453
458
  dispatch(setFormModalVisible(false));
454
459
  }
@@ -154,11 +154,12 @@
154
154
  }
155
155
 
156
156
  .custom_box_main {
157
- // margin-top: 8px;
158
- // margin-bottom: 40px;
159
- height: 500px;
157
+ height: 500px;
160
158
  overflow: auto;
161
159
  background-color: #fafafa;
160
+ &.customer_service_to_do_list_open {
161
+ overflow: hidden;
162
+ }
162
163
  }
163
164
 
164
165
  .custom_box_main_empty {
@@ -30,7 +30,10 @@ import OrderList from "./components/WorkOrderList";
30
30
  import Reminder from "./components/Reminder";
31
31
  import WdtTradeList from "../WdtTradeList";
32
32
  import PaymentWorkOrderList from "./components/PaymentWorkOrderList";
33
+ import CustomerServiceToDoList from "../CustomerServiceToDoList";
34
+ import CustomerServiceToDoCard from "./components/CustomerServiceToDoCard";
33
35
  import { getHashParams } from "../common/utils/tools";
36
+ import xzSDK from "../common/utils/xzSDK";
34
37
  import zhCN from 'antd/es/locale/zh_CN';
35
38
  import 'moment/locale/zh-cn';
36
39
  import { PlatForm } from "./types";
@@ -71,6 +74,10 @@ var WorkOrder = function WorkOrder(props) {
71
74
  var _state$customizeWorkO;
72
75
  return (_state$customizeWorkO = state.customizeWorkOrder) === null || _state$customizeWorkO === void 0 ? void 0 : _state$customizeWorkO.showPayment;
73
76
  });
77
+ var customerServiceToDoListOpen = useAppSelector(function (state) {
78
+ var _state$customizeWorkO2;
79
+ return (_state$customizeWorkO2 = state.customizeWorkOrder) === null || _state$customizeWorkO2 === void 0 ? void 0 : _state$customizeWorkO2.customerServiceToDoListOpen;
80
+ });
74
81
  var companyUserConfig = useAppSelector(function (state) {
75
82
  var _state$workOrder$user;
76
83
  return (_state$workOrder$user = state.workOrder.userInfo) === null || _state$workOrder$user === void 0 ? void 0 : _state$workOrder$user.companyUserConfig;
@@ -147,10 +154,13 @@ var WorkOrder = function WorkOrder(props) {
147
154
  });
148
155
  }, []);
149
156
  var initHandle = function initHandle() {
150
- // dispatch(fetchQueryGroupCustomTemplate());
151
157
  dispatch(fetchLogicFlowList);
152
158
  dispatch(fetchQueryCurrentCompanyUser());
153
159
  dispatch(showPayment);
160
+ //工单通AI智能工单功能,监听消息
161
+ if (platform === PlatForm.XIAOZHI) {
162
+ xzSDK.receiveTabMsg(dispatch);
163
+ }
154
164
  };
155
165
  //判断是否店铺是否授权
156
166
  useEffect(function () {
@@ -182,6 +192,12 @@ var WorkOrder = function WorkOrder(props) {
182
192
  }
183
193
  return opt;
184
194
  }, [isShowPayment, isShowWdt]);
195
+ var shopUniqueKey = useMemo(function () {
196
+ var _find;
197
+ return (_find = (shopList || []).find(function (item) {
198
+ return item.shopId === shopId;
199
+ })) === null || _find === void 0 ? void 0 : _find.uniqueKey;
200
+ }, [shopList, shopId]);
185
201
  var RenderInfo = function RenderInfo() {
186
202
  var _userInfo$featureGrou, _userInfo$featureGrou2;
187
203
  var loginOutHandle = function loginOutHandle() {
@@ -282,6 +298,10 @@ var WorkOrder = function WorkOrder(props) {
282
298
  onOpenWangWang: onOpenWangWang
283
299
  }), tabActive === 'wdt' && /*#__PURE__*/React.createElement(WdtTradeList, {
284
300
  version: ((_companyUserConfig2 = companyUserConfig) === null || _companyUserConfig2 === void 0 ? void 0 : (_companyUserConfig2$p = _companyUserConfig2.plugins) === null || _companyUserConfig2$p === void 0 ? void 0 : (_companyUserConfig2$p2 = _companyUserConfig2$p.wdt) === null || _companyUserConfig2$p2 === void 0 ? void 0 : _companyUserConfig2$p2.version) || ''
301
+ }), customerServiceToDoListOpen && /*#__PURE__*/React.createElement(CustomerServiceToDoList, {
302
+ shopUniqueKey: shopUniqueKey
303
+ }), [PlatForm.XIAOZHI].includes(platform) && (userInfo === null || userInfo === void 0 ? void 0 : userInfo.isAICreateOrder) && /*#__PURE__*/React.createElement(CustomerServiceToDoCard, {
304
+ shopUniqueKey: shopUniqueKey
285
305
  }))), !isEmpower && platform !== PlatForm.WEB && Reminder({
286
306
  callback: onEmpowerCallback
287
307
  }));
@@ -62,3 +62,8 @@ export declare const CHILD_FIELD_VALUE: {
62
62
  returnLogisticsCompany: string;
63
63
  returnLogisticsCode: string;
64
64
  };
65
+ export declare const WORK_ORDER_STATUS_AI_BUILD: {
66
+ WAITING: string;
67
+ STOPPING: string;
68
+ COMPLETED: string;
69
+ };
@@ -1,4 +1,4 @@
1
- var _WORK_ORDER_STATUS;
1
+ var _WORK_ORDER_STATUS, _WORK_ORDER_STATUS_AI;
2
2
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
4
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
@@ -85,4 +85,5 @@ export var CHILD_FIELD_VALUE = {
85
85
  expressLogisticsCode: 'order',
86
86
  returnLogisticsCompany: 'company',
87
87
  returnLogisticsCode: 'order'
88
- };
88
+ };
89
+ export var WORK_ORDER_STATUS_AI_BUILD = (_WORK_ORDER_STATUS_AI = {}, _defineProperty(_WORK_ORDER_STATUS_AI, WAITING, '暂存'), _defineProperty(_WORK_ORDER_STATUS_AI, STOPPING, '暂停'), _defineProperty(_WORK_ORDER_STATUS_AI, COMPLETED, '已提交'), _WORK_ORDER_STATUS_AI);
Binary file
@@ -262,9 +262,8 @@ export var orderBack = /*#__PURE__*/function () {
262
262
  // 子订单根据订单号/店铺获取
263
263
  OrderSubFormComponent = templateDetail.componentDtoList.find(function (item) {
264
264
  return item.workOrderComponentType === 'ORDER_SUBFORM';
265
- });
266
- if (OrderSubFormComponent) {
267
- console.log('44444');
265
+ }); // 对接平台才调用子订单退货平台接口
266
+ if (OrderSubFormComponent && JOIN_SHOP) {
268
267
  promise.push(servers.orderSubForm.getOrderSubFormDataAsync({
269
268
  orderNo: order_no,
270
269
  shopId: shopId
@@ -2,6 +2,7 @@ declare global {
2
2
  interface Window {
3
3
  invokerSDK?: (base64String: string, callback: (cmd: string, base64StringRes: string) => void) => void;
4
4
  replyTradeInfo?: (res: string) => void;
5
+ receiveTabMsg?: (msg: string) => void;
5
6
  }
6
7
  }
7
8
  declare const ware: {
@@ -128,5 +129,6 @@ declare const _default: {
128
129
  remark: string;
129
130
  } | undefined>;
130
131
  getTradeInfoByBuyerId: (buyerId: string | number) => Promise<JDTradesRes>;
132
+ receiveTabMsg: (dispatch: any) => void;
131
133
  };
132
134
  export default _default;
@@ -249,8 +249,52 @@ var getActiveUserTardeInfo = function getActiveUserTardeInfo(orderId) {
249
249
  }
250
250
  });
251
251
  };
252
+ var sendMsgToTab = function sendMsgToTab(dispatch) {
253
+ return function (msg) {
254
+ try {
255
+ var newMsg = base64ToJson(msg);
256
+ console.log('newMsg: ', newMsg);
257
+ // const newMsg = JSON.parse(msg);
258
+ if (newMsg.cmd === 'openCustomerServiceToDoCard') {
259
+ dispatch({
260
+ type: 'customizeWorkOrder/setCustomerServiceToDoListOpen',
261
+ payload: true
262
+ });
263
+ } else if (newMsg.cmd === 'openCustomerServiceToDoCardDetail') {
264
+ var _newMsg$param, _newMsg$param2, _newMsg$param3;
265
+ if (!(newMsg !== null && newMsg !== void 0 && newMsg.param)) {
266
+ return;
267
+ }
268
+ dispatch({
269
+ type: 'customizeWorkOrder/setCurrentCustomizeRecord',
270
+ payload: {
271
+ flowTemplateName: newMsg === null || newMsg === void 0 ? void 0 : (_newMsg$param = newMsg.param) === null || _newMsg$param === void 0 ? void 0 : _newMsg$param.flowTemplateName
272
+ }
273
+ });
274
+ dispatch({
275
+ type: 'customizeWorkOrder/setLogicFlowId',
276
+ payload: newMsg === null || newMsg === void 0 ? void 0 : (_newMsg$param2 = newMsg.param) === null || _newMsg$param2 === void 0 ? void 0 : _newMsg$param2.flowTemplateKey
277
+ });
278
+ dispatch({
279
+ type: 'customizeWorkOrder/setFlowWorkOrderId',
280
+ payload: newMsg === null || newMsg === void 0 ? void 0 : (_newMsg$param3 = newMsg.param) === null || _newMsg$param3 === void 0 ? void 0 : _newMsg$param3.flowWorkOrderId
281
+ });
282
+ dispatch({
283
+ type: 'customizeWorkOrder/setFormModalVisible',
284
+ payload: true
285
+ });
286
+ }
287
+ } catch (e) {
288
+ console.error('receiveTabMsg error: ', e);
289
+ }
290
+ };
291
+ };
292
+ var receiveTabMsg = function receiveTabMsg(dispatch) {
293
+ window.receiveTabMsg = sendMsgToTab(dispatch);
294
+ };
252
295
  export default {
253
296
  getActiveUser: getActiveUser,
254
297
  getActiveUserTardeInfo: getActiveUserTardeInfo,
255
- getTradeInfoByBuyerId: getTradeInfoByBuyerId
298
+ getTradeInfoByBuyerId: getTradeInfoByBuyerId,
299
+ receiveTabMsg: receiveTabMsg
256
300
  };
@@ -7,6 +7,7 @@ export { default as FlowWorkOrderDetailV2 } from './FlowTemplateDetailV2';
7
7
  export { default as TradeList } from './TradeList';
8
8
  export { default as WdtTradeList } from './WdtTradeList';
9
9
  export { default as FlowFormRender } from './FlowTemplateDetailV2/components/FormRender';
10
+ export { default as CustomerServiceToDoList } from './CustomerServiceToDoList';
10
11
  export * as utils from './common/utils/tools';
11
12
  export { default as submitDataTransOldFormat } from './common/utils/submitDataTransOldFormat';
12
13
  export * as arithmetic from './common/utils/arithmetic';
package/dist/esm/index.js CHANGED
@@ -17,6 +17,7 @@ export { default as FlowWorkOrderDetailV2 } from "./FlowTemplateDetailV2";
17
17
  export { default as TradeList } from "./TradeList";
18
18
  export { default as WdtTradeList } from "./WdtTradeList";
19
19
  export { default as FlowFormRender } from "./FlowTemplateDetailV2/components/FormRender";
20
+ export { default as CustomerServiceToDoList } from "./CustomerServiceToDoList";
20
21
  import * as _utils from "./common/utils/tools";
21
22
  export { _utils as utils };
22
23
  export { default as submitDataTransOldFormat } from "./common/utils/submitDataTransOldFormat";
@@ -18,6 +18,6 @@ export declare const fetchFlatWorkOrder: (params: any) => Promise<import("../ser
18
18
  * 查询所有工单下面的组件信息
19
19
  */
20
20
  export declare const showPayment: (dispatch: any) => Promise<void>;
21
- export declare const setDeleteCustomizeWorkOrderModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setDeleteCustomizeWorkOrderModalVisible">, setDealerModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setDealerModalVisible">, setCompanyUserList: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompanyUserListI[], "customizeWorkOrder/setCompanyUserList">, setSelectedUserList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "customizeWorkOrder/setSelectedUserList">, setStatusSelectModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setStatusSelectModalVisible">, setLogModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setLogModalVisible">, setFormModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setFormModalVisible">, setTemplateId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setTemplateId">, setLogicFlowId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setLogicFlowId">, setFlowWorkOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setFlowWorkOrderId">, setCustomizeFormShopId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setCustomizeFormShopId">, setCurrentCustomizeRecord: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "customizeWorkOrder/setCurrentCustomizeRecord">, setCurrentBuyerChecked: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setCurrentBuyerChecked">, setAllTemplateList: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentColumnsT[], "customizeWorkOrder/setAllTemplateList">, setRepeatModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setRepeatModalVisible">, setRepeatWorkOrderConditions: import("@reduxjs/toolkit").ActionCreatorWithPayload<ConditionsT, "customizeWorkOrder/setRepeatWorkOrderConditions">, setShowPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setShowPayment">;
21
+ export declare const setDeleteCustomizeWorkOrderModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setDeleteCustomizeWorkOrderModalVisible">, setDealerModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setDealerModalVisible">, setCompanyUserList: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompanyUserListI[], "customizeWorkOrder/setCompanyUserList">, setSelectedUserList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "customizeWorkOrder/setSelectedUserList">, setStatusSelectModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setStatusSelectModalVisible">, setLogModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setLogModalVisible">, setFormModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setFormModalVisible">, setTemplateId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setTemplateId">, setLogicFlowId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setLogicFlowId">, setFlowWorkOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setFlowWorkOrderId">, setCustomizeFormShopId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setCustomizeFormShopId">, setCurrentCustomizeRecord: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "customizeWorkOrder/setCurrentCustomizeRecord">, setCurrentBuyerChecked: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setCurrentBuyerChecked">, setAllTemplateList: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentColumnsT[], "customizeWorkOrder/setAllTemplateList">, setRepeatModalVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setRepeatModalVisible">, setRepeatWorkOrderConditions: import("@reduxjs/toolkit").ActionCreatorWithPayload<ConditionsT, "customizeWorkOrder/setRepeatWorkOrderConditions">, setShowPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setShowPayment">, setCustomerServiceToDoListOpen: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "customizeWorkOrder/setCustomerServiceToDoListOpen">, setWorkOrderProcessStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "customizeWorkOrder/setWorkOrderProcessStatus">;
22
22
  declare const _default: import("redux").Reducer<CustomizeWorkOrderState, import("redux").AnyAction>;
23
23
  export default _default;
@@ -37,7 +37,11 @@ export var initialState = {
37
37
  // 全部工单列表
38
38
  repeatWorkOrderVisible: false,
39
39
  repeatWorkOrderConditions: {},
40
- showPayment: true // 是否展示打款工单入口
40
+ showPayment: true,
41
+ // 是否展示打款工单入口
42
+ customerServiceToDoListOpen: false,
43
+ // 是否展示客服待办
44
+ workOrderProcessStatus: '' // 工单处理状态
41
45
  };
42
46
 
43
47
  /**
@@ -275,6 +279,14 @@ var slice = createSlice({
275
279
  state.formModalVisible = false;
276
280
  state.currentCustomizeRecord = {};
277
281
  state.repeatWorkOrderVisible = false;
282
+ },
283
+ setCustomerServiceToDoListOpen: function setCustomerServiceToDoListOpen(state, _ref23) {
284
+ var payload = _ref23.payload;
285
+ state.customerServiceToDoListOpen = payload;
286
+ },
287
+ setWorkOrderProcessStatus: function setWorkOrderProcessStatus(state, _ref24) {
288
+ var payload = _ref24.payload;
289
+ state.workOrderProcessStatus = payload;
278
290
  }
279
291
  }
280
292
  });
@@ -295,6 +307,8 @@ var _slice$actions = slice.actions,
295
307
  setAllTemplateList = _slice$actions.setAllTemplateList,
296
308
  setRepeatModalVisible = _slice$actions.setRepeatModalVisible,
297
309
  setRepeatWorkOrderConditions = _slice$actions.setRepeatWorkOrderConditions,
298
- setShowPayment = _slice$actions.setShowPayment;
299
- export { setDeleteCustomizeWorkOrderModalVisible, setDealerModalVisible, setCompanyUserList, setSelectedUserList, setStatusSelectModalVisible, setLogModalVisible, setFormModalVisible, setTemplateId, setLogicFlowId, setFlowWorkOrderId, setCustomizeFormShopId, setCurrentCustomizeRecord, setCurrentBuyerChecked, setAllTemplateList, setRepeatModalVisible, setRepeatWorkOrderConditions, setShowPayment };
310
+ setShowPayment = _slice$actions.setShowPayment,
311
+ setCustomerServiceToDoListOpen = _slice$actions.setCustomerServiceToDoListOpen,
312
+ setWorkOrderProcessStatus = _slice$actions.setWorkOrderProcessStatus;
313
+ export { setDeleteCustomizeWorkOrderModalVisible, setDealerModalVisible, setCompanyUserList, setSelectedUserList, setStatusSelectModalVisible, setLogModalVisible, setFormModalVisible, setTemplateId, setLogicFlowId, setFlowWorkOrderId, setCustomizeFormShopId, setCurrentCustomizeRecord, setCurrentBuyerChecked, setAllTemplateList, setRepeatModalVisible, setRepeatWorkOrderConditions, setShowPayment, setCustomerServiceToDoListOpen, setWorkOrderProcessStatus };
300
314
  export default slice.reducer;
@@ -34,6 +34,8 @@ export interface CustomizeWorkOrderState {
34
34
  repeatWorkOrderVisible: boolean;
35
35
  repeatWorkOrderConditions: ConditionsT;
36
36
  showPayment: boolean;
37
+ customerServiceToDoListOpen: boolean;
38
+ workOrderProcessStatus: string;
37
39
  }
38
40
  export interface ColumnsConfigI {
39
41
  show: boolean;
@@ -108,3 +108,4 @@ export declare const queryMemberLevel: (data: {
108
108
  export declare const queryShopByTid: (data: any) => Promise<any>;
109
109
  export declare const queryTidByOutSid: (data: any) => Promise<any>;
110
110
  export declare const skqOrderDetail: (data: any) => Promise<any>;
111
+ export declare const nodeWorkOrderPending: (data: any) => Promise<any>;
@@ -627,4 +627,12 @@ export var skqOrderDetail = function skqOrderDetail(data) {
627
627
  data: data,
628
628
  infoLevel: 'warning'
629
629
  });
630
+ };
631
+ //待处理节点工单(客服待办)
632
+ export var nodeWorkOrderPending = function nodeWorkOrderPending(data) {
633
+ return request({
634
+ url: '/qy/flow/workBench/nodeWorkOrder/pending',
635
+ method: 'post',
636
+ data: data
637
+ });
630
638
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.2.10",
3
+ "version": "2.2.11",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ant-design/icons": "^4.7.0",
35
- "@kmkf-fe-packages/basic-components": "2.2.10",
36
- "@kmkf-fe-packages/kmkf-utils": "2.2.10",
37
- "@kmkf-fe-packages/services-components": "2.2.10",
35
+ "@kmkf-fe-packages/basic-components": "2.2.11",
36
+ "@kmkf-fe-packages/kmkf-utils": "2.2.11",
37
+ "@kmkf-fe-packages/services-components": "2.2.11",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -73,7 +73,7 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "83e9ea0698aeb5557e811db03dce4299dc67981a",
76
+ "gitHead": "261c218e122cfda9b520a72c26a01ec6505f8fbd",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }