@kmkf-fe-packages/services-components 2.2.30 → 2.2.31-beta.12

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 (26) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  4. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  5. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  6. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  7. package/dist/esm/components/BS/BsLogistics/index.js +9 -9
  8. package/dist/esm/components/BS/BsSystemOrder/index.js +4 -2
  9. package/dist/esm/components/BS/common/expressCode.js +1 -2
  10. package/dist/esm/components/Common/dist/index.js +1019 -0
  11. package/dist/esm/components/Common/index.js +7 -4
  12. package/dist/esm/components/CommonHeaderGood/index.js +166 -6
  13. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  14. package/dist/esm/components/MsgStatus/index.js +6 -1
  15. package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
  16. package/dist/esm/components/Payment/PaymentAmount.js +0 -4
  17. package/dist/esm/components/Public/Goods/index.js +8 -0
  18. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  19. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  20. package/dist/esm/factory.d.ts +1 -1
  21. package/dist/esm/factory.js +3 -0
  22. package/package.json +4 -4
  23. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  24. package/dist/esm/components/Common/constants/gy.js +0 -219
  25. package/dist/esm/components/Common/constants/wdt.d.ts +0 -3
  26. package/dist/esm/components/Common/constants/wdt.js +0 -308
@@ -21,9 +21,10 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  import { VideoCameraTwoTone } from "@ant-design/icons";
27
+ import { ApaasImage } from "@kmkf-fe-packages/basic-components";
27
28
  var Paragraph = Typography.Paragraph;
28
29
  export var getFormItem = function getFormItem(_ref) {
29
30
  var name = _ref.name,
@@ -455,7 +456,7 @@ export var BsGoodPic = function BsGoodPic(list) {
455
456
  onClick: function onClick(e) {
456
457
  return e.stopPropagation();
457
458
  }
458
- }, /*#__PURE__*/React.createElement(Image, {
459
+ }, /*#__PURE__*/React.createElement(ApaasImage, {
459
460
  width: 60,
460
461
  src: finalSrc
461
462
  }));
@@ -780,7 +781,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
780
781
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
781
782
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
782
783
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
783
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
784
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
785
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
784
786
  };
785
787
  var rowKeyMap = {
786
788
  BS_SYSTEM_ORDER: "billNo",
@@ -790,7 +792,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
790
792
  BS_E3_SYSTEM_ORDER: "orderSn",
791
793
  GY_SYSTEM_ORDER: "billNo",
792
794
  JST_SYSTEM_ORDER: "oId",
793
- JY_SYSTEM_ORDER: "tradeNo"
795
+ JY_SYSTEM_ORDER: "tradeNo",
796
+ WDT_RETURN_BILL_NO: "refundNo"
794
797
  };
795
798
  var rowSelection = {
796
799
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
@@ -1,6 +1,4 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
4
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -10,6 +8,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
9
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
14
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
15
  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); }
@@ -19,6 +19,10 @@ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import { BsHeaderPic, BsHeaderChild } from "../BS/common";
20
20
  import ReissueGift from "../BsE3/ReissueGift";
21
21
  import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
22
+ import { getJstColumns } from "@kmkf-fe-packages/basic-components";
23
+ var orderGoodsHeaderComponentMap = {
24
+ pic: BsHeaderPic
25
+ };
22
26
  var GoodHeaderMap = {
23
27
  WDT_GOODS: {
24
28
  headerMap: {
@@ -146,6 +150,146 @@ var GoodHeaderMap = {
146
150
  },
147
151
  moneyKey: "orderPrice"
148
152
  },
153
+ WDT_AFTERSALE_GOODS: {
154
+ headerMap: {
155
+ oid: {
156
+ component: BsHeaderChild,
157
+ name: "原始子单号",
158
+ key: "oid",
159
+ width: 200
160
+ },
161
+ goodsName: {
162
+ component: BsHeaderChild,
163
+ name: "货品名称",
164
+ key: "goodsName",
165
+ width: 150
166
+ },
167
+ goodsNo: {
168
+ component: BsHeaderChild,
169
+ name: "货品编码",
170
+ key: "goodsNo",
171
+ width: 150
172
+ },
173
+ specName: {
174
+ component: BsHeaderChild,
175
+ name: "规格名称",
176
+ key: "specName",
177
+ width: 150
178
+ },
179
+ specNo: {
180
+ component: BsHeaderChild,
181
+ name: "商家编码",
182
+ key: "specNo",
183
+ width: 150
184
+ },
185
+ specCode: {
186
+ component: BsHeaderChild,
187
+ name: "规格编号",
188
+ key: "specCode",
189
+ width: 150
190
+ },
191
+ barcode: {
192
+ component: BsHeaderChild,
193
+ name: "条码",
194
+ key: "barcode",
195
+ width: 150
196
+ },
197
+ apiGoodsName: {
198
+ component: BsHeaderChild,
199
+ name: "平台货品名称",
200
+ key: "apiGoodsName",
201
+ width: 150
202
+ },
203
+ apiSpecName: {
204
+ component: BsHeaderChild,
205
+ name: "平台规格名称",
206
+ key: "apiSpecName",
207
+ width: 150
208
+ },
209
+ suiteName: {
210
+ component: BsHeaderChild,
211
+ name: "组合装名称",
212
+ key: "suiteName",
213
+ width: 150
214
+ },
215
+ suiteNo: {
216
+ component: BsHeaderChild,
217
+ name: "组合装编号",
218
+ key: "suiteNo",
219
+ width: 150
220
+ },
221
+ stockinNum: {
222
+ component: BsHeaderChild,
223
+ name: "入库数量",
224
+ key: "stockinNum",
225
+ width: 150
226
+ },
227
+ refundNum: {
228
+ component: BsHeaderChild,
229
+ name: "退款数量",
230
+ key: "refundNum",
231
+ width: 150
232
+ },
233
+ totalAmount: {
234
+ component: BsHeaderChild,
235
+ name: "退货总额",
236
+ key: "totalAmount",
237
+ width: 150
238
+ },
239
+ refundAmount: {
240
+ component: BsHeaderChild,
241
+ name: "已退款金额",
242
+ key: "refundAmount",
243
+ width: 150
244
+ },
245
+ orderNum: {
246
+ component: BsHeaderChild,
247
+ name: "实际发出数量",
248
+ key: "orderNum",
249
+ width: 150
250
+ },
251
+ price: {
252
+ component: BsHeaderChild,
253
+ name: "价格",
254
+ key: "price",
255
+ width: 150
256
+ },
257
+ originalPrice: {
258
+ component: BsHeaderChild,
259
+ name: "原价",
260
+ key: "originalPrice",
261
+ width: 150
262
+ },
263
+ giftType: {
264
+ component: BsHeaderChild,
265
+ name: "赠品类型",
266
+ key: "giftType",
267
+ width: 150
268
+ }
269
+ },
270
+ itemKey: {
271
+ oid: "原始子单号",
272
+ goodsName: "货品名称",
273
+ goodsNo: "货品编码",
274
+ specName: "规格名称",
275
+ specNo: "商家编码",
276
+ specCode: "规格编号",
277
+ barcode: "条码",
278
+ apiGoodsName: "平台货品名称",
279
+ apiSpecName: "平台规格名称",
280
+ suiteName: "组合装名称",
281
+ suiteNo: "组合装编号",
282
+ stockinNum: "入库数量",
283
+ refundNum: "退款数量",
284
+ totalAmount: "退货总额",
285
+ refundAmount: "已退款金额",
286
+ orderNum: "实际发出数量",
287
+ price: "价格",
288
+ originalPrice: "原价",
289
+ giftType: "赠品类型"
290
+ },
291
+ moneyKey: "totalAmount"
292
+ },
149
293
  WDT_RETURN_GOODS: {
150
294
  headerMap: {
151
295
  goodId: {
@@ -1008,11 +1152,11 @@ var GoodHeaderMap = {
1008
1152
  name: "总金额",
1009
1153
  transformValue: function transformValue(val, record, parentName) {
1010
1154
  if (!record) return "--";
1011
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1155
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1012
1156
  },
1013
1157
  renderExport: function renderExport(val, record, parentName) {
1014
1158
  if (!record) return "--";
1015
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1159
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1016
1160
  }
1017
1161
  },
1018
1162
  batchId: "批次号",
@@ -1029,6 +1173,22 @@ var GoodHeaderMap = {
1029
1173
  },
1030
1174
  moneyKey: "salePrice"
1031
1175
  },
1176
+ JST_AFTERSALE_GOODS: {
1177
+ headerMap: getJstColumns()["JST_AFTERSALE_GOODS"].reduce(function (acc, item) {
1178
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
1179
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
1180
+ name: item.title,
1181
+ key: item.dataIndex,
1182
+ width: item.width || 150
1183
+ });
1184
+ return acc;
1185
+ }, {}),
1186
+ itemKey: getJstColumns()["JST_AFTERSALE_GOODS"].reduce(function (acc, item) {
1187
+ acc[item.dataIndex] = item.title;
1188
+ return acc;
1189
+ }, {}),
1190
+ moneyKey: "price"
1191
+ },
1032
1192
  JST_REISSUE_GOODS: {
1033
1193
  headerMap: {
1034
1194
  name: "商品名称",
@@ -1104,11 +1264,11 @@ var GoodHeaderMap = {
1104
1264
  name: "总金额",
1105
1265
  transformValue: function transformValue(val, record, parentName) {
1106
1266
  if (!record) return "--";
1107
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1267
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1108
1268
  },
1109
1269
  renderExport: function renderExport(val, record, parentName) {
1110
1270
  if (!record) return "--";
1111
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1271
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1112
1272
  }
1113
1273
  },
1114
1274
  batchId: "批次号",
@@ -184,7 +184,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
184
184
  });
185
185
  _defineProperty(this, "filterConfig", function (item) {
186
186
  var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
187
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
187
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
188
188
  searchDefaultConditions: SYMBOL.in,
189
189
  type: item.type,
190
190
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
@@ -39,10 +39,15 @@ var typeMap = {
39
39
  label: "等待执行",
40
40
  color: "#e7780f"
41
41
  }, {
42
- oldValue: "等待发送",
42
+ oldValue: "不满足条件,无需执行",
43
43
  value: "不满足条件,无需执行",
44
44
  label: "不满足条件,无需执行",
45
45
  color: "#8A8A8A"
46
+ }, {
47
+ oldValue: "暂不满足条件,等待执行",
48
+ value: "暂不满足条件,等待执行",
49
+ label: "暂不满足条件,等待执行",
50
+ color: "#4D90F7"
46
51
  }],
47
52
  key: "msgStatusValues",
48
53
  code: "msgStatus4Search",
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
36
36
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  };
39
- formDataTransform: (value: string) => string | number;
40
39
  }
41
40
  export default PaymentAmount;
@@ -132,10 +132,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
132
132
  }
133
133
  };
134
134
  });
135
- _defineProperty(this, "formDataTransform", function (value) {
136
- var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
137
- return isNumber.test(value) ? Number(value) : value;
138
- });
139
135
  this.name = '打款金额';
140
136
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
141
137
  this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
@@ -28,6 +28,14 @@ var CONFIG_MAP = {
28
28
  JY_GOODS: {
29
29
  name: "巨益",
30
30
  key: "jyGoods"
31
+ },
32
+ WDT_AFTERSALE_GOODS: {
33
+ name: "旺店通售后",
34
+ key: "wdtAftersaleGoods"
35
+ },
36
+ JST_AFTERSALE_GOODS: {
37
+ name: "jst售后",
38
+ key: "jstAftersaleGoods"
31
39
  }
32
40
  };
33
41
  var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
@@ -1,8 +1,8 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
- import React from 'react';
3
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
- import Express from '../Express';
5
- import ExpressCode from '../ExpressCode';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ import Express from "../Express";
5
+ import ExpressCode from "../ExpressCode";
6
6
  declare class ReturnLogistics implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
@@ -18,7 +18,8 @@ declare class ReturnLogistics implements ComponentInterface {
18
18
  formField: string;
19
19
  canSort: boolean;
20
20
  children: ComponentInterface[];
21
- dataType: ComponentInterface['dataType'];
21
+ dataType: ComponentInterface["dataType"];
22
+ isChange: boolean;
22
23
  constructor(options: PickOption);
23
24
  renderClient: (record: any) => React.JSX.Element;
24
25
  renderPc: () => null;
@@ -8,9 +8,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
- import React from 'react';
12
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
13
- import { ExpressLogistics } from '@kmkf-fe-packages/basic-components';
11
+ import React from "react";
12
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { ExpressLogistics } from "@kmkf-fe-packages/basic-components";
14
14
  import Express from "../Express";
15
15
  import ExpressCode from "../ExpressCode";
16
16
  import GetFormItem from "../GetFormItem";
@@ -33,6 +33,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
33
33
  _defineProperty(this, "canSort", void 0);
34
34
  _defineProperty(this, "children", void 0);
35
35
  _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "isChange", void 0);
36
37
  _defineProperty(this, "renderClient", function (record) {
37
38
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
38
39
  });
@@ -53,6 +54,20 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
53
54
  });
54
55
  _defineProperty(this, "editRender", function (p) {
55
56
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
57
+ var onReturnLogisticsCodeBlur = function onReturnLogisticsCodeBlur(val) {
58
+ if (_this.isChange) {
59
+ var _p$onBlur;
60
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "returnLogisticsCode");
61
+ _this.isChange = false;
62
+ }
63
+ };
64
+ var onReturnLogisticsCodeChange = function onReturnLogisticsCodeChange() {
65
+ _this.isChange = true;
66
+ for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
67
+ e[_key] = arguments[_key];
68
+ }
69
+ p === null || p === void 0 ? void 0 : p.onChange.apply(p, e);
70
+ };
56
71
  return /*#__PURE__*/React.createElement(GetFormItem, {
57
72
  title: _this.name,
58
73
  name: _this.id,
@@ -60,18 +75,19 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
60
75
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
61
76
  display: p === null || p === void 0 ? void 0 : p.display,
62
77
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
63
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
78
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
64
79
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
65
80
  options: _this.expressDateInstance.getExpressData(),
66
- onBlur: p === null || p === void 0 ? void 0 : p.onBlur
81
+ onBlur: onReturnLogisticsCodeBlur,
82
+ onChange: onReturnLogisticsCodeChange
67
83
  }))
68
84
  });
69
85
  });
70
86
  _defineProperty(this, "filterConfig", function (item) {
71
87
  return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
72
- subKey: 'returnLogisticsCompany'
88
+ subKey: "returnLogisticsCompany"
73
89
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
74
- subKey: 'returnLogisticsCode'
90
+ subKey: "returnLogisticsCode"
75
91
  }))];
76
92
  });
77
93
  this.name = options.name;
@@ -80,37 +96,38 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
80
96
  this.formField = options.id;
81
97
  this.type = options.type;
82
98
  this.showContains = false;
83
- this.dataType = 'string';
99
+ this.dataType = "string";
84
100
  this.componentConfig = options.componentConfig;
85
101
  this.expressDateInstance = ExpressData.getInstance();
86
102
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
87
- name: '退货物流公司',
103
+ name: "退货物流公司",
88
104
  id: "".concat(options.id, "_returnLogisticsCompany")
89
105
  }));
90
106
  this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
91
- name: '退货物流单号',
107
+ name: "退货物流单号",
92
108
  id: "".concat(options.id, "_returnLogisticsCode")
93
109
  }));
94
110
  this.isCombinationComponent = true;
95
111
  this.canSort = false;
96
- this.dataType = 'object';
112
+ this.dataType = "object";
97
113
  this.children = [this.express, this.expressCode];
114
+ this.isChange = false;
98
115
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
99
116
  validator: function validator(_, value) {
100
117
  var _this$componentConfig6;
101
118
  if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isSingle) {
102
119
  var _this$componentConfig7, _this$componentConfig8;
103
- if (((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
104
- return Promise.reject(new Error('请选择物流公司'));
105
- } else if (((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
106
- return Promise.reject(new Error('请输入物流单号'));
120
+ if (((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) === "EXPRESS_COMPANY" && !(value !== null && value !== void 0 && value.company)) {
121
+ return Promise.reject(new Error("请选择物流公司"));
122
+ } else if (((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
123
+ return Promise.reject(new Error("请输入物流单号"));
107
124
  }
108
125
  } else {
109
126
  if (!(value !== null && value !== void 0 && value.company)) {
110
- return Promise.reject(new Error('请选择物流公司'));
127
+ return Promise.reject(new Error("请选择物流公司"));
111
128
  }
112
129
  if (!(value !== null && value !== void 0 && value.order)) {
113
- return Promise.reject(new Error('请输入物流单号'));
130
+ return Promise.reject(new Error("请输入物流单号"));
114
131
  }
115
132
  }
116
133
  return Promise.resolve();
@@ -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 | JstSendGood | MsgStatus | PublicGoods | PublicReissueGoods | ReturnLogistics | WdtReissue | BasicInput | 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 | 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 | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsE3Reissue | BasicFile | JstSendGood | MsgStatus | BasicPicture | BasicPicturePro | PublicReissueGoods | BasicSelect | WdtReissue | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelectOption | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | 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 | PublicExchange | 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 | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -145,6 +145,7 @@ export var factory = function factory(type, options) {
145
145
  case "GY_SYSTEM_ORDER":
146
146
  case "JST_SYSTEM_ORDER":
147
147
  case "JY_SYSTEM_ORDER":
148
+ case "WDT_RETURN_BILL_NO":
148
149
  return new BsSystemOrder(options);
149
150
  case "JST_SEND_GOOD":
150
151
  case "BS_SEND_GOOD":
@@ -166,6 +167,8 @@ export var factory = function factory(type, options) {
166
167
  case "JY_GOODS":
167
168
  case "KM_GOODS":
168
169
  case "JST_GOODS":
170
+ case "WDT_AFTERSALE_GOODS":
171
+ case "JST_AFTERSALE_GOODS":
169
172
  return new PublicGoods(options);
170
173
  case "JST_REISSUE_GOODS":
171
174
  case "KM_REISSUE_GOODS":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.30",
3
+ "version": "2.2.31-beta.12",
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.30",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.30",
24
+ "@kmkf-fe-packages/basic-components": "2.2.31-beta.12",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.31-beta.12",
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": "4a0966470313ad60542fff7c83154f346a3a1880",
44
+ "gitHead": "05ed7536b1523525ff25fcf62e7180aa79bf69d0",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }
@@ -1,3 +0,0 @@
1
- import { GetColumnsBaseInfoMapFnType } from "./columnsBaseInfoMap";
2
- declare const getColumns: GetColumnsBaseInfoMapFnType;
3
- export default getColumns;