@kmkf-fe-packages/basic-components 0.23.1-alpha.0 → 0.23.1-beta.3

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.
package/dist/index.esm.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo } from 'react';
2
2
  import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Tabs, ConfigProvider, Pagination, Popover, Table } from 'antd';
3
- import { EyeOutlined, DeleteOutlined } from '@ant-design/icons';
3
+ import { EyeOutlined, DeleteOutlined, CaretUpOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, request as request$1, ExpressData, LogisticsAddressData, uuid, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, toTree, request as request$1, ExpressData, LogisticsAddressData, uuid, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import zhCN from 'antd/lib/locale/zh_CN';
8
+ import { cloneDeep, difference, differenceWith } from 'lodash';
9
+ import { useDebounceEffect } from 'ahooks';
8
10
  import pubsub from 'pubsub-js';
9
- import { cloneDeep } from 'lodash';
10
11
 
11
12
  function _iterableToArrayLimit(arr, i) {
12
13
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
@@ -7357,11 +7358,13 @@ function ApaasRate(props) {
7357
7358
  }));
7358
7359
  }
7359
7360
 
7360
- AddressData.getInstance();
7361
- BsAddressData.getInstance();
7361
+ var addressData = AddressData.getInstance();
7362
+ var bsAddressData = BsAddressData.getInstance();
7363
+ var wdtAddressData = WdtAddressData.getInstance();
7362
7364
  var Province = function Province(props) {
7363
7365
  var _props$type = props.type,
7364
- type = _props$type === void 0 ? 'workOrder' : _props$type;
7366
+ type = _props$type === void 0 ? 'workOrder' : _props$type,
7367
+ value = props.value;
7365
7368
  var _useState = useState([]),
7366
7369
  _useState2 = _slicedToArray(_useState, 2),
7367
7370
  option = _useState2[0],
@@ -7376,7 +7379,11 @@ var Province = function Province(props) {
7376
7379
  while (1) switch (_context.prev = _context.next) {
7377
7380
  case 0:
7378
7381
  num++;
7379
- options = type !== 'bs' ? AddressData.getInstance().addressOptions || [] : BsAddressData.getInstance().addressOptions || [];
7382
+ options = ({
7383
+ bs: bsAddressData,
7384
+ wdt: wdtAddressData,
7385
+ workOrder: addressData
7386
+ }[type] || addressData).addressOptions || [];
7380
7387
  if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7381
7388
  time.current = setTimeout(function () {
7382
7389
  initPageSource();
@@ -7393,6 +7400,19 @@ var Province = function Province(props) {
7393
7400
  return _ref.apply(this, arguments);
7394
7401
  };
7395
7402
  }();
7403
+ var getBsAddress = function getBsAddress() {
7404
+ var data = JSON.parse(localStorage.getItem('bsAddressData') || '[]');
7405
+ if (data.length) {
7406
+ var options = toTree(data, 1);
7407
+ setOptions(options);
7408
+ }
7409
+ };
7410
+ //如果值改变地址不存在则再获取一遍
7411
+ useEffect(function () {
7412
+ if (value && type == 'bs' && !option.length) {
7413
+ getBsAddress();
7414
+ }
7415
+ }, [value, type, option]);
7396
7416
  useEffect(function () {
7397
7417
  if (!isFirst.current) {
7398
7418
  initPageSource();
@@ -9618,8 +9638,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9618
9638
  };
9619
9639
 
9620
9640
  var LogisticsTrajectory = function LogisticsTrajectory(props) {
9621
- var options = props.options,
9622
- showField = props.showField,
9641
+ var showField = props.showField,
9623
9642
  _props$value = props.value,
9624
9643
  value = _props$value === void 0 ? {} : _props$value,
9625
9644
  disabled = props.disabled,
@@ -9750,6 +9769,220 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9750
9769
  return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), (value === null || value === void 0 ? void 0 : value.trajectoryCompany) === 'SF' ? LogisticsPhone() : null, showField && showField.includes('snapshot') ? /*#__PURE__*/React.createElement(LogisticsSnapshot, null) : null);
9751
9770
  };
9752
9771
 
9772
+ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
9773
+ var showField = props.showField,
9774
+ _props$value = props.value,
9775
+ value = _props$value === void 0 ? [] : _props$value,
9776
+ disabled = props.disabled,
9777
+ onChange = props.onChange;
9778
+ var _useState = useState([]),
9779
+ _useState2 = _slicedToArray(_useState, 2),
9780
+ newValue = _useState2[0],
9781
+ setNewValue = _useState2[1];
9782
+ var _useState3 = useState(0),
9783
+ _useState4 = _slicedToArray(_useState3, 2),
9784
+ changeIndex = _useState4[0],
9785
+ setChangeIndex = _useState4[1];
9786
+ var _useState5 = useState([]),
9787
+ _useState6 = _slicedToArray(_useState5, 2),
9788
+ initValue = _useState6[0],
9789
+ setInitValue = _useState6[1];
9790
+ var _useState7 = useState([]),
9791
+ _useState8 = _slicedToArray(_useState7, 2),
9792
+ changeValue = _useState8[0],
9793
+ setChangeValue = _useState8[1];
9794
+ var firstRef = useRef(true);
9795
+ var hasSave = useRef(false);
9796
+ useEffect(function () {
9797
+ if (value.length && firstRef.current) {
9798
+ setInitValue(value);
9799
+ firstRef.current = false;
9800
+ }
9801
+ }, [value]);
9802
+ useDebounceEffect(function () {
9803
+ initHandle({
9804
+ initValue: initValue,
9805
+ value: value
9806
+ });
9807
+ }, [initValue, value], {
9808
+ wait: 500
9809
+ });
9810
+ var initHandle = /*#__PURE__*/function () {
9811
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
9812
+ var initValue, value, hasSnapshot, initList, valueList, changeList, initSnapshotList, valueSnapshotList, hasValue, listValue, requestList, requestValues;
9813
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9814
+ while (1) switch (_context.prev = _context.next) {
9815
+ case 0:
9816
+ initValue = _ref.initValue, value = _ref.value;
9817
+ hasSnapshot = showField && showField.includes('snapshot');
9818
+ initList = initValue.map(function (item) {
9819
+ if (item.trajectoryCompany === 'SF') {
9820
+ return {
9821
+ trajectoryCompany: item.trajectoryCompany,
9822
+ trajectoryCode: item.trajectoryCode,
9823
+ trajectoryPhone: item.trajectoryPhone
9824
+ };
9825
+ } else {
9826
+ return {
9827
+ trajectoryCompany: item.trajectoryCompany,
9828
+ trajectoryCode: item.trajectoryCode
9829
+ };
9830
+ }
9831
+ });
9832
+ valueList = value.map(function (item) {
9833
+ if (item.trajectoryCompany === 'SF') {
9834
+ return {
9835
+ trajectoryCompany: item.trajectoryCompany,
9836
+ trajectoryCode: item.trajectoryCode,
9837
+ trajectoryPhone: item.trajectoryPhone
9838
+ };
9839
+ } else {
9840
+ return {
9841
+ trajectoryCompany: item.trajectoryCompany,
9842
+ trajectoryCode: item.trajectoryCode
9843
+ };
9844
+ }
9845
+ });
9846
+ changeList = changeValue.map(function (item) {
9847
+ if (item.trajectoryCompany === 'SF') {
9848
+ return {
9849
+ trajectoryCompany: item.trajectoryCompany,
9850
+ trajectoryCode: item.trajectoryCode,
9851
+ trajectoryPhone: item.trajectoryPhone
9852
+ };
9853
+ } else {
9854
+ return {
9855
+ trajectoryCompany: item.trajectoryCompany,
9856
+ trajectoryCode: item.trajectoryCode
9857
+ };
9858
+ }
9859
+ }); // 1、初始值没有 传入值有请求快照
9860
+ // 2、初始值有 传入值有 其中有不一样的请求快照
9861
+ // 3、初始值有 传入值有 都一样的返回初始值
9862
+ console.log('list', initList, valueList, changeList);
9863
+ // console.log('old', initValue, value, changeValue);
9864
+ // console.log('一样', JSON.stringify(initList) !== JSON.stringify(valueList));
9865
+ // console.log(
9866
+ // '一样2',
9867
+ // JSON.stringify(changeList) !== JSON.stringify(valueList),
9868
+ // );
9869
+ if (!(!initList.length && !valueList.length)) {
9870
+ _context.next = 8;
9871
+ break;
9872
+ }
9873
+ return _context.abrupt("return");
9874
+ case 8:
9875
+ if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
9876
+ _context.next = 14;
9877
+ break;
9878
+ }
9879
+ initSnapshotList = initValue.reduce(function (prv, next) {
9880
+ prv += next.trajectorySnapshot;
9881
+ return prv;
9882
+ }, '');
9883
+ valueSnapshotList = value.reduce(function (prv, next) {
9884
+ prv += next.trajectorySnapshot;
9885
+ return prv;
9886
+ }, '');
9887
+ if (initSnapshotList === valueSnapshotList) {
9888
+ hasSave.current = false;
9889
+ setNewValue(value);
9890
+ } else if (!hasSave.current) {
9891
+ hasSave.current = true;
9892
+ setNewValue(initValue);
9893
+ onChange(initValue);
9894
+ }
9895
+ _context.next = 30;
9896
+ break;
9897
+ case 14:
9898
+ if (!(
9899
+ //开启了物流快照才会获取快照信息
9900
+ hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
9901
+ _context.next = 29;
9902
+ break;
9903
+ }
9904
+ hasSave.current = false;
9905
+ hasValue = valueList.some(function (item) {
9906
+ return item.trajectoryCompany && item.trajectoryCode;
9907
+ });
9908
+ listValue = cloneDeep(value);
9909
+ if (!hasValue) {
9910
+ _context.next = 24;
9911
+ break;
9912
+ }
9913
+ requestList = valueList.map(function (item) {
9914
+ if (item.trajectoryCode && item.trajectoryCompany) {
9915
+ return extendRequest('/qy/logistics/logisticsTraceSearch', {
9916
+ method: 'post',
9917
+ data: {
9918
+ mailNo: item.trajectoryCode,
9919
+ cpCode: item.trajectoryCompany,
9920
+ mobile: item.trajectoryPhone
9921
+ }
9922
+ });
9923
+ } else {
9924
+ return new Promise(function (resolve) {
9925
+ resolve({});
9926
+ });
9927
+ }
9928
+ });
9929
+ _context.next = 22;
9930
+ return Promise.allSettled(requestList);
9931
+ case 22:
9932
+ requestValues = _context.sent;
9933
+ listValue = cloneDeep(value).map(function (item, index) {
9934
+ var _requestValues$index, _requestValues$index$, _requestValues$index$2;
9935
+ return _objectSpread2(_objectSpread2({}, item), {}, {
9936
+ trajectorySnapshot: (_requestValues$index = requestValues[index]) === null || _requestValues$index === void 0 ? void 0 : (_requestValues$index$ = _requestValues$index.value) === null || _requestValues$index$ === void 0 ? void 0 : (_requestValues$index$2 = _requestValues$index$.data) === null || _requestValues$index$2 === void 0 ? void 0 : _requestValues$index$2.logisticsStatusDesc
9937
+ });
9938
+ });
9939
+ case 24:
9940
+ setChangeValue(listValue);
9941
+ setNewValue(listValue);
9942
+ onChange(listValue);
9943
+ _context.next = 30;
9944
+ break;
9945
+ case 29:
9946
+ setNewValue(value);
9947
+ case 30:
9948
+ case "end":
9949
+ return _context.stop();
9950
+ }
9951
+ }, _callee);
9952
+ }));
9953
+ return function initHandle(_x) {
9954
+ return _ref2.apply(this, arguments);
9955
+ };
9956
+ }();
9957
+ var handleChange = function handleChange(val, index) {
9958
+ var newValue = cloneDeep(value);
9959
+ newValue.splice(index, 1, val);
9960
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
9961
+ setChangeValue(newValue);
9962
+ setNewValue(newValue);
9963
+ };
9964
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {
9965
+ wrap: true
9966
+ }, (newValue || []).map(function (item, index) {
9967
+ return /*#__PURE__*/React.createElement("span", {
9968
+ style: {
9969
+ color: changeIndex === index ? '#4569d4' : 'black',
9970
+ cursor: 'pointer'
9971
+ },
9972
+ onClick: function onClick() {
9973
+ return setChangeIndex(index);
9974
+ }
9975
+ }, "\u5305\u88F9".concat(index + 1));
9976
+ })), /*#__PURE__*/React.createElement(LogisticsTrajectory, {
9977
+ value: newValue[changeIndex],
9978
+ showField: showField,
9979
+ disabled: disabled,
9980
+ onChange: function onChange(val) {
9981
+ return handleChange(val, changeIndex);
9982
+ }
9983
+ }));
9984
+ };
9985
+
9753
9986
  //组件类型的默认值
9754
9987
  var typeInitValueMap = {
9755
9988
  1: [{
@@ -10151,9 +10384,42 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
10151
10384
  var rowSelection = {
10152
10385
  selectedRowKeys: selectIds,
10153
10386
  fixed: true,
10154
- onChange: function onChange(selectedRowKeys, selectedRows, info) {
10155
- setSelectIds(selectedRowKeys);
10156
- setSelect(_toConsumableArray(selectedRows));
10387
+ // onChange: (
10388
+ // selectedRowKeys: React.SetStateAction<string[]>,
10389
+ // selectedRows: any[],
10390
+ // info: any,
10391
+ // ) => {
10392
+ // setSelectIds(selectedRowKeys);
10393
+ // setSelect([...selectedRows]);
10394
+ // },
10395
+ onSelect: function onSelect(record, selected) {
10396
+ if (selected) {
10397
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.skuCode]));
10398
+ setSelect([].concat(_toConsumableArray(selectList), [record]));
10399
+ } else {
10400
+ setSelectIds(selectIds.filter(function (t) {
10401
+ return t !== record.skuCode;
10402
+ }));
10403
+ setSelect(selectList.filter(function (t) {
10404
+ return t.skuCode !== record.skuCode;
10405
+ }));
10406
+ }
10407
+ },
10408
+ onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
10409
+ if (selected) {
10410
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
10411
+ return t.skuCode;
10412
+ }))));
10413
+ setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
10414
+ } else {
10415
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
10416
+ return t.skuCode;
10417
+ })));
10418
+ var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
10419
+ return arrVal.skuCode !== othVal.skuCode;
10420
+ });
10421
+ setSelect(list);
10422
+ }
10157
10423
  }
10158
10424
  };
10159
10425
  var initData = function initData(list) {
@@ -10241,6 +10507,86 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
10241
10507
  });
10242
10508
  }
10243
10509
  };
10510
+ var showTable = function showTable() {
10511
+ var handleDelete = function handleDelete(record, index) {
10512
+ setSelectIds(selectIds.filter(function (t) {
10513
+ return t !== record.skuCode;
10514
+ }));
10515
+ setSelect(selectList.filter(function (t) {
10516
+ return t.skuCode !== record.skuCode;
10517
+ }));
10518
+ };
10519
+ var showColumns = [{
10520
+ dataIndex: '',
10521
+ title: "\u64CD\u4F5C",
10522
+ ellipsis: true,
10523
+ width: 100,
10524
+ render: function render(val, record, index) {
10525
+ return /*#__PURE__*/React.createElement(Button, {
10526
+ type: "link",
10527
+ onClick: function onClick() {
10528
+ return handleDelete(record);
10529
+ }
10530
+ }, "\u5220\u9664");
10531
+ }
10532
+ }, {
10533
+ dataIndex: 'skuName',
10534
+ title: '商品sku名称',
10535
+ with: 200,
10536
+ ellipsis: true
10537
+ }, {
10538
+ dataIndex: 'skuCode',
10539
+ title: '商品sku编码',
10540
+ with: 200,
10541
+ ellipsis: true
10542
+ }, {
10543
+ dataIndex: 'name',
10544
+ title: '商品名称',
10545
+ with: 200,
10546
+ ellipsis: true
10547
+ }, {
10548
+ dataIndex: 'goodsId',
10549
+ title: '商品id',
10550
+ with: 200,
10551
+ ellipsis: true
10552
+ }, {
10553
+ dataIndex: 'code',
10554
+ title: '商品编码',
10555
+ with: 200,
10556
+ render: function render(val) {
10557
+ return /*#__PURE__*/React.createElement("div", {
10558
+ style: {
10559
+ width: '100px'
10560
+ }
10561
+ }, val);
10562
+ }
10563
+ }, {
10564
+ dataIndex: 'marketPrice',
10565
+ title: '市场价',
10566
+ render: function render(val) {
10567
+ return /*#__PURE__*/React.createElement("div", {
10568
+ style: {
10569
+ width: '70px'
10570
+ }
10571
+ }, val);
10572
+ }
10573
+ }];
10574
+ return selectList.length ? /*#__PURE__*/React.createElement(Table, {
10575
+ columns: showColumns,
10576
+ rowKey: 'skuCode',
10577
+ dataSource: selectList,
10578
+ scroll: {
10579
+ x: true,
10580
+ y: 250
10581
+ },
10582
+ pagination: {
10583
+ size: 'small',
10584
+ total: selectIds.length,
10585
+ pageSize: pageSize,
10586
+ showSizeChanger: false
10587
+ }
10588
+ }) : null;
10589
+ };
10244
10590
  return /*#__PURE__*/React.createElement(Modal, {
10245
10591
  title: '选择商品',
10246
10592
  okText: '确认',
@@ -10322,10 +10668,17 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
10322
10668
  total: total,
10323
10669
  current: pageNo,
10324
10670
  pageSize: pageSize,
10325
- pageSizeOptions: [],
10671
+ showSizeChanger: false,
10672
+ showQuickJumper: true,
10326
10673
  onChange: pageChange
10327
10674
  }
10328
- })));
10675
+ }), /*#__PURE__*/React.createElement(Popover, {
10676
+ content: showTable(),
10677
+ title: "\u5DF2\u9009\u62E9".concat(selectIds.length, "\u4E2A\u5546\u54C1")
10678
+ }, /*#__PURE__*/React.createElement(Button, {
10679
+ danger: true,
10680
+ type: "text"
10681
+ }, "\u5DF2\u9009\u62E9\u5546\u54C1(".concat(selectIds.length > 99 ? '99+' : selectIds.length, ")"), /*#__PURE__*/React.createElement(CaretUpOutlined, null)))));
10329
10682
  };
10330
10683
  var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
10331
10684
 
@@ -10339,6 +10692,7 @@ var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
10339
10692
  var GoodItem = function GoodItem(props) {
10340
10693
  var _props$value = props.value,
10341
10694
  value = _props$value === void 0 ? [] : _props$value,
10695
+ type = props.type,
10342
10696
  onChange = props.onChange,
10343
10697
  disabled = props.disabled,
10344
10698
  _props$showHeader = props.showHeader,
@@ -10386,105 +10740,186 @@ var GoodItem = function GoodItem(props) {
10386
10740
  onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
10387
10741
  }
10388
10742
  };
10743
+ var COLUMNS_MAP = function COLUMNS_MAP() {
10744
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
10745
+ return {
10746
+ DEFAULT: [{
10747
+ dataIndex: 'mark',
10748
+ title: "\u5546\u54C1\u6807\u8BB0",
10749
+ align: 'center',
10750
+ ellipsis: true,
10751
+ width: 70,
10752
+ render: function render(val, record, index) {
10753
+ return /*#__PURE__*/React.createElement(Select, {
10754
+ options: [{
10755
+ label: '是',
10756
+ value: '是'
10757
+ }, {
10758
+ label: '否',
10759
+ value: '否'
10760
+ }],
10761
+ disabled: disabled,
10762
+ value: val,
10763
+ onChange: function onChange(val) {
10764
+ return updateHandle(val, index, 'mark');
10765
+ }
10766
+ });
10767
+ }
10768
+ }, {
10769
+ dataIndex: 'skuName',
10770
+ title: "".concat(text, "sku\u540D\u79F0"),
10771
+ align: 'center',
10772
+ ellipsis: true,
10773
+ width: 250
10774
+ }, {
10775
+ dataIndex: 'sku',
10776
+ title: "".concat(text, "sku\u7F16\u7801"),
10777
+ align: 'center',
10778
+ ellipsis: true,
10779
+ width: 100
10780
+ }, {
10781
+ dataIndex: 'name',
10782
+ title: "".concat(text, "\u540D\u79F0"),
10783
+ align: 'center',
10784
+ ellipsis: true,
10785
+ width: 250
10786
+ }, {
10787
+ dataIndex: 'pic',
10788
+ title: "\u56FE\u7247",
10789
+ align: 'center',
10790
+ ellipsis: true,
10791
+ width: 100,
10792
+ render: function render(val) {
10793
+ return /*#__PURE__*/React.createElement(Image, {
10794
+ width: 60,
10795
+ src: val
10796
+ });
10797
+ }
10798
+ }, {
10799
+ dataIndex: 'code',
10800
+ title: "".concat(text, "\u7F16\u7801"),
10801
+ align: 'center',
10802
+ ellipsis: true,
10803
+ width: 100
10804
+ }, {
10805
+ dataIndex: 'money',
10806
+ title: "\u5B9E\u4ED8\u91D1\u989D",
10807
+ align: 'center',
10808
+ ellipsis: true,
10809
+ width: 100
10810
+ }, {
10811
+ dataIndex: 'number',
10812
+ title: "".concat(text, "\u6570\u91CF"),
10813
+ align: 'center',
10814
+ ellipsis: true,
10815
+ width: 100,
10816
+ render: function render(val, record, index) {
10817
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
10818
+ style: {
10819
+ width: 70
10820
+ },
10821
+ value: val,
10822
+ min: 0,
10823
+ precision: 0,
10824
+ onChange: function onChange(num) {
10825
+ return updateHandle(num, index, 'number');
10826
+ }
10827
+ }) : /*#__PURE__*/React.createElement("span", null, val);
10828
+ }
10829
+ }, {
10830
+ dataIndex: 'share',
10831
+ title: "\u5206\u644A\u4EF7",
10832
+ align: 'center',
10833
+ ellipsis: true,
10834
+ width: 70
10835
+ }, {
10836
+ dataIndex: 'type',
10837
+ title: "\u8D60\u54C1\u7C7B\u578B",
10838
+ align: 'center',
10839
+ ellipsis: true,
10840
+ width: 100
10841
+ }],
10842
+ WDT_REISSUE_GOODS: [{
10843
+ dataIndex: 'spuId',
10844
+ title: "SPUID",
10845
+ align: 'center',
10846
+ ellipsis: true,
10847
+ width: 70
10848
+ }, {
10849
+ dataIndex: 'spuSku',
10850
+ title: "SPU\u5546\u54C1\u7F16\u7801",
10851
+ align: 'center',
10852
+ ellipsis: true,
10853
+ width: 100
10854
+ }, {
10855
+ dataIndex: 'skuId',
10856
+ title: "".concat(text, "SKUID"),
10857
+ align: 'center',
10858
+ ellipsis: true,
10859
+ width: 100
10860
+ }, {
10861
+ dataIndex: 'name',
10862
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
10863
+ align: 'center',
10864
+ ellipsis: true,
10865
+ width: 250
10866
+ }, {
10867
+ dataIndex: 'sku',
10868
+ title: "".concat(text, "sku\u7F16\u7801"),
10869
+ align: 'center',
10870
+ ellipsis: true,
10871
+ width: 100
10872
+ }, {
10873
+ dataIndex: 'skuName',
10874
+ title: "".concat(text, "sku\u540D\u79F0"),
10875
+ align: 'center',
10876
+ ellipsis: true,
10877
+ width: 250
10878
+ }, {
10879
+ dataIndex: 'money',
10880
+ title: "\u5B9E\u4ED8\u91D1\u989D",
10881
+ align: 'center',
10882
+ ellipsis: true,
10883
+ width: 100
10884
+ }, {
10885
+ dataIndex: 'number',
10886
+ title: "".concat(text, "\u6570\u91CF"),
10887
+ align: 'center',
10888
+ ellipsis: true,
10889
+ width: 100,
10890
+ render: function render(val, record, index) {
10891
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
10892
+ style: {
10893
+ width: 70
10894
+ },
10895
+ value: val,
10896
+ min: 0,
10897
+ precision: 0,
10898
+ onChange: function onChange(num) {
10899
+ return updateHandle(num, index, 'number');
10900
+ }
10901
+ }) : /*#__PURE__*/React.createElement("span", null, val);
10902
+ }
10903
+ }, {
10904
+ dataIndex: 'share',
10905
+ title: "\u5206\u644A\u4EF7",
10906
+ align: 'center',
10907
+ ellipsis: true,
10908
+ width: 70
10909
+ }, {
10910
+ dataIndex: 'type',
10911
+ title: "\u8D60\u54C1\u7C7B\u578B",
10912
+ align: 'center',
10913
+ ellipsis: true,
10914
+ width: 100
10915
+ }]
10916
+ };
10917
+ };
10389
10918
  //商品信息
10390
10919
  var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
10391
10920
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
10392
- return [{
10393
- dataIndex: 'mark',
10394
- title: "\u5546\u54C1\u6807\u8BB0",
10395
- align: 'center',
10396
- ellipsis: true,
10397
- width: 70,
10398
- render: function render(val, record, index) {
10399
- return /*#__PURE__*/React.createElement(Select, {
10400
- options: [{
10401
- label: '是',
10402
- value: '是'
10403
- }, {
10404
- label: '否',
10405
- value: '否'
10406
- }],
10407
- disabled: disabled,
10408
- value: val,
10409
- onChange: function onChange(val) {
10410
- return updateHandle(val, index, 'mark');
10411
- }
10412
- });
10413
- }
10414
- }, {
10415
- dataIndex: 'skuName',
10416
- title: "".concat(text, "sku\u540D\u79F0"),
10417
- align: 'center',
10418
- ellipsis: true,
10419
- width: 250
10420
- }, {
10421
- dataIndex: 'sku',
10422
- title: "".concat(text, "sku\u7F16\u7801"),
10423
- align: 'center',
10424
- ellipsis: true,
10425
- width: 100
10426
- }, {
10427
- dataIndex: 'name',
10428
- title: "".concat(text, "\u540D\u79F0"),
10429
- align: 'center',
10430
- ellipsis: true,
10431
- width: 250
10432
- }, {
10433
- dataIndex: 'pic',
10434
- title: "\u56FE\u7247",
10435
- align: 'center',
10436
- ellipsis: true,
10437
- width: 100,
10438
- render: function render(val) {
10439
- return /*#__PURE__*/React.createElement(Image, {
10440
- width: 60,
10441
- src: val
10442
- });
10443
- }
10444
- }, {
10445
- dataIndex: 'code',
10446
- title: "".concat(text, "\u7F16\u7801"),
10447
- align: 'center',
10448
- ellipsis: true,
10449
- width: 100
10450
- }, {
10451
- dataIndex: 'money',
10452
- title: "\u5B9E\u4ED8\u91D1\u989D",
10453
- align: 'center',
10454
- ellipsis: true,
10455
- width: 100
10456
- }, {
10457
- dataIndex: 'number',
10458
- title: "".concat(text, "\u6570\u91CF"),
10459
- align: 'center',
10460
- ellipsis: true,
10461
- width: 100,
10462
- render: function render(val, record, index) {
10463
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
10464
- style: {
10465
- width: 70
10466
- },
10467
- value: val,
10468
- min: 0,
10469
- precision: 0,
10470
- onChange: function onChange(num) {
10471
- return updateHandle(num, index, 'number');
10472
- }
10473
- }) : /*#__PURE__*/React.createElement("span", null, val);
10474
- }
10475
- }, {
10476
- dataIndex: 'share',
10477
- title: "\u5206\u644A\u4EF7",
10478
- align: 'center',
10479
- ellipsis: true,
10480
- width: 70
10481
- }, {
10482
- dataIndex: 'type',
10483
- title: "\u8D60\u54C1\u7C7B\u578B",
10484
- align: 'center',
10485
- ellipsis: true,
10486
- width: 100
10487
- }];
10921
+ var COLUMNS_INFO = COLUMNS_MAP(text);
10922
+ return (COLUMNS_INFO === null || COLUMNS_INFO === void 0 ? void 0 : COLUMNS_INFO["".concat(type)]) || COLUMNS_INFO['DEFAULT'];
10488
10923
  };
10489
10924
  var newColumns = useMemo(function () {
10490
10925
  var columnList = [{
@@ -12163,4 +12598,4 @@ var CalculationInput = function CalculationInput(props) {
12163
12598
  }, config === null || config === void 0 ? void 0 : config.unit));
12164
12599
  };
12165
12600
 
12166
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
12601
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };