@kmkf-fe-packages/services-components 1.17.8-beta.2 → 1.17.8-beta.4

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.
@@ -19,6 +19,7 @@ declare class JstSendGood implements ComponentInterface {
19
19
  canSort: boolean;
20
20
  children: ComponentInterface[];
21
21
  dataType: ComponentInterface["dataType"];
22
+ format: ComponentInterface["format"];
22
23
  constructor(options: PickOption);
23
24
  getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
24
25
  renderClient: (record: Record) => React.JSX.Element | null;
@@ -46,8 +47,5 @@ declare class JstSendGood implements ComponentInterface {
46
47
  filterFn: (value: string) => (i: Record) => any;
47
48
  props?: undefined;
48
49
  })[];
49
- formDataTransform: (v: Array<{
50
- sendName: string;
51
- }>) => string[];
52
50
  }
53
51
  export default JstSendGood;
@@ -60,6 +60,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
60
60
  _defineProperty(this, "canSort", void 0);
61
61
  _defineProperty(this, "children", void 0);
62
62
  _defineProperty(this, "dataType", void 0);
63
+ _defineProperty(this, "format", void 0);
63
64
  _defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
64
65
  var _typeMap$options$type, _typeMap$options$type2;
65
66
  var sendName = {
@@ -202,14 +203,6 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
202
203
  }
203
204
  }];
204
205
  });
205
- _defineProperty(this, "formDataTransform", function (v) {
206
- var _v$map;
207
- return v === null || v === void 0 ? void 0 : (_v$map = v.map(function (item) {
208
- return item.sendName;
209
- })) === null || _v$map === void 0 ? void 0 : _v$map.filter(function (item) {
210
- return !isNull(item);
211
- });
212
- });
213
206
  this.name = _options.name;
214
207
  this.id = _options.id;
215
208
  this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
@@ -244,5 +237,6 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
244
237
  this.isCombinationComponent = false;
245
238
  this.canSort = false;
246
239
  this.children = [];
240
+ this.format = 'object';
247
241
  });
248
242
  export default JstSendGood;
@@ -34,7 +34,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
34
34
  var addressText = (_item$interceptAddres = item.interceptAddress) === null || _item$interceptAddres === void 0 ? void 0 : _item$interceptAddres.map(function (suffix) {
35
35
  return _this.addressDateInstance.getNameByCode(suffix);
36
36
  }).join('');
37
- return addressText || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), addressText, item.interceptDetail, item.interceptReceiverName, item.interceptReceiverMobile) : '--';
37
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), addressText || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, addressText, item.interceptDetail, item.interceptReceiverName, item.interceptReceiverMobile) : "--");
38
38
  }));
39
39
  });
40
40
  _defineProperty(this, "renderClient", function () {
@@ -67,7 +67,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
67
67
  }).join("");
68
68
  return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", /*#__PURE__*/React.createElement(CopyText, {
69
69
  text: item.interceptCode
70
- })) : null, (_item$interceptAddres = item.interceptAddress) !== null && _item$interceptAddres !== void 0 && _item$interceptAddres.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, " ", item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
70
+ })) : null, (_item$interceptAddres = item.interceptAddress) !== null && _item$interceptAddres !== void 0 && _item$interceptAddres.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
71
71
  modelWidth: 500,
72
72
  interceptCompany: item.interceptCompany,
73
73
  interceptCode: item.interceptCode,
@@ -28,7 +28,7 @@ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(opt
28
28
  _defineProperty(this, "renderSnapshot", function (record) {
29
29
  var snapshotList = record[_this.id] || [];
30
30
  return /*#__PURE__*/React.createElement(React.Fragment, null, snapshotList.map(function (item, index) {
31
- return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
31
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item ? item : "--");
32
32
  }));
33
33
  });
34
34
  _defineProperty(this, "getComponentValue", function (r) {
@@ -1,3 +1,3 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, KmErpSendGood, AfterSalesOrderId } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicCascader | BasicCheckbox | FlowWorkOrderId | JstSendGood | JstSupply | LogisticsInterception | LogisticsMoreInterception | MsgStatus | PaymentVoucherCode | StatusSelect | SubForm | TradeId | BasicInput | BasicAddress | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | Label | KmErpSendGood | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BasicCascader | StatusSelect | TradeId | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
@@ -48,7 +48,7 @@ export interface ComponentInterface {
48
48
  width?: number;
49
49
  align?: ALignType;
50
50
  dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
51
- format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup";
51
+ format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
52
52
  options?: Array<any>;
53
53
  templateId?: string;
54
54
  flowTemplateKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.8-beta.2",
3
+ "version": "1.17.8-beta.4",
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": "1.17.8-beta.2",
25
- "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.2",
24
+ "@kmkf-fe-packages/basic-components": "1.17.8-beta.4",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.4",
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": "a8415fd4609d1d3b97f31bf548cf96983afe44e1",
44
+ "gitHead": "ee599b135d7dcb27f33a5b180b7580c77bf061eb",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }