@kmkf-fe-packages/services-components 0.11.0-alpha.1 → 0.11.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,9 +12,23 @@ import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
14
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
15
- import { BsSystemOrder as Goods } from "@kmkf-fe-packages/basic-components";
15
+ import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
18
+ var typeMap = {
19
+ BS_SYSTEM_ORDER: {
20
+ key: "bsSystemShowOrder",
21
+ name: "bs",
22
+ typeName: "单据类型",
23
+ tagName: "标签"
24
+ },
25
+ WLN_SYSTEM_ORDER: {
26
+ key: "wlnSystemShowOrder",
27
+ name: "万里牛",
28
+ typeName: "订单类型",
29
+ tagName: "标记"
30
+ }
31
+ };
18
32
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
19
33
  var _this = this,
20
34
  _this$componentConfig;
@@ -36,7 +50,8 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
36
50
  id: _this.id,
37
51
  label: _this.name,
38
52
  value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
39
- value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
53
+ value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
54
+ type: _this.type
40
55
  })
41
56
  })) : null;
42
57
  });
@@ -44,9 +59,10 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
44
59
  return null;
45
60
  });
46
61
  _defineProperty(this, "renderLog", function (r) {
47
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSystemShowOrder")])) return null;
62
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
48
63
  return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
49
- value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSystemShowOrder")]
64
+ value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)],
65
+ type: _this.type
50
66
  });
51
67
  });
52
68
  _defineProperty(this, "getComponentValue", function (r) {
@@ -62,8 +78,9 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
62
78
  rules: _this.rules,
63
79
  required: false,
64
80
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
- component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
66
- onChange: p === null || p === void 0 ? void 0 : p.onChange
81
+ component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
82
+ onChange: p === null || p === void 0 ? void 0 : p.onChange,
83
+ type: _this.type
67
84
  }))
68
85
  });
69
86
  });
@@ -72,23 +89,23 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
72
89
  });
73
90
  this.name = options.name;
74
91
  this.id = options.id;
75
- this.sortField = "".concat(options.id, "_bsSystemShowOrder");
76
- this.formField = "".concat(options.id, "_bsSystemShowOrder");
92
+ this.sortField = "".concat(options.id, "_").concat(typeMap[options.type].key);
93
+ this.formField = "".concat(options.id, "_").concat(typeMap[options.type].key);
77
94
  this.type = options.type;
78
95
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
79
96
  this.isCombinationComponent = true;
80
97
  this.canSort = false;
81
98
  this.children = [new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
82
- name: "单据类型",
83
- id: "".concat(options.id, "_bsSystemShowOrder_billType"),
99
+ name: typeMap[options.type].typeName,
100
+ id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
84
101
  width: 150
85
102
  })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
86
103
  name: "系统订单号",
87
- id: "".concat(options.id, "_bsSystemShowOrder_billNo"),
104
+ id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
88
105
  width: 150
89
106
  })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
90
- name: "标签",
91
- id: "".concat(options.id, "_bsSystemShowOrder_billTag"),
107
+ name: typeMap[options.type].tagName,
108
+ id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billTag"),
92
109
  width: 150
93
110
  }))];
94
111
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
@@ -97,7 +114,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
97
114
  validator: function validator(_, value) {
98
115
  var _value$selectIds;
99
116
  if (!value || !(value !== null && value !== void 0 && (_value$selectIds = value.selectIds) !== null && _value$selectIds !== void 0 && _value$selectIds.length)) {
100
- return Promise.reject(new Error("请选择bs系统订单号"));
117
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(typeMap[options.type].name, "\u7CFB\u7EDF\u8BA2\u5355\u53F7")));
101
118
  }
102
119
  return Promise.resolve();
103
120
  }
@@ -1,19 +1,19 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
3
  declare class ExpressCode 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'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  align: ALignType;
11
11
  width: number;
12
12
  isCombinationComponent: boolean;
13
13
  formField: string;
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
- dataType: ComponentInterface['dataType'];
16
+ dataType: ComponentInterface["dataType"];
17
17
  constructor(options: PickOption);
18
18
  renderClient: () => null;
19
19
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -11,10 +11,18 @@ 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 { BsExpressRender } from "../../Common";
16
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL } from "../../../constant";
18
+ var typeMap = {
19
+ BS_SYSTEM_ORDER: {
20
+ key: "bsLogisticsItem"
21
+ },
22
+ WLN_SYSTEM_ORDER: {
23
+ key: "wlnLogisticsItem"
24
+ }
25
+ };
18
26
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
19
27
  var _this = this,
20
28
  _this$componentConfig;
@@ -36,17 +44,17 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
36
44
  return null;
37
45
  });
38
46
  _defineProperty(this, "renderPc", function (value, record) {
39
- var _this$id$split = _this.id.split('_'),
47
+ var _this$id$split = _this.id.split("_"),
40
48
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
41
49
  key = _this$id$split2[0],
42
50
  parentKey = _this$id$split2[1],
43
51
  childKey = _this$id$split2[2];
44
- if (!(record !== null && record !== void 0 && record["".concat(key, "_").concat(parentKey, "_bsLogisticsItem")])) {
52
+ if (!(record !== null && record !== void 0 && record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)])) {
45
53
  return /*#__PURE__*/React.createElement("span", null, "--");
46
54
  }
47
55
  return /*#__PURE__*/React.createElement(BsExpressRender, {
48
- list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_bsLogisticsItem")],
49
- showField: 'code'
56
+ list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
57
+ showField: "code"
50
58
  });
51
59
  });
52
60
  _defineProperty(this, "renderLog", function (r) {
@@ -58,7 +66,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
58
66
  });
59
67
  _defineProperty(this, "renderExport", function (value, record) {
60
68
  var _record;
61
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
69
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
62
70
  });
63
71
  _defineProperty(this, "editRender", function () {
64
72
  return null;
@@ -70,10 +78,10 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
70
78
  type: item.type,
71
79
  id: "".concat(item.id, "_").concat(subKey),
72
80
  name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
73
- filterComponentType: 'Input',
81
+ filterComponentType: "Input",
74
82
  filterFn: function filterFn(value) {
75
83
  return function (i) {
76
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
84
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
77
85
  };
78
86
  }
79
87
  };
@@ -89,14 +97,14 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
89
97
  if (/^[0-9a-zA-Z]*$/.test(value)) {
90
98
  return Promise.resolve();
91
99
  }
92
- return Promise.reject(new Error('只能输入数字和字母'));
100
+ return Promise.reject(new Error("只能输入数字和字母"));
93
101
  }
94
102
  }] : [];
95
- this.align = 'left';
103
+ this.align = "left";
96
104
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 150;
97
105
  this.isCombinationComponent = false;
98
106
  this.canSort = false;
99
- this.dataType = 'string';
107
+ this.dataType = "string";
100
108
  this.children = [];
101
109
  });
102
110
  export default ExpressCode;
@@ -1,13 +1,13 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
- import React from 'react';
3
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
4
  declare class Express implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  sortField: string;
8
8
  type: string;
9
9
  rules: any[];
10
- componentConfig: ComponentInterface['componentConfig'];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
11
  align: ALignType;
12
12
  expressDateInstance: InstanceType<typeof ExpressData>;
13
13
  width: number;
@@ -15,8 +15,8 @@ declare class Express implements ComponentInterface {
15
15
  formField: string;
16
16
  canSort: boolean;
17
17
  children: ComponentInterface[];
18
- dataType: ComponentInterface['dataType'];
19
- options: ComponentInterface['options'];
18
+ dataType: ComponentInterface["dataType"];
19
+ options: ComponentInterface["options"];
20
20
  constructor(options: PickOption);
21
21
  renderClient: () => null;
22
22
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -11,11 +11,19 @@ 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 { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
14
+ import React from "react";
15
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { BsExpressRender } from "../../Common";
17
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../../constant";
19
+ var typeMap = {
20
+ BS_SYSTEM_ORDER: {
21
+ key: "bsLogisticsItem"
22
+ },
23
+ WLN_SYSTEM_ORDER: {
24
+ key: "wlnLogisticsItem"
25
+ }
26
+ };
19
27
  var Express = /*#__PURE__*/_createClass(function Express(options) {
20
28
  var _this = this;
21
29
  _classCallCheck(this, Express);
@@ -38,17 +46,17 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
38
46
  return null;
39
47
  });
40
48
  _defineProperty(this, "renderPc", function (value, record) {
41
- var _this$id$split = _this.id.split('_'),
49
+ var _this$id$split = _this.id.split("_"),
42
50
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
43
51
  key = _this$id$split2[0],
44
52
  parentKey = _this$id$split2[1],
45
53
  childKey = _this$id$split2[2];
46
- if (!(record !== null && record !== void 0 && record["".concat(key, "_").concat(parentKey, "_bsLogisticsItem")])) {
54
+ if (!(record !== null && record !== void 0 && record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)])) {
47
55
  return /*#__PURE__*/React.createElement("span", null, "--");
48
56
  }
49
57
  return /*#__PURE__*/React.createElement(BsExpressRender, {
50
- list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_bsLogisticsItem")],
51
- showField: 'company'
58
+ list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
59
+ showField: "company"
52
60
  });
53
61
  });
54
62
  _defineProperty(this, "renderLog", function (r) {
@@ -59,7 +67,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
59
67
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
60
68
  });
61
69
  _defineProperty(this, "renderExport", function (value, record) {
62
- return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || '--';
70
+ return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
63
71
  });
64
72
  _defineProperty(this, "editRender", function () {
65
73
  return null;
@@ -71,14 +79,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
71
79
  type: item.type,
72
80
  id: "".concat(item.id, "_").concat(subKey),
73
81
  name: "".concat(_this.name),
74
- filterComponentType: 'MultipleSelect',
82
+ filterComponentType: "MultipleSelect",
75
83
  props: {
76
84
  options: _this.expressDateInstance.getExpressData() || []
77
85
  },
78
86
  filterFn: function filterFn(value) {
79
87
  return function (i) {
80
88
  var _ref;
81
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
89
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCompany").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
82
90
  var _String;
83
91
  var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
84
92
  return logisticsCompany;
@@ -94,13 +102,13 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
94
102
  this.type = options.type;
95
103
  this.componentConfig = options.componentConfig;
96
104
  this.rules = [];
97
- this.align = 'left';
105
+ this.align = "left";
98
106
  this.expressDateInstance = ExpressData.getInstance();
99
107
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 150;
100
108
  this.isCombinationComponent = false;
101
109
  this.canSort = false;
102
110
  this.children = [];
103
- this.dataType = 'string';
111
+ this.dataType = "string";
104
112
  this.options = this.expressDateInstance.getExpressData() || [];
105
113
  });
106
114
  export default Express;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare type getFormItemProps = {
3
3
  name: string;
4
4
  title: string;
@@ -29,5 +29,5 @@ export declare const BsGoodsTable: ({ list, showHeader, text, }: {
29
29
  text?: string | undefined;
30
30
  }) => React.JSX.Element;
31
31
  export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
32
- export declare const BsSystemOrderTable: ({ value }: any) => React.JSX.Element;
32
+ export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
33
33
  export {};
@@ -8,10 +8,10 @@ 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 { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from 'antd';
12
- import React, { useState, useMemo } from 'react';
13
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
14
- import { CopyToClipboard } from 'react-copy-to-clipboard';
11
+ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from "antd";
12
+ import React, { useState, useMemo } from "react";
13
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { CopyToClipboard } from "react-copy-to-clipboard";
15
15
  import styles from "./index.module.less";
16
16
  import defaultImg from "./img/default-img.png";
17
17
  export var getFormItem = function getFormItem(_ref) {
@@ -31,7 +31,7 @@ export var getFormItem = function getFormItem(_ref) {
31
31
  return /*#__PURE__*/React.createElement("div", {
32
32
  className: "form-item--wrap",
33
33
  style: {
34
- position: 'relative'
34
+ position: "relative"
35
35
  }
36
36
  }, /*#__PURE__*/React.createElement(Form.Item, {
37
37
  name: name,
@@ -45,43 +45,43 @@ export var showImage = function showImage(_ref2) {
45
45
  var item = _ref2.item,
46
46
  type = _ref2.type,
47
47
  index = _ref2.index;
48
- var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
48
+ var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
49
49
  return /*#__PURE__*/React.createElement("div", {
50
50
  className: styles.goodImgBox,
51
51
  key: index
52
- }, (item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/React.createElement("a", {
52
+ }, (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
53
53
  target: "_blank",
54
54
  href: "https://item.taobao.com/item.htm?id=".concat(item.numIid)
55
55
  }, /*#__PURE__*/React.createElement("img", {
56
56
  style: {
57
- width: '40px',
58
- height: '40px',
59
- objectFit: 'contain'
57
+ width: "40px",
58
+ height: "40px",
59
+ objectFit: "contain"
60
60
  },
61
61
  src: picUrl
62
62
  })) : /*#__PURE__*/React.createElement("img", {
63
63
  style: {
64
- width: '40px',
65
- height: '40px',
66
- objectFit: 'contain'
64
+ width: "40px",
65
+ height: "40px",
66
+ objectFit: "contain"
67
67
  },
68
68
  src: picUrl
69
69
  }), /*#__PURE__*/React.createElement("div", {
70
70
  className: styles.options
71
- }, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
72
- title: '商品id',
71
+ }, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
72
+ title: "商品id",
73
73
  text: item.numIid
74
- }), type === 'itemCode' && /*#__PURE__*/React.createElement(TextTool, {
75
- title: '商品编码',
74
+ }), type === "itemCode" && /*#__PURE__*/React.createElement(TextTool, {
75
+ title: "商品编码",
76
76
  text: item.outerId
77
- }), (type === 'itemThird' || type === 'jstItemThird') && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
78
- title: '供应商编码',
77
+ }), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
78
+ title: "供应商编码",
79
79
  text: item.itemId || item.supplierItemOuterId
80
- }), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
81
- title: '供应商名称',
80
+ }), (type === "itemThird" || type === "jstItemThird") && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
81
+ title: "供应商名称",
82
82
  text: item.supplierName
83
83
  }), item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
84
- title: '规格',
84
+ title: "规格",
85
85
  text: item.propertiesName
86
86
  })));
87
87
  };
@@ -94,9 +94,9 @@ var TextTool = function TextTool(_ref3) {
94
94
  title: text
95
95
  }, /*#__PURE__*/React.createElement("div", {
96
96
  style: {
97
- overflow: 'hidden',
98
- whiteSpace: 'nowrap',
99
- textOverflow: 'ellipsis'
97
+ overflow: "hidden",
98
+ whiteSpace: "nowrap",
99
+ textOverflow: "ellipsis"
100
100
  }
101
101
  }, title, ":", text));
102
102
  };
@@ -124,47 +124,47 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
124
124
  title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
125
125
  }, /*#__PURE__*/React.createElement("div", {
126
126
  style: {
127
- display: 'flex',
128
- flexWrap: 'wrap'
127
+ display: "flex",
128
+ flexWrap: "wrap"
129
129
  }
130
130
  }, allImage.map(function (i, index) {
131
131
  return /*#__PURE__*/React.createElement("div", {
132
132
  style: {
133
- width: '50%'
133
+ width: "50%"
134
134
  },
135
135
  key: index
136
136
  }, /*#__PURE__*/React.createElement("a", {
137
137
  href: i.link,
138
138
  target: "__blank",
139
139
  style: {
140
- marginRight: '12px',
141
- marginTop: '8px',
142
- padding: '2px',
143
- border: '1px dashed #ccc',
144
- display: 'inline-block'
140
+ marginRight: "12px",
141
+ marginTop: "8px",
142
+ padding: "2px",
143
+ border: "1px dashed #ccc",
144
+ display: "inline-block"
145
145
  }
146
146
  }, /*#__PURE__*/React.createElement("img", {
147
147
  alt: "",
148
148
  src: i.picUrl || defaultImg,
149
149
  style: {
150
- width: '72px',
151
- height: '72px',
152
- objectFit: 'contain'
150
+ width: "72px",
151
+ height: "72px",
152
+ objectFit: "contain"
153
153
  }
154
- })), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
155
- title: '商品id',
154
+ })), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
155
+ title: "商品id",
156
156
  text: i.numIid
157
- }), type === 'itemCode' && /*#__PURE__*/React.createElement(TextTool, {
158
- title: '商品编码',
157
+ }), type === "itemCode" && /*#__PURE__*/React.createElement(TextTool, {
158
+ title: "商品编码",
159
159
  text: i.outerId
160
- }), (type === 'itemThird' || type === 'jstItemThird') && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
161
- title: '供应商编码',
160
+ }), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
161
+ title: "供应商编码",
162
162
  text: i.itemId || i.supplierItemOuterId
163
- }), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
164
- title: '供应商名称',
163
+ }), (type === "itemThird" || type === "jstItemThird") && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
164
+ title: "供应商名称",
165
165
  text: i.supplierName
166
166
  }), i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
167
- title: '规格',
167
+ title: "规格",
168
168
  text: i.propertiesName
169
169
  })));
170
170
  }))));
@@ -174,12 +174,12 @@ export var GoodImage = function GoodImage(_ref5) {
174
174
  var _list$slice;
175
175
  var list = _ref5.list,
176
176
  _ref5$type = _ref5.type,
177
- type = _ref5$type === void 0 ? '' : _ref5$type;
177
+ type = _ref5$type === void 0 ? "" : _ref5$type;
178
178
  var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
179
179
  var initShowTotal = 3;
180
180
  return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
181
181
  style: {
182
- display: type === 'itemSelect' ? 'flex' : 'block'
182
+ display: type === "itemSelect" ? "flex" : "block"
183
183
  }
184
184
  }, list === null || list === void 0 ? void 0 : (_list$slice = list.slice(0, initShowTotal)) === null || _list$slice === void 0 ? void 0 : _list$slice.map(function (item, index) {
185
185
  return showImage({
@@ -196,7 +196,7 @@ export var GoodImage = function GoodImage(_ref5) {
196
196
  var content = function content(item, index) {
197
197
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
198
198
  style: {
199
- textAlign: 'center'
199
+ textAlign: "center"
200
200
  }
201
201
  }, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
202
202
  return /*#__PURE__*/React.createElement("div", {
@@ -223,17 +223,17 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
223
223
  }, /*#__PURE__*/React.createElement("span", {
224
224
  key: index,
225
225
  style: {
226
- color: '#1890ff',
227
- cursor: 'pointer'
226
+ color: "#1890ff",
227
+ cursor: "pointer"
228
228
  }
229
- }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join('/') : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join('/') : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
229
+ }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join("/") : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join("/") : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
230
230
  }) : null;
231
231
  };
232
232
  export var BsExpressRender = function BsExpressRender(_ref7) {
233
233
  var _ref7$list = _ref7.list,
234
234
  list = _ref7$list === void 0 ? [] : _ref7$list,
235
235
  _ref7$showField = _ref7.showField,
236
- showField = _ref7$showField === void 0 ? '' : _ref7$showField;
236
+ showField = _ref7$showField === void 0 ? "" : _ref7$showField;
237
237
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
238
238
  var logisticsCompany = item.logisticsCompany;
239
239
  var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
@@ -245,10 +245,10 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
245
245
  }, /*#__PURE__*/React.createElement("span", {
246
246
  key: index,
247
247
  style: {
248
- color: '#1890ff',
249
- cursor: 'pointer'
248
+ color: "#1890ff",
249
+ cursor: "pointer"
250
250
  }
251
- }, "\u5305\u88F9", ":")), showField === 'company' ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === 'code' ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? item.logisticsCode : null) : null));
251
+ }, "\u5305\u88F9", ":")), showField === "company" ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === "code" ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? item.logisticsCode : null) : null));
252
252
  }) : null;
253
253
  };
254
254
  export var CommonOrderContent = function CommonOrderContent(_ref8) {
@@ -258,11 +258,11 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
258
258
  failValue = _ref8.failValue,
259
259
  _ref8$options = _ref8.options,
260
260
  options = _ref8$options === void 0 ? [] : _ref8$options;
261
- console.log('CommonOrderContent', list);
261
+ console.log("CommonOrderContent", list);
262
262
  var orderContent = function orderContent(item, index) {
263
263
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
264
264
  style: {
265
- textAlign: 'center'
265
+ textAlign: "center"
266
266
  }
267
267
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
268
268
  };
@@ -270,7 +270,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
270
270
  var _options$find;
271
271
  var color = ((_options$find = options.find(function (item) {
272
272
  return item[valueKey] === failValue;
273
- })) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
273
+ })) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
274
274
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
275
275
  content: orderContent(item, index),
276
276
  overlayStyle: {
@@ -279,14 +279,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
279
279
  }, /*#__PURE__*/React.createElement("span", {
280
280
  key: index,
281
281
  style: {
282
- color: '#1890ff',
283
- cursor: 'pointer'
282
+ color: "#1890ff",
283
+ cursor: "pointer"
284
284
  }
285
285
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
286
286
  style: {
287
287
  color: color
288
288
  }
289
- }, (item === null || item === void 0 ? void 0 : item[valueKey]) || '')), item.reason && /*#__PURE__*/React.createElement("div", {
289
+ }, (item === null || item === void 0 ? void 0 : item[valueKey]) || "")), item.reason && /*#__PURE__*/React.createElement("div", {
290
290
  className: "c-red"
291
291
  }, item.reason));
292
292
  }) : null;
@@ -298,22 +298,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
298
298
  index = _ref9.index;
299
299
  var picUrl = item.picUrl || defaultImg;
300
300
  var keyMap = {
301
- name: 'bs名称',
302
- code: 'bs编码',
303
- skuId: 'bssku编码',
304
- money: 'bs实付金额',
305
- number: 'bs数量',
306
- share: 'bs分摊价',
307
- type: 'bs赠品类型'
301
+ name: "bs名称",
302
+ code: "bs编码",
303
+ skuId: "bssku编码",
304
+ money: "bs实付金额",
305
+ number: "bs数量",
306
+ share: "bs分摊价",
307
+ type: "bs赠品类型"
308
308
  };
309
309
  return /*#__PURE__*/React.createElement("div", {
310
310
  className: styles.goodImgBox,
311
311
  key: index
312
312
  }, /*#__PURE__*/React.createElement("img", {
313
313
  style: {
314
- width: '40px',
315
- height: '40px',
316
- objectFit: 'contain'
314
+ width: "40px",
315
+ height: "40px",
316
+ objectFit: "contain"
317
317
  },
318
318
  src: picUrl
319
319
  }), /*#__PURE__*/React.createElement("div", {
@@ -335,11 +335,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
335
335
  return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
336
336
  list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
337
337
  showHeader: showHeader,
338
- text: '退回'
338
+ text: "退回"
339
339
  }), BsGoodsTable({
340
340
  list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
341
341
  showHeader: showHeader,
342
- text: '换出'
342
+ text: "换出"
343
343
  }));
344
344
  }));
345
345
  };
@@ -356,38 +356,38 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
356
356
  var list = _ref11.list,
357
357
  showHeader = _ref11.showHeader,
358
358
  _ref11$text = _ref11.text,
359
- text = _ref11$text === void 0 ? '' : _ref11$text;
359
+ text = _ref11$text === void 0 ? "" : _ref11$text;
360
360
  //商品信息
361
361
  var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
362
- var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
362
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
363
363
  return [{
364
- dataIndex: 'mark',
364
+ dataIndex: "mark",
365
365
  title: "\u5546\u54C1\u6807\u8BB0",
366
- align: 'center',
366
+ align: "center",
367
367
  ellipsis: true,
368
368
  width: 100
369
369
  }, {
370
- dataIndex: 'skuName',
370
+ dataIndex: "skuName",
371
371
  title: "".concat(text, "sku\u540D\u79F0"),
372
- align: 'center',
372
+ align: "center",
373
373
  ellipsis: true,
374
374
  width: 200
375
375
  }, {
376
- dataIndex: 'sku',
376
+ dataIndex: "sku",
377
377
  title: "".concat(text, "sku\u7F16\u7801"),
378
- align: 'center',
378
+ align: "center",
379
379
  ellipsis: true,
380
380
  width: 100
381
381
  }, {
382
- dataIndex: 'name',
382
+ dataIndex: "name",
383
383
  title: "".concat(text, "\u540D\u79F0"),
384
- align: 'center',
384
+ align: "center",
385
385
  ellipsis: true,
386
386
  width: 200
387
387
  }, {
388
- dataIndex: 'pic',
388
+ dataIndex: "pic",
389
389
  title: "\u56FE\u7247",
390
- align: 'center',
390
+ align: "center",
391
391
  ellipsis: true,
392
392
  width: 100,
393
393
  render: function render(val) {
@@ -397,42 +397,42 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
397
397
  });
398
398
  }
399
399
  }, {
400
- dataIndex: 'code',
400
+ dataIndex: "code",
401
401
  title: "".concat(text, "\u7F16\u7801"),
402
- align: 'center',
402
+ align: "center",
403
403
  ellipsis: true,
404
404
  width: 100
405
405
  }, {
406
- dataIndex: 'money',
406
+ dataIndex: "money",
407
407
  title: "\u5B9E\u4ED8\u91D1\u989D",
408
- align: 'center',
408
+ align: "center",
409
409
  ellipsis: true,
410
410
  width: 100
411
411
  }, {
412
- dataIndex: 'number',
412
+ dataIndex: "number",
413
413
  title: "".concat(text, "\u6570\u91CF"),
414
- align: 'center',
414
+ align: "center",
415
415
  ellipsis: true,
416
416
  width: 100
417
417
  }, {
418
- dataIndex: 'share',
418
+ dataIndex: "share",
419
419
  title: "\u5206\u644A\u4EF7",
420
- align: 'center',
420
+ align: "center",
421
421
  ellipsis: true,
422
422
  width: 70
423
423
  }, {
424
- dataIndex: 'type',
424
+ dataIndex: "type",
425
425
  title: "\u8D60\u54C1\u7C7B\u578B",
426
- align: 'center',
426
+ align: "center",
427
427
  ellipsis: true,
428
428
  width: 100
429
429
  }];
430
430
  };
431
431
  var newColumns = useMemo(function () {
432
432
  var columnList = [{
433
- dataIndex: '',
434
- title: '序号',
435
- align: 'center',
433
+ dataIndex: "",
434
+ title: "序号",
435
+ align: "center",
436
436
  ellipsis: true,
437
437
  width: 50,
438
438
  render: function render(val, record, index) {
@@ -446,14 +446,14 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
446
446
  return /*#__PURE__*/React.createElement(Table, {
447
447
  columns: newColumns,
448
448
  dataSource: list,
449
- rowKey: 'uuid',
449
+ rowKey: "uuid",
450
450
  size: "small",
451
451
  pagination: false,
452
452
  scroll: {
453
- x: '100%'
453
+ x: "100%"
454
454
  },
455
455
  locale: {
456
- emptyText: '暂无数据'
456
+ emptyText: "暂无数据"
457
457
  }
458
458
  });
459
459
  };
@@ -466,15 +466,15 @@ export var FileRender = function FileRender(_ref12) {
466
466
  _useState4 = _slicedToArray(_useState3, 2),
467
467
  visible = _useState4[0],
468
468
  setVisible = _useState4[1];
469
- var _useState5 = useState(''),
469
+ var _useState5 = useState(""),
470
470
  _useState6 = _slicedToArray(_useState5, 2),
471
471
  fileUrl = _useState6[0],
472
472
  setFileUrl = _useState6[1];
473
- var _useState7 = useState(''),
473
+ var _useState7 = useState(""),
474
474
  _useState8 = _slicedToArray(_useState7, 2),
475
475
  fileType = _useState8[0],
476
476
  setFileType = _useState8[1];
477
- var _useState9 = useState(''),
477
+ var _useState9 = useState(""),
478
478
  _useState10 = _slicedToArray(_useState9, 2),
479
479
  fileName = _useState10[0],
480
480
  setFileName = _useState10[1];
@@ -483,24 +483,24 @@ export var FileRender = function FileRender(_ref12) {
483
483
  downloading = _useState12[0],
484
484
  setDownloading = _useState12[1];
485
485
  var handleCancel = function handleCancel() {
486
- setFileUrl('');
487
- setFileName('');
486
+ setFileUrl("");
487
+ setFileName("");
488
488
  setVisible(false);
489
489
  setDownloading(false);
490
490
  };
491
491
  var onPreview = function onPreview(file) {
492
492
  var _file$url;
493
- var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
493
+ var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(".");
494
494
  var fileType = fileArr[fileArr.length - 1];
495
- if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
495
+ if (["png", "jpg", "jpeg", "gif", "bmp", "svg"].includes(fileType.toLowerCase())) {
496
496
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
497
497
  setFileName(file === null || file === void 0 ? void 0 : file.name);
498
- setFileType('pic');
498
+ setFileType("pic");
499
499
  setVisible(true);
500
- } else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
500
+ } else if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
501
501
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
502
502
  setFileName(file === null || file === void 0 ? void 0 : file.name);
503
- setFileType('video');
503
+ setFileType("video");
504
504
  setVisible(true);
505
505
  } else {
506
506
  window.open(file === null || file === void 0 ? void 0 : file.url);
@@ -511,9 +511,9 @@ export var FileRender = function FileRender(_ref12) {
511
511
  fetch(url).then(function (res) {
512
512
  return res.blob();
513
513
  }).then(function (blob) {
514
- var a = document.createElement('a');
514
+ var a = document.createElement("a");
515
515
  document.body.appendChild(a);
516
- a.style.display = 'none';
516
+ a.style.display = "none";
517
517
  var url = window.URL.createObjectURL(blob);
518
518
  a.href = url;
519
519
  a.download = name;
@@ -527,9 +527,9 @@ export var FileRender = function FileRender(_ref12) {
527
527
  return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
528
528
  return /*#__PURE__*/React.createElement("a", {
529
529
  style: {
530
- color: '#1890ff',
531
- cursor: 'pointer',
532
- display: 'block'
530
+ color: "#1890ff",
531
+ cursor: "pointer",
532
+ display: "block"
533
533
  },
534
534
  onClick: function onClick(e) {
535
535
  e.preventDefault();
@@ -551,20 +551,20 @@ export var FileRender = function FileRender(_ref12) {
551
551
  }, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
552
552
  text: fileUrl,
553
553
  onCopy: function onCopy() {
554
- message.success('复制成功');
554
+ message.success("复制成功");
555
555
  }
556
556
  }, /*#__PURE__*/React.createElement(Button, {
557
557
  type: "link"
558
- }, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
558
+ }, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
559
559
  alt: "example",
560
560
  style: {
561
- width: '100%'
561
+ width: "100%"
562
562
  },
563
563
  src: fileUrl
564
564
  }) : /*#__PURE__*/React.createElement("video", {
565
565
  style: {
566
- width: '100%',
567
- height: '100%'
566
+ width: "100%",
567
+ height: "100%"
568
568
  },
569
569
  autoPlay: true,
570
570
  controls: true,
@@ -572,16 +572,26 @@ export var FileRender = function FileRender(_ref12) {
572
572
  })));
573
573
  };
574
574
  export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
575
- var value = _ref13.value;
576
- var columns = [{
577
- dataIndex: 'billType',
578
- title: '单据类型'
575
+ var value = _ref13.value,
576
+ type = _ref13.type;
577
+ var columns = type === "WLN_SYSTEM_ORDER" ? [{
578
+ dataIndex: "billType",
579
+ title: "单据类型"
579
580
  }, {
580
- dataIndex: 'billNo',
581
- title: '系统订单号'
581
+ dataIndex: "billNo",
582
+ title: "系统订单号"
582
583
  }, {
583
- dataIndex: 'billTag',
584
- title: '标签'
584
+ dataIndex: "billTag",
585
+ title: "标签"
586
+ }] : [{
587
+ dataIndex: "billType",
588
+ title: "订单类型"
589
+ }, {
590
+ dataIndex: "billNo",
591
+ title: "系统订单号"
592
+ }, {
593
+ dataIndex: "billTag",
594
+ title: "标记"
585
595
  }];
586
596
  var rowSelection = {
587
597
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
@@ -597,14 +607,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
597
607
  dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
598
608
  columns: columns,
599
609
  rowSelection: rowSelection,
600
- rowKey: 'billNo',
610
+ rowKey: "billNo",
601
611
  size: "small",
602
612
  pagination: false,
603
613
  scroll: {
604
- x: '100%'
614
+ x: "100%"
605
615
  },
606
616
  locale: {
607
- emptyText: '暂无数据'
617
+ emptyText: "暂无数据"
608
618
  }
609
619
  });
610
620
  };
@@ -1,3 +1,3 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsGoods | BsLogistics | CommonSystemOrder | JstSendGood | WlnGoods | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -116,6 +116,7 @@ export var factory = function factory(type, options) {
116
116
  case "JST_SUPPLY":
117
117
  return new JstSupply(options);
118
118
  case "BS_SYSTEM_ORDER":
119
+ case "WLN_SYSTEM_ORDER":
119
120
  return new BsSystemOrder(options);
120
121
  case "JST_SEND_GOOD":
121
122
  case "BS_SEND_GOOD":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.11.0-alpha.1",
3
+ "version": "0.11.0-alpha.2",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.11.0-alpha.0",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.0"
29
+ "@kmkf-fe-packages/basic-components": "^0.11.0-alpha.2",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "614c71916a44ee220c0cb036bb401aa2c3224e8f"
43
+ "gitHead": "4082b35353767d77e58b4e29caed4360b03a7d86"
44
44
  }