@kmkf-fe-packages/kmkf-work-order-service-component 0.28.2-alpha.3 → 0.28.2-alpha.7

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.
@@ -29,6 +29,7 @@ declare type FormRenderProps = {
29
29
  canModifyPayment?: boolean;
30
30
  flowAllShowHideRules?: CurrentFlowShowHideRules;
31
31
  firstOrderBackfill?: boolean;
32
+ isErpUse?: boolean;
32
33
  };
33
34
  declare const _default: React.ForwardRefExoticComponent<FormRenderProps & React.RefAttributes<unknown>>;
34
35
  export default _default;
@@ -70,7 +70,9 @@ var FormRender = function FormRender(props, ref) {
70
70
  currentNodeTid = props.currentNodeTid,
71
71
  onUpdateRemark = props.onUpdateRemark,
72
72
  _props$firstOrderBack = props.firstOrderBackfill,
73
- firstOrderBackfill = _props$firstOrderBack === void 0 ? true : _props$firstOrderBack;
73
+ firstOrderBackfill = _props$firstOrderBack === void 0 ? true : _props$firstOrderBack,
74
+ _props$isErpUse = props.isErpUse,
75
+ isErpUse = _props$isErpUse === void 0 ? false : _props$isErpUse;
74
76
  var shopIdKeyMap = useMemo(function () {
75
77
  var json = {};
76
78
  shopList.forEach(function (shop) {
@@ -427,6 +429,7 @@ var FormRender = function FormRender(props, ref) {
427
429
  resetMappdingHideComponents();
428
430
  };
429
431
  useEffect(function () {
432
+ if (isErpUse) return;
430
433
  queryDetail({
431
434
  workOrderId: workOrderId,
432
435
  shopId: shopId,
@@ -436,7 +439,7 @@ var FormRender = function FormRender(props, ref) {
436
439
  buyerId: buyerId,
437
440
  buyerNick: buyerNick
438
441
  });
439
- }, [workOrderId, record, shopId]);
442
+ }, [workOrderId, record, shopId, isErpUse]);
440
443
 
441
444
  // 重置映射隐藏的组件, 目前只有单选、下拉组件可能会因为映射关系隐藏
442
445
  var resetMappdingHideComponents = function resetMappdingHideComponents() {
@@ -590,7 +593,8 @@ var FormRender = function FormRender(props, ref) {
590
593
  return _context2.abrupt("return");
591
594
  case 4:
592
595
  queryReplaceCount(_defineProperty({}, type, value), templateDetail);
593
- if (type === 'tradeId' || type === 'enterprisePaymentTid') {
596
+ // TODO: ERP不走订单反弹逻辑
597
+ if ((type === 'tradeId' || type === 'enterprisePaymentTid') && !isErpUse) {
594
598
  changeHandle(value);
595
599
  }
596
600
  case 6:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "0.28.2-alpha.3",
3
+ "version": "0.28.2-alpha.7",
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.28.1",
36
36
  "@kmkf-fe-packages/kmkf-utils": "^0.28.1",
37
- "@kmkf-fe-packages/services-components": "^0.28.2-alpha.3",
37
+ "@kmkf-fe-packages/services-components": "^0.28.2-alpha.7",
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": "23bbebd5a7b3612aa00b278878ae6b310758d6dd",
76
+ "gitHead": "cc4f2f7b671ba6db5d5606ac95be871f81f9f52a",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }