@kmkf-fe-packages/services-components 2.2.29 → 2.2.31-beta.0

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 (29) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/components/BS/BsLogistics/index.js +9 -9
  3. package/dist/esm/components/BS/BsSystemOrder/index.js +4 -2
  4. package/dist/esm/components/BS/common/expressCode.js +1 -2
  5. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  6. package/dist/esm/components/Common/index.js +5 -3
  7. package/dist/esm/components/CommonHeaderGood/index.js +164 -4
  8. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  9. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  10. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  11. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  12. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  13. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  14. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  15. package/dist/esm/components/MsgStatus/index.js +6 -1
  16. package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
  17. package/dist/esm/components/Payment/PaymentAmount.js +0 -4
  18. package/dist/esm/components/Public/Goods/index.js +8 -0
  19. package/dist/esm/components/Public/ReissueGoods/index.js +7 -3
  20. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  21. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  22. package/dist/esm/components/WDT/WdtRessuie/index.js +7 -4
  23. package/dist/esm/factory.d.ts +1 -1
  24. package/dist/esm/factory.js +3 -0
  25. package/package.json +4 -4
  26. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  27. package/dist/esm/components/Common/constants/gy.js +0 -219
  28. package/dist/esm/components/Common/constants/wdt.d.ts +0 -3
  29. package/dist/esm/components/Common/constants/wdt.js +0 -308
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -82,6 +82,15 @@ var typeMap = {
82
82
  companyDataType: "string",
83
83
  companyCodeType: "arrayObject"
84
84
  },
85
+ JY_LOGISTICS: {
86
+ key: "jyLogisticsList",
87
+ name: "巨益",
88
+ company: "jyLogisticsCompany",
89
+ code: "jyLogisticsCode",
90
+ platformType: "jy",
91
+ companyDataType: "arrayObject",
92
+ companyCodeType: "arrayObject"
93
+ },
85
94
  SKX_LOGISTICS: {
86
95
  key: "skxLogisticsList",
87
96
  name: "斯凯奇",
@@ -101,15 +110,6 @@ var typeMap = {
101
110
  companyDataType: "like",
102
111
  companyCodeType: "like",
103
112
  logisticsCompanyFormType: "input"
104
- },
105
- JY_LOGISTICS: {
106
- key: "jyLogisticsList",
107
- name: "巨益",
108
- company: "jyLogisticsCompany",
109
- code: "jyLogisticsCode",
110
- platformType: "jy",
111
- companyDataType: "string",
112
- companyCodeType: "arrayObject"
113
113
  }
114
114
  };
115
115
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -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, 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 } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { isNull, 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 } 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";
@@ -25,7 +25,8 @@ var typeMap = {
25
25
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
26
26
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
27
27
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
28
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG
28
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
29
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
29
30
  };
30
31
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
31
32
  var _this = this,
@@ -121,6 +122,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
121
122
  columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
122
123
  showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
123
124
  })) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
125
+ console.log("column", column, "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex));
124
126
  return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
125
127
  transformValue: column.render,
126
128
  renderExport: column.renderExport,
@@ -80,8 +80,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
80
80
  }
81
81
  return /*#__PURE__*/React.createElement(BsExpressRender, {
82
82
  list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
83
- showField: "code",
84
- logisticsCompanyFormType: _this.logisticsCompanyFormType || "select"
83
+ showField: "code"
85
84
  });
86
85
  });
87
86
  _defineProperty(this, "renderLog", function (r) {
@@ -178,11 +178,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
178
178
  this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
179
179
  required: true,
180
180
  validator: function validator(_, value) {
181
- var _value, _typeMap$options$type6;
181
+ var _value, _typeMap$options$type6, _typeMap$options$type8;
182
182
  if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
183
183
  var _typeMap$options$type7;
184
184
  return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
185
185
  }
186
+ if (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.systemOrderNo)])) {
187
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
188
+ }
186
189
  return Promise.resolve();
187
190
  }
188
191
  }] : [];
@@ -21,7 +21,7 @@ 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
27
  var Paragraph = Typography.Paragraph;
@@ -780,7 +780,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
780
780
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
781
781
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
782
782
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
783
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
783
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
784
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
784
785
  };
785
786
  var rowKeyMap = {
786
787
  BS_SYSTEM_ORDER: "billNo",
@@ -790,7 +791,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
790
791
  BS_E3_SYSTEM_ORDER: "orderSn",
791
792
  GY_SYSTEM_ORDER: "billNo",
792
793
  JST_SYSTEM_ORDER: "oId",
793
- JY_SYSTEM_ORDER: "tradeNo"
794
+ JY_SYSTEM_ORDER: "tradeNo",
795
+ WDT_RETURN_BILL_NO: "refundNo"
794
796
  };
795
797
  var rowSelection = {
796
798
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
@@ -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] = {
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),
@@ -30,7 +30,7 @@ var ColumnHeader = function ColumnHeader(_ref) {
30
30
  return setVisible(false);
31
31
  },
32
32
  footer: null
33
- }, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
33
+ }, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u4E2D\u901A\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
34
34
  style: {
35
35
  color: "#ff4d4f"
36
36
  }
@@ -31,9 +31,10 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
31
31
  return r === null || r === void 0 ? void 0 : r[_this.id];
32
32
  });
33
33
  _defineProperty(this, "renderClient", function (record) {
34
+ var name = (record === null || record === void 0 ? void 0 : record[_this.companyId]) === "ZTO" ? "发件人/收件人手机号" : _this.name;
34
35
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
36
  id: _this.id,
36
- label: _this.name,
37
+ label: name,
37
38
  value: record === null || record === void 0 ? void 0 : record[_this.id]
38
39
  }) : null;
39
40
  });
@@ -56,7 +57,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
56
57
  searchDefaultConditions: SYMBOL.like,
57
58
  type: item.type,
58
59
  id: "".concat(item.id, "_interceptSenderMobile"),
59
- name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
60
+ name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"),
60
61
  filterComponentType: "Input",
61
62
  filterFn: function filterFn(value) {
62
63
  return function (i) {
@@ -8,6 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from "react";
9
9
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { isEmpty } from "lodash";
11
12
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, PaymentTid);
@@ -52,9 +53,10 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
52
53
  });
53
54
  _defineProperty(this, "renderExport", function (value, record) {
54
55
  var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
55
- console.log("renderExport", record["".concat(_this.originId, "_logisticsInterceptList")]);
56
- return logisticsInterceptList.reduce(function (prv, item) {
56
+ return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : logisticsInterceptList.reduce(function (prv, item) {
57
57
  var _item$interceptAddres2;
58
+ // item 若为空对象,则跳过
59
+ if (isEmpty(item)) return prv;
58
60
  var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
59
61
  return _this.addressDateInstance.getNameByCode(suffix);
60
62
  }).join("");
@@ -30,7 +30,7 @@ var InterceptApiStatus = /*#__PURE__*/_createClass(function InterceptApiStatus(o
30
30
  _defineProperty(this, "getComponentValue", function (r) {
31
31
  var _ref;
32
32
  return (_ref = (r === null || r === void 0 ? void 0 : r[_this.id]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
33
- return "".concat(item === null || item === void 0 ? void 0 : item.status).concat(item !== null && item !== void 0 && item.reason ? ",".concat(item === null || item === void 0 ? void 0 : item.reason) : "");
33
+ return "".concat((item === null || item === void 0 ? void 0 : item.status) || "").concat(item !== null && item !== void 0 && item.reason ? ",".concat(item === null || item === void 0 ? void 0 : item.reason) : "");
34
34
  }).join(";");
35
35
  });
36
36
  _defineProperty(this, "renderStatus", function (record) {
@@ -1,20 +1,20 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class InterceptSenderMobile implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  companyId: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface['componentConfig'];
10
- effects: ComponentInterface['effects'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
11
  align: ALignType;
12
12
  width: number;
13
13
  isCombinationComponent: boolean;
14
14
  sortField: string;
15
15
  formField: string;
16
16
  canSort: boolean;
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
18
  children: ComponentInterface[];
19
19
  constructor(options: PickOption);
20
20
  renderMobile: (record: any) => React.JSX.Element;
@@ -5,8 +5,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  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; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  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); }
8
- import React from 'react';
9
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import { SYMBOL } from "../../constant";
11
11
  var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
12
12
  var _this = this;
@@ -35,7 +35,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
35
35
  _defineProperty(this, "getComponentValue", function (r) {
36
36
  return ((r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || []).map(function (t) {
37
37
  return t.interceptSenderMobile;
38
- }).join(',');
38
+ }).join(",");
39
39
  });
40
40
  _defineProperty(this, "renderClient", function () {
41
41
  return null;
@@ -49,7 +49,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
49
49
  });
50
50
  _defineProperty(this, "renderExport", function (value, record) {
51
51
  var _this$getComponentVal;
52
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
52
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
53
53
  });
54
54
  _defineProperty(this, "editRender", function () {
55
55
  return null;
@@ -59,20 +59,20 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
59
59
  searchDefaultConditions: SYMBOL.like,
60
60
  type: item.type,
61
61
  id: "".concat(item.id, "_logisticsInterceptList"),
62
- name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
63
- filterComponentType: 'Input'
62
+ name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"),
63
+ filterComponentType: "Input"
64
64
  };
65
65
  });
66
- this.name = '发件人手机号';
66
+ this.name = "发件人手机号";
67
67
  this.id = "".concat(options.id, "_interceptMobileList");
68
68
  this.companyId = "".concat(options.id);
69
69
  this.formField = "".concat(options.id);
70
70
  this.sortField = "".concat(options.id);
71
- this.dataType = 'string';
71
+ this.dataType = "string";
72
72
  this.type = options.type;
73
73
  this.componentConfig = options.componentConfig;
74
74
  this.rules = [];
75
- this.align = 'left';
75
+ this.align = "left";
76
76
  this.width = 200;
77
77
  this.isCombinationComponent = false;
78
78
  this.canSort = false;
@@ -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) {
@@ -256,18 +256,22 @@ var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
256
256
  this.rules = [{
257
257
  required: isRequired,
258
258
  validator: function validator(_, value) {
259
- var _value, _typeMap$options$type11;
259
+ var _value, _typeMap$options$type11, _typeMap$options$type13;
260
260
  if (isRequired && (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type11 = typeMap[options.type]) === null || _typeMap$options$type11 === void 0 ? void 0 : _typeMap$options$type11.key)]) !== null && _value !== void 0 && _value.length))) {
261
261
  var _typeMap$options$type12;
262
262
  return Promise.reject(new Error("".concat((_typeMap$options$type12 = typeMap[options.type]) === null || _typeMap$options$type12 === void 0 ? void 0 : _typeMap$options$type12.errMsg)));
263
263
  }
264
+ // 快麦补发商品补发系统单需要校验
265
+ if (isRequired && ["KM_REISSUE_GOODS"].includes(options.type) && (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type13 = typeMap[options.type]) === null || _typeMap$options$type13 === void 0 ? void 0 : _typeMap$options$type13.systemOrderNo)]))) {
266
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
267
+ }
264
268
  return Promise.resolve();
265
269
  }
266
270
  }, {
267
271
  required: isRequired,
268
272
  validator: function validator(_rule, value) {
269
- var _typeMap$options$type13, _typeMap$options$type14;
270
- return ((_typeMap$options$type13 = typeMap[options.type]) === null || _typeMap$options$type13 === void 0 ? void 0 : (_typeMap$options$type14 = _typeMap$options$type13.validator) === null || _typeMap$options$type14 === void 0 ? void 0 : _typeMap$options$type14.call(_typeMap$options$type13, _rule, value, options.type)) || function () {
273
+ var _typeMap$options$type14, _typeMap$options$type15;
274
+ return ((_typeMap$options$type14 = typeMap[options.type]) === null || _typeMap$options$type14 === void 0 ? void 0 : (_typeMap$options$type15 = _typeMap$options$type14.validator) === null || _typeMap$options$type15 === void 0 ? void 0 : _typeMap$options$type15.call(_typeMap$options$type14, _rule, value, options.type)) || function () {
271
275
  return Promise.resolve();
272
276
  };
273
277
  }
@@ -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;