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