@kmkf-fe-packages/kmkf-work-order-service-component 1.15.1-alpha.0 → 1.16.2

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.
@@ -25,7 +25,7 @@ import React, { useState, useRef, useEffect, useMemo, forwardRef, useImperativeH
25
25
  import { ConfigProvider, Form, Space, Tag } from 'antd';
26
26
  import { useWhyDidYouUpdate } from 'ahooks';
27
27
  import zhCN from 'antd/es/locale/zh_CN';
28
- import { get, some, set, every, cloneDeep, isEmpty, intersection, throttle, groupBy } from 'lodash';
28
+ import { get, some, set, every, cloneDeep, isEmpty, intersection, throttle, groupBy, find } from 'lodash';
29
29
  import 'moment/locale/zh-cn';
30
30
  import { calcWorkOrderList, orderBack, getReplaceWarnValues, COMPONENT_MAP_NAME, EXCLUDE_REPLACE_TOP_COMPONENT,
31
31
  // 重复检验不需要展示在顶部的
@@ -813,6 +813,10 @@ var FormRender = function FormRender(props, ref) {
813
813
  //现支持子组件控制显隐,格式为${uniqueKey}_${type}与普通组件做区分
814
814
  var isChildField = item.leftValue.includes('_');
815
815
  var prefixId = isChildField ? (_item$leftValue$split = item.leftValue.split('_')) === null || _item$leftValue$split === void 0 ? void 0 : _item$leftValue$split[0] : item.leftValue;
816
+ // 将prefixId为userId转成shopId
817
+ if (prefixId === 'userId') {
818
+ prefixId = 'shopId';
819
+ }
816
820
  var childFieldType = isChildField ? (_item$leftValue$split2 = item.leftValue.split('_')) === null || _item$leftValue$split2 === void 0 ? void 0 : _item$leftValue$split2[1] : '';
817
821
  var dependenceDetail = getComponentDetailByFieldId(prefixId);
818
822
  if (isChildField && CHILD_FIELD_TYPE[childFieldType]) {
@@ -821,6 +825,12 @@ var FormRender = function FormRender(props, ref) {
821
825
  dependenceDetail = ((_dependenceDetail = dependenceDetail) === null || _dependenceDetail === void 0 ? void 0 : _dependenceDetail[childType]) || dependenceDetail;
822
826
  }
823
827
  var leftValue = getFieldValue(prefixId);
828
+ // 显隐条件中rightValue为shopUniqueKey form获取shopId需要转化后匹配
829
+ if (prefixId === 'shopId') {
830
+ leftValue = get(find(shopList, function (s) {
831
+ return s.shopId === leftValue;
832
+ }), 'accessToken', '');
833
+ }
824
834
  if (isChildField) {
825
835
  var _leftValue;
826
836
  leftValue = CHILD_FIELD_VALUE !== null && CHILD_FIELD_VALUE !== void 0 && CHILD_FIELD_VALUE[childFieldType] ? (_leftValue = leftValue) === null || _leftValue === void 0 ? void 0 : _leftValue[CHILD_FIELD_VALUE[childFieldType]] : '';
@@ -12,8 +12,6 @@ export declare const FLOW_STATUS_V2: {
12
12
  STOPPING: string;
13
13
  COMPLETED: string;
14
14
  CLOSED: string;
15
- FLOWING: string;
16
- RETURNING: string;
17
15
  };
18
16
  export declare const CANNOT_BACK_FILL: string[];
19
17
  export declare const verifyHandle: (data: any, componentDtoList: Array<any>) => {
@@ -49,9 +49,7 @@ export var FLOW_STATUS_V2 = {
49
49
  PROCESSING: '处理中',
50
50
  STOPPING: '暂停中',
51
51
  COMPLETED: '已完成',
52
- CLOSED: '已关闭',
53
- FLOWING: '流转中',
54
- RETURNING: '回退中'
52
+ CLOSED: '已关闭'
55
53
  };
56
54
  //不能回填的组件type
57
55
  export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE'];
@@ -10,7 +10,7 @@ var getActionMap = function getActionMap(nodeStatus, hasPreNode, flowType) {
10
10
  return flowType === FlowType.SINGLE_PAGE ? ['save', 'forward', 'close', 'stop', 'submit'] : ['forward', 'save', 'submit', 'close', 'stop'];
11
11
  } else if (nodeStatus === FlowStatus.STOPPING) {
12
12
  return ['open', 'close'];
13
- } else if ([FlowStatus.CLOSE, FlowStatus.COMPLETED, FlowStatus.RETURNING, FlowStatus.FLOWING].includes(nodeStatus)) {
13
+ } else if (nodeStatus === FlowStatus.CLOSE || nodeStatus === FlowStatus.COMPLETED) {
14
14
  return [];
15
15
  } else {
16
16
  return ['save', 'submit'];
@@ -29,12 +29,6 @@
29
29
  .PROCESSING {
30
30
  background-color: #FAAD14;
31
31
  }
32
- .FLOWING {
33
- background-color: #FAAD14;
34
- }
35
- .RETURNING {
36
- background-color: #FAAD14;
37
- }
38
32
  .STOPPING {
39
33
  background-color: #FF4D4F;
40
34
  }
@@ -650,6 +650,10 @@ var FormRender = function FormRender(props, ref) {
650
650
  //现支持子组件控制显隐,格式为${uniqueKey}_${type}与普通组件做区分
651
651
  var isChildField = item.leftValue.includes('_');
652
652
  var prefixId = isChildField ? (_item$leftValue$split = item.leftValue.split('_')) === null || _item$leftValue$split === void 0 ? void 0 : _item$leftValue$split[0] : item.leftValue;
653
+ // 将prefixId为userId转成shopId
654
+ if (prefixId === 'userId') {
655
+ prefixId = 'shopId';
656
+ }
653
657
  var childFieldType = isChildField ? (_item$leftValue$split2 = item.leftValue.split('_')) === null || _item$leftValue$split2 === void 0 ? void 0 : _item$leftValue$split2[1] : '';
654
658
  var dependenceDetail = getComponentDetailByFieldId(prefixId);
655
659
  if (isChildField && CHILD_FIELD_TYPE[childFieldType]) {
@@ -658,6 +662,12 @@ var FormRender = function FormRender(props, ref) {
658
662
  dependenceDetail = ((_dependenceDetail = dependenceDetail) === null || _dependenceDetail === void 0 ? void 0 : _dependenceDetail[childType]) || dependenceDetail;
659
663
  }
660
664
  var leftValue = getFieldValue(prefixId);
665
+ // 显隐条件中rightValue为shopUniqueKey form获取shopId需要转化后匹配
666
+ if (prefixId === 'shopId') {
667
+ leftValue = get(find(shopList, function (s) {
668
+ return s.shopId === leftValue;
669
+ }), 'accessToken', '');
670
+ }
661
671
  if (isChildField) {
662
672
  var _leftValue;
663
673
  leftValue = CHILD_FIELD_VALUE !== null && CHILD_FIELD_VALUE !== void 0 && CHILD_FIELD_VALUE[childFieldType] ? (_leftValue = leftValue) === null || _leftValue === void 0 ? void 0 : _leftValue[CHILD_FIELD_VALUE[childFieldType]] : '';
@@ -38,14 +38,6 @@ var FlowStatus = {
38
38
  CLOSED: {
39
39
  name: '已关闭',
40
40
  class: 'status_close'
41
- },
42
- FLOWING: {
43
- name: '流转中',
44
- class: 'status_handle'
45
- },
46
- RETURNING: {
47
- name: '回退中',
48
- class: 'status_handle'
49
41
  }
50
42
  };
51
43
  var CustomizeWorkOrderCard = function CustomizeWorkOrderCard(props) {
@@ -41,12 +41,6 @@ var workOrderStatus = [{
41
41
  }, {
42
42
  label: '已关闭',
43
43
  value: 'CLOSED'
44
- }, {
45
- label: '流转中',
46
- value: 'FLOWING'
47
- }, {
48
- label: '回退中',
49
- value: 'RETURNING'
50
44
  }];
51
45
  var getTableData = function getTableData(_ref) {
52
46
  var checkedBuyerId = _ref.checkedBuyerId,
@@ -875,9 +875,7 @@ export declare enum FlowStatus {
875
875
  PROCESSING = "PROCESSING",
876
876
  STOPPING = "STOPPING",
877
877
  COMPLETED = "COMPLETED",
878
- CLOSE = "CLOSED",
879
- FLOWING = "FLOWING",
880
- RETURNING = "RETURNING"
878
+ CLOSE = "CLOSED"
881
879
  }
882
880
  export declare enum FlowType {
883
881
  SINGLE_PAGE = "SINGLE_PAGE",
@@ -44,8 +44,6 @@ export var FlowStatus;
44
44
  FlowStatus["STOPPING"] = "STOPPING";
45
45
  FlowStatus["COMPLETED"] = "COMPLETED";
46
46
  FlowStatus["CLOSE"] = "CLOSED";
47
- FlowStatus["FLOWING"] = "FLOWING";
48
- FlowStatus["RETURNING"] = "RETURNING";
49
47
  })(FlowStatus || (FlowStatus = {}));
50
48
  export var FlowType;
51
49
  (function (FlowType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "1.15.1-alpha.0",
3
+ "version": "1.16.2",
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": "1.15.1-alpha.0",
36
- "@kmkf-fe-packages/kmkf-utils": "1.15.1-alpha.0",
37
- "@kmkf-fe-packages/services-components": "1.15.1-alpha.0",
35
+ "@kmkf-fe-packages/basic-components": "1.16.2",
36
+ "@kmkf-fe-packages/kmkf-utils": "1.16.2",
37
+ "@kmkf-fe-packages/services-components": "1.16.2",
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": "6f12b66e496625df688d9a617053b8ddec1d8e38",
76
+ "gitHead": "7325b1362937151eb0501ec04f90139c03cfbb25",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }