@kmkf-fe-packages/services-components 1.19.8-beta.13 → 1.19.8-beta.15

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.
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from 'react';
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from '@kmkf-fe-packages/kmkf-utils';
15
15
  import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
@@ -84,37 +84,58 @@ var typeMap = {
84
84
  title: "订单状态",
85
85
  dataIndex: "orderStatus",
86
86
  width: 100,
87
- ellipsis: true
87
+ ellipsis: true,
88
+ render: function render(val) {
89
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
90
+ }
88
91
  }, {
89
92
  title: "是否被拆分",
90
93
  dataIndex: "isSplit",
91
94
  width: 100,
92
- ellipsis: true
95
+ ellipsis: true,
96
+ render: function render(val) {
97
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
98
+ }
93
99
  }, {
94
100
  title: "是否拆分子单",
95
101
  dataIndex: "isSplitNew",
96
102
  width: 100,
97
- ellipsis: true
103
+ ellipsis: true,
104
+ render: function render(val) {
105
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
106
+ }
98
107
  }, {
99
108
  title: "是否被合并",
100
109
  dataIndex: "isCombine",
101
110
  width: 100,
102
- ellipsis: true
111
+ ellipsis: true,
112
+ render: function render(val) {
113
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
114
+ }
103
115
  }, {
104
116
  title: "是否合并新单",
105
117
  dataIndex: "isCombineNew",
106
118
  width: 100,
107
- ellipsis: true
119
+ ellipsis: true,
120
+ render: function render(val) {
121
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
122
+ }
108
123
  }, {
109
124
  title: "是否复制单",
110
125
  dataIndex: "isCopy",
111
126
  width: 100,
112
- ellipsis: true
127
+ ellipsis: true,
128
+ render: function render(val) {
129
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
130
+ }
113
131
  }, {
114
132
  title: "是否换货单",
115
133
  dataIndex: "isExchangeOrder",
116
134
  width: 100,
117
- ellipsis: true
135
+ ellipsis: true,
136
+ render: function render(val) {
137
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
138
+ }
118
139
  }, {
119
140
  title: "订单备注",
120
141
  dataIndex: "orderMsg",
@@ -14,7 +14,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
16
16
  import React, { useState, useMemo } from "react";
17
- import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { ExpressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { getAlipayBillReceipt } from "../../service/api";
19
19
  import { CopyToClipboard } from 'react-copy-to-clipboard';
20
20
  import styles from "./index.module.less";
@@ -892,7 +892,10 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
892
892
  title: "\u662F\u5426\u8D60\u54C1",
893
893
  align: 'center',
894
894
  ellipsis: true,
895
- width: 100
895
+ width: 100,
896
+ render: function render(val) {
897
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
898
+ }
896
899
  }];
897
900
  }
898
901
  break;
@@ -1163,37 +1166,58 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
1163
1166
  title: "订单状态",
1164
1167
  dataIndex: "orderStatus",
1165
1168
  width: 100,
1166
- ellipsis: true
1169
+ ellipsis: true,
1170
+ render: function render(val) {
1171
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
1172
+ }
1167
1173
  }, {
1168
1174
  title: "是否被拆分",
1169
1175
  dataIndex: "isSplit",
1170
1176
  width: 100,
1171
- ellipsis: true
1177
+ ellipsis: true,
1178
+ render: function render(val) {
1179
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1180
+ }
1172
1181
  }, {
1173
1182
  title: "是否拆分子单",
1174
1183
  dataIndex: "isSplitNew",
1175
1184
  width: 100,
1176
- ellipsis: true
1185
+ ellipsis: true,
1186
+ render: function render(val) {
1187
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1188
+ }
1177
1189
  }, {
1178
1190
  title: "是否被合并",
1179
1191
  dataIndex: "isCombine",
1180
1192
  width: 100,
1181
- ellipsis: true
1193
+ ellipsis: true,
1194
+ render: function render(val) {
1195
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1196
+ }
1182
1197
  }, {
1183
1198
  title: "是否合并新单",
1184
1199
  dataIndex: "isCombineNew",
1185
1200
  width: 100,
1186
- ellipsis: true
1201
+ ellipsis: true,
1202
+ render: function render(val) {
1203
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1204
+ }
1187
1205
  }, {
1188
1206
  title: "是否复制单",
1189
1207
  dataIndex: "isCopy",
1190
1208
  width: 100,
1191
- ellipsis: true
1209
+ ellipsis: true,
1210
+ render: function render(val) {
1211
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1212
+ }
1192
1213
  }, {
1193
1214
  title: "是否换货单",
1194
1215
  dataIndex: "isExchangeOrder",
1195
1216
  width: 100,
1196
- ellipsis: true
1217
+ ellipsis: true,
1218
+ render: function render(val) {
1219
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1220
+ }
1197
1221
  }, {
1198
1222
  title: "订单备注",
1199
1223
  dataIndex: "orderMsg",
@@ -19,7 +19,7 @@ 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 ItemView from "../../commonComponents/ItemView";
22
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
22
+ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
23
23
  import { BsHeaderPic, BsHeaderChild } from "../BS/common";
24
24
  import ReissueGift from "../BsE3/ReissueGift";
25
25
  var GoodHeaderMap = {
@@ -420,7 +420,10 @@ var GoodHeaderMap = {
420
420
  component: BsHeaderChild,
421
421
  name: "是否赠品",
422
422
  key: "isGift",
423
- width: 80
423
+ width: 80,
424
+ render: function render(val) {
425
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
426
+ }
424
427
  }
425
428
  },
426
429
  itemKey: {
@@ -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, BsE3Goods, BsE3Reissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | JstSendGood | KmErpSendGood | MsgStatus | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BsSystemOrder | BsE3Reissue | JstSendGood | KmErpSendGood | MsgStatus | BasicPicture | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.19.8-beta.13",
3
+ "version": "1.19.8-beta.15",
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.19.8-beta.13",
25
- "@kmkf-fe-packages/kmkf-utils": "1.19.8-beta.12",
24
+ "@kmkf-fe-packages/basic-components": "1.19.8-beta.15",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.19.8-beta.15",
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": "f03ac1e309210a72a6c4a0e5963534d9c77cc425",
44
+ "gitHead": "d38edefc7901087a2d7c1606755cf5ff74615e45",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }