@kmkf-fe-packages/kmkf-work-order-service-component 2.2.4 → 2.2.6

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 (43) hide show
  1. package/dist/esm/common/utils/constant.js +4 -2
  2. package/dist/esm/common/utils/submitDataTransOldFormat.js +97 -67
  3. package/dist/esm/common/utils/tools.js +62 -39
  4. package/dist/esm/common/utils/transformWorkOrderData.js +43 -18
  5. package/dist/esm/model/logicFlow/selector.d.ts +3 -0
  6. package/dist/esm/model/paymentWorkOrder/selector.d.ts +9 -0
  7. package/dist/esm/model/servers/api.d.ts +1 -0
  8. package/dist/esm/model/servers/api.js +10 -0
  9. package/dist/esm/model/singleShopWorkOrder/selector.d.ts +5 -0
  10. package/package.json +5 -5
  11. package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  12. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  13. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  14. package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +0 -899
  15. package/dist/esm/common/utils/dist/tools.js +0 -1326
  16. package/dist/esm/common/utils/dist/transformWorkOrderData.js +0 -965
  17. package/dist/esm/model/customizeWorkOrder/dist/api.js +0 -48
  18. package/dist/esm/model/customizeWorkOrder/dist/index.js +0 -370
  19. package/dist/esm/model/customizeWorkOrder/dist/selector.js +0 -63
  20. package/dist/esm/model/customizeWorkOrder/dist/types.js +0 -3
  21. package/dist/esm/model/dist/global.js +0 -44
  22. package/dist/esm/model/dist/hooks.js +0 -15
  23. package/dist/esm/model/dist/login.js +0 -245
  24. package/dist/esm/model/dist/store.js +0 -30
  25. package/dist/esm/model/dist/userData.js +0 -41
  26. package/dist/esm/model/dist/workOrder.js +0 -329
  27. package/dist/esm/model/flowTemplateDetail/dist/api.js +0 -192
  28. package/dist/esm/model/flowTemplateDetail/dist/types.js +0 -48
  29. package/dist/esm/model/logicFlow/dist/api.js +0 -14
  30. package/dist/esm/model/logicFlow/dist/index.js +0 -235
  31. package/dist/esm/model/logicFlow/dist/selector.js +0 -18
  32. package/dist/esm/model/logicFlow/dist/types.js +0 -3
  33. package/dist/esm/model/paymentWorkOrder/dist/index.js +0 -77
  34. package/dist/esm/model/paymentWorkOrder/dist/selector.js +0 -36
  35. package/dist/esm/model/paymentWorkOrder/dist/types.js +0 -3
  36. package/dist/esm/model/servers/dist/api.js +0 -545
  37. package/dist/esm/model/servers/dist/request.js +0 -63
  38. package/dist/esm/model/singleShopWorkOrder/dist/index.js +0 -216
  39. package/dist/esm/model/singleShopWorkOrder/dist/selector.js +0 -24
  40. package/dist/esm/model/singleShopWorkOrder/dist/types.js +0 -3
  41. package/dist/esm/model/types/dist/login.js +0 -3
  42. package/dist/esm/model/types/dist/singleWorkOrder.js +0 -3
  43. package/dist/esm/model/types/dist/workOrder.js +0 -3
@@ -213,22 +213,40 @@ var processSubForm = function processSubForm(getValue) {
213
213
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_productList")), []));
214
214
  };
215
215
  };
216
+ var processOrderSubForm = function processOrderSubForm(templateColumns) {
217
+ return function (getValue) {
218
+ return function (nex, config) {
219
+ var _values = {
220
+ subOrderList: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_subOrderList")), [])
221
+ };
222
+ var orderNo = '';
223
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
224
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
225
+ });
226
+ if (tradeId) {
227
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
228
+ }
229
+ _values.orderNo = orderNo;
230
+ return _defineProperty({}, nex.uniqueKey, _values);
231
+ };
232
+ };
233
+ };
216
234
  var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
217
235
  return function (nex, config) {
218
- var _ref23;
219
- return _ref23 = {}, _defineProperty(_ref23, nex.uniqueKey, {
236
+ var _ref24;
237
+ return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
220
238
  company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
221
239
  order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
222
- }), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref23;
240
+ }), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref24;
223
241
  };
224
242
  };
225
243
  var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
226
244
  return function (nex, config) {
227
- var _ref24;
228
- return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
245
+ var _ref25;
246
+ return _ref25 = {}, _defineProperty(_ref25, nex.uniqueKey, {
229
247
  company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
230
248
  order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
231
- }), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref24;
249
+ }), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref25;
232
250
  };
233
251
  };
234
252
  var processRemarkInput = function processRemarkInput(getValue) {
@@ -243,25 +261,25 @@ var processRemarkInput = function processRemarkInput(getValue) {
243
261
  };
244
262
  var processStatus = function processStatus(getValue) {
245
263
  return function (nex, config) {
246
- var _ref26;
264
+ var _ref27;
247
265
  var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
248
- return _ref26 = {}, _defineProperty(_ref26, nex.uniqueKey, {
266
+ return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
249
267
  status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
250
268
  customerService: jsonParseSecurity(customerService, customerService)
251
- }), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref26;
269
+ }), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref27;
252
270
  };
253
271
  };
254
272
  var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
255
273
  return function (nex, config) {
256
- var _ref27;
274
+ var _ref28;
257
275
  var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
258
276
  var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
259
277
  var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
260
- return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
278
+ return _ref28 = {}, _defineProperty(_ref28, nex.uniqueKey, {
261
279
  ordinaryMoney: ordinaryMoney,
262
280
  ordinarySerial: ordinarySerial,
263
281
  ordinaryTaitou: ordinaryTaitou
264
- }), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref27;
282
+ }), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref28;
265
283
  };
266
284
  };
267
285
  var processLogisticsInterception = function processLogisticsInterception(getValue) {
@@ -318,12 +336,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
318
336
  };
319
337
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
320
338
  return function (nex, config) {
321
- var _ref34;
339
+ var _ref35;
322
340
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
323
341
  var map = subFields.reduce(function (cur, nxt) {
324
342
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
325
343
  }, {});
326
- return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
344
+ return _ref35 = {}, _defineProperty(_ref35, nex.uniqueKey, map), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref35, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref35;
327
345
  };
328
346
  };
329
347
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -811,6 +829,11 @@ var processOrderType = function processOrderType(getValue) {
811
829
  return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
812
830
  };
813
831
  };
832
+ var processErpOrderStatus = function processErpOrderStatus(getValue) {
833
+ return function (nex, config) {
834
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderStatus")) || (config === null || config === void 0 ? void 0 : config.select));
835
+ };
836
+ };
814
837
  var processRefundType = function processRefundType(getValue) {
815
838
  return function (nex, config) {
816
839
  return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_orderRefundType")) || (config === null || config === void 0 ? void 0 : config.select));
@@ -1026,14 +1049,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
1026
1049
  };
1027
1050
  var processLabel = function processLabel(getValue) {
1028
1051
  return function (nex, config) {
1029
- var _ref72;
1030
- return _ref72 = {}, _defineProperty(_ref72, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref72, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref72;
1052
+ var _ref74;
1053
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
1031
1054
  };
1032
1055
  };
1033
1056
  var processMemberLevel = function processMemberLevel(getValue) {
1034
1057
  return function (nex, config) {
1035
- var _ref73;
1036
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref73;
1058
+ var _ref75;
1059
+ return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
1037
1060
  };
1038
1061
  };
1039
1062
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -1150,6 +1173,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1150
1173
  GY_SEND_GOOD: processErpSendGood,
1151
1174
  BS_POSTING: processBsPosting,
1152
1175
  BS_GOODS: processBsGoods,
1176
+ ORDER_SUBFORM: processOrderSubForm(templateColumns),
1153
1177
  WDT_GOODS: processWdtGoods(templateColumns),
1154
1178
  BS_E3_GOODS: processBsE3Goods(templateColumns),
1155
1179
  GY_GOODS: processGyGoods(templateColumns),
@@ -1172,6 +1196,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1172
1196
  GY_SYSTEM_ORDER: processErpSystemOrder,
1173
1197
  BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
1174
1198
  ORDER_TYPE: processOrderType,
1199
+ ERP_ORDER_STATUS: processErpOrderStatus,
1175
1200
  REFUND_TYPE: processRefundType,
1176
1201
  RETURN_GOODS_TRADE_ID: processErpTradeId,
1177
1202
  BS_DELIVERY_NO: processErpTradeId,
@@ -6,6 +6,7 @@ export declare const selectFlowList: ((state: {
6
6
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
7
7
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
8
8
  logicFlow: import("./types").LogicFlowState;
9
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
9
10
  }) => import("./types").LogicFlow[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").LogicFlow[], {
10
11
  clearCache: () => void;
11
12
  }> & {
@@ -19,6 +20,7 @@ export declare const selectGroupFlowList: ((state: {
19
20
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
20
21
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
21
22
  logicFlow: import("./types").LogicFlowState;
23
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
22
24
  }) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
23
25
  clearCache: () => void;
24
26
  }> & {
@@ -32,6 +34,7 @@ export declare const selectFlowTemplateGroupWorkOrderTemplateList: ((state: {
32
34
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
33
35
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
34
36
  logicFlow: import("./types").LogicFlowState;
37
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
35
38
  }) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
36
39
  clearCache: () => void;
37
40
  }> & {
@@ -6,6 +6,7 @@ export declare const selectPaymentWorkOrderExamineModalVisible: ((state: {
6
6
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
7
7
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
8
8
  logicFlow: import("../logicFlow/types").LogicFlowState;
9
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
9
10
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
10
11
  clearCache: () => void;
11
12
  }> & {
@@ -19,6 +20,7 @@ export declare const selectCurrentPaymentRecord: ((state: {
19
20
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
20
21
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
21
22
  logicFlow: import("../logicFlow/types").LogicFlowState;
23
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
22
24
  }) => any) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => any, {
23
25
  clearCache: () => void;
24
26
  }> & {
@@ -32,6 +34,7 @@ export declare const selectPaymentWorkOrderUnExamineModalVisible: ((state: {
32
34
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
33
35
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
34
36
  logicFlow: import("../logicFlow/types").LogicFlowState;
37
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
35
38
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
36
39
  clearCache: () => void;
37
40
  }> & {
@@ -45,6 +48,7 @@ export declare const selectDeletePaymentWorkOrderVisible: ((state: {
45
48
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
46
49
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
47
50
  logicFlow: import("../logicFlow/types").LogicFlowState;
51
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
48
52
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
49
53
  clearCache: () => void;
50
54
  }> & {
@@ -58,6 +62,7 @@ export declare const selectFlagPayModalVisible: ((state: {
58
62
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
59
63
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
60
64
  logicFlow: import("../logicFlow/types").LogicFlowState;
65
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
61
66
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
62
67
  clearCache: () => void;
63
68
  }> & {
@@ -71,6 +76,7 @@ export declare const selectLogModalVisible: ((state: {
71
76
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
72
77
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
73
78
  logicFlow: import("../logicFlow/types").LogicFlowState;
79
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
74
80
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
75
81
  clearCache: () => void;
76
82
  }> & {
@@ -84,6 +90,7 @@ export declare const selectPaymentFormModalVisible: ((state: {
84
90
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
85
91
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
86
92
  logicFlow: import("../logicFlow/types").LogicFlowState;
93
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
87
94
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
88
95
  clearCache: () => void;
89
96
  }> & {
@@ -97,6 +104,7 @@ export declare const selectRepeatVisible: ((state: {
97
104
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
98
105
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
99
106
  logicFlow: import("../logicFlow/types").LogicFlowState;
107
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
100
108
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
101
109
  clearCache: () => void;
102
110
  }> & {
@@ -110,6 +118,7 @@ export declare const selectRepeatWorkOrderList: ((state: {
110
118
  paymentWorkOrder: import("./types").PaymentWorkOrderState;
111
119
  singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
112
120
  logicFlow: import("../logicFlow/types").LogicFlowState;
121
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
113
122
  }) => string[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => string[], {
114
123
  clearCache: () => void;
115
124
  }> & {
@@ -106,3 +106,4 @@ export declare const queryMemberLevel: (data: {
106
106
  }) => Promise<serverProps<Array<string>>>;
107
107
  export declare const queryShopByTid: (data: any) => Promise<any>;
108
108
  export declare const queryTidByOutSid: (data: any) => Promise<any>;
109
+ export declare const skqOrderDetail: (data: any) => Promise<any>;
@@ -609,4 +609,14 @@ export var queryTidByOutSid = function queryTidByOutSid(data) {
609
609
  method: 'post',
610
610
  data: data
611
611
  });
612
+ };
613
+
614
+ // 获取skq订单商品详情
615
+ export var skqOrderDetail = function skqOrderDetail(data) {
616
+ return request({
617
+ url: '/qy/gdfw/order/skqOrderDetail',
618
+ method: 'post',
619
+ data: data,
620
+ infoLevel: 'warning'
621
+ });
612
622
  };
@@ -6,6 +6,7 @@ export declare const selectorSingleTemplateList: ((state: {
6
6
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
7
7
  singleWorkOrder: import("./types").SingleWorkOrderState;
8
8
  logicFlow: import("../logicFlow/types").LogicFlowState;
9
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
9
10
  }) => import("./types").SelectI[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => import("./types").SelectI[], {
10
11
  clearCache: () => void;
11
12
  }> & {
@@ -19,6 +20,7 @@ export declare const selectDeleteCustomizeWorkOrderModalVisible: ((state: {
19
20
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
20
21
  singleWorkOrder: import("./types").SingleWorkOrderState;
21
22
  logicFlow: import("../logicFlow/types").LogicFlowState;
23
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
22
24
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => boolean, {
23
25
  clearCache: () => void;
24
26
  }> & {
@@ -32,6 +34,7 @@ export declare const selectorCurrentCustomizeRecord: ((state: {
32
34
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
33
35
  singleWorkOrder: import("./types").SingleWorkOrderState;
34
36
  logicFlow: import("../logicFlow/types").LogicFlowState;
37
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
35
38
  }) => any) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => any, {
36
39
  clearCache: () => void;
37
40
  }> & {
@@ -45,6 +48,7 @@ export declare const selectorTemplateId: ((state: {
45
48
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
46
49
  singleWorkOrder: import("./types").SingleWorkOrderState;
47
50
  logicFlow: import("../logicFlow/types").LogicFlowState;
51
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
48
52
  }) => string) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => string, {
49
53
  clearCache: () => void;
50
54
  }> & {
@@ -58,6 +62,7 @@ export declare const selectorFormModalVisible: ((state: {
58
62
  paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
59
63
  singleWorkOrder: import("./types").SingleWorkOrderState;
60
64
  logicFlow: import("../logicFlow/types").LogicFlowState;
65
+ flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
61
66
  }) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => boolean, {
62
67
  clearCache: () => void;
63
68
  }> & {
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.4",
3
+ "version": "2.2.6",
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.4",
36
- "@kmkf-fe-packages/kmkf-utils": "2.2.4",
37
- "@kmkf-fe-packages/services-components": "2.2.4",
35
+ "@kmkf-fe-packages/basic-components": "2.2.6",
36
+ "@kmkf-fe-packages/kmkf-utils": "2.2.6",
37
+ "@kmkf-fe-packages/services-components": "2.2.6",
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": "01d69240b9370cd7ec3acda6af5ae2fb011eedab",
76
+ "gitHead": "4fff3336cf21c6883201e7d9942baba3d049cd10",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- var react_1 = require("react");
5
- var react_redux_1 = require("react-redux");
6
- var toolkit_1 = require("@reduxjs/toolkit");
7
- var getTemplate = function getTemplate(companyUserConfig) {
8
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
9
- return JSON.stringify({
10
- hasWln: (_c = (_b = (_a = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _a === void 0 ? void 0 : _a.wln) === null || _b === void 0 ? void 0 : _b.show) !== null && _c !== void 0 ? _c : false,
11
- hasWdt: (_f = (_e = (_d = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _d === void 0 ? void 0 : _d.wdt) === null || _e === void 0 ? void 0 : _e.show) !== null && _f !== void 0 ? _f : false,
12
- hasBs: (_j = (_h = (_g = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _g === void 0 ? void 0 : _g.bs) === null || _h === void 0 ? void 0 : _h.show) !== null && _j !== void 0 ? _j : false,
13
- hasE3: (_m = (_l = (_k = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _k === void 0 ? void 0 : _k.bse3) === null || _l === void 0 ? void 0 : _l.show) !== null && _m !== void 0 ? _m : false,
14
- hasJst: (_q = (_p = (_o = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _o === void 0 ? void 0 : _o.jst) === null || _p === void 0 ? void 0 : _p.show) !== null && _q !== void 0 ? _q : false,
15
- hasGy: (_t = (_s = (_r = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _r === void 0 ? void 0 : _r.gy) === null || _s === void 0 ? void 0 : _s.show) !== null && _t !== void 0 ? _t : false
16
- });
17
- };
18
- function useGetHasErpData() {
19
- var companyUserConfig = react_redux_1.useSelector(toolkit_1.createSelector([function (state) {
20
- var _a, _b, _c, _d;
21
- console.log("state--useSelector", state);
22
- /**
23
- * pc main
24
- * 端 workOrder
25
- * **/
26
- return (_d = (_b = (_a = state === null || state === void 0 ? void 0 : state.main) === null || _a === void 0 ? void 0 : _a.userInfo) !== null && _b !== void 0 ? _b : (_c = state === null || state === void 0 ? void 0 : state.workOrder) === null || _c === void 0 ? void 0 : _c.userInfo) !== null && _d !== void 0 ? _d : {};
27
- }], function (state) {
28
- var _a;
29
- var companyUserConfig = (_a = state === null || state === void 0 ? void 0 : state.companyUserConfig) !== null && _a !== void 0 ? _a : {};
30
- if (typeof companyUserConfig === "string") {
31
- try {
32
- companyUserConfig = JSON.parse(companyUserConfig);
33
- } catch (e) {
34
- console.error("companyUserConfig转换异常", companyUserConfig);
35
- companyUserConfig = {};
36
- }
37
- }
38
- return companyUserConfig;
39
- }));
40
- var _a = react_1.useState(getTemplate({})),
41
- hasErpDataJson = _a[0],
42
- setHasErpDataJson = _a[1];
43
- react_1.useEffect(function () {
44
- setHasErpDataJson(getTemplate(companyUserConfig));
45
- console.log("companyUserConfig---", companyUserConfig);
46
- }, [companyUserConfig]);
47
- var hasErpData = react_1.useMemo(function () {
48
- return JSON.parse(hasErpDataJson);
49
- }, [hasErpDataJson]);
50
- return hasErpData;
51
- }
52
- exports["default"] = useGetHasErpData;
@@ -1,180 +0,0 @@
1
- "use strict";
2
-
3
- var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
4
- function adopt(value) {
5
- return value instanceof P ? value : new P(function (resolve) {
6
- resolve(value);
7
- });
8
- }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) {
11
- try {
12
- step(generator.next(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- }
17
- function rejected(value) {
18
- try {
19
- step(generator["throw"](value));
20
- } catch (e) {
21
- reject(e);
22
- }
23
- }
24
- function step(result) {
25
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
26
- }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- var __generator = this && this.__generator || function (thisArg, body) {
31
- var _ = {
32
- label: 0,
33
- sent: function sent() {
34
- if (t[0] & 1) throw t[1];
35
- return t[1];
36
- },
37
- trys: [],
38
- ops: []
39
- },
40
- f,
41
- y,
42
- t,
43
- g;
44
- return g = {
45
- next: verb(0),
46
- "throw": verb(1),
47
- "return": verb(2)
48
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
49
- return this;
50
- }), g;
51
- function verb(n) {
52
- return function (v) {
53
- return step([n, v]);
54
- };
55
- }
56
- function step(op) {
57
- if (f) throw new TypeError("Generator is already executing.");
58
- while (_) try {
59
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
60
- if (y = 0, t) op = [op[0] & 2, t.value];
61
- switch (op[0]) {
62
- case 0:
63
- case 1:
64
- t = op;
65
- break;
66
- case 4:
67
- _.label++;
68
- return {
69
- value: op[1],
70
- done: false
71
- };
72
- case 5:
73
- _.label++;
74
- y = op[1];
75
- op = [0];
76
- continue;
77
- case 7:
78
- op = _.ops.pop();
79
- _.trys.pop();
80
- continue;
81
- default:
82
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
83
- _ = 0;
84
- continue;
85
- }
86
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
87
- _.label = op[1];
88
- break;
89
- }
90
- if (op[0] === 6 && _.label < t[1]) {
91
- _.label = t[1];
92
- t = op;
93
- break;
94
- }
95
- if (t && _.label < t[2]) {
96
- _.label = t[2];
97
- _.ops.push(op);
98
- break;
99
- }
100
- if (t[2]) _.ops.pop();
101
- _.trys.pop();
102
- continue;
103
- }
104
- op = body.call(thisArg, _);
105
- } catch (e) {
106
- op = [6, e];
107
- y = 0;
108
- } finally {
109
- f = t = 0;
110
- }
111
- if (op[0] & 5) throw op[1];
112
- return {
113
- value: op[0] ? op[1] : void 0,
114
- done: true
115
- };
116
- }
117
- };
118
- exports.__esModule = true;
119
- var react_1 = require("react");
120
- var useGetHasErpData_1 = require("../hook/useGetHasErpData");
121
- var ahooks_1 = require("ahooks");
122
- var kmkf_utils_1 = require("@kmkf-fe-packages/kmkf-utils");
123
- function useGetErpAddressData(notJudgedErp) {
124
- var _this = this;
125
- var _a = react_1.useState("loading"),
126
- globalState = _a[0],
127
- setGlobalState = _a[1];
128
- var hasErpData = useGetHasErpData_1["default"]();
129
- ahooks_1.useUpdateEffect(function () {
130
- asyncQueryData(hasErpData, notJudgedErp);
131
- }, [hasErpData, notJudgedErp]);
132
- var asyncQueryData = function asyncQueryData(hasErpData, notJudgedErp) {
133
- return __awaiter(_this, void 0, void 0, function () {
134
- var hasBs, hasWdt, hasGy, promises, e_1;
135
- return __generator(this, function (_a) {
136
- switch (_a.label) {
137
- case 0:
138
- hasBs = hasErpData.hasBs, hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy;
139
- promises = [];
140
- if (hasBs || notJudgedErp) promises.push(kmkf_utils_1.servers.queryBsAddressData);
141
- if (hasWdt || notJudgedErp) promises.push(kmkf_utils_1.servers.queryWdtAddressData);
142
- if (hasGy || notJudgedErp) promises.push(kmkf_utils_1.servers.queryGyAddressData);
143
- _a.label = 1;
144
- case 1:
145
- _a.trys.push([1, 3,, 4]);
146
- return [4 /*yield*/, Promise.all(promises.map(function (promise) {
147
- return promise();
148
- }))];
149
- case 2:
150
- _a.sent();
151
- setGlobalState("success");
152
- return [3 /*break*/, 4];
153
- case 3:
154
- e_1 = _a.sent();
155
- setGlobalState("failed");
156
- return [3 /*break*/, 4];
157
- case 4:
158
- return [2 /*return*/];
159
- }
160
- });
161
- });
162
- };
163
-
164
- var onReload = function onReload() {
165
- return __awaiter(_this, void 0, void 0, function () {
166
- return __generator(this, function (_a) {
167
- switch (_a.label) {
168
- case 0:
169
- return [4 /*yield*/, asyncQueryData(hasErpData, notJudgedErp)];
170
- case 1:
171
- _a.sent();
172
- return [2 /*return*/];
173
- }
174
- });
175
- });
176
- };
177
-
178
- return [globalState, onReload];
179
- }
180
- exports["default"] = useGetErpAddressData;