@kmkf-fe-packages/services-components 2.2.41 → 2.2.44-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 (28) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -9
  4. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +4 -3
  5. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -19
  6. package/dist/esm/components/BS/BsLogistics/index.js +9 -0
  7. package/dist/esm/components/BS/BsSystemOrder/index.js +2 -2
  8. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  9. package/dist/esm/components/BS/common/BsHeaderPic.js +13 -1
  10. package/dist/esm/components/BS/common/expressCode.js +4 -2
  11. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  12. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
  13. package/dist/esm/components/Common/index.js +3 -1
  14. package/dist/esm/components/CommonHeaderGood/index.js +421 -5
  15. package/dist/esm/components/CommonInput/index.js +11 -3
  16. package/dist/esm/components/JST/JstSendGood/index.js +9 -1
  17. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  18. package/dist/esm/components/MsgStatus/index.js +6 -1
  19. package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
  20. package/dist/esm/components/Payment/PaymentAmount.js +0 -4
  21. package/dist/esm/components/Public/Goods/index.js +4 -0
  22. package/dist/esm/components/StatusSelect/index.js +4 -0
  23. package/dist/esm/components/SubForm/index.js +39 -47
  24. package/dist/esm/factory.d.ts +1 -1
  25. package/dist/esm/factory.js +7 -0
  26. package/dist/esm/service/api.d.ts +1 -0
  27. package/dist/esm/service/api.js +6 -0
  28. package/package.json +4 -4
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -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/ActualPayment").default | import("../components/Address").default | import("../components/AfterSalesOrderId").default | import("../components/Alipay").default | import("../components/BS/BsExchange").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsPosting").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Calculation").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/CommonDataTime").default | import("../components/CommonInput").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/CompletedUser").default | import("../components/DataTime").default | import("../components/EItemEnCode").default | import("../components/EItemId").default | import("../components/EItemSelect").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").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/TradeId").default | import("../components/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/Remark").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").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/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").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/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").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/ActualPayment").default | import("../components/AfterSalesOrderId").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/EItemEnCode").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").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/PicturePro").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/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").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 | 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/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/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;
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, promises;
26
+ var hasWdt, hasGy, hasJst, hasJy, hasJky, promises;
27
27
  return _regeneratorRuntime().wrap(function _callee$(_context) {
28
28
  while (1) switch (_context.prev = _context.next) {
29
29
  case 0:
@@ -31,29 +31,30 @@ 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;
34
+ hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky;
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
- _context.next = 10;
40
+ if (hasJky || notJudgedErp) promises.push(SendDataCenter.getInstance("jky").fetchData);
41
+ _context.next = 11;
41
42
  return Promise.all(promises.map(function (promise) {
42
43
  return promise();
43
44
  }));
44
- case 10:
45
+ case 11:
45
46
  setGlobalState("success");
46
- _context.next = 16;
47
+ _context.next = 17;
47
48
  break;
48
- case 13:
49
- _context.prev = 13;
49
+ case 14:
50
+ _context.prev = 14;
50
51
  _context.t0 = _context["catch"](1);
51
52
  setGlobalState("failed");
52
- case 16:
53
+ case 17:
53
54
  case "end":
54
55
  return _context.stop();
55
56
  }
56
- }, _callee, null, [[1, 13]]);
57
+ }, _callee, null, [[1, 14]]);
57
58
  }));
58
59
  return function asyncQueryData(_x2, _x3, _x4) {
59
60
  return _ref.apply(this, arguments);
@@ -1,9 +1,10 @@
1
- import React from 'react';
2
- declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, }: {
1
+ import React from "react";
2
+ declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, interceptCompanyName, }: {
3
3
  title?: string | undefined;
4
4
  modelWidth?: string | number | undefined;
5
- interceptCompany: string;
5
+ interceptCompany?: string | undefined;
6
6
  interceptCode: string;
7
7
  interceptSenderMobile?: string | number | undefined;
8
+ interceptCompanyName?: string | undefined;
8
9
  }) => React.JSX.Element;
9
10
  export default QueryLogisticsTrack;
@@ -8,19 +8,20 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { useState } from 'react';
12
- import { Modal, Timeline, message } from 'antd';
13
- import { request } from '@kmkf-fe-packages/kmkf-utils';
11
+ import React, { useState } from "react";
12
+ import { Modal, Timeline, message } from "antd";
13
+ import { request } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import CopyText from "../CopyText";
15
15
  var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
16
16
  var _ref$title = _ref.title,
17
- title = _ref$title === void 0 ? '查轨迹' : _ref$title,
17
+ title = _ref$title === void 0 ? "查轨迹" : _ref$title,
18
18
  _ref$modelWidth = _ref.modelWidth,
19
19
  modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
20
20
  interceptCompany = _ref.interceptCompany,
21
21
  interceptCode = _ref.interceptCode,
22
- interceptSenderMobile = _ref.interceptSenderMobile;
23
- var _useState = useState(''),
22
+ interceptSenderMobile = _ref.interceptSenderMobile,
23
+ interceptCompanyName = _ref.interceptCompanyName;
24
+ var _useState = useState(""),
24
25
  _useState2 = _slicedToArray(_useState, 2),
25
26
  inputVal = _useState2[0],
26
27
  setInputVal = _useState2[1];
@@ -36,9 +37,9 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
36
37
  var list = _ref2.list;
37
38
  return /*#__PURE__*/React.createElement("div", {
38
39
  style: {
39
- maxHeight: '500px',
40
- padding: '8px 0',
41
- overflowY: 'auto'
40
+ maxHeight: "500px",
41
+ padding: "8px 0",
42
+ overflowY: "auto"
42
43
  }
43
44
  }, /*#__PURE__*/React.createElement(Timeline, null, list.map(function (item, index) {
44
45
  return /*#__PURE__*/React.createElement(Timeline.Item, {
@@ -51,11 +52,11 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
51
52
  return _regeneratorRuntime().wrap(function _callee$(_context) {
52
53
  while (1) switch (_context.prev = _context.next) {
53
54
  case 0:
54
- if (!(!interceptCode || !interceptCompany)) {
55
+ if (!(!interceptCode || !interceptCompany && !interceptCompanyName)) {
55
56
  _context.next = 2;
56
57
  break;
57
58
  }
58
- return _context.abrupt("return", message.error('缺少物流公司或物流单号'));
59
+ return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
59
60
  case 2:
60
61
  logisticsTraceSearch();
61
62
  //如果是顺丰且没有手机号 要输入手机号
@@ -90,12 +91,13 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
90
91
  var logisticsTraceSearch = function logisticsTraceSearch(mobile) {
91
92
  try {
92
93
  request({
93
- url: '/qy/logistics/logisticsTraceSearch',
94
- method: 'post',
94
+ url: "/qy/logistics/logisticsTraceSearch",
95
+ method: "post",
95
96
  data: {
96
97
  mailNo: interceptCode,
97
98
  cpCode: interceptCompany,
98
- mobile: interceptSenderMobile || mobile
99
+ mobile: interceptSenderMobile || mobile,
100
+ cpName: interceptCompanyName
99
101
  },
100
102
  handleError: function handleError(msg) {
101
103
  msg && message.error(msg);
@@ -118,16 +120,16 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
118
120
  };
119
121
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
120
122
  style: {
121
- margin: '0 8px',
122
- color: '#1890ff',
123
- cursor: 'pointer'
123
+ margin: "0 8px",
124
+ color: "#1890ff",
125
+ cursor: "pointer"
124
126
  }
125
127
  }, /*#__PURE__*/React.createElement("span", {
126
128
  onClick: handleQueryLogistics
127
- }, title === '查轨迹' ? title : /*#__PURE__*/React.createElement(CopyText, {
129
+ }, title === "查轨迹" ? title : /*#__PURE__*/React.createElement(CopyText, {
128
130
  text: title,
129
131
  style: {
130
- color: '#1890ff'
132
+ color: "#1890ff"
131
133
  }
132
134
  }))), /*#__PURE__*/React.createElement(Modal, {
133
135
  width: modelWidth,
@@ -110,6 +110,15 @@ var typeMap = {
110
110
  platformType: "jy",
111
111
  companyDataType: "string",
112
112
  companyCodeType: "arrayObject"
113
+ },
114
+ JKY_LOGISTICS: {
115
+ key: "jkyLogisticsList",
116
+ name: "吉客云",
117
+ company: "jkyLogisticsCompany",
118
+ code: "jkyLogisticsCode",
119
+ platformType: "jky",
120
+ companyDataType: "string",
121
+ companyCodeType: "arrayObject"
113
122
  }
114
123
  };
115
124
  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, WDT_RETURN_BILL_NO_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, JKY_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";
@@ -26,6 +26,7 @@ var typeMap = {
26
26
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
27
27
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
28
28
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
29
+ JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
29
30
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
30
31
  };
31
32
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
@@ -122,7 +123,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
122
123
  columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
123
124
  showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
124
125
  })) === 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));
126
126
  return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
127
127
  transformValue: column.render,
128
128
  renderExport: column.renderExport,
@@ -13,6 +13,8 @@ declare class BsChildPic implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
+ transformValue?: (val: any, record?: any, parentName?: string) => any;
17
+ export?: (val: any, record?: any, parentName?: string) => any;
16
18
  constructor(options: PickOption);
17
19
  getParentId: () => string;
18
20
  renderClient: (record: any) => React.JSX.Element | null;
@@ -30,6 +30,12 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
30
30
  _defineProperty(this, "canSort", void 0);
31
31
  _defineProperty(this, "children", void 0);
32
32
  _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "transformValue", function (val) {
34
+ return val;
35
+ });
36
+ _defineProperty(this, "export", function (val) {
37
+ return val;
38
+ });
33
39
  _defineProperty(this, "getParentId", function () {
34
40
  var _this$id$split = _this.id.split("_"),
35
41
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
@@ -56,7 +62,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
56
62
  return _this.renderPc(undefined, r);
57
63
  });
58
64
  _defineProperty(this, "getComponentValue", function (r) {
59
- return r === null || r === void 0 ? void 0 : r[_this.id];
65
+ return _this.transformValue ? _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]) : r === null || r === void 0 ? void 0 : r[_this.id];
60
66
  });
61
67
  _defineProperty(this, "renderExport", function (value, record) {
62
68
  var _this$getComponentVal;
@@ -80,5 +86,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
80
86
  this.canSort = false;
81
87
  this.dataType = "string";
82
88
  this.children = [];
89
+ if (options.transformValue) {
90
+ this.transformValue = options === null || options === void 0 ? void 0 : options.transformValue;
91
+ }
92
+ if (options.renderExport) {
93
+ this.export = options === null || options === void 0 ? void 0 : options.renderExport;
94
+ }
83
95
  });
84
96
  export default BsChildPic;
@@ -40,6 +40,9 @@ var typeMap = {
40
40
  JY_LOGISTICS: {
41
41
  key: "jyLogisticsItem"
42
42
  },
43
+ JKY_LOGISTICS: {
44
+ key: "jkyLogisticsItem"
45
+ },
43
46
  SKX_LOGISTICS: {
44
47
  key: "skxLogisticsItem"
45
48
  },
@@ -80,8 +83,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
80
83
  }
81
84
  return /*#__PURE__*/React.createElement(BsExpressRender, {
82
85
  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"
86
+ showField: "code"
85
87
  });
86
88
  });
87
89
  _defineProperty(this, "renderLog", function (r) {
@@ -43,6 +43,9 @@ var typeMap = {
43
43
  JY_LOGISTICS: {
44
44
  key: "jyLogisticsItem"
45
45
  },
46
+ JKY_LOGISTICS: {
47
+ key: "jkyLogisticsItem"
48
+ },
46
49
  SKX_LOGISTICS: {
47
50
  key: "skxLogisticsItem"
48
51
  },
@@ -7,13 +7,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
7
7
  import system from "./system";
8
8
  import bs_e3 from "./bs_e3";
9
9
  import bs from "./bs";
10
- import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns } from "@kmkf-fe-packages/basic-components";
10
+ import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns, getJkyColumns } from "@kmkf-fe-packages/basic-components";
11
11
  import defaultColumns from "./defaultColumns";
12
12
  export var getColumnsMap = function getColumnsMap(args) {
13
13
  var _ref = args || {},
14
14
  _ref$text = _ref.text,
15
15
  text = _ref$text === void 0 ? "" : _ref$text;
16
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
16
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
17
17
  text: text
18
18
  })), bs_e3()), getWdtColumns({
19
19
  text: text,
@@ -28,6 +28,8 @@ export var getColumnsMap = function getColumnsMap(args) {
28
28
  disabled: true
29
29
  })), getJyColumns({
30
30
  disabled: true
31
+ })), getJkyColumns({
32
+ disabled: true
31
33
  })), getSkxColumns({})), {}, {
32
34
  default: defaultColumns({
33
35
  text: text
@@ -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, WDT_RETURN_BILL_NO_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, JKY_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
  import { ApaasImage } from "@kmkf-fe-packages/basic-components";
@@ -782,6 +782,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
782
782
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
783
783
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
784
784
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
785
+ JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
785
786
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
786
787
  };
787
788
  var rowKeyMap = {
@@ -793,6 +794,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
793
794
  GY_SYSTEM_ORDER: "billNo",
794
795
  JST_SYSTEM_ORDER: "oId",
795
796
  JY_SYSTEM_ORDER: "tradeNo",
797
+ JKY_SYSTEM_ORDER: "tradeNo",
796
798
  WDT_RETURN_BILL_NO: "refundNo"
797
799
  };
798
800
  var rowSelection = {
@@ -1208,11 +1208,11 @@ var GoodHeaderMap = {
1208
1208
  name: "总金额",
1209
1209
  transformValue: function transformValue(val, record, parentName) {
1210
1210
  if (!record) return "--";
1211
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1211
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1212
1212
  },
1213
1213
  renderExport: function renderExport(val, record, parentName) {
1214
1214
  if (!record) return "--";
1215
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1215
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1216
1216
  }
1217
1217
  },
1218
1218
  batchId: "批次号",
@@ -1320,11 +1320,11 @@ var GoodHeaderMap = {
1320
1320
  name: "总金额",
1321
1321
  transformValue: function transformValue(val, record, parentName) {
1322
1322
  if (!record) return "--";
1323
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1323
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1324
1324
  },
1325
1325
  renderExport: function renderExport(val, record, parentName) {
1326
1326
  if (!record) return "--";
1327
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1327
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1328
1328
  }
1329
1329
  },
1330
1330
  batchId: "批次号",
@@ -1500,6 +1500,14 @@ var GoodHeaderMap = {
1500
1500
  name: "系统规格ID",
1501
1501
  width: 150
1502
1502
  },
1503
+ skuId: {
1504
+ name: "平台规格ID",
1505
+ width: 150
1506
+ },
1507
+ outerSkuId: {
1508
+ name: "平台规格编码",
1509
+ width: 150
1510
+ },
1503
1511
  itemSysId: {
1504
1512
  name: "系统商品ID",
1505
1513
  width: 150
@@ -1507,7 +1515,10 @@ var GoodHeaderMap = {
1507
1515
  sysPicPath: {
1508
1516
  name: "商品图片",
1509
1517
  width: 100,
1510
- component: BsHeaderPic
1518
+ component: BsHeaderPic,
1519
+ transformValue: function transformValue(val) {
1520
+ return val !== null && val !== void 0 && val.startsWith("http") ? val : "https://erp.superboss.cc".concat(val);
1521
+ }
1511
1522
  },
1512
1523
  num: {
1513
1524
  name: "数量",
@@ -1524,6 +1535,14 @@ var GoodHeaderMap = {
1524
1535
  type: {
1525
1536
  name: "商品类型",
1526
1537
  width: 100
1538
+ },
1539
+ supplierName: {
1540
+ name: "供应商名称",
1541
+ width: 150
1542
+ },
1543
+ supplierCode: {
1544
+ name: "供应商编码",
1545
+ width: 150
1527
1546
  }
1528
1547
  },
1529
1548
  moneyKey: "money"
@@ -1582,6 +1601,14 @@ var GoodHeaderMap = {
1582
1601
  name: "商品类型",
1583
1602
  width: 150
1584
1603
  },
1604
+ supplierName: {
1605
+ name: "供应商名称",
1606
+ width: 150
1607
+ },
1608
+ supplierCode: {
1609
+ name: "供应商编码",
1610
+ width: 150
1611
+ },
1585
1612
  sysPicPath: {
1586
1613
  name: "商品图片",
1587
1614
  width: 100,
@@ -2055,6 +2082,395 @@ var GoodHeaderMap = {
2055
2082
  width: 200
2056
2083
  }
2057
2084
  }
2085
+ },
2086
+ JKY_GOODS: {
2087
+ headerMap: {
2088
+ goodsNo: {
2089
+ component: BsHeaderChild,
2090
+ name: "货品编号",
2091
+ key: "goodsNo",
2092
+ width: 150
2093
+ },
2094
+ goodsName: {
2095
+ component: BsHeaderChild,
2096
+ name: "货品名称",
2097
+ key: "goodsName",
2098
+ width: 150
2099
+ },
2100
+ goodsId: {
2101
+ component: BsHeaderChild,
2102
+ name: "货品ID",
2103
+ key: "goodsId",
2104
+ width: 150
2105
+ },
2106
+ barcode: {
2107
+ component: BsHeaderChild,
2108
+ name: "货品条码",
2109
+ key: "barcode",
2110
+ width: 150
2111
+ },
2112
+ specName: {
2113
+ component: BsHeaderChild,
2114
+ name: "规格名称",
2115
+ key: "specName",
2116
+ width: 150
2117
+ },
2118
+ specId: {
2119
+ component: BsHeaderChild,
2120
+ name: "规格ID",
2121
+ key: "specId",
2122
+ width: 150
2123
+ },
2124
+ skuImgUrl: {
2125
+ component: BsHeaderPic,
2126
+ name: "规格图片",
2127
+ key: "skuImgUrl",
2128
+ width: 150
2129
+ },
2130
+ sellCount: {
2131
+ component: BsHeaderChild,
2132
+ name: "数量",
2133
+ key: "sellCount",
2134
+ width: 100
2135
+ },
2136
+ actualSendCount: {
2137
+ component: BsHeaderChild,
2138
+ name: "实发数量",
2139
+ key: "actualSendCount",
2140
+ width: 150
2141
+ },
2142
+ sellPrice: {
2143
+ component: BsHeaderChild,
2144
+ name: "单价",
2145
+ key: "sellPrice",
2146
+ width: 150
2147
+ },
2148
+ sellTotal: {
2149
+ component: BsHeaderChild,
2150
+ name: "金额",
2151
+ key: "sellTotal",
2152
+ width: 150
2153
+ },
2154
+ discountTotal: {
2155
+ component: BsHeaderChild,
2156
+ name: "抵扣金额",
2157
+ key: "discountTotal",
2158
+ width: 150
2159
+ },
2160
+ shareFavourableFee: {
2161
+ component: BsHeaderChild,
2162
+ name: "分摊金额",
2163
+ key: "shareFavourableFee",
2164
+ width: 150
2165
+ },
2166
+ shareFavourableAfterFee: {
2167
+ component: BsHeaderChild,
2168
+ name: "分摊后金额",
2169
+ key: "shareFavourableAfterFee",
2170
+ width: 150
2171
+ },
2172
+ customerPrice: {
2173
+ component: BsHeaderChild,
2174
+ name: "终端销售单价",
2175
+ key: "customerPrice",
2176
+ width: 150
2177
+ },
2178
+ customerTotal: {
2179
+ component: BsHeaderChild,
2180
+ name: "终端销售金额",
2181
+ key: "customerTotal",
2182
+ width: 150
2183
+ },
2184
+ divideSellTotal: {
2185
+ component: BsHeaderChild,
2186
+ name: "实付金额",
2187
+ key: "divideSellTotal",
2188
+ width: 150
2189
+ },
2190
+ isGift: {
2191
+ component: BsHeaderChild,
2192
+ name: "是否赠品",
2193
+ key: "isGift",
2194
+ width: 150,
2195
+ transformValue: function transformValue(val) {
2196
+ if (isNull(val)) return "--";
2197
+ return val === "1" ? "是" : "否";
2198
+ },
2199
+ renderExport: function renderExport(val) {
2200
+ if (isNull(val)) return "--";
2201
+ return val === "1" ? "是" : "否";
2202
+ }
2203
+ },
2204
+ isFit: {
2205
+ component: BsHeaderChild,
2206
+ name: "是否组合装",
2207
+ key: "isFit",
2208
+ width: 150,
2209
+ transformValue: function transformValue(val) {
2210
+ if (isNull(val)) return "--";
2211
+ return val === "1" ? "是" : "否";
2212
+ },
2213
+ renderExport: function renderExport(val) {
2214
+ if (isNull(val)) return "--";
2215
+ return val === "1" ? "是" : "否";
2216
+ }
2217
+ },
2218
+ isPresell: {
2219
+ component: BsHeaderChild,
2220
+ name: "是否预售货品",
2221
+ key: "isPresell",
2222
+ width: 150
2223
+ },
2224
+ brandName: {
2225
+ component: BsHeaderChild,
2226
+ name: "品牌",
2227
+ key: "brandName",
2228
+ width: 200
2229
+ },
2230
+ cateName: {
2231
+ component: BsHeaderChild,
2232
+ name: "货品类别",
2233
+ key: "cateName",
2234
+ width: 150
2235
+ },
2236
+ goodsTags: {
2237
+ component: BsHeaderChild,
2238
+ name: "货品标签",
2239
+ key: "goodsTags",
2240
+ width: 250
2241
+ },
2242
+ goodsMemo: {
2243
+ component: BsHeaderChild,
2244
+ name: "货品备注",
2245
+ key: "goodsMemo",
2246
+ width: 250
2247
+ },
2248
+ tradeGoodsNo: {
2249
+ component: BsHeaderChild,
2250
+ name: "交易货品编号",
2251
+ key: "tradeGoodsNo",
2252
+ width: 250
2253
+ },
2254
+ tradeGoodsName: {
2255
+ component: BsHeaderChild,
2256
+ name: "交易货品名称",
2257
+ key: "tradeGoodsName",
2258
+ width: 250
2259
+ },
2260
+ tradeGoodsSpec: {
2261
+ component: BsHeaderChild,
2262
+ name: "交易规格名称",
2263
+ key: "tradeGoodsSpec",
2264
+ width: 250
2265
+ },
2266
+ sourceSubtradeNo: {
2267
+ component: BsHeaderChild,
2268
+ name: "网店子订单号",
2269
+ key: "sourceSubtradeNo",
2270
+ width: 250
2271
+ },
2272
+ platGoodsId: {
2273
+ component: BsHeaderChild,
2274
+ name: "平台商品ID",
2275
+ key: "platGoodsId",
2276
+ width: 250
2277
+ },
2278
+ subTradeId: {
2279
+ component: BsHeaderChild,
2280
+ name: "商品明细ID",
2281
+ key: "subTradeId",
2282
+ width: 250
2283
+ },
2284
+ batchNo: {
2285
+ component: BsHeaderChild,
2286
+ name: "批次号",
2287
+ key: "batchNo",
2288
+ width: 250
2289
+ },
2290
+ sendCount: {
2291
+ component: BsHeaderChild,
2292
+ name: "批次数量",
2293
+ key: "sendCount",
2294
+ width: 250
2295
+ },
2296
+ productDate: {
2297
+ component: BsHeaderChild,
2298
+ name: "生产日期",
2299
+ key: "productDate",
2300
+ width: 250
2301
+ },
2302
+ expireDate: {
2303
+ component: BsHeaderChild,
2304
+ name: "到期日期",
2305
+ key: "expireDate",
2306
+ width: 250
2307
+ }
2308
+ },
2309
+ itemKey: {
2310
+ goodsNo: "货品编号",
2311
+ goodsName: "货品名称",
2312
+ goodsId: "货品ID",
2313
+ barcode: "货品条码",
2314
+ specName: "规格名称",
2315
+ specId: "规格ID",
2316
+ skuImgUrl: "规格图片",
2317
+ sellCount: "数量",
2318
+ actualSendCount: "实发数量",
2319
+ sellPrice: "单价",
2320
+ sellTotal: "金额",
2321
+ discountTotal: "抵扣金额",
2322
+ shareFavourableFee: "分摊金额",
2323
+ shareFavourableAfterFee: "分摊后金额",
2324
+ customerPrice: "终端销售单价",
2325
+ customerTotal: "终端销售金额",
2326
+ divideSellTotal: "实付金额",
2327
+ isGift: "是否赠品",
2328
+ isFit: "是否组合装",
2329
+ isPresell: "是否预售货品",
2330
+ brandName: "品牌",
2331
+ cateName: "货品类别",
2332
+ goodsTags: "货品标签",
2333
+ goodsMemo: "货品备注",
2334
+ tradeGoodsNo: "交易货品编号",
2335
+ tradeGoodsName: "交易货品名称",
2336
+ tradeGoodsSpec: "交易规格名称",
2337
+ sourceSubtradeNo: "网店子订单号",
2338
+ platGoodsId: "平台商品ID",
2339
+ subTradeId: "商品明细ID",
2340
+ batchNo: "批次号",
2341
+ sendCount: "批次数量",
2342
+ productDate: "生产日期",
2343
+ expireDate: "到期日期"
2344
+ },
2345
+ moneyKey: "sellTotal"
2346
+ },
2347
+ JKY_REISSUE_GOODS: {
2348
+ headerMap: {
2349
+ goodsNo: {
2350
+ component: BsHeaderChild,
2351
+ name: "货品编号",
2352
+ key: "goodsNo",
2353
+ width: 150
2354
+ },
2355
+ goodsName: {
2356
+ component: BsHeaderChild,
2357
+ name: "货品名称",
2358
+ key: "goodsName",
2359
+ width: 150
2360
+ },
2361
+ goodsId: {
2362
+ component: BsHeaderChild,
2363
+ name: "货品ID",
2364
+ key: "goodsId",
2365
+ width: 150
2366
+ },
2367
+ barcode: {
2368
+ component: BsHeaderChild,
2369
+ name: "货品条码",
2370
+ key: "barcode",
2371
+ width: 150
2372
+ },
2373
+ specName: {
2374
+ component: BsHeaderChild,
2375
+ name: "规格名称",
2376
+ key: "specName",
2377
+ width: 150
2378
+ },
2379
+ specId: {
2380
+ component: BsHeaderChild,
2381
+ name: "规格ID",
2382
+ key: "specId",
2383
+ width: 150
2384
+ },
2385
+ skuImgUrl: {
2386
+ component: BsHeaderPic,
2387
+ name: "规格图片",
2388
+ key: "skuImgUrl",
2389
+ width: 150
2390
+ },
2391
+ sellCount: {
2392
+ component: BsHeaderChild,
2393
+ name: "发货数量",
2394
+ key: "sellCount",
2395
+ width: 100
2396
+ },
2397
+ sellPrice: {
2398
+ component: BsHeaderChild,
2399
+ name: "单价",
2400
+ key: "sellPrice",
2401
+ width: 150
2402
+ },
2403
+ sellTotal: {
2404
+ component: BsHeaderChild,
2405
+ name: "总金额",
2406
+ key: "sellTotal",
2407
+ width: 150
2408
+ },
2409
+ reason: {
2410
+ component: BsHeaderChild,
2411
+ name: "退换原因",
2412
+ key: "reason",
2413
+ width: 250
2414
+ },
2415
+ isGift: {
2416
+ component: BsHeaderChild,
2417
+ name: "是否赠品",
2418
+ key: "isGift",
2419
+ width: 150,
2420
+ transformValue: function transformValue(val) {
2421
+ if (isNull(val)) return "--";
2422
+ return val === "1" ? "是" : "否";
2423
+ },
2424
+ renderExport: function renderExport(val) {
2425
+ if (isNull(val)) return "--";
2426
+ return val === "1" ? "是" : "否";
2427
+ }
2428
+ },
2429
+ isFit: {
2430
+ component: BsHeaderChild,
2431
+ name: "是否组合装",
2432
+ key: "isFit",
2433
+ width: 150,
2434
+ transformValue: function transformValue(val) {
2435
+ if (isNull(val)) return "--";
2436
+ return val === "1" ? "是" : "否";
2437
+ },
2438
+ renderExport: function renderExport(val) {
2439
+ if (isNull(val)) return "--";
2440
+ return val === "1" ? "是" : "否";
2441
+ }
2442
+ },
2443
+ brandName: {
2444
+ component: BsHeaderChild,
2445
+ name: "品牌",
2446
+ key: "brandName",
2447
+ width: 150
2448
+ },
2449
+ cateName: {
2450
+ component: BsHeaderChild,
2451
+ name: "货品类别",
2452
+ key: "cateName",
2453
+ width: 150
2454
+ }
2455
+ },
2456
+ itemKey: {
2457
+ goodsNo: "货品编号",
2458
+ goodsName: "货品名称",
2459
+ goodsId: "货品ID",
2460
+ barcode: "货品条码",
2461
+ specName: "规格名称",
2462
+ specId: "规格ID",
2463
+ skuImgUrl: "规格图片",
2464
+ sellCount: "发货数量",
2465
+ sellPrice: "单价",
2466
+ sellTotal: "总金额",
2467
+ reason: "退换原因",
2468
+ isGift: "是否赠品",
2469
+ isFit: "是否组合装",
2470
+ brandName: "品牌",
2471
+ cateName: "货品类别"
2472
+ },
2473
+ moneyKey: "sellTotal"
2058
2474
  }
2059
2475
  };
2060
2476
  GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
@@ -17,6 +17,14 @@ var INPUT_MAP = {
17
17
  key: "businessOrderNo",
18
18
  disabled: true,
19
19
  placeholder: "自动获取无需填写"
20
+ },
21
+ REPAIR_ORDER_SN: {
22
+ key: "repairOrderSn",
23
+ placeholder: "请输入维修单编号"
24
+ },
25
+ REPAIR_ORDER_ID: {
26
+ key: "repairOrderId",
27
+ placeholder: "请输入维修单id"
20
28
  }
21
29
  };
22
30
  var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
@@ -62,7 +70,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
62
70
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
63
71
  });
64
72
  _defineProperty(this, "editRender", function (p) {
65
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
73
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
66
74
  return /*#__PURE__*/React.createElement(GetFormItem, {
67
75
  title: _this.name,
68
76
  name: _this.id,
@@ -70,10 +78,10 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
70
78
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
79
  display: p === null || p === void 0 ? void 0 : p.display,
72
80
  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,
73
- 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 : '',
81
+ 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 : "",
74
82
  component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
75
83
  placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
76
- disabled: INPUT_MAP[_this.type].disabled
84
+ disabled: INPUT_MAP[_this.type].disabled || ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.disabled)
77
85
  }))
78
86
  });
79
87
  });
@@ -78,6 +78,14 @@ var typeMap = {
78
78
  sendName: "jySendName",
79
79
  platformType: "jy",
80
80
  dataType: "weakenArray"
81
+ },
82
+ JKY_SEND_GOOD: {
83
+ key: "jkySendGood",
84
+ name: "jky",
85
+ sendId: "jkySendId",
86
+ sendName: "jkySendName",
87
+ platformType: "jky",
88
+ dataType: "weakenArray"
81
89
  }
82
90
  };
83
91
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
@@ -184,7 +192,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
184
192
  });
185
193
  _defineProperty(this, "filterConfig", function (item) {
186
194
  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) ? {
195
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
188
196
  searchDefaultConditions: SYMBOL.in,
189
197
  type: item.type,
190
198
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
@@ -106,7 +106,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
106
106
  });
107
107
  });
108
108
  _defineProperty(this, "filterConfig", function (item) {
109
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
109
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
110
110
  searchDefaultConditions: SYMBOL.in,
111
111
  type: item.type,
112
112
  id: "".concat(item.id, "_").concat(_this.suffixSendName),
@@ -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");
@@ -29,6 +29,10 @@ var CONFIG_MAP = {
29
29
  name: "巨益",
30
30
  key: "jyGoods"
31
31
  },
32
+ JKY_GOODS: {
33
+ name: "吉客云",
34
+ key: "jkyGoods"
35
+ },
32
36
  WDT_AFTERSALE_GOODS: {
33
37
  name: "旺店通售后",
34
38
  key: "wdtAftersaleGoods"
@@ -36,6 +36,10 @@ var selectTypeMap = {
36
36
  key: "agreeRefundStatusValue",
37
37
  info: "agreeRefundStatusReason"
38
38
  }),
39
+ REPAIR_ORDER_STATUS: getSelectTypeAttribute({
40
+ key: "repairOrderStatusValue",
41
+ info: "repairOrderStatusReason"
42
+ }),
39
43
  REJECT_REFUND_STATUS: getSelectTypeAttribute({
40
44
  key: "rejectRefundStatusValue",
41
45
  info: "rejectRefundStatusReason"
@@ -19,53 +19,17 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
19
19
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
20
  import React from "react";
21
21
  import { Table } from "antd";
22
- import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
22
+ import { SubForm as SubFormComponent, renderMap, renderSplitMap } from "@kmkf-fe-packages/basic-components";
23
23
  import { BsHeaderChild } from "../BS/common";
24
24
  import HeaderChildFile from "./children/HeaderChildFile";
25
25
  import HeaderChildPic from "./children/HeaderChildPic";
26
+ import Express from "../Express";
26
27
  import GetFormItem from "../GetFormItem";
27
28
  import ItemView from "../../commonComponents/ItemView";
28
29
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
29
30
  import { difference } from "lodash";
30
31
  import { SYMBOL } from "../../constant";
31
32
  var ChildrenMap = {
32
- INPUT: {
33
- component: BsHeaderChild
34
- },
35
- TEXTAREA: {
36
- component: BsHeaderChild
37
- },
38
- SELECT: {
39
- component: BsHeaderChild
40
- },
41
- RADIO: {
42
- component: BsHeaderChild
43
- // transformValue: (value: any) => {
44
- // if (!value?.value) return null;
45
- // return `${value?.value}
46
- // ${
47
- // value?.value &&
48
- // typeof value.value === "string" &&
49
- // value?.value?.indexOf("其他") > -1 &&
50
- // value?.other
51
- // ? `(${value?.other})`
52
- // : ""
53
- // }`;
54
- // },
55
- // renderExport: (value: any) => {
56
- // if (!value?.value) return null;
57
- // return `${value?.value}
58
- // ${
59
- // value?.value &&
60
- // typeof value.value === "string" &&
61
- // value?.value?.indexOf("其他") > -1 &&
62
- // value?.other
63
- // ? `(${value?.other})`
64
- // : ""
65
- // }`;
66
- // },
67
- },
68
-
69
33
  CHECKBOX: {
70
34
  component: BsHeaderChild,
71
35
  transformValue: function transformValue(value) {
@@ -93,6 +57,23 @@ var ChildrenMap = {
93
57
  },
94
58
  FILE: {
95
59
  component: HeaderChildFile
60
+ },
61
+ jbCFrJV4m7_trajectoryCompany: {
62
+ component: Express
63
+ },
64
+ "0qFEv9GEyd_returnLogisticsCompany": {
65
+ component: Express
66
+ }
67
+ };
68
+ var getChildComponent = function getChildComponent(item) {
69
+ try {
70
+ return ChildrenMap[item.workOrderComponentType] || ChildrenMap[item.key] || {
71
+ component: BsHeaderChild
72
+ };
73
+ } catch (e) {
74
+ return {
75
+ component: BsHeaderChild
76
+ };
96
77
  }
97
78
  };
98
79
  var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
@@ -152,12 +133,23 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
152
133
  ellipsis: true,
153
134
  width: item.width,
154
135
  render: function render(val) {
155
- return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
156
- style: {
157
- width: "100%",
158
- overflow: "auto"
159
- }
160
- }, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
136
+ if (renderMap[item.workOrderComponentType]) {
137
+ return /*#__PURE__*/React.createElement("div", {
138
+ style: {
139
+ width: "100%",
140
+ overflow: "auto"
141
+ }
142
+ }, renderMap[item.workOrderComponentType](val));
143
+ } else if (renderSplitMap[item.key]) {
144
+ return /*#__PURE__*/React.createElement("div", {
145
+ style: {
146
+ width: "100%",
147
+ overflow: "auto"
148
+ }
149
+ }, renderSplitMap[item.key](val));
150
+ } else {
151
+ return /*#__PURE__*/React.createElement("span", null, val);
152
+ }
161
153
  }
162
154
  };
163
155
  })) || []));
@@ -268,9 +260,9 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
268
260
  this.isCombinationComponent = true;
269
261
  this.canSort = false;
270
262
  this.children = (this.getNewTableHeader() || []).map(function (item) {
271
- var _ChildrenMap$item$wor = ChildrenMap[item.workOrderComponentType],
272
- component = _ChildrenMap$item$wor.component,
273
- other = _objectWithoutProperties(_ChildrenMap$item$wor, _excluded);
263
+ var _getChildComponent = getChildComponent(item),
264
+ component = _getChildComponent.component,
265
+ other = _objectWithoutProperties(_getChildComponent, _excluded);
274
266
  return new component(_objectSpread(_objectSpread({}, options), {}, {
275
267
  name: item.name,
276
268
  id: "".concat(options.id, "_productList_").concat(item.key)
@@ -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) => CommonInput | StatusSelect | 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 | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | JstSendGood | MsgStatus | OrderSubForm | PublicGoods | SubForm | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | 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 "JKY_SYSTEM_ORDER":
148
149
  case "WDT_RETURN_BILL_NO":
149
150
  return new BsSystemOrder(options);
150
151
  case "JST_SEND_GOOD":
@@ -155,6 +156,7 @@ export var factory = function factory(type, options) {
155
156
  case "KM_SEND_GOOD":
156
157
  case "GY_SEND_GOOD":
157
158
  case "JY_SEND_GOOD":
159
+ case "JKY_SEND_GOOD":
158
160
  return new JstSendGood(options);
159
161
  case "BS_POSTING":
160
162
  return new BsPosting(options);
@@ -165,6 +167,7 @@ export var factory = function factory(type, options) {
165
167
  case "GY_GOODS":
166
168
  return new GyGoods(options);
167
169
  case "JY_GOODS":
170
+ case "JKY_GOODS":
168
171
  case "KM_GOODS":
169
172
  case "JST_GOODS":
170
173
  case "WDT_AFTERSALE_GOODS":
@@ -210,6 +213,7 @@ export var factory = function factory(type, options) {
210
213
  case "KM_LOGISTICS":
211
214
  case "GY_LOGISTICS":
212
215
  case "JY_LOGISTICS":
216
+ case "JKY_LOGISTICS":
213
217
  case "SKX_LOGISTICS":
214
218
  case "SKX_RETURN_LOGISTICS":
215
219
  return new BsLogistics(options);
@@ -228,6 +232,7 @@ export var factory = function factory(type, options) {
228
232
  case "AGREE_RETURN_GOODS_STATUS":
229
233
  case "REJECT_RETURN_GOODS_STATUS":
230
234
  case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
235
+ case "REPAIR_ORDER_STATUS":
231
236
  return new StatusSelect(options);
232
237
  case "RETURN_GOODS_STATUS":
233
238
  case "EXCHANGE_STATUS":
@@ -264,6 +269,8 @@ export var factory = function factory(type, options) {
264
269
  // 万里牛商品
265
270
  return new WdtGoods(options);
266
271
  case "BUSINESS_ORDER_NO":
272
+ case "REPAIR_ORDER_SN":
273
+ case "REPAIR_ORDER_ID":
267
274
  return new CommonInput(options);
268
275
  case "PAYMENT_VOUCHER_CODE":
269
276
  return new PaymentVoucherCode(options);
@@ -12,6 +12,7 @@ export declare const queryBsE3LogisticsCompany: () => Promise<void>;
12
12
  export declare const queryJSTLogisticsCompany: () => Promise<void>;
13
13
  export declare const queryGYLogisticsCompany: () => Promise<void>;
14
14
  export declare const queryJYLogisticsCompany: () => Promise<void>;
15
+ export declare const queryJKYLogisticsCompany: () => Promise<void>;
15
16
  export declare const queryWLNLogisticsCompany: () => Promise<void>;
16
17
  export declare const queryKMLogisticsCompany: () => Promise<void>;
17
18
  export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
@@ -301,6 +301,12 @@ export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
301
301
  instance.expressData = data;
302
302
  }).catch(console.log);
303
303
  };
304
+ export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
305
+ var instance = ExpressData.getInstance("jky");
306
+ return servers.JKY.getLogisticsDataAsync().then(function (data) {
307
+ instance.expressData = data;
308
+ }).catch(console.log);
309
+ };
304
310
  export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
305
311
  var instance = ExpressData.getInstance("wln");
306
312
  return servers.WLN.getLogisticsDataAsync().then(function (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.41",
3
+ "version": "2.2.44-beta.0",
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.41",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.41",
24
+ "@kmkf-fe-packages/basic-components": "2.2.44-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.0",
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": "dff34afdc1b66dbda681259dcba6c7059101a7c5",
44
+ "gitHead": "716ed4f64a6fd45217b1ba041f5f7eb3a35496c0",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }