@kmkf-fe-packages/basic-components 1.4.0-rc.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.esm.js +21 -581
- package/dist/index.js +20 -583
- package/dist/src/index.d.ts +0 -2
- package/package.json +3 -4
- package/dist/src/common/CommonExchangeGoods/index.d.ts +0 -3
- package/dist/src/common/CommonReturnGoods/index.d.ts +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,6 @@ import zhCN from 'antd/lib/locale/zh_CN';
|
|
|
8
8
|
import { cloneDeep, difference, differenceWith } from 'lodash';
|
|
9
9
|
import { useDebounceEffect } from 'ahooks';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
|
-
import BigNumber from 'bignumber.js';
|
|
12
11
|
|
|
13
12
|
function _iterableToArrayLimit(r, l) {
|
|
14
13
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -10445,7 +10444,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10445
10444
|
var wdtSendOptions = WdtSendData.getInstance().wdtSendData || [];
|
|
10446
10445
|
useEffect(function () {
|
|
10447
10446
|
//没有值塞个默认值
|
|
10448
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)
|
|
10447
|
+
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
10449
10448
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10450
10449
|
}
|
|
10451
10450
|
}, [value, type]);
|
|
@@ -10508,7 +10507,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10508
10507
|
return setChangeIndex(index);
|
|
10509
10508
|
}
|
|
10510
10509
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
10511
|
-
}))) : null, value.length
|
|
10510
|
+
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10512
10511
|
disabled: disabled,
|
|
10513
10512
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
10514
10513
|
onChange: function onChange(val) {
|
|
@@ -11665,34 +11664,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11665
11664
|
useEffect(function () {
|
|
11666
11665
|
setSelectedRowKeys([]);
|
|
11667
11666
|
}, [tableSelect, selectType]);
|
|
11668
|
-
var updateHandle = function updateHandle(val, index,
|
|
11667
|
+
var updateHandle = function updateHandle(val, index, type) {
|
|
11669
11668
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
11670
|
-
value[index][
|
|
11671
|
-
if (type === 'WDT_RETURN_GOODS') {
|
|
11672
|
-
if (['sharePrice', 'num'].includes(columnType)) {
|
|
11673
|
-
var totalMoney = null;
|
|
11674
|
-
if (columnType === 'num') {
|
|
11675
|
-
totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].sharePrice));
|
|
11676
|
-
} else {
|
|
11677
|
-
totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].num));
|
|
11678
|
-
}
|
|
11679
|
-
if (totalMoney !== null) {
|
|
11680
|
-
value[index]['returnPrice'] = totalMoney.toString();
|
|
11681
|
-
}
|
|
11682
|
-
}
|
|
11683
|
-
} else if (type === 'WDT_EXCHANGE_GOODS') {
|
|
11684
|
-
if (['price', 'num'].includes(columnType)) {
|
|
11685
|
-
var _totalMoney = null;
|
|
11686
|
-
if (columnType === 'num') {
|
|
11687
|
-
_totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].price));
|
|
11688
|
-
} else {
|
|
11689
|
-
_totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].num));
|
|
11690
|
-
}
|
|
11691
|
-
if (_totalMoney !== null) {
|
|
11692
|
-
value[index]['exchangePrice'] = _totalMoney.toString();
|
|
11693
|
-
}
|
|
11694
|
-
}
|
|
11695
|
-
}
|
|
11669
|
+
value[index][type] = val;
|
|
11696
11670
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
|
|
11697
11671
|
}
|
|
11698
11672
|
};
|
|
@@ -11798,260 +11772,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11798
11772
|
}
|
|
11799
11773
|
}];
|
|
11800
11774
|
break;
|
|
11801
|
-
case 'WDT_RETURN_GOODS':
|
|
11802
|
-
{
|
|
11803
|
-
columns = [{
|
|
11804
|
-
dataIndex: 'goodId',
|
|
11805
|
-
title: "SPUID",
|
|
11806
|
-
align: 'center',
|
|
11807
|
-
ellipsis: true,
|
|
11808
|
-
width: 70
|
|
11809
|
-
}, {
|
|
11810
|
-
dataIndex: 'goodNo',
|
|
11811
|
-
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
11812
|
-
align: 'center',
|
|
11813
|
-
ellipsis: true,
|
|
11814
|
-
width: 180
|
|
11815
|
-
}, {
|
|
11816
|
-
dataIndex: 'goodName',
|
|
11817
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
11818
|
-
align: 'center',
|
|
11819
|
-
ellipsis: true,
|
|
11820
|
-
width: 250
|
|
11821
|
-
}, {
|
|
11822
|
-
dataIndex: 'specId',
|
|
11823
|
-
title: "".concat(text, "SKUID"),
|
|
11824
|
-
align: 'center',
|
|
11825
|
-
ellipsis: true,
|
|
11826
|
-
width: 100
|
|
11827
|
-
}, {
|
|
11828
|
-
dataIndex: 'specNo',
|
|
11829
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
11830
|
-
align: 'center',
|
|
11831
|
-
ellipsis: true,
|
|
11832
|
-
width: 180
|
|
11833
|
-
}, {
|
|
11834
|
-
dataIndex: 'specName',
|
|
11835
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
11836
|
-
align: 'center',
|
|
11837
|
-
ellipsis: true,
|
|
11838
|
-
width: 250
|
|
11839
|
-
}, {
|
|
11840
|
-
dataIndex: 'num',
|
|
11841
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
11842
|
-
align: 'center',
|
|
11843
|
-
ellipsis: true,
|
|
11844
|
-
width: 100,
|
|
11845
|
-
render: function render(val, record, index) {
|
|
11846
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11847
|
-
style: {
|
|
11848
|
-
width: 70
|
|
11849
|
-
},
|
|
11850
|
-
value: val,
|
|
11851
|
-
min: 1,
|
|
11852
|
-
precision: 0,
|
|
11853
|
-
onChange: function onChange(num) {
|
|
11854
|
-
return updateHandle(num, index, 'num');
|
|
11855
|
-
}
|
|
11856
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11857
|
-
}
|
|
11858
|
-
}, {
|
|
11859
|
-
dataIndex: 'sharePrice',
|
|
11860
|
-
title: "\u5206\u644A\u4EF7",
|
|
11861
|
-
align: 'center',
|
|
11862
|
-
ellipsis: true,
|
|
11863
|
-
width: 80,
|
|
11864
|
-
render: function render(val, record, index) {
|
|
11865
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11866
|
-
style: {
|
|
11867
|
-
width: 70
|
|
11868
|
-
},
|
|
11869
|
-
value: val,
|
|
11870
|
-
min: 0,
|
|
11871
|
-
onChange: function onChange(value) {
|
|
11872
|
-
return updateHandle(value, index, 'sharePrice');
|
|
11873
|
-
}
|
|
11874
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11875
|
-
}
|
|
11876
|
-
}, {
|
|
11877
|
-
dataIndex: 'returnPrice',
|
|
11878
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
11879
|
-
align: 'center',
|
|
11880
|
-
ellipsis: true,
|
|
11881
|
-
width: 100
|
|
11882
|
-
}, {
|
|
11883
|
-
dataIndex: 'giftType',
|
|
11884
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
11885
|
-
align: 'center',
|
|
11886
|
-
ellipsis: true,
|
|
11887
|
-
width: 100,
|
|
11888
|
-
render: function render(val) {
|
|
11889
|
-
var giftTypeMap = {
|
|
11890
|
-
0: '非赠品',
|
|
11891
|
-
1: '自动赠送',
|
|
11892
|
-
2: '手工赠送',
|
|
11893
|
-
3: '回购自动送赠品',
|
|
11894
|
-
4: '前N有礼送赠品',
|
|
11895
|
-
6: '天猫优仓赠品',
|
|
11896
|
-
7: '淘宝CRM会员送赠'
|
|
11897
|
-
};
|
|
11898
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
11899
|
-
}
|
|
11900
|
-
}, {
|
|
11901
|
-
dataIndex: 'type',
|
|
11902
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
11903
|
-
align: 'center',
|
|
11904
|
-
ellipsis: true,
|
|
11905
|
-
width: 100,
|
|
11906
|
-
render: function render(val, record, index) {
|
|
11907
|
-
var options = [{
|
|
11908
|
-
label: '单品',
|
|
11909
|
-
value: '1'
|
|
11910
|
-
}, {
|
|
11911
|
-
label: '组合装',
|
|
11912
|
-
value: '2'
|
|
11913
|
-
}];
|
|
11914
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
11915
|
-
style: {
|
|
11916
|
-
width: 70
|
|
11917
|
-
},
|
|
11918
|
-
options: options,
|
|
11919
|
-
value: val,
|
|
11920
|
-
onChange: function onChange(value) {
|
|
11921
|
-
return updateHandle(value, index, 'type');
|
|
11922
|
-
}
|
|
11923
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11924
|
-
}
|
|
11925
|
-
}];
|
|
11926
|
-
}
|
|
11927
|
-
break;
|
|
11928
|
-
case 'WDT_EXCHANGE_GOODS':
|
|
11929
|
-
{
|
|
11930
|
-
columns = [{
|
|
11931
|
-
dataIndex: 'goodId',
|
|
11932
|
-
title: "SPUID",
|
|
11933
|
-
align: 'center',
|
|
11934
|
-
ellipsis: true,
|
|
11935
|
-
width: 70
|
|
11936
|
-
}, {
|
|
11937
|
-
dataIndex: 'goodNo',
|
|
11938
|
-
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
11939
|
-
align: 'center',
|
|
11940
|
-
ellipsis: true,
|
|
11941
|
-
width: 180
|
|
11942
|
-
}, {
|
|
11943
|
-
dataIndex: 'goodName',
|
|
11944
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
11945
|
-
align: 'center',
|
|
11946
|
-
ellipsis: true,
|
|
11947
|
-
width: 250
|
|
11948
|
-
}, {
|
|
11949
|
-
dataIndex: 'specId',
|
|
11950
|
-
title: "".concat(text, "SKUID"),
|
|
11951
|
-
align: 'center',
|
|
11952
|
-
ellipsis: true,
|
|
11953
|
-
width: 100
|
|
11954
|
-
}, {
|
|
11955
|
-
dataIndex: 'specNo',
|
|
11956
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
11957
|
-
align: 'center',
|
|
11958
|
-
ellipsis: true,
|
|
11959
|
-
width: 180
|
|
11960
|
-
}, {
|
|
11961
|
-
dataIndex: 'specName',
|
|
11962
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
11963
|
-
align: 'center',
|
|
11964
|
-
ellipsis: true,
|
|
11965
|
-
width: 250
|
|
11966
|
-
}, {
|
|
11967
|
-
dataIndex: 'num',
|
|
11968
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
11969
|
-
align: 'center',
|
|
11970
|
-
ellipsis: true,
|
|
11971
|
-
width: 100,
|
|
11972
|
-
render: function render(val, record, index) {
|
|
11973
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11974
|
-
style: {
|
|
11975
|
-
width: 70
|
|
11976
|
-
},
|
|
11977
|
-
value: val,
|
|
11978
|
-
min: 1,
|
|
11979
|
-
precision: 0,
|
|
11980
|
-
onChange: function onChange(num) {
|
|
11981
|
-
return updateHandle(num, index, 'num');
|
|
11982
|
-
}
|
|
11983
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11984
|
-
}
|
|
11985
|
-
}, {
|
|
11986
|
-
dataIndex: 'price',
|
|
11987
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
11988
|
-
align: 'center',
|
|
11989
|
-
ellipsis: true,
|
|
11990
|
-
width: 100,
|
|
11991
|
-
render: function render(val, record, index) {
|
|
11992
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11993
|
-
style: {
|
|
11994
|
-
width: 70
|
|
11995
|
-
},
|
|
11996
|
-
value: val,
|
|
11997
|
-
min: 0,
|
|
11998
|
-
onChange: function onChange(value) {
|
|
11999
|
-
return updateHandle(value, index, 'price');
|
|
12000
|
-
}
|
|
12001
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12002
|
-
}
|
|
12003
|
-
}, {
|
|
12004
|
-
dataIndex: 'exchangePrice',
|
|
12005
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
12006
|
-
align: 'center',
|
|
12007
|
-
ellipsis: true,
|
|
12008
|
-
width: 100
|
|
12009
|
-
}, {
|
|
12010
|
-
dataIndex: 'giftType',
|
|
12011
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12012
|
-
align: 'center',
|
|
12013
|
-
ellipsis: true,
|
|
12014
|
-
width: 100,
|
|
12015
|
-
render: function render(val) {
|
|
12016
|
-
var giftTypeMap = {
|
|
12017
|
-
0: '非赠品',
|
|
12018
|
-
1: '自动赠送',
|
|
12019
|
-
2: '手工赠送',
|
|
12020
|
-
3: '回购自动送赠品',
|
|
12021
|
-
4: '前N有礼送赠品',
|
|
12022
|
-
6: '天猫优仓赠品',
|
|
12023
|
-
7: '淘宝CRM会员送赠'
|
|
12024
|
-
};
|
|
12025
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12026
|
-
}
|
|
12027
|
-
}, {
|
|
12028
|
-
dataIndex: 'type',
|
|
12029
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
12030
|
-
align: 'center',
|
|
12031
|
-
ellipsis: true,
|
|
12032
|
-
width: 100,
|
|
12033
|
-
render: function render(val, record, index) {
|
|
12034
|
-
var options = [{
|
|
12035
|
-
label: '单品',
|
|
12036
|
-
value: '1'
|
|
12037
|
-
}, {
|
|
12038
|
-
label: '组合装',
|
|
12039
|
-
value: '2'
|
|
12040
|
-
}];
|
|
12041
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12042
|
-
style: {
|
|
12043
|
-
width: 70
|
|
12044
|
-
},
|
|
12045
|
-
options: options,
|
|
12046
|
-
value: val,
|
|
12047
|
-
onChange: function onChange(value) {
|
|
12048
|
-
return updateHandle(value, index, 'type');
|
|
12049
|
-
}
|
|
12050
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12051
|
-
}
|
|
12052
|
-
}];
|
|
12053
|
-
}
|
|
12054
|
-
break;
|
|
12055
11775
|
default:
|
|
12056
11776
|
columns = [{
|
|
12057
11777
|
dataIndex: 'mark',
|
|
@@ -12193,7 +11913,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12193
11913
|
}, [showHeader, value, disabled]);
|
|
12194
11914
|
var onSubmit = function onSubmit(list) {
|
|
12195
11915
|
var newList = [];
|
|
12196
|
-
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'
|
|
11916
|
+
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
|
|
12197
11917
|
newList = list.map(function (item) {
|
|
12198
11918
|
item.uuid = uuid();
|
|
12199
11919
|
item.canDelete = true;
|
|
@@ -12201,10 +11921,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12201
11921
|
item.orderPrice = 0;
|
|
12202
11922
|
item.sharePrice = 0;
|
|
12203
11923
|
item.canUpdateNumber = canUpdateNumber;
|
|
12204
|
-
if (type === 'WDT_EXCHANGE_GOODS') {
|
|
12205
|
-
item.price = item.retailPrice;
|
|
12206
|
-
item.type = '1';
|
|
12207
|
-
}
|
|
12208
11924
|
return item;
|
|
12209
11925
|
});
|
|
12210
11926
|
} else {
|
|
@@ -12275,7 +11991,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12275
11991
|
locale: {
|
|
12276
11992
|
emptyText: '暂无数据'
|
|
12277
11993
|
}
|
|
12278
|
-
})), ['WDT_REISSUE_GOODS', 'WDT_GOODS'
|
|
11994
|
+
})), ['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type) ? /*#__PURE__*/React.createElement(WdtGoodsModal, {
|
|
12279
11995
|
ref: refModal,
|
|
12280
11996
|
onSubmit: onSubmit,
|
|
12281
11997
|
width: width,
|
|
@@ -13036,7 +12752,7 @@ var index$1 = (function (props) {
|
|
|
13036
12752
|
}();
|
|
13037
12753
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
13038
12754
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderNo) {
|
|
13039
|
-
var _yield$request3, success, data
|
|
12755
|
+
var _yield$request3, success, data;
|
|
13040
12756
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
13041
12757
|
while (1) switch (_context3.prev = _context3.next) {
|
|
13042
12758
|
case 0:
|
|
@@ -13052,25 +12768,15 @@ var index$1 = (function (props) {
|
|
|
13052
12768
|
success = _yield$request3.success;
|
|
13053
12769
|
data = _yield$request3.data;
|
|
13054
12770
|
if (success) {
|
|
13055
|
-
trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
13056
|
-
return (item.srcTid || '').split(',').includes(orderNo);
|
|
13057
|
-
}).map(function (item) {
|
|
13058
|
-
if (Array.isArray(item.goodDetails)) {
|
|
13059
|
-
item.goodDetails = item.goodDetails.filter(function (good) {
|
|
13060
|
-
return good.srcTid === orderNo;
|
|
13061
|
-
});
|
|
13062
|
-
}
|
|
13063
|
-
return item;
|
|
13064
|
-
});
|
|
13065
12771
|
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13066
|
-
orders: trades.map(function (item) {
|
|
12772
|
+
orders: ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
|
|
13067
12773
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13068
12774
|
billNo: item.tradeNo,
|
|
13069
12775
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
13070
12776
|
billTag: item.tagName
|
|
13071
12777
|
});
|
|
13072
12778
|
}),
|
|
13073
|
-
showOrderInfo: trades.map(function (item) {
|
|
12779
|
+
showOrderInfo: data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
|
|
13074
12780
|
return {
|
|
13075
12781
|
billNo: item.tradeNo,
|
|
13076
12782
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
@@ -13160,10 +12866,8 @@ var componentMap$1 = {
|
|
|
13160
12866
|
reissueType: 'wdtReissueType',
|
|
13161
12867
|
returnType: 'wdtReturnType',
|
|
13162
12868
|
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
13163
|
-
returnSelectList: 'wdtReturnSelectList',
|
|
13164
12869
|
deleteGood: 'wdtDeleteGood',
|
|
13165
|
-
returnDeleteGood: 'wdtReturnDeleteGood'
|
|
13166
|
-
exchangeDeleteGood: 'wdtExchangeDeleteGood'
|
|
12870
|
+
returnDeleteGood: 'wdtReturnDeleteGood'
|
|
13167
12871
|
}
|
|
13168
12872
|
}
|
|
13169
12873
|
};
|
|
@@ -13230,7 +12934,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13230
12934
|
setTableSelect(['2', '4'].includes(data.val));
|
|
13231
12935
|
if (['1', '3'].includes(data.val)) {
|
|
13232
12936
|
var _valueRef$current5, _valueRef$current6;
|
|
13233
|
-
pubsub.publish(componentMap$1[
|
|
12937
|
+
pubsub.publish(componentMap$1[type].eventNameMap.returnSelectListReturn, {
|
|
13234
12938
|
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5[componentMap$1[compType].key]) || []),
|
|
13235
12939
|
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
|
|
13236
12940
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
@@ -13248,15 +12952,15 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13248
12952
|
};
|
|
13249
12953
|
}, [disabled]);
|
|
13250
12954
|
var _onSelect = function onSelect(list) {
|
|
13251
|
-
var
|
|
12955
|
+
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
13252
12956
|
if (disabled) return;
|
|
13253
12957
|
var newList = cloneDeep(list);
|
|
13254
|
-
var typeMap = (
|
|
12958
|
+
var typeMap = _defineProperty({
|
|
13255
12959
|
// type: componentMap[compType].eventNameMap.selectList,
|
|
13256
12960
|
// returnType: componentMap[compType].eventNameMap.returnSelectList,
|
|
13257
12961
|
// reissueType: componentMap[compType].eventNameMap.reissueSelectList,
|
|
13258
12962
|
type: componentMap$1[compType].eventNameMap.selectList
|
|
13259
|
-
},
|
|
12963
|
+
}, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
|
|
13260
12964
|
var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
|
|
13261
12965
|
// console.log('onSelect', type, withInfo.current, newList);
|
|
13262
12966
|
pubsub.publish(type, {
|
|
@@ -13274,7 +12978,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13274
12978
|
pubsub.publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
|
|
13275
12979
|
pubsub.publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
|
|
13276
12980
|
pubsub.publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
|
|
13277
|
-
pubsub.publish(componentMap$1[compType].eventNameMap.exchangeDeleteGood, deleteId);
|
|
13278
12981
|
};
|
|
13279
12982
|
var changeHandle = function changeHandle(list) {
|
|
13280
12983
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, componentMap$1[compType].key, list)));
|
|
@@ -13299,263 +13002,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13299
13002
|
}));
|
|
13300
13003
|
};
|
|
13301
13004
|
|
|
13302
|
-
var componentMap$2 = {
|
|
13303
|
-
'WDT_RETURN_GOODS': {
|
|
13304
|
-
type: 'wdt',
|
|
13305
|
-
valueKey: 'wdtReturnGoods',
|
|
13306
|
-
returnTypeKey: 'wdtReturnType',
|
|
13307
|
-
name: '旺店通',
|
|
13308
|
-
eventNameMap: {
|
|
13309
|
-
changeShopCode: 'wdtChangeShopCode',
|
|
13310
|
-
returnType: 'wdtReturnType',
|
|
13311
|
-
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
13312
|
-
returnDeleteGood: 'wdtReturnDeleteGood',
|
|
13313
|
-
returnSelectList: 'wdtReturnSelectList',
|
|
13314
|
-
exchangeCopyGood: 'wdtExchangeCopyGood',
|
|
13315
|
-
exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
|
|
13316
|
-
}
|
|
13317
|
-
}
|
|
13318
|
-
};
|
|
13319
|
-
var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
13320
|
-
var value = props.value,
|
|
13321
|
-
onChange = props.onChange,
|
|
13322
|
-
_props$reasonList = props.reasonList,
|
|
13323
|
-
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
13324
|
-
disabled = props.disabled,
|
|
13325
|
-
compType = props.type;
|
|
13326
|
-
var valueRef = useRef({});
|
|
13327
|
-
useEffect(function () {
|
|
13328
|
-
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
|
|
13329
|
-
var _valueRef$current, _valueRef$current2;
|
|
13330
|
-
pubsub.publish(componentMap$2[compType].eventNameMap.exchangeBackCopyGood, {
|
|
13331
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current[componentMap$2[compType].valueKey]) || []),
|
|
13332
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
|
|
13333
|
-
});
|
|
13334
|
-
});
|
|
13335
|
-
return function () {
|
|
13336
|
-
pubsub.unsubscribe(subscription);
|
|
13337
|
-
};
|
|
13338
|
-
}, []);
|
|
13339
|
-
useEffect(function () {
|
|
13340
|
-
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.returnSelectList, function (_, data) {
|
|
13341
|
-
if (disabled) return;
|
|
13342
|
-
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
13343
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13344
|
-
});
|
|
13345
|
-
if (compType === 'WDT_RETURN_GOODS') {
|
|
13346
|
-
newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13347
|
-
if (typeof item.type === 'undefined') {
|
|
13348
|
-
item.type = '1';
|
|
13349
|
-
}
|
|
13350
|
-
if (typeof item.returnPrice === 'undefined') {
|
|
13351
|
-
item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
|
|
13352
|
-
}
|
|
13353
|
-
if (item.srcOid) {
|
|
13354
|
-
item.oid = item.srcOid;
|
|
13355
|
-
}
|
|
13356
|
-
return item;
|
|
13357
|
-
});
|
|
13358
|
-
} else {
|
|
13359
|
-
newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13360
|
-
}
|
|
13361
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13362
|
-
});
|
|
13363
|
-
return function () {
|
|
13364
|
-
pubsub.unsubscribe(subscription);
|
|
13365
|
-
};
|
|
13366
|
-
}, []);
|
|
13367
|
-
useEffect(function () {
|
|
13368
|
-
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.returnSelectListReturn, function (_, data) {
|
|
13369
|
-
if (disabled) return;
|
|
13370
|
-
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
13371
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13372
|
-
});
|
|
13373
|
-
if (compType === 'WDT_RETURN_GOODS') {
|
|
13374
|
-
newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13375
|
-
if (typeof item.type === 'undefined') {
|
|
13376
|
-
item.type = '1';
|
|
13377
|
-
}
|
|
13378
|
-
if (typeof item.returnPrice === 'undefined') {
|
|
13379
|
-
item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
|
|
13380
|
-
}
|
|
13381
|
-
if (item.srcOid) {
|
|
13382
|
-
item.oid = item.srcOid;
|
|
13383
|
-
}
|
|
13384
|
-
return item;
|
|
13385
|
-
});
|
|
13386
|
-
} else {
|
|
13387
|
-
newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13388
|
-
}
|
|
13389
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13390
|
-
});
|
|
13391
|
-
return function () {
|
|
13392
|
-
pubsub.unsubscribe(subscription);
|
|
13393
|
-
};
|
|
13394
|
-
}, []);
|
|
13395
|
-
useEffect(function () {
|
|
13396
|
-
valueRef.current = value;
|
|
13397
|
-
pubsub.subscribeOnce(componentMap$2[compType].eventNameMap.returnDeleteGood, function (_, data) {
|
|
13398
|
-
if (disabled) return;
|
|
13399
|
-
if (value) {
|
|
13400
|
-
var newValue = _objectSpread2({}, value);
|
|
13401
|
-
newValue[componentMap$2[compType].valueKey] = newValue[componentMap$2[compType].valueKey].filter(function (item) {
|
|
13402
|
-
return item.sku !== data;
|
|
13403
|
-
});
|
|
13404
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13405
|
-
}
|
|
13406
|
-
});
|
|
13407
|
-
pubsub.subscribeOnce(componentMap$2[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
13408
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13409
|
-
shopCode: data.shopCode
|
|
13410
|
-
}));
|
|
13411
|
-
});
|
|
13412
|
-
}, [value, disabled]);
|
|
13413
|
-
var changeTypeHandle = function changeTypeHandle(val) {
|
|
13414
|
-
var newValue = _objectSpread2({}, value);
|
|
13415
|
-
newValue[componentMap$2[compType].returnTypeKey] = val;
|
|
13416
|
-
newValue[componentMap$2[compType].valueKey] = [];
|
|
13417
|
-
if (['2'].includes(val[0])) {
|
|
13418
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13419
|
-
valueRef.current = newValue;
|
|
13420
|
-
}
|
|
13421
|
-
pubsub.publish(componentMap$2[compType].eventNameMap.returnType, {
|
|
13422
|
-
val: val[0],
|
|
13423
|
-
goodValue: newValue
|
|
13424
|
-
});
|
|
13425
|
-
};
|
|
13426
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
13427
|
-
var newValue = _objectSpread2({}, value);
|
|
13428
|
-
newValue[componentMap$2[compType].valueKey] = val;
|
|
13429
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13430
|
-
};
|
|
13431
|
-
//显示选择商品按钮 原单换不显示选择商品
|
|
13432
|
-
// const showChangeBtn = useMemo(() => {
|
|
13433
|
-
// return ['2'].includes(value?.[componentMap[compType].returnTypeKey]?.[0]);
|
|
13434
|
-
// }, [value?.[componentMap[compType].returnTypeKey]]);
|
|
13435
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, {
|
|
13436
|
-
style: {
|
|
13437
|
-
marginBottom: '8px'
|
|
13438
|
-
},
|
|
13439
|
-
disabled: disabled,
|
|
13440
|
-
allowClear: false,
|
|
13441
|
-
options: reasonList,
|
|
13442
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
|
|
13443
|
-
onChange: function onChange(val) {
|
|
13444
|
-
return changeTypeHandle(val);
|
|
13445
|
-
}
|
|
13446
|
-
}), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
13447
|
-
key: componentMap$2[compType].type
|
|
13448
|
-
}, props), {}, {
|
|
13449
|
-
disabled: disabled,
|
|
13450
|
-
canUpdateNumber: true,
|
|
13451
|
-
showChangeBtn: false,
|
|
13452
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
13453
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].valueKey],
|
|
13454
|
-
onChange: function onChange(val) {
|
|
13455
|
-
return changeGoodHandle(val);
|
|
13456
|
-
}
|
|
13457
|
-
})));
|
|
13458
|
-
};
|
|
13459
|
-
|
|
13460
|
-
var componentMap$3 = {
|
|
13461
|
-
'WDT_EXCHANGE_GOODS': {
|
|
13462
|
-
type: 'wdt',
|
|
13463
|
-
valueKey: 'wdtExchangeGoods',
|
|
13464
|
-
returnTypeKey: 'wdtExchangeType',
|
|
13465
|
-
name: '旺店通',
|
|
13466
|
-
eventNameMap: {
|
|
13467
|
-
changeShopCode: 'wdtChangeShopCode',
|
|
13468
|
-
exchangeDeleteGood: 'wdtExchangeDeleteGood',
|
|
13469
|
-
exchangeCopyGood: 'wdtExchangeCopyGood',
|
|
13470
|
-
exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
|
|
13471
|
-
}
|
|
13472
|
-
}
|
|
13473
|
-
};
|
|
13474
|
-
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
13475
|
-
var value = props.value,
|
|
13476
|
-
onChange = props.onChange,
|
|
13477
|
-
disabled = props.disabled,
|
|
13478
|
-
compType = props.type;
|
|
13479
|
-
var valueRef = useRef({});
|
|
13480
|
-
useEffect(function () {
|
|
13481
|
-
var subscription = pubsub.subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
|
|
13482
|
-
if (disabled) return;
|
|
13483
|
-
var newValue = {
|
|
13484
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13485
|
-
};
|
|
13486
|
-
if (compType === 'WDT_EXCHANGE_GOODS') {
|
|
13487
|
-
newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13488
|
-
if (typeof item.type === 'undefined') {
|
|
13489
|
-
item.type = '1';
|
|
13490
|
-
}
|
|
13491
|
-
item.price = item.sharePrice;
|
|
13492
|
-
if (typeof item.exchangePrice === 'undefined') {
|
|
13493
|
-
item.exchangePrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.price)).toString();
|
|
13494
|
-
}
|
|
13495
|
-
return item;
|
|
13496
|
-
});
|
|
13497
|
-
} else {
|
|
13498
|
-
newValue[componentMap$3[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13499
|
-
}
|
|
13500
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13501
|
-
});
|
|
13502
|
-
return function () {
|
|
13503
|
-
pubsub.unsubscribe(subscription);
|
|
13504
|
-
};
|
|
13505
|
-
});
|
|
13506
|
-
useEffect(function () {
|
|
13507
|
-
valueRef.current = value;
|
|
13508
|
-
pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
|
|
13509
|
-
if (disabled) return;
|
|
13510
|
-
if (value) {
|
|
13511
|
-
var newValue = _objectSpread2({}, value);
|
|
13512
|
-
newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
|
|
13513
|
-
return item.sku !== data;
|
|
13514
|
-
});
|
|
13515
|
-
onChange(newValue);
|
|
13516
|
-
}
|
|
13517
|
-
});
|
|
13518
|
-
pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
13519
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13520
|
-
shopCode: data.shopCode
|
|
13521
|
-
}));
|
|
13522
|
-
});
|
|
13523
|
-
}, [value]);
|
|
13524
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
13525
|
-
var newValue = _objectSpread2({}, value);
|
|
13526
|
-
if (compType === 'WDT_EXCHANGE_GOODS') {
|
|
13527
|
-
val = val.map(function (item) {
|
|
13528
|
-
item.exchangePrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.price)).toString();
|
|
13529
|
-
return item;
|
|
13530
|
-
});
|
|
13531
|
-
}
|
|
13532
|
-
newValue[componentMap$3[compType].valueKey] = val;
|
|
13533
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13534
|
-
};
|
|
13535
|
-
var copyGoods = function copyGoods() {
|
|
13536
|
-
var copyHandle = function copyHandle() {
|
|
13537
|
-
pubsub.publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
|
|
13538
|
-
};
|
|
13539
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
13540
|
-
type: "link",
|
|
13541
|
-
onClick: copyHandle
|
|
13542
|
-
}, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
|
|
13543
|
-
};
|
|
13544
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
13545
|
-
key: componentMap$3[compType].type
|
|
13546
|
-
}, props), {}, {
|
|
13547
|
-
disabled: disabled,
|
|
13548
|
-
canUpdateNumber: true,
|
|
13549
|
-
showChangeBtn: true,
|
|
13550
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
13551
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
|
|
13552
|
-
otherOperations: copyGoods(),
|
|
13553
|
-
onChange: function onChange(val) {
|
|
13554
|
-
return changeGoodHandle(val);
|
|
13555
|
-
}
|
|
13556
|
-
})));
|
|
13557
|
-
};
|
|
13558
|
-
|
|
13559
13005
|
var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
13560
13006
|
var typeMap$1 = {
|
|
13561
13007
|
WDT_REISSUE_GOODS: {
|
|
@@ -14344,7 +13790,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14344
13790
|
changeIndex = _useState2[0],
|
|
14345
13791
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14346
13792
|
useEffect(function () {
|
|
14347
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)
|
|
13793
|
+
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
14348
13794
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
|
|
14349
13795
|
}
|
|
14350
13796
|
}, [value, type]);
|
|
@@ -14383,7 +13829,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14383
13829
|
return setChangeIndex(index);
|
|
14384
13830
|
}
|
|
14385
13831
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14386
|
-
}))) : null, value.length
|
|
13832
|
+
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14387
13833
|
disabled: disabled,
|
|
14388
13834
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
14389
13835
|
onChange: function onChange(e) {
|
|
@@ -14398,18 +13844,12 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14398
13844
|
},
|
|
14399
13845
|
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
|
|
14400
13846
|
})) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14401
|
-
disabled:
|
|
13847
|
+
disabled: true,
|
|
14402
13848
|
placeholder: "\u8BF7\u8F93\u5165\u8865\u53D1\u5355id",
|
|
14403
|
-
onChange: function onChange(e) {
|
|
14404
|
-
return changeInputHandle(e.target.value, 'billNo');
|
|
14405
|
-
},
|
|
14406
13849
|
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
|
|
14407
13850
|
})) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14408
|
-
disabled:
|
|
13851
|
+
disabled: true,
|
|
14409
13852
|
placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
|
|
14410
|
-
onChange: function onChange(e) {
|
|
14411
|
-
return changeInputHandle(e.target.value, 'billNo');
|
|
14412
|
-
},
|
|
14413
13853
|
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
|
|
14414
13854
|
})) : null) : null);
|
|
14415
13855
|
};
|
|
@@ -14471,7 +13911,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14471
13911
|
return setChangeIndex(index);
|
|
14472
13912
|
}
|
|
14473
13913
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14474
|
-
}))) : null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
13914
|
+
}))) : null, value.length && type === 1 || type === 2 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
14475
13915
|
showSearch: true,
|
|
14476
13916
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
14477
13917
|
filterOption: function filterOption(input, option) {
|
|
@@ -14487,7 +13927,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14487
13927
|
}
|
|
14488
13928
|
}))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React.createElement("div", {
|
|
14489
13929
|
className: "c-red"
|
|
14490
|
-
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
13930
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
14491
13931
|
};
|
|
14492
13932
|
|
|
14493
13933
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
@@ -14575,4 +14015,4 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
14575
14015
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
14576
14016
|
};
|
|
14577
14017
|
|
|
14578
|
-
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,
|
|
14018
|
+
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, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|