@kmkf-fe-packages/kmkf-work-order-service-component 0.13.4 → 0.14.1-alpha.0

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.
@@ -11,6 +11,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React from 'react';
12
12
  import { Modal, Form, Input } from 'antd';
13
13
  import { useSelector, useDispatch } from 'react-redux';
14
+ import { ApaasUploadAsync } from '@kmkf-fe-packages/basic-components';
14
15
  import { selectCurrentAction } from "../../../model/flowTemplateDetail/selector";
15
16
  import { setAction } from "../../../model/flowTemplateDetail";
16
17
  var TextArea = Input.TextArea;
@@ -71,6 +72,13 @@ var CloseModal = function CloseModal(_ref) {
71
72
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9",
72
73
  showCount: true,
73
74
  maxLength: 200
75
+ })), /*#__PURE__*/React.createElement(Form.Item, {
76
+ label: "\u56FE\u7247",
77
+ name: "imgList"
78
+ }, /*#__PURE__*/React.createElement(ApaasUploadAsync, {
79
+ maxCount: 5,
80
+ uniqueKey: "remark",
81
+ hostUrl: "https://kefu.kuaimai.com"
74
82
  })))));
75
83
  };
76
84
  export default CloseModal;
@@ -12,6 +12,7 @@ import React, { useEffect } from 'react';
12
12
  import { Modal, Form, Select, Input, Spin } from 'antd';
13
13
  import { useSelector, useDispatch } from 'react-redux';
14
14
  import { useRequest } from 'ahooks';
15
+ import { ApaasUploadAsync } from '@kmkf-fe-packages/basic-components';
15
16
  import { queryMultiNodeAssistantInfo } from "../../../model/flowTemplateDetail/api";
16
17
  import { selectCurrentAction } from "../../../model/flowTemplateDetail/selector";
17
18
  import { setAction } from "../../../model/flowTemplateDetail";
@@ -107,6 +108,13 @@ var ForWardModal = function ForWardModal(_ref) {
107
108
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9",
108
109
  showCount: true,
109
110
  maxLength: 200
111
+ })), /*#__PURE__*/React.createElement(Form.Item, {
112
+ label: "\u56FE\u7247",
113
+ name: "imgList"
114
+ }, /*#__PURE__*/React.createElement(ApaasUploadAsync, {
115
+ maxCount: 5,
116
+ uniqueKey: "remark",
117
+ hostUrl: "https://kefu.kuaimai.com"
110
118
  })))));
111
119
  };
112
120
  export default ForWardModal;
@@ -11,6 +11,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React from 'react';
12
12
  import { Modal, Form, Input } from 'antd';
13
13
  import { useSelector, useDispatch } from 'react-redux';
14
+ import { ApaasUploadAsync } from '@kmkf-fe-packages/basic-components';
14
15
  import { selectCurrentAction } from "../../../model/flowTemplateDetail/selector";
15
16
  import { setAction } from "../../../model/flowTemplateDetail";
16
17
  var TextArea = Input.TextArea;
@@ -72,6 +73,13 @@ var RejectedModal = function RejectedModal(_ref) {
72
73
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9",
73
74
  showCount: true,
74
75
  maxLength: 200
76
+ })), /*#__PURE__*/React.createElement(Form.Item, {
77
+ label: "\u56FE\u7247",
78
+ name: "imgList"
79
+ }, /*#__PURE__*/React.createElement(ApaasUploadAsync, {
80
+ maxCount: 5,
81
+ uniqueKey: "remark",
82
+ hostUrl: "https://kefu.kuaimai.com"
75
83
  })))));
76
84
  };
77
85
  export default RejectedModal;
@@ -13,7 +13,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
13
13
  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; } }
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import React, { useEffect, useState } from 'react';
16
- import { Modal, Timeline } from 'antd';
16
+ import { Modal, Timeline, Image } from 'antd';
17
17
  import { useSelector, useDispatch } from 'react-redux';
18
18
  import { cloneDeep } from 'lodash';
19
19
  import { selectVisibleRemarkList, selectRemarkRecordList } from "../../../model/flowTemplateDetail/selector";
@@ -29,7 +29,8 @@ var Record = function Record(props) {
29
29
  operatorType = props.operatorType,
30
30
  nodeName = props.nodeName,
31
31
  workOrderUpdateLog = props.workOrderUpdateLog,
32
- componentDtoList = props.componentDtoList;
32
+ componentDtoList = props.componentDtoList,
33
+ imgList = props.imgList;
33
34
  return /*#__PURE__*/React.createElement("div", {
34
35
  className: styles.remarkContext
35
36
  }, /*#__PURE__*/React.createElement("div", {
@@ -42,7 +43,13 @@ var Record = function Record(props) {
42
43
  className: styles.tag
43
44
  }, getFlowOperate === null || getFlowOperate === void 0 ? void 0 : getFlowOperate[operatorType]))), /*#__PURE__*/React.createElement("div", null, "\u8282\u70B9\uFF1A", nodeName), /*#__PURE__*/React.createElement("div", {
44
45
  className: styles.context
45
- }, context), workOrderUpdateLog ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OperationLog, {
46
+ }, /*#__PURE__*/React.createElement("div", null, context), /*#__PURE__*/React.createElement("div", null, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
47
+ return /*#__PURE__*/React.createElement(Image, {
48
+ width: 40,
49
+ height: 40,
50
+ src: "https://kefu.kuaimai.com/".concat(item)
51
+ });
52
+ }))), workOrderUpdateLog ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OperationLog, {
46
53
  content: workOrderUpdateLog.content,
47
54
  operation: workOrderUpdateLog.operation,
48
55
  componentDtoList: componentDtoList
@@ -16,6 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React from 'react';
17
17
  import { Modal, Form, Input } from 'antd';
18
18
  import { useSelector, useDispatch } from 'react-redux';
19
+ import { ApaasUploadAsync } from '@kmkf-fe-packages/basic-components';
19
20
  import { selectAddRemarkVisible } from "../../../model/flowTemplateDetail/selector";
20
21
  import { setAddRemarkVisible } from "../../../model/flowTemplateDetail";
21
22
  var TextArea = Input.TextArea;
@@ -80,6 +81,13 @@ var RemarkModal = function RemarkModal(_ref) {
80
81
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9",
81
82
  showCount: true,
82
83
  maxLength: 200
84
+ })), /*#__PURE__*/React.createElement(Form.Item, {
85
+ label: "\u56FE\u7247",
86
+ name: "imgList"
87
+ }, /*#__PURE__*/React.createElement(ApaasUploadAsync, {
88
+ maxCount: 5,
89
+ uniqueKey: "remark",
90
+ hostUrl: "https://kefu.kuaimai.com"
83
91
  })))));
84
92
  };
85
93
  export default RemarkModal;
@@ -3,6 +3,7 @@ interface RemarkShowProps {
3
3
  time: string;
4
4
  operator: string;
5
5
  context: string;
6
+ imgList: Array<string>;
6
7
  operatorType: string;
7
8
  handleOpenRemarkList: () => void;
8
9
  handleOpenAddRemark: () => void;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Image } from 'antd';
2
3
  import { getFlowOperate } from "../../common";
3
4
  import styles from "./index.module.less";
4
5
  var RemarkShow = function RemarkShow(props) {
@@ -7,7 +8,8 @@ var RemarkShow = function RemarkShow(props) {
7
8
  context = props.context,
8
9
  operatorType = props.operatorType,
9
10
  handleOpenRemarkList = props.handleOpenRemarkList,
10
- handleOpenAddRemark = props.handleOpenAddRemark;
11
+ handleOpenAddRemark = props.handleOpenAddRemark,
12
+ imgList = props.imgList;
11
13
  return /*#__PURE__*/React.createElement("div", {
12
14
  className: styles.remarkContext
13
15
  }, /*#__PURE__*/React.createElement("div", {
@@ -26,6 +28,12 @@ var RemarkShow = function RemarkShow(props) {
26
28
  onClick: handleOpenRemarkList
27
29
  }, "\u8BB0\u5F55"))), /*#__PURE__*/React.createElement("div", {
28
30
  className: styles.context
29
- }, context));
31
+ }, /*#__PURE__*/React.createElement("span", null, context), /*#__PURE__*/React.createElement(React.Fragment, null, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
32
+ return /*#__PURE__*/React.createElement(Image, {
33
+ width: 20,
34
+ height: 20,
35
+ src: "https://kefu.kuaimai.com/".concat(item)
36
+ });
37
+ }))));
30
38
  };
31
39
  export default RemarkShow;
@@ -11,6 +11,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React from 'react';
12
12
  import { Modal, Form, Input } from 'antd';
13
13
  import { useSelector, useDispatch } from 'react-redux';
14
+ import { ApaasUploadAsync } from '@kmkf-fe-packages/basic-components';
14
15
  import { selectCurrentAction } from "../../../model/flowTemplateDetail/selector";
15
16
  import { setAction } from "../../../model/flowTemplateDetail";
16
17
  var TextArea = Input.TextArea;
@@ -71,6 +72,13 @@ var StopModal = function StopModal(_ref) {
71
72
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9",
72
73
  showCount: true,
73
74
  maxLength: 200
75
+ })), /*#__PURE__*/React.createElement(Form.Item, {
76
+ label: "\u56FE\u7247",
77
+ name: "imgList"
78
+ }, /*#__PURE__*/React.createElement(ApaasUploadAsync, {
79
+ maxCount: 5,
80
+ uniqueKey: "remark",
81
+ hostUrl: "https://kefu.kuaimai.com"
74
82
  })))));
75
83
  };
76
84
  export default StopModal;
@@ -11,6 +11,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React from 'react';
12
12
  import { Modal, Form, Input } from 'antd';
13
13
  import { useSelector, useDispatch } from 'react-redux';
14
+ import { ApaasUploadAsync } from '@kmkf-fe-packages/basic-components';
14
15
  import { selectCurrentAction } from "../../../model/flowTemplateDetail/selector";
15
16
  import { setAction } from "../../../model/flowTemplateDetail";
16
17
  var TextArea = Input.TextArea;
@@ -71,6 +72,13 @@ var WithdrawModal = function WithdrawModal(_ref) {
71
72
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9",
72
73
  showCount: true,
73
74
  maxLength: 200
75
+ })), /*#__PURE__*/React.createElement(Form.Item, {
76
+ label: "\u56FE\u7247",
77
+ name: "imgList"
78
+ }, /*#__PURE__*/React.createElement(ApaasUploadAsync, {
79
+ maxCount: 5,
80
+ uniqueKey: "remark",
81
+ hostUrl: "https://kefu.kuaimai.com"
74
82
  })))));
75
83
  };
76
84
  export default WithdrawModal;
@@ -204,8 +204,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
204
204
  }
205
205
  return _context.abrupt("return");
206
206
  case 3:
207
- saveRequestLock.current = true;
208
207
  dispatch(setLoading(true));
208
+ saveRequestLock.current = true;
209
209
  update = !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && currentNodeDetail.workOrder); // 如果workOrder有值的情况下,表示我们是更新操作
210
210
  formData = form.getFieldsValue();
211
211
  if (formData.shopId) {
@@ -337,8 +337,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
337
337
  }
338
338
  return _context3.abrupt("return");
339
339
  case 3:
340
- submitRequestLock.current = true;
341
340
  dispatch(setLoading(true));
341
+ submitRequestLock.current = true;
342
342
  _context3.next = 7;
343
343
  return form.validateFields();
344
344
  case 7:
@@ -156,7 +156,8 @@ export var fetchAllFlowOperateRecord = function fetchAllFlowOperateRecord(params
156
156
  time: (item === null || item === void 0 ? void 0 : item.created) || '',
157
157
  operator: (item === null || item === void 0 ? void 0 : item.operator) || '',
158
158
  context: (item === null || item === void 0 ? void 0 : item.remark) || '',
159
- operatorType: (item === null || item === void 0 ? void 0 : item.flowOperateType) || ''
159
+ operatorType: (item === null || item === void 0 ? void 0 : item.flowOperateType) || '',
160
+ imgList: (item === null || item === void 0 ? void 0 : item.imgList) || []
160
161
  });
161
162
  });
162
163
  dispatch(setRemarkList(list || []));
@@ -13,6 +13,7 @@ export interface Remark {
13
13
  operator: string;
14
14
  context: string;
15
15
  operatorType: string;
16
+ imgList: Array<string>;
16
17
  }
17
18
  export interface PlatFormInfo {
18
19
  orderNo?: string;
@@ -905,6 +906,10 @@ export interface QyFlowOperateQueryAllFlowOperateRecordResponse {
905
906
  * 备注
906
907
  */
907
908
  remark?: string;
909
+ /**
910
+ * 图片
911
+ */
912
+ imgList?: Array<string>;
908
913
  /**
909
914
  * 版本号
910
915
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "0.13.4",
3
+ "version": "0.14.1-alpha.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  "@ant-design/icons": "^4.7.0",
35
35
  "@kmkf-fe-packages/basic-components": "^0.13.1",
36
36
  "@kmkf-fe-packages/kmkf-utils": "^0.13.1",
37
- "@kmkf-fe-packages/services-components": "^0.13.4",
37
+ "@kmkf-fe-packages/services-components": "^0.13.1",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -72,7 +72,7 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "5ef9b18db93747fb181dc267abd06e9dfb14959b",
75
+ "gitHead": "8861f047ac0d4b4705231f0fdc11464f82a2ca00",
76
76
  "gitHooks": {
77
77
  "pre-commit": "lint-staged"
78
78
  }