@kmkf-fe-packages/services-components 2.2.39-beta.1 → 2.2.39-beta.11

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.
@@ -1500,6 +1500,14 @@ var GoodHeaderMap = {
1500
1500
  name: "系统规格ID",
1501
1501
  width: 150
1502
1502
  },
1503
+ skuId: {
1504
+ name: "平台规格ID",
1505
+ width: 150
1506
+ },
1507
+ outerSkuId: {
1508
+ name: "平台规格编码",
1509
+ width: 150
1510
+ },
1503
1511
  itemSysId: {
1504
1512
  name: "系统商品ID",
1505
1513
  width: 150
@@ -31,7 +31,7 @@ declare class BasicPosting implements ComponentInterface {
31
31
  sortColumns: SortColumnsField;
32
32
  headerProvince: boolean;
33
33
  constructor(options: PickOption);
34
- getChildren: () => (Province | City | District | Detail | ReceiverName | ReceiverMobile | undefined)[];
34
+ getChildren: () => (City | Detail | District | Province | ReceiverMobile | ReceiverName | undefined)[];
35
35
  getSortColumns: (sortColumns: string | undefined) => SortColumnsField;
36
36
  renderPc: (value: any, record: Record) => React.JSX.Element | null;
37
37
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -19,53 +19,17 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
19
19
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
20
  import React from "react";
21
21
  import { Table } from "antd";
22
- import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
22
+ import { SubForm as SubFormComponent, renderMap, renderSplitMap } from "@kmkf-fe-packages/basic-components";
23
23
  import { BsHeaderChild } from "../BS/common";
24
24
  import HeaderChildFile from "./children/HeaderChildFile";
25
25
  import HeaderChildPic from "./children/HeaderChildPic";
26
+ import Express from "../Express";
26
27
  import GetFormItem from "../GetFormItem";
27
28
  import ItemView from "../../commonComponents/ItemView";
28
29
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
29
30
  import { difference } from "lodash";
30
31
  import { SYMBOL } from "../../constant";
31
32
  var ChildrenMap = {
32
- INPUT: {
33
- component: BsHeaderChild
34
- },
35
- TEXTAREA: {
36
- component: BsHeaderChild
37
- },
38
- SELECT: {
39
- component: BsHeaderChild
40
- },
41
- RADIO: {
42
- component: BsHeaderChild
43
- // transformValue: (value: any) => {
44
- // if (!value?.value) return null;
45
- // return `${value?.value}
46
- // ${
47
- // value?.value &&
48
- // typeof value.value === "string" &&
49
- // value?.value?.indexOf("其他") > -1 &&
50
- // value?.other
51
- // ? `(${value?.other})`
52
- // : ""
53
- // }`;
54
- // },
55
- // renderExport: (value: any) => {
56
- // if (!value?.value) return null;
57
- // return `${value?.value}
58
- // ${
59
- // value?.value &&
60
- // typeof value.value === "string" &&
61
- // value?.value?.indexOf("其他") > -1 &&
62
- // value?.other
63
- // ? `(${value?.other})`
64
- // : ""
65
- // }`;
66
- // },
67
- },
68
-
69
33
  CHECKBOX: {
70
34
  component: BsHeaderChild,
71
35
  transformValue: function transformValue(value) {
@@ -93,6 +57,23 @@ var ChildrenMap = {
93
57
  },
94
58
  FILE: {
95
59
  component: HeaderChildFile
60
+ },
61
+ jbCFrJV4m7_trajectoryCompany: {
62
+ component: Express
63
+ },
64
+ "0qFEv9GEyd_returnLogisticsCompany": {
65
+ component: Express
66
+ }
67
+ };
68
+ var getChildComponent = function getChildComponent(item) {
69
+ try {
70
+ return ChildrenMap[item.workOrderComponentType] || ChildrenMap[item.key] || {
71
+ component: BsHeaderChild
72
+ };
73
+ } catch (e) {
74
+ return {
75
+ component: BsHeaderChild
76
+ };
96
77
  }
97
78
  };
98
79
  var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
@@ -152,12 +133,23 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
152
133
  ellipsis: true,
153
134
  width: item.width,
154
135
  render: function render(val) {
155
- return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
156
- style: {
157
- width: "100%",
158
- overflow: "auto"
159
- }
160
- }, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
136
+ if (renderMap[item.workOrderComponentType]) {
137
+ return /*#__PURE__*/React.createElement("div", {
138
+ style: {
139
+ width: "100%",
140
+ overflow: "auto"
141
+ }
142
+ }, renderMap[item.workOrderComponentType](val));
143
+ } else if (renderSplitMap[item.key]) {
144
+ return /*#__PURE__*/React.createElement("div", {
145
+ style: {
146
+ width: "100%",
147
+ overflow: "auto"
148
+ }
149
+ }, renderSplitMap[item.key](val));
150
+ } else {
151
+ return /*#__PURE__*/React.createElement("span", null, val);
152
+ }
161
153
  }
162
154
  };
163
155
  })) || []));
@@ -268,9 +260,9 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
268
260
  this.isCombinationComponent = true;
269
261
  this.canSort = false;
270
262
  this.children = (this.getNewTableHeader() || []).map(function (item) {
271
- var _ChildrenMap$item$wor = ChildrenMap[item.workOrderComponentType],
272
- component = _ChildrenMap$item$wor.component,
273
- other = _objectWithoutProperties(_ChildrenMap$item$wor, _excluded);
263
+ var _getChildComponent = getChildComponent(item),
264
+ component = _getChildComponent.component,
265
+ other = _objectWithoutProperties(_getChildComponent, _excluded);
274
266
  return new component(_objectSpread(_objectSpread({}, options), {}, {
275
267
  name: item.name,
276
268
  id: "".concat(options.id, "_productList_").concat(item.key)
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BsE3Reissue | CommonInput | BasicFile | BasicInput | JstSendGood | MsgStatus | OrderSubForm | BasicPicture | BasicPicturePro | BasicPosting | PublicGoods | PublicReissueGoods | ReturnLogistics | StatusSelect | WdtReissue | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonInput | BasicInput | JstSendGood | MsgStatus | OrderSubForm | StatusSelect | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | FlowOverallStatusSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.39-beta.1",
3
+ "version": "2.2.39-beta.11",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.2.39-beta.1",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.36",
24
+ "@kmkf-fe-packages/basic-components": "2.2.39-beta.11",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.39-beta.10",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "f82a22c49823b028d86f334945b5914dac4dc190",
44
+ "gitHead": "17a8d05bf0a340d025a4cd3a4c3a233f1f33f087",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }