@kmkf-fe-packages/services-components 2.0.19-beta.6 → 2.0.19-beta.61

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 (51) hide show
  1. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +7 -2
  2. package/dist/esm/commonComponents/GlobalContext/index.js +7 -6
  3. package/dist/esm/components/BS/BsPosting/components/Detail/index.d.ts +11 -4
  4. package/dist/esm/components/BS/BsPosting/components/Detail/index.js +13 -3
  5. package/dist/esm/components/BS/BsPosting/components/District/index.d.ts +3 -3
  6. package/dist/esm/components/BS/BsPosting/components/ReceiverMobile/index.d.ts +12 -4
  7. package/dist/esm/components/BS/BsPosting/components/ReceiverMobile/index.js +22 -9
  8. package/dist/esm/components/BS/BsPosting/components/ReceiverName/index.d.ts +12 -4
  9. package/dist/esm/components/BS/BsPosting/components/ReceiverName/index.js +22 -9
  10. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
  11. package/dist/esm/components/BS/common/BsHeaderChild.js +8 -10
  12. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +6 -6
  13. package/dist/esm/components/BS/common/BsHeaderPic.js +7 -16
  14. package/dist/esm/components/BS/common/SystemOrderNo.js +1 -0
  15. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
  16. package/dist/esm/components/Common/constants/wdt.js +42 -14
  17. package/dist/esm/components/Common/index.d.ts +1 -0
  18. package/dist/esm/components/Common/index.js +44 -0
  19. package/dist/esm/components/Common/index.module.less +1 -0
  20. package/dist/esm/components/CommonHeaderGood/index.js +86 -3
  21. package/dist/esm/components/GY/GyReissue/index.js +36 -5
  22. package/dist/esm/components/GY/GyReturn/index.js +36 -5
  23. package/dist/esm/components/PicturePro/PictureUrl.d.ts +30 -0
  24. package/dist/esm/components/PicturePro/PictureUrl.js +132 -0
  25. package/dist/esm/components/PicturePro/index.d.ts +40 -0
  26. package/dist/esm/components/PicturePro/index.js +173 -0
  27. package/dist/esm/components/PicturePro/index.less +63 -0
  28. package/dist/esm/components/PostIng/index.d.ts +19 -12
  29. package/dist/esm/components/PostIng/index.js +35 -30
  30. package/dist/esm/components/Public/Exchange/index.d.ts +7 -7
  31. package/dist/esm/components/Public/Exchange/index.js +13 -13
  32. package/dist/esm/components/Select/index.js +3 -0
  33. package/dist/esm/components/StatusSelect/constants.js +8 -0
  34. package/dist/esm/components/StatusSelect/index.js +4 -0
  35. package/dist/esm/components/TradeDateTime/index.d.ts +5 -5
  36. package/dist/esm/components/TradeDateTime/index.js +29 -27
  37. package/dist/esm/components/TradeId/index.d.ts +10 -7
  38. package/dist/esm/components/TradeId/index.js +12 -12
  39. package/dist/esm/components/WLN/WlnGoods/index.d.ts +2 -2
  40. package/dist/esm/components/WLN/WlnGoods/index.js +8 -5
  41. package/dist/esm/factory.d.ts +2 -2
  42. package/dist/esm/factory.js +6 -1
  43. package/dist/esm/index.d.ts +1 -0
  44. package/dist/esm/index.js +1 -0
  45. package/dist/esm/type.d.ts +14 -14
  46. package/package.json +4 -4
  47. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  48. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  49. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  50. package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
  51. package/dist/esm/components/Common/dist/index.js +0 -1019
@@ -18,9 +18,14 @@ var getTemplate = function getTemplate(companyUserConfig) {
18
18
  };
19
19
  function useGetHasErpData(reduxData) {
20
20
  var companyUserConfig = useMemo(function () {
21
- var _ref, _reduxData$main$userI, _reduxData$main, _reduxData$workOrder, _userInfo$companyUser;
21
+ var _ref, _ref2, _reduxData$main$userI, _reduxData$main, _reduxData$workOrder, _reduxData$global, _userInfo$companyUser;
22
22
  // console.log("companyUserConfig--reduxData", reduxData);
23
- var userInfo = (_ref = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) !== null && _ref !== void 0 ? _ref : {};
23
+ /**
24
+ * main - pc
25
+ * workOrder - 除千牛工作台外所有插件端
26
+ * global - 千牛工作台
27
+ * **/
28
+ var userInfo = (_ref = (_ref2 = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) !== null && _ref2 !== void 0 ? _ref2 : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) !== null && _ref !== void 0 ? _ref : {};
24
29
  var companyUserConfig = (_userInfo$companyUser = userInfo === null || userInfo === void 0 ? void 0 : userInfo.companyUserConfig) !== null && _userInfo$companyUser !== void 0 ? _userInfo$companyUser : {};
25
30
  if (typeof companyUserConfig === "string") {
26
31
  try {
@@ -42,9 +42,10 @@ var Global = function Global(_ref) {
42
42
  setLoading = _useState4[1];
43
43
  var reduxDataMap = useMemo(function () {
44
44
  try {
45
- sessionStorage.setItem("reduxData_test", JSON.stringify(reduxData || {}));
45
+ var _ref2, _ref3, _reduxData$main$userI, _reduxData$main, _reduxData$main$userI2, _reduxData$workOrder, _reduxData$workOrder$, _reduxData$global, _reduxData$global$use;
46
+ sessionStorage.setItem("companyKey_test", (_ref2 = (_ref3 = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : (_reduxData$main$userI2 = _reduxData$main.userInfo) === null || _reduxData$main$userI2 === void 0 ? void 0 : _reduxData$main$userI2.companyKey) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : (_reduxData$workOrder$ = _reduxData$workOrder.userInfo) === null || _reduxData$workOrder$ === void 0 ? void 0 : _reduxData$workOrder$.companyKey) !== null && _ref3 !== void 0 ? _ref3 : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : (_reduxData$global$use = _reduxData$global.userInfo) === null || _reduxData$global$use === void 0 ? void 0 : _reduxData$global$use.companyKey) !== null && _ref2 !== void 0 ? _ref2 : "");
46
47
  } catch (error) {
47
- console.log("reduxData_test-error", error);
48
+ console.log("companyKey_test_error", error);
48
49
  }
49
50
  return reduxData;
50
51
  }, [JSON.stringify(reduxData)]);
@@ -77,7 +78,7 @@ var Global = function Global(_ref) {
77
78
  return "success";
78
79
  }, [globalState, logisticsCompanyState, sendDataState, addressDataState]);
79
80
  var reloadData = /*#__PURE__*/function () {
80
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
81
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
81
82
  return _regeneratorRuntime().wrap(function _callee$(_context) {
82
83
  while (1) switch (_context.prev = _context.next) {
83
84
  case 0:
@@ -123,11 +124,11 @@ var Global = function Global(_ref) {
123
124
  }, _callee);
124
125
  }));
125
126
  return function reloadData() {
126
- return _ref2.apply(this, arguments);
127
+ return _ref4.apply(this, arguments);
127
128
  };
128
129
  }();
129
130
  var initDataSource = /*#__PURE__*/function () {
130
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
131
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
131
132
  var mapping, mergeMapping, promises, _Object$keys, _Object$keys2, _Object$keys2$filter, _promises;
132
133
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
133
134
  while (1) switch (_context2.prev = _context2.next) {
@@ -175,7 +176,7 @@ var Global = function Global(_ref) {
175
176
  }, _callee2, null, [[4, 10]]);
176
177
  }));
177
178
  return function initDataSource() {
178
- return _ref3.apply(this, arguments);
179
+ return _ref5.apply(this, arguments);
179
180
  };
180
181
  }();
181
182
  if (allState === "loading") {
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import { ComponentInterface, PickOption, ALignType, Record, ColumnConfig } from '../../../../../type';
3
3
  declare class Detail implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- effects: ComponentInterface["effects"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
+ effects: ComponentInterface['effects'];
11
11
  align: ALignType;
12
12
  width: number;
13
13
  isCombinationComponent: boolean;
@@ -15,6 +15,7 @@ declare class Detail implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface['dataType'];
18
+ parentName?: string;
18
19
  constructor(options: PickOption);
19
20
  renderClient: (record: Record) => React.JSX.Element | null;
20
21
  renderPc: (value: unknown, record: Record) => any;
@@ -22,6 +23,12 @@ declare class Detail implements ComponentInterface {
22
23
  renderExport: (value?: string) => string;
23
24
  getComponentValue: (r: Record) => any;
24
25
  editRender: () => null;
25
- filterConfig: () => never[];
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "like";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ } | null;
26
33
  }
27
34
  export default Detail;
@@ -8,6 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from 'react';
9
9
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import ItemView from "../../../../../commonComponents/ItemView";
11
+ import { SYMBOL } from "../../../../../constant";
11
12
  var Detail = /*#__PURE__*/_createClass(function Detail(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, Detail);
@@ -25,6 +26,7 @@ var Detail = /*#__PURE__*/_createClass(function Detail(options) {
25
26
  _defineProperty(this, "canSort", void 0);
26
27
  _defineProperty(this, "children", void 0);
27
28
  _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "parentName", void 0);
28
30
  _defineProperty(this, "renderClient", function (record) {
29
31
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
32
  id: _this.id,
@@ -48,8 +50,14 @@ var Detail = /*#__PURE__*/_createClass(function Detail(options) {
48
50
  _defineProperty(this, "editRender", function () {
49
51
  return null;
50
52
  });
51
- _defineProperty(this, "filterConfig", function () {
52
- return [];
53
+ _defineProperty(this, "filterConfig", function (item) {
54
+ return _this.parentName ? {
55
+ searchDefaultConditions: SYMBOL.like,
56
+ type: item.type,
57
+ id: "".concat(_this.id),
58
+ name: "".concat(_this.parentName, "-").concat(_this.name),
59
+ filterComponentType: 'Input'
60
+ } : null;
53
61
  });
54
62
  this.name = options.name;
55
63
  this.id = options.id;
@@ -65,6 +73,8 @@ var Detail = /*#__PURE__*/_createClass(function Detail(options) {
65
73
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
66
74
  this.rules = [];
67
75
  this.width = 200; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
76
+ if (options.parentName) {
77
+ this.parentName = options.parentName;
78
+ }
68
79
  });
69
-
70
80
  export default Detail;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
2
+ import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
3
3
  import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
4
4
  declare class District implements ComponentInterface {
5
5
  name: string;
@@ -7,8 +7,8 @@ declare class District implements ComponentInterface {
7
7
  sortField: string;
8
8
  type: string;
9
9
  rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
11
- effects: ComponentInterface["effects"];
10
+ componentConfig: ComponentInterface['componentConfig'];
11
+ effects: ComponentInterface['effects'];
12
12
  align: ALignType;
13
13
  width: number;
14
14
  isCombinationComponent: boolean;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
1
+ import React from "react";
2
+ import { ComponentInterface, PickOption, ALignType, Record, ColumnConfig } from "../../../../../type";
3
3
  declare class ReceiverMobile implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -14,7 +14,8 @@ declare class ReceiverMobile implements ComponentInterface {
14
14
  formField: string;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
+ parentName?: string;
18
19
  constructor(options: PickOption);
19
20
  renderClient: (record: Record) => React.JSX.Element | null;
20
21
  renderPc: (value: unknown, record: Record) => any;
@@ -22,6 +23,13 @@ declare class ReceiverMobile implements ComponentInterface {
22
23
  renderExport: (value?: string) => string;
23
24
  getComponentValue: (r: Record) => any;
24
25
  editRender: () => null;
25
- filterConfig: () => never[];
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "in";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ formatFilterValue: (input: string) => string | string[];
33
+ } | null;
26
34
  }
27
35
  export default ReceiverMobile;
@@ -5,9 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
- import React from 'react';
9
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import ItemView from "../../../../../commonComponents/ItemView";
11
+ import { SYMBOL, batchInput } from "../../../../../constant";
11
12
  var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, ReceiverMobile);
@@ -25,6 +26,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
25
26
  _defineProperty(this, "canSort", void 0);
26
27
  _defineProperty(this, "children", void 0);
27
28
  _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "parentName", void 0);
28
30
  _defineProperty(this, "renderClient", function (record) {
29
31
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
32
  id: _this.id,
@@ -34,13 +36,13 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
34
36
  });
35
37
  _defineProperty(this, "renderPc", function (value, record) {
36
38
  var _record;
37
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
39
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
38
40
  });
39
41
  _defineProperty(this, "renderLog", function (r) {
40
42
  return r === null || r === void 0 ? void 0 : r[_this.id];
41
43
  });
42
44
  _defineProperty(this, "renderExport", function (value) {
43
- return value !== null && value !== void 0 ? value : '--';
45
+ return value !== null && value !== void 0 ? value : "--";
44
46
  });
45
47
  _defineProperty(this, "getComponentValue", function (r) {
46
48
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
@@ -48,8 +50,17 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
48
50
  _defineProperty(this, "editRender", function () {
49
51
  return null;
50
52
  });
51
- _defineProperty(this, "filterConfig", function () {
52
- return [];
53
+ _defineProperty(this, "filterConfig", function (item) {
54
+ return _this.parentName ? {
55
+ searchDefaultConditions: SYMBOL.in,
56
+ type: item.type,
57
+ id: "".concat(_this.id),
58
+ name: "".concat(_this.parentName, "-").concat(_this.name),
59
+ filterComponentType: "Input",
60
+ formatFilterValue: function formatFilterValue(input) {
61
+ return batchInput(input);
62
+ }
63
+ } : null;
53
64
  });
54
65
  this.name = options.name;
55
66
  this.id = options.id;
@@ -59,12 +70,14 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
59
70
  this.isCombinationComponent = false;
60
71
  this.canSort = false;
61
72
  this.children = [];
62
- this.align = 'left';
63
- this.dataType = 'string';
73
+ this.align = "left";
74
+ this.dataType = "string";
64
75
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
65
76
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
66
77
  this.rules = [];
67
78
  this.width = 180; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
79
+ if (options.parentName) {
80
+ this.parentName = options.parentName;
81
+ }
68
82
  });
69
-
70
83
  export default ReceiverMobile;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
1
+ import React from "react";
2
+ import { ComponentInterface, PickOption, ALignType, Record, ColumnConfig } from "../../../../../type";
3
3
  declare class ReceiverName implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -14,7 +14,8 @@ declare class ReceiverName implements ComponentInterface {
14
14
  formField: string;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
+ parentName?: string;
18
19
  constructor(options: PickOption);
19
20
  renderClient: (record: Record) => React.JSX.Element | null;
20
21
  renderPc: (value: unknown, record: Record) => any;
@@ -22,6 +23,13 @@ declare class ReceiverName implements ComponentInterface {
22
23
  renderExport: (value?: string) => string;
23
24
  getComponentValue: (r: Record) => any;
24
25
  editRender: () => null;
25
- filterConfig: () => never[];
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "in";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ formatFilterValue: (input: string) => string | string[];
33
+ } | null;
26
34
  }
27
35
  export default ReceiverName;
@@ -5,9 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
- import React from 'react';
9
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import ItemView from "../../../../../commonComponents/ItemView";
11
+ import { SYMBOL, batchInput } from "../../../../../constant";
11
12
  var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, ReceiverName);
@@ -25,6 +26,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
25
26
  _defineProperty(this, "canSort", void 0);
26
27
  _defineProperty(this, "children", void 0);
27
28
  _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "parentName", void 0);
28
30
  _defineProperty(this, "renderClient", function (record) {
29
31
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
32
  id: _this.id,
@@ -34,13 +36,13 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
34
36
  });
35
37
  _defineProperty(this, "renderPc", function (value, record) {
36
38
  var _record;
37
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
39
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
38
40
  });
39
41
  _defineProperty(this, "renderLog", function (r) {
40
42
  return r === null || r === void 0 ? void 0 : r[_this.id];
41
43
  });
42
44
  _defineProperty(this, "renderExport", function (value) {
43
- return value !== null && value !== void 0 ? value : '--';
45
+ return value !== null && value !== void 0 ? value : "--";
44
46
  });
45
47
  _defineProperty(this, "getComponentValue", function (r) {
46
48
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
@@ -48,8 +50,17 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
48
50
  _defineProperty(this, "editRender", function () {
49
51
  return null;
50
52
  });
51
- _defineProperty(this, "filterConfig", function () {
52
- return [];
53
+ _defineProperty(this, "filterConfig", function (item) {
54
+ return _this.parentName ? {
55
+ searchDefaultConditions: SYMBOL.in,
56
+ type: item.type,
57
+ id: "".concat(_this.id),
58
+ name: "".concat(_this.parentName, "-").concat(_this.name),
59
+ filterComponentType: "Input",
60
+ formatFilterValue: function formatFilterValue(input) {
61
+ return batchInput(input);
62
+ }
63
+ } : null;
53
64
  });
54
65
  this.name = options.name;
55
66
  this.id = options.id;
@@ -59,12 +70,14 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
59
70
  this.isCombinationComponent = false;
60
71
  this.canSort = false;
61
72
  this.children = [];
62
- this.align = 'left';
63
- this.dataType = 'string';
73
+ this.align = "left";
74
+ this.dataType = "string";
64
75
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
65
76
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
66
77
  this.rules = [];
67
78
  this.width = 180; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
79
+ if (options.parentName) {
80
+ this.parentName = options.parentName;
81
+ }
68
82
  });
69
-
70
83
  export default ReceiverName;
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
2
+ import React from 'react';
3
3
  declare class BsHeaderChild implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface["componentConfig"];
8
+ componentConfig: ComponentInterface['componentConfig'];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
15
+ dataType: ComponentInterface['dataType'];
16
16
  parentName?: string;
17
17
  transformValue: (val: any, record?: any, parentName?: string) => any;
18
18
  export: (val: any, record?: any, parentName?: string) => any;
@@ -11,9 +11,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from "react";
14
+ import React from 'react';
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
17
  var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
18
18
  var _this = this;
19
19
  _classCallCheck(this, BsHeaderChild);
@@ -37,7 +37,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
37
37
  return val;
38
38
  });
39
39
  _defineProperty(this, "getParentId", function () {
40
- var _this$id$split = _this.id.split("_"),
40
+ var _this$id$split = _this.id.split('_'),
41
41
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
42
42
  key = _this$id$split2[0],
43
43
  name = _this$id$split2[1],
@@ -53,7 +53,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
53
53
  });
54
54
  _defineProperty(this, "renderPc", function (value, record) {
55
55
  var _this$getComponentVal;
56
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
56
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
57
57
  });
58
58
  _defineProperty(this, "renderLog", function (r) {
59
59
  var id = _this.getParentId();
@@ -68,8 +68,8 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
68
68
  });
69
69
  _defineProperty(this, "renderExport", function (value, record) {
70
70
  var _this$getComponentExp;
71
- var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
72
- return typeof val === "number" ? val + "" : val;
71
+ var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : '--';
72
+ return typeof val === 'number' ? val + '' : val;
73
73
  });
74
74
  _defineProperty(this, "editRender", function () {
75
75
  return null;
@@ -86,11 +86,11 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
86
86
  this.parentName = options.parentName;
87
87
  }
88
88
  this.componentConfig = options.componentConfig;
89
- this.align = "left";
89
+ this.align = 'left';
90
90
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
91
91
  this.isCombinationComponent = false;
92
92
  this.canSort = false;
93
- this.dataType = "string";
93
+ this.dataType = 'string';
94
94
  this.children = [];
95
95
  if (options.transformValue) {
96
96
  this.transformValue = options.transformValue;
@@ -98,7 +98,5 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
98
98
  if (options.renderExport) {
99
99
  this.export = options.renderExport;
100
100
  }
101
- // this.export = (options as any).renderExport;
102
101
  });
103
-
104
102
  export default BsHeaderChild;
@@ -1,23 +1,23 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
3
  declare class BsChildPic implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface['componentConfig'];
8
+ componentConfig: ComponentInterface["componentConfig"];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface['dataType'];
15
+ dataType: ComponentInterface["dataType"];
16
16
  constructor(options: PickOption);
17
17
  getParentId: () => string;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: unknown, record: Record) => React.JSX.Element | React.JSX.Element[];
20
- renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
19
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
20
+ renderLog: (r: Record) => React.JSX.Element | null;
21
21
  getComponentValue: (r: Record) => any;
22
22
  renderExport: (value: string, record: Record) => any;
23
23
  editRender: () => null;
@@ -11,11 +11,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from 'react';
15
- import { Image } from 'antd';
14
+ import React from "react";
15
+ import { Image } from "antd";
16
16
  import ItemView from "../../../commonComponents/ItemView";
17
- import { BsGoodPic } from "../../Common";
18
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
19
18
  var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
20
19
  var _this = this;
21
20
  _classCallCheck(this, BsChildPic);
@@ -32,7 +31,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
32
31
  _defineProperty(this, "children", void 0);
33
32
  _defineProperty(this, "dataType", void 0);
34
33
  _defineProperty(this, "getParentId", function () {
35
- var _this$id$split = _this.id.split('_'),
34
+ var _this$id$split = _this.id.split("_"),
36
35
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
37
36
  key = _this$id$split2[0],
38
37
  name = _this$id$split2[1],
@@ -47,7 +46,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
47
46
  }) : null;
48
47
  });
49
48
  _defineProperty(this, "renderPc", function (value, record) {
50
- var _BsGoodPic;
51
49
  return /*#__PURE__*/React.createElement("span", {
52
50
  onClick: function onClick(e) {
53
51
  return e.stopPropagation();
@@ -56,7 +54,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
56
54
  width: 60,
57
55
  src: _this.getComponentValue(record)
58
56
  }));
59
- return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
60
57
  });
61
58
  _defineProperty(this, "renderLog", function (r) {
62
59
  var id = _this.getParentId();
@@ -65,16 +62,10 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
65
62
  });
66
63
  _defineProperty(this, "getComponentValue", function (r) {
67
64
  return r === null || r === void 0 ? void 0 : r[_this.id];
68
- var id = _this.getParentId();
69
- var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
70
- next['pic'] && prv.push(next['pic']);
71
- return prv;
72
- }, []);
73
- return list;
74
65
  });
75
66
  _defineProperty(this, "renderExport", function (value, record) {
76
67
  var _this$getComponentVal;
77
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
68
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
78
69
  });
79
70
  _defineProperty(this, "editRender", function () {
80
71
  return null;
@@ -88,11 +79,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
88
79
  this.formField = options.id;
89
80
  this.type = options.type;
90
81
  this.componentConfig = options.componentConfig;
91
- this.align = 'left';
82
+ this.align = "left";
92
83
  this.width = 100;
93
84
  this.isCombinationComponent = false;
94
85
  this.canSort = false;
95
- this.dataType = 'string';
86
+ this.dataType = "string";
96
87
  this.children = [];
97
88
  });
98
89
  export default BsChildPic;
@@ -18,6 +18,7 @@ var componentType = {
18
18
  WDT_REISSUE_GOODS: "wdtSystemOrderNo",
19
19
  BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo",
20
20
  GY_REISSUE_GOODS: "gySystemOrderNo",
21
+ GY_RETURN_GOODS: "gySystemOrderNo",
21
22
  JST_REISSUE_GOODS: "jstSystemOrderNo",
22
23
  JST_RETURN_GOODS: "jstSystemOrderNo"
23
24
  };
@@ -9,18 +9,20 @@ import bs_e3 from "./bs_e3";
9
9
  import bs from "./bs";
10
10
  import wdt from "./wdt";
11
11
  import gy from "./gy";
12
- import { getJstColumns } from "@kmkf-fe-packages/basic-components";
12
+ import { getJstColumns, getWlnColumns } from "@kmkf-fe-packages/basic-components";
13
13
  import defaultColumns from "./defaultColumns";
14
14
  export var getColumnsMap = function getColumnsMap(args) {
15
15
  var _ref = args || {},
16
16
  _ref$text = _ref.text,
17
17
  text = _ref$text === void 0 ? "" : _ref$text;
18
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
18
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
19
19
  text: text
20
20
  })), bs_e3()), wdt({
21
21
  text: text
22
22
  })), gy()), getJstColumns({
23
23
  disabled: true
24
+ })), getWlnColumns({
25
+ text: text
24
26
  })), {}, {
25
27
  default: defaultColumns({
26
28
  text: text