@kmkf-fe-packages/kmkf-work-order-service-component 1.0.2 → 1.0.3

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.
@@ -2,6 +2,7 @@ export declare const WAITING = "WAITING";
2
2
  export declare const HANDLING = "HANDLING";
3
3
  export declare const STOPPING = "STOPPING";
4
4
  export declare const COMPLETED = "COMPLETED";
5
+ export declare const INTELLIGENT_TYPE: string[];
5
6
  export declare const WORK_ORDER_STATUS: {
6
7
  WAITING: {
7
8
  label: string;
@@ -7,6 +7,7 @@ export var WAITING = 'WAITING';
7
7
  export var HANDLING = 'HANDLING';
8
8
  export var STOPPING = 'STOPPING';
9
9
  export var COMPLETED = 'COMPLETED';
10
+ export var INTELLIGENT_TYPE = ['INTELLIGENT_LOGISTICS_INTERCEPTION', 'INTELLIGENT_LOGISTICS_WARNING'];
10
11
  export var WORK_ORDER_STATUS = (_WORK_ORDER_STATUS = {}, _defineProperty(_WORK_ORDER_STATUS, WAITING, {
11
12
  label: '待处理',
12
13
  color: '',
@@ -286,7 +286,7 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
286
286
  if (interceptCompany && !ExpressData.getInstance().getExpressNameByCode(interceptCompany, false)) {
287
287
  needTransForm = true;
288
288
  }
289
- var interceptValuesMap = ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot'];
289
+ var interceptValuesMap = ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus'];
290
290
  interceptValuesMap.forEach(function (t) {
291
291
  contentVoList.push({
292
292
  uniqueKey: "".concat(item.uniqueKey, "_").concat(t),
@@ -1295,7 +1295,8 @@ var transDataSource = function transDataSource(templateColumns) {
1295
1295
  interceptReceiverMobile: item.jsonMap["".concat(nex.uniqueKey, "_interceptReceiverMobile")],
1296
1296
  interceptLogisticsStatus: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsStatus")],
1297
1297
  interceptLogisticsStatusOther: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsStatusOther")],
1298
- interceptLogisticsSnapshot: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsSnapshot")]
1298
+ interceptLogisticsSnapshot: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsSnapshot")],
1299
+ qySelfInterceptLogisticsStatus: item.jsonMap["".concat(nex.uniqueKey, "_qySelfInterceptLogisticsStatus")]
1299
1300
  }));
1300
1301
  } else if (nex.workOrderComponentType === 'LOGISTICS_INTERCEPTION_MORE') {
1301
1302
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_logisticsInterceptList")], [{}])));
@@ -1,7 +1,7 @@
1
1
  import { LogicFlowState, LogicFlow, Option } from './types';
2
2
  export declare const initialState: LogicFlowState;
3
3
  /**
4
- * 查询所有工单下面的组件信息
4
+ * 查询所有工单下面的组件信息,过滤智能工单
5
5
  */
6
6
  export declare const fetchLogicFlowList: (dispatch: any) => Promise<void>;
7
7
  export declare const setLogicFlowList: import("@reduxjs/toolkit").ActionCreatorWithPayload<LogicFlow[], "logicFlow/setLogicFlowList">, setGroupLogicFlowList: import("@reduxjs/toolkit").ActionCreatorWithPayload<Option[], "logicFlow/setGroupLogicFlowList">, setFlowTemplateGroupWorkOrderTemplateList: import("@reduxjs/toolkit").ActionCreatorWithPayload<Option[], "logicFlow/setFlowTemplateGroupWorkOrderTemplateList">;
@@ -11,6 +11,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
11
11
  */
12
12
  import { createSlice } from '@reduxjs/toolkit';
13
13
  import { queryLogicFlowList } from "./api";
14
+ import { INTELLIGENT_TYPE } from "../../common/constant";
14
15
  export var initialState = {
15
16
  list: [],
16
17
  // 流程列表
@@ -20,7 +21,7 @@ export var initialState = {
20
21
  };
21
22
 
22
23
  /**
23
- * 查询所有工单下面的组件信息
24
+ * 查询所有工单下面的组件信息,过滤智能工单
24
25
  */
25
26
  export var fetchLogicFlowList = /*#__PURE__*/function () {
26
27
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch) {
@@ -40,7 +41,7 @@ export var fetchLogicFlowList = /*#__PURE__*/function () {
40
41
  if (((_nxt$flowTemplates = nxt.flowTemplates) === null || _nxt$flowTemplates === void 0 ? void 0 : _nxt$flowTemplates.length) > 0) {
41
42
  var _nxt$flowTemplates2, _nxt$flowTemplates2$f;
42
43
  cur = cur.concat((_nxt$flowTemplates2 = nxt.flowTemplates) === null || _nxt$flowTemplates2 === void 0 ? void 0 : (_nxt$flowTemplates2$f = _nxt$flowTemplates2.filter(function (t) {
43
- return t.enable && t.isShowClient;
44
+ return t.enable && t.isShowClient && !INTELLIGENT_TYPE.includes(t.type);
44
45
  })) === null || _nxt$flowTemplates2$f === void 0 ? void 0 : _nxt$flowTemplates2$f.map(function (template) {
45
46
  return {
46
47
  id: template.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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.0.0",
36
- "@kmkf-fe-packages/kmkf-utils": "^1.0.0",
37
- "@kmkf-fe-packages/services-components": "^1.0.0",
35
+ "@kmkf-fe-packages/basic-components": "^1.0.3",
36
+ "@kmkf-fe-packages/kmkf-utils": "^1.0.3",
37
+ "@kmkf-fe-packages/services-components": "^1.0.3",
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": "54173aeb0947642595d098bff2526c29ccb5a54f",
76
+ "gitHead": "db3f4dcdeeebdd482f38d71184ecb11c91706e17",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }