@kmkf-fe-packages/services-components 2.7.6 → 2.7.7-beta.2

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 (27) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -9
  3. package/dist/esm/components/BS/BsLogistics/index.js +0 -1
  4. package/dist/esm/components/BS/BsSystemOrder/index.js +5 -0
  5. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
  6. package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
  7. package/dist/esm/components/BS/common/BsMemo.js +2 -1
  8. package/dist/esm/components/BS/common/BsType.js +2 -1
  9. package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
  10. package/dist/esm/components/CommonHeaderGood/index.js +158 -0
  11. package/dist/esm/components/CommonMultiStatus/index.js +27 -4
  12. package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
  13. package/dist/esm/components/JST/JstSendGood/index.js +50 -18
  14. package/dist/esm/components/LogisticsInterception/index.js +3 -2
  15. package/dist/esm/components/Public/Goods/index.js +4 -0
  16. package/dist/esm/components/Public/ReissueGoods/index.js +18 -0
  17. package/dist/esm/components/StatusSelect/index.js +4 -0
  18. package/dist/esm/factory.d.ts +2 -2
  19. package/dist/esm/factory.js +9 -4
  20. package/dist/esm/service/api.js +3 -0
  21. package/dist/esm/type.d.ts +5 -3
  22. package/package.json +4 -4
  23. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  24. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  25. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  26. package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
  27. package/dist/esm/components/Common/dist/index.js +0 -1019
@@ -1,6 +1,6 @@
1
1
  import LogisticsInterception from "../components/LogisticsInterception";
2
2
  import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
3
- export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | import("../components/MsgStatus").default | import("../components/Payment").default | import("../components/PicturePro").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/ReturnWarehouse").default | import("../components/ReceiverAddress").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/TradeDateTime").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsLogistics").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
3
+ export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | LogisticsMoreInterception | import("../components/Payment").default | import("../components/PicturePro").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/ReturnWarehouse").default | import("../components/ReceiverAddress").default | import("../components/StatusSelect").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/CommonDataTime").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/TradeDateTime").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/Calculation").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
4
4
  export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
5
5
  queryWorkOrderDetail?: ((p: any) => void) | undefined;
6
6
  flatTemplateList?: any;
@@ -23,7 +23,7 @@ function useGetErpSendData(reduxData, notJudgedErp) {
23
23
  }, [hasErpData, notJudgedErp]);
24
24
  var asyncQueryData = /*#__PURE__*/function () {
25
25
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(hasErpData, notJudgedErp, isReload) {
26
- var hasWdt, hasGy, hasJst, hasJy, hasJky, promises;
26
+ var hasWdt, hasGy, hasJst, hasJy, hasJky, hasWln, promises;
27
27
  return _regeneratorRuntime().wrap(function _callee$(_context) {
28
28
  while (1) switch (_context.prev = _context.next) {
29
29
  case 0:
@@ -31,30 +31,31 @@ function useGetErpSendData(reduxData, notJudgedErp) {
31
31
  setGlobalState("loading");
32
32
  }
33
33
  _context.prev = 1;
34
- hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky;
34
+ hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasWln = hasErpData.hasWln;
35
35
  promises = [];
36
36
  if (hasWdt || notJudgedErp) promises.push(SendDataCenter.getInstance("wdt").fetchData);
37
37
  if (hasGy || notJudgedErp) promises.push(SendDataCenter.getInstance("gy").fetchData);
38
38
  if (hasJst || notJudgedErp) promises.push(SendDataCenter.getInstance("jst").fetchData);
39
39
  if (hasJy || notJudgedErp) promises.push(SendDataCenter.getInstance("jy").fetchData);
40
40
  if (hasJky || notJudgedErp) promises.push(SendDataCenter.getInstance("jky").fetchData);
41
- _context.next = 11;
41
+ if (hasWln || notJudgedErp) promises.push(SendDataCenter.getInstance("wln").fetchData);
42
+ _context.next = 12;
42
43
  return Promise.all(promises.map(function (promise) {
43
44
  return promise();
44
45
  }));
45
- case 11:
46
+ case 12:
46
47
  setGlobalState("success");
47
- _context.next = 17;
48
+ _context.next = 18;
48
49
  break;
49
- case 14:
50
- _context.prev = 14;
50
+ case 15:
51
+ _context.prev = 15;
51
52
  _context.t0 = _context["catch"](1);
52
53
  setGlobalState("failed");
53
- case 17:
54
+ case 18:
54
55
  case "end":
55
56
  return _context.stop();
56
57
  }
57
- }, _callee, null, [[1, 14]]);
58
+ }, _callee, null, [[1, 15]]);
58
59
  }));
59
60
  return function asyncQueryData(_x2, _x3, _x4) {
60
61
  return _ref.apply(this, arguments);
@@ -187,7 +187,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
187
187
  _defineProperty(this, "renderPc", function (value, record) {
188
188
  var _typeMap$_this$type2, _typeMap$_this$type3;
189
189
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
190
- console.log("\uD83D\uDE80 ~ index.tsx:234 ~ list:", list);
191
190
  //兼容多个商品
192
191
  return /*#__PURE__*/React.createElement("span", {
193
192
  onClick: function onClick(e) {
@@ -158,6 +158,11 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
158
158
  showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
159
159
  })) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
160
160
  return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
161
+ parent: {
162
+ id: _this.id,
163
+ formField: _this.formField,
164
+ sortField: _this.sortField
165
+ },
161
166
  transformValue: column.render,
162
167
  renderExport: column.renderExport,
163
168
  name: column.title,
@@ -14,16 +14,17 @@ declare class BsHeaderChild implements ComponentInterface {
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
16
  parentName?: string;
17
- transformValue: (val: any, record?: any, parentName?: string) => any;
18
- export: (val: any, record?: any, parentName?: string) => any;
17
+ parent?: any;
18
+ transformValue: (val: any, record?: any, parentName?: string, parent?: any, index?: number) => any;
19
+ export: (val: any, record?: any, parentName?: string, parent?: any, index?: number) => any;
19
20
  constructor(options: PickOption);
20
21
  getParentId: () => string;
21
- renderClient: (record: any) => React.JSX.Element | null;
22
- renderPc: (value: unknown, record: Record) => React.JSX.Element;
23
- renderLog: (r: Record) => React.JSX.Element | null;
24
- getComponentValue: (r: Record) => any;
25
- getComponentExport: (r: Record) => any;
26
- renderExport: (value: string, record: Record) => any;
22
+ renderClient: (record: any, index: number) => React.JSX.Element | null;
23
+ renderPc: (value: unknown, record: Record, index?: number) => React.JSX.Element;
24
+ renderLog: (r: Record, index?: number) => React.JSX.Element | null;
25
+ getComponentValue: (r: Record, index?: number) => any;
26
+ getComponentExport: (r: Record, index?: number) => any;
27
+ renderExport: (value: string, record: Record, index?: number) => any;
27
28
  editRender: () => null;
28
29
  filterConfig: () => never[];
29
30
  }
@@ -30,6 +30,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
30
30
  _defineProperty(this, "children", void 0);
31
31
  _defineProperty(this, "dataType", void 0);
32
32
  _defineProperty(this, "parentName", void 0);
33
+ _defineProperty(this, "parent", void 0);
33
34
  _defineProperty(this, "transformValue", function (val) {
34
35
  return val;
35
36
  });
@@ -44,31 +45,31 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
44
45
  code = _this$id$split2[2];
45
46
  return "".concat(key, "_").concat(name);
46
47
  });
47
- _defineProperty(this, "renderClient", function (record) {
48
+ _defineProperty(this, "renderClient", function (record, index) {
48
49
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
49
50
  id: _this.id,
50
51
  label: _this.name,
51
- value: _this.getComponentValue(record)
52
+ value: _this.getComponentValue(record, index)
52
53
  }) : null;
53
54
  });
54
- _defineProperty(this, "renderPc", function (value, record) {
55
+ _defineProperty(this, "renderPc", function (value, record, index) {
55
56
  var _this$getComponentVal;
56
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
57
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record, index)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
57
58
  });
58
- _defineProperty(this, "renderLog", function (r) {
59
+ _defineProperty(this, "renderLog", function (r, index) {
59
60
  var id = _this.getParentId();
60
61
  if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
61
- return _this.renderPc(undefined, r);
62
+ return _this.renderPc(undefined, r, index);
62
63
  });
63
- _defineProperty(this, "getComponentValue", function (r) {
64
- return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
64
+ _defineProperty(this, "getComponentValue", function (r, index) {
65
+ return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
65
66
  });
66
- _defineProperty(this, "getComponentExport", function (r) {
67
- return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
67
+ _defineProperty(this, "getComponentExport", function (r, index) {
68
+ return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName, _this.parent, index);
68
69
  });
69
- _defineProperty(this, "renderExport", function (value, record) {
70
+ _defineProperty(this, "renderExport", function (value, record, index) {
70
71
  var _this$getComponentExp;
71
- var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
+ var val = (_this$getComponentExp = _this.getComponentExport(record, index)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
73
  return typeof val === "number" ? val + "" : val;
73
74
  });
74
75
  _defineProperty(this, "editRender", function () {
@@ -85,6 +86,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
85
86
  if (options.parentName) {
86
87
  this.parentName = options.parentName;
87
88
  }
89
+ if (options.parent) {
90
+ this.parent = options.parent;
91
+ }
88
92
  this.componentConfig = options.componentConfig;
89
93
  this.align = "left";
90
94
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
@@ -28,7 +28,8 @@ var componentType = {
28
28
  KM_REISSUE_GOODS: "kmReissueType",
29
29
  KM_RETURN_GOODS: "kmReturnType",
30
30
  JY_REISSUE_GOODS: "jyReissueType",
31
- JKY_REISSUE_GOODS: "jkyReissueType"
31
+ JKY_REISSUE_GOODS: "jkyReissueType",
32
+ WLN_REISSUE_GOODS: "wlnReissueType"
32
33
  };
33
34
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
34
35
  var _this = this;
@@ -29,7 +29,8 @@ var componentType = {
29
29
  KM_REISSUE_GOODS: "kmReissueType",
30
30
  KM_RETURN_GOODS: "kmReturnType",
31
31
  JY_REISSUE_GOODS: "jyReissueType",
32
- JKY_REISSUE_GOODS: "jkyReissueType"
32
+ JKY_REISSUE_GOODS: "jkyReissueType",
33
+ WLN_REISSUE_GOODS: "wlnReissueType"
33
34
  };
34
35
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
35
36
  var _this = this;
@@ -24,7 +24,8 @@ var componentType = {
24
24
  KM_REISSUE_GOODS: "kmSystemOrderNo",
25
25
  KM_RETURN_GOODS: "kmSystemOrderNo",
26
26
  JY_REISSUE_GOODS: "jySystemOrderNo",
27
- JKY_REISSUE_GOODS: "jkySystemOrderNo"
27
+ JKY_REISSUE_GOODS: "jkySystemOrderNo",
28
+ WLN_REISSUE_GOODS: "wlnSystemOrderNo"
28
29
  };
29
30
  var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
30
31
  var _this = this;
@@ -1411,6 +1411,10 @@ var GoodHeaderMap = {
1411
1411
  name: "商品编码",
1412
1412
  width: 250
1413
1413
  },
1414
+ wlnSkuName: {
1415
+ name: "sku名称",
1416
+ width: 250
1417
+ },
1414
1418
  skuCode: {
1415
1419
  name: "sku编码",
1416
1420
  width: 250
@@ -1457,6 +1461,132 @@ var GoodHeaderMap = {
1457
1461
  width: 100
1458
1462
  },
1459
1463
  share: "应收款",
1464
+ discountedUnitPrice: {
1465
+ name: "折后单价",
1466
+ width: 250
1467
+ },
1468
+ originPrice: {
1469
+ name: "原价",
1470
+ width: 250
1471
+ },
1472
+ price: {
1473
+ name: "单价",
1474
+ width: 250
1475
+ },
1476
+ receivable: {
1477
+ name: "销售金额",
1478
+ width: 250
1479
+ },
1480
+ type: {
1481
+ name: "赠品类型",
1482
+ width: 100
1483
+ },
1484
+ isPackage: {
1485
+ width: 100,
1486
+ name: "是否组合商品",
1487
+ transformValue: function transformValue(val) {
1488
+ if (isNull(val)) return "--";
1489
+ return val ? "是" : "否";
1490
+ },
1491
+ renderExport: function renderExport(val) {
1492
+ if (isNull(val)) return "--";
1493
+ return val ? "是" : "否";
1494
+ }
1495
+ },
1496
+ hasRefund: {
1497
+ width: 100,
1498
+ name: "是否退款",
1499
+ transformValue: function transformValue(val) {
1500
+ if (isNull(val)) return "--";
1501
+ return val ? "是" : "否";
1502
+ },
1503
+ renderExport: function renderExport(val) {
1504
+ if (isNull(val)) return "--";
1505
+ return val ? "是" : "否";
1506
+ }
1507
+ },
1508
+ unit: {
1509
+ name: "单位",
1510
+ width: 100
1511
+ },
1512
+ pkgGoodsName: {
1513
+ name: "原组合商品名称",
1514
+ width: 200
1515
+ },
1516
+ pkgGoodsCode: {
1517
+ name: "原组合商品编码",
1518
+ width: 200
1519
+ },
1520
+ pkgGoodsId: {
1521
+ name: "原组合商品id",
1522
+ width: 200
1523
+ }
1524
+ },
1525
+ moneyKey: "money"
1526
+ },
1527
+ WLN_REISSUE_GOODS: {
1528
+ headerMap: {
1529
+ wlnItemName: {
1530
+ name: "商品名称",
1531
+ width: 250
1532
+ },
1533
+ goodsCode: {
1534
+ name: "商品编码",
1535
+ width: 250
1536
+ },
1537
+ wlnSkuName: {
1538
+ name: "sku名称",
1539
+ width: 250
1540
+ },
1541
+ skuCode: {
1542
+ name: "sku编码",
1543
+ width: 250
1544
+ },
1545
+ skuName: {
1546
+ name: "线上sku名称",
1547
+ width: 250
1548
+ },
1549
+ olnSkuCode: {
1550
+ name: "线上sku编码",
1551
+ width: 150
1552
+ },
1553
+ sku: {
1554
+ name: "线上sku id",
1555
+ width: 150
1556
+ },
1557
+ name: {
1558
+ name: "线上商品名称",
1559
+ width: 250
1560
+ },
1561
+ pic: {
1562
+ name: "线上图片",
1563
+ width: 100,
1564
+ component: BsHeaderPic
1565
+ },
1566
+ olnItemCOde: {
1567
+ name: "线上商品编码",
1568
+ width: 150
1569
+ },
1570
+ code: {
1571
+ name: "线上商品id",
1572
+ width: 150
1573
+ },
1574
+ barCode: {
1575
+ name: "商品条码",
1576
+ width: 150
1577
+ },
1578
+ price: {
1579
+ name: "单价",
1580
+ width: 250
1581
+ },
1582
+ number: {
1583
+ name: "数量",
1584
+ width: 100
1585
+ },
1586
+ outPrice: {
1587
+ name: "实付金额",
1588
+ width: 100
1589
+ },
1460
1590
  type: {
1461
1591
  name: "赠品类型",
1462
1592
  width: 100
@@ -1472,6 +1602,34 @@ var GoodHeaderMap = {
1472
1602
  if (isNull(val)) return "--";
1473
1603
  return val ? "是" : "否";
1474
1604
  }
1605
+ },
1606
+ hasRefund: {
1607
+ width: 100,
1608
+ name: "是否退款",
1609
+ transformValue: function transformValue(val) {
1610
+ if (isNull(val)) return "--";
1611
+ return val ? "是" : "否";
1612
+ },
1613
+ renderExport: function renderExport(val) {
1614
+ if (isNull(val)) return "--";
1615
+ return val ? "是" : "否";
1616
+ }
1617
+ },
1618
+ unit: {
1619
+ name: "单位",
1620
+ width: 100
1621
+ },
1622
+ pkgGoodsName: {
1623
+ name: "原组合商品名称",
1624
+ width: 200
1625
+ },
1626
+ pkgGoodsCode: {
1627
+ name: "原组合商品编码",
1628
+ width: 200
1629
+ },
1630
+ pkgGoodsId: {
1631
+ name: "原组合商品id",
1632
+ width: 200
1475
1633
  }
1476
1634
  },
1477
1635
  moneyKey: "money"
@@ -134,6 +134,29 @@ var typeMap = {
134
134
  failValue: "失败",
135
135
  dataType: "array_object"
136
136
  },
137
+ WLN_WAREHOUSING_STATUS: {
138
+ options: [{
139
+ value: "1",
140
+ label: "未入库",
141
+ color: "#ff4d4f"
142
+ }, {
143
+ value: "2",
144
+ label: "部分入库",
145
+ color: "#e7780f"
146
+ }, {
147
+ value: "3",
148
+ label: "已入库",
149
+ color: "#52c41a"
150
+ }],
151
+ key: "wlnInStockStatusItemList",
152
+ code: "wlnInStockStatusList",
153
+ name: "商品入库状态",
154
+ type: 2,
155
+ valueKey: "status",
156
+ idKey: "systemOrderId",
157
+ failValue: "失败",
158
+ dataType: "array_object"
159
+ },
137
160
  JKY_WAREHOUSING_STATUS: {
138
161
  options: [{
139
162
  value: "0",
@@ -272,11 +295,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
272
295
  _defineProperty(this, "filterConfig", function (item) {
273
296
  var _typeMap$_this$type21, _item$templateConfig;
274
297
  return {
275
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
298
+ searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
276
299
  type: item.type,
277
300
  id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
278
301
  name: "".concat(_this.name),
279
- filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
302
+ filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
280
303
  props: {
281
304
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
282
305
  fieldNames: {
@@ -291,7 +314,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
291
314
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
292
315
  };
293
316
  },
294
- formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
317
+ formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
295
318
  if (value.type === "in") {
296
319
  return value.keywords;
297
320
  } else {
@@ -327,6 +350,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
327
350
  }
328
351
  }] : [];
329
352
  this.align = "left";
330
- this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
353
+ this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
331
354
  });
332
355
  export default CommonMultiStatus;
@@ -29,6 +29,16 @@ declare class JstSendGood implements ComponentInterface {
29
29
  renderExport: (value: any, record: any) => any;
30
30
  editRender: (p: any) => React.JSX.Element;
31
31
  filterConfig: (item: ColumnConfig) => ({
32
+ searchDefaultConditions: "like";
33
+ type: string;
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "TagsSelect";
37
+ props: {
38
+ options: any[];
39
+ };
40
+ filterFn: (value: string) => (i: Record) => any;
41
+ } | {
32
42
  searchDefaultConditions: "in";
33
43
  type: string;
34
44
  id: string;
@@ -1,4 +1,9 @@
1
+ var _excluded = ["label", "value"];
1
2
  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); }
3
+ 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; }
4
+ 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; }
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
7
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
8
  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); } }
4
9
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -44,7 +49,7 @@ var typeMap = {
44
49
  name: "wln",
45
50
  sendId: "wlnSendId",
46
51
  sendName: "wlnSendName",
47
- platformType: "default",
52
+ platformType: "wln",
48
53
  dataType: "arrayObject"
49
54
  },
50
55
  KM_SEND_GOOD: {
@@ -191,38 +196,65 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
191
196
  });
192
197
  });
193
198
  _defineProperty(this, "filterConfig", function (item) {
194
- var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
195
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
196
- searchDefaultConditions: SYMBOL.in,
199
+ var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type12;
200
+ return [["WLN_SEND_GOOD"].includes(_this.type) ? {
201
+ searchDefaultConditions: SYMBOL.like,
197
202
  type: item.type,
198
203
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
199
204
  name: "".concat(_this.name, "-\u540D\u79F0"),
200
- filterComponentType: "MultipleSelect",
205
+ filterComponentType: "TagsSelect",
201
206
  props: {
202
- options: SendDataCenter.getInstance(item.type).getSendData()
207
+ options: SendDataCenter.getInstance(item.type).getSendData().map(function (_ref) {
208
+ var label = _ref.label,
209
+ value = _ref.value,
210
+ other = _objectWithoutProperties(_ref, _excluded);
211
+ return _objectSpread(_objectSpread({}, other), {}, {
212
+ label: label,
213
+ value: label
214
+ });
215
+ })
203
216
  },
204
217
  filterFn: function filterFn(value) {
205
218
  return function (i) {
206
- var _ref;
207
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
219
+ var _ref2;
220
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
208
221
  var _String;
209
222
  var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
210
223
  return sendName;
211
224
  });
212
225
  };
213
226
  }
227
+ } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
228
+ searchDefaultConditions: SYMBOL.in,
229
+ type: item.type,
230
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
231
+ name: "".concat(_this.name, "-\u540D\u79F0"),
232
+ filterComponentType: "MultipleSelect",
233
+ props: {
234
+ options: SendDataCenter.getInstance(item.type).getSendData()
235
+ },
236
+ filterFn: function filterFn(value) {
237
+ return function (i) {
238
+ var _ref3;
239
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
240
+ var _String2;
241
+ var sendName = item ? (_String2 = String(item)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
242
+ return sendName;
243
+ });
244
+ };
245
+ }
214
246
  } : {
215
247
  searchDefaultConditions: SYMBOL.like,
216
248
  type: item.type,
217
- id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
249
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.sendName),
218
250
  name: "".concat(_this.name, "-\u540D\u79F0"),
219
251
  filterComponentType: "Input",
220
252
  filterFn: function filterFn(value) {
221
253
  return function (i) {
222
- var _ref2, _typeMap$_this$type10;
223
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
224
- var _String2;
225
- var name = item !== null && item !== void 0 && item.sendName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
254
+ var _ref4, _typeMap$_this$type11;
255
+ return (_ref4 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key) || []) === null || _ref4 === void 0 ? void 0 : _ref4.some(function (item) {
256
+ var _String3;
257
+ var name = item !== null && item !== void 0 && item.sendName ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
226
258
  return name;
227
259
  });
228
260
  };
@@ -230,15 +262,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
230
262
  }, {
231
263
  searchDefaultConditions: SYMBOL.like,
232
264
  type: item.type,
233
- id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.sendId),
265
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.sendId),
234
266
  name: "".concat(_this.name, "-\u7F16\u7801"),
235
267
  filterComponentType: "Input",
236
268
  filterFn: function filterFn(value) {
237
269
  return function (i) {
238
- var _ref3, _typeMap$_this$type12;
239
- return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
240
- var _String3;
241
- var id = item !== null && item !== void 0 && item.sendId ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
270
+ var _ref5, _typeMap$_this$type13;
271
+ return (_ref5 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.key) || []) === null || _ref5 === void 0 ? void 0 : _ref5.some(function (item) {
272
+ var _String4;
273
+ var id = item !== null && item !== void 0 && item.sendId ? (_String4 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String4 === void 0 ? void 0 : _String4.includes(value) : false;
242
274
  return id;
243
275
  });
244
276
  };
@@ -91,7 +91,7 @@ function Logistics(options) {
91
91
  return null;
92
92
  });
93
93
  _defineProperty(this, "editRender", function (p) {
94
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3;
94
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects4$workOr;
95
95
  var onInterceptCodeBlur = function onInterceptCodeBlur(val) {
96
96
  if (_this.isChange) {
97
97
  var _p$onBlur;
@@ -123,7 +123,8 @@ function Logistics(options) {
123
123
  logisticsOptions: _this.expressDateInstance.getExpressData(),
124
124
  expressInterceptData: _this.expressInterceptData.getExpressData(),
125
125
  logisticsAddressData: _this.logisticsAddressData.getAddressData(),
126
- isEditing: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.isEditing
126
+ isEditing: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.isEditing,
127
+ preCreateAndNotModified: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : (_this$effects4$workOr = _this$effects4.workOrderDetail) === null || _this$effects4$workOr === void 0 ? void 0 : _this$effects4$workOr.preCreateAndNotModified
127
128
  }))
128
129
  });
129
130
  });
@@ -42,6 +42,10 @@ var CONFIG_MAP = {
42
42
  JST_AFTERSALE_GOODS: {
43
43
  name: "jst售后",
44
44
  key: "jstAftersaleGoods"
45
+ },
46
+ WLN_GOODS: {
47
+ name: "万里牛",
48
+ key: "wlnGoods"
45
49
  }
46
50
  };
47
51
  var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {