@kmkf-fe-packages/basic-components 1.3.0-rc.0 → 1.3.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.js
CHANGED
|
@@ -12,7 +12,6 @@ var zhCN = require('antd/lib/locale/zh_CN');
|
|
|
12
12
|
var lodash = require('lodash');
|
|
13
13
|
var ahooks = require('ahooks');
|
|
14
14
|
var pubsub = require('pubsub-js');
|
|
15
|
-
var BigNumber = require('bignumber.js');
|
|
16
15
|
|
|
17
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
17
|
|
|
@@ -20,7 +19,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
20
19
|
var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
|
|
21
20
|
var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
|
|
22
21
|
var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
|
|
23
|
-
var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
|
|
24
22
|
|
|
25
23
|
function _iterableToArrayLimit(arr, i) {
|
|
26
24
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -10455,7 +10453,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10455
10453
|
var wdtSendOptions = kmkfUtils.WdtSendData.getInstance().wdtSendData || [];
|
|
10456
10454
|
React.useEffect(function () {
|
|
10457
10455
|
//没有值塞个默认值
|
|
10458
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)
|
|
10456
|
+
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
10459
10457
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10460
10458
|
}
|
|
10461
10459
|
}, [value, type]);
|
|
@@ -10518,7 +10516,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10518
10516
|
return setChangeIndex(index);
|
|
10519
10517
|
}
|
|
10520
10518
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
10521
|
-
}))) : null, value.length
|
|
10519
|
+
}))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10522
10520
|
disabled: disabled,
|
|
10523
10521
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
10524
10522
|
onChange: function onChange(val) {
|
|
@@ -11675,34 +11673,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11675
11673
|
React.useEffect(function () {
|
|
11676
11674
|
setSelectedRowKeys([]);
|
|
11677
11675
|
}, [tableSelect, selectType]);
|
|
11678
|
-
var updateHandle = function updateHandle(val, index,
|
|
11676
|
+
var updateHandle = function updateHandle(val, index, type) {
|
|
11679
11677
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
11680
|
-
value[index][
|
|
11681
|
-
if (type === 'WDT_RETURN_GOODS') {
|
|
11682
|
-
if (['sharePrice', 'num'].includes(columnType)) {
|
|
11683
|
-
var totalMoney = null;
|
|
11684
|
-
if (columnType === 'num') {
|
|
11685
|
-
totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].sharePrice));
|
|
11686
|
-
} else {
|
|
11687
|
-
totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].num));
|
|
11688
|
-
}
|
|
11689
|
-
if (totalMoney !== null) {
|
|
11690
|
-
value[index]['returnPrice'] = totalMoney.toString();
|
|
11691
|
-
}
|
|
11692
|
-
}
|
|
11693
|
-
} else if (type === 'WDT_EXCHANGE_GOODS') {
|
|
11694
|
-
if (['price', 'num'].includes(columnType)) {
|
|
11695
|
-
var _totalMoney = null;
|
|
11696
|
-
if (columnType === 'num') {
|
|
11697
|
-
_totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].price));
|
|
11698
|
-
} else {
|
|
11699
|
-
_totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].num));
|
|
11700
|
-
}
|
|
11701
|
-
if (_totalMoney !== null) {
|
|
11702
|
-
value[index]['exchangePrice'] = _totalMoney.toString();
|
|
11703
|
-
}
|
|
11704
|
-
}
|
|
11705
|
-
}
|
|
11678
|
+
value[index][type] = val;
|
|
11706
11679
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
|
|
11707
11680
|
}
|
|
11708
11681
|
};
|
|
@@ -11808,260 +11781,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11808
11781
|
}
|
|
11809
11782
|
}];
|
|
11810
11783
|
break;
|
|
11811
|
-
case 'WDT_RETURN_GOODS':
|
|
11812
|
-
{
|
|
11813
|
-
columns = [{
|
|
11814
|
-
dataIndex: 'goodId',
|
|
11815
|
-
title: "SPUID",
|
|
11816
|
-
align: 'center',
|
|
11817
|
-
ellipsis: true,
|
|
11818
|
-
width: 70
|
|
11819
|
-
}, {
|
|
11820
|
-
dataIndex: 'goodNo',
|
|
11821
|
-
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
11822
|
-
align: 'center',
|
|
11823
|
-
ellipsis: true,
|
|
11824
|
-
width: 180
|
|
11825
|
-
}, {
|
|
11826
|
-
dataIndex: 'goodName',
|
|
11827
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
11828
|
-
align: 'center',
|
|
11829
|
-
ellipsis: true,
|
|
11830
|
-
width: 250
|
|
11831
|
-
}, {
|
|
11832
|
-
dataIndex: 'specId',
|
|
11833
|
-
title: "".concat(text, "SKUID"),
|
|
11834
|
-
align: 'center',
|
|
11835
|
-
ellipsis: true,
|
|
11836
|
-
width: 100
|
|
11837
|
-
}, {
|
|
11838
|
-
dataIndex: 'specNo',
|
|
11839
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
11840
|
-
align: 'center',
|
|
11841
|
-
ellipsis: true,
|
|
11842
|
-
width: 180
|
|
11843
|
-
}, {
|
|
11844
|
-
dataIndex: 'specName',
|
|
11845
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
11846
|
-
align: 'center',
|
|
11847
|
-
ellipsis: true,
|
|
11848
|
-
width: 250
|
|
11849
|
-
}, {
|
|
11850
|
-
dataIndex: 'num',
|
|
11851
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
11852
|
-
align: 'center',
|
|
11853
|
-
ellipsis: true,
|
|
11854
|
-
width: 100,
|
|
11855
|
-
render: function render(val, record, index) {
|
|
11856
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
11857
|
-
style: {
|
|
11858
|
-
width: 70
|
|
11859
|
-
},
|
|
11860
|
-
value: val,
|
|
11861
|
-
min: 1,
|
|
11862
|
-
precision: 0,
|
|
11863
|
-
onChange: function onChange(num) {
|
|
11864
|
-
return updateHandle(num, index, 'num');
|
|
11865
|
-
}
|
|
11866
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
11867
|
-
}
|
|
11868
|
-
}, {
|
|
11869
|
-
dataIndex: 'sharePrice',
|
|
11870
|
-
title: "\u5206\u644A\u4EF7",
|
|
11871
|
-
align: 'center',
|
|
11872
|
-
ellipsis: true,
|
|
11873
|
-
width: 80,
|
|
11874
|
-
render: function render(val, record, index) {
|
|
11875
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
11876
|
-
style: {
|
|
11877
|
-
width: 70
|
|
11878
|
-
},
|
|
11879
|
-
value: val,
|
|
11880
|
-
min: 0,
|
|
11881
|
-
onChange: function onChange(value) {
|
|
11882
|
-
return updateHandle(value, index, 'sharePrice');
|
|
11883
|
-
}
|
|
11884
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
11885
|
-
}
|
|
11886
|
-
}, {
|
|
11887
|
-
dataIndex: 'returnPrice',
|
|
11888
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
11889
|
-
align: 'center',
|
|
11890
|
-
ellipsis: true,
|
|
11891
|
-
width: 100
|
|
11892
|
-
}, {
|
|
11893
|
-
dataIndex: 'giftType',
|
|
11894
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
11895
|
-
align: 'center',
|
|
11896
|
-
ellipsis: true,
|
|
11897
|
-
width: 100,
|
|
11898
|
-
render: function render(val) {
|
|
11899
|
-
var giftTypeMap = {
|
|
11900
|
-
0: '非赠品',
|
|
11901
|
-
1: '自动赠送',
|
|
11902
|
-
2: '手工赠送',
|
|
11903
|
-
3: '回购自动送赠品',
|
|
11904
|
-
4: '前N有礼送赠品',
|
|
11905
|
-
6: '天猫优仓赠品',
|
|
11906
|
-
7: '淘宝CRM会员送赠'
|
|
11907
|
-
};
|
|
11908
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
11909
|
-
}
|
|
11910
|
-
}, {
|
|
11911
|
-
dataIndex: 'type',
|
|
11912
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
11913
|
-
align: 'center',
|
|
11914
|
-
ellipsis: true,
|
|
11915
|
-
width: 100,
|
|
11916
|
-
render: function render(val, record, index) {
|
|
11917
|
-
var options = [{
|
|
11918
|
-
label: '单品',
|
|
11919
|
-
value: '1'
|
|
11920
|
-
}, {
|
|
11921
|
-
label: '组合装',
|
|
11922
|
-
value: '2'
|
|
11923
|
-
}];
|
|
11924
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11925
|
-
style: {
|
|
11926
|
-
width: 70
|
|
11927
|
-
},
|
|
11928
|
-
options: options,
|
|
11929
|
-
value: val,
|
|
11930
|
-
onChange: function onChange(value) {
|
|
11931
|
-
return updateHandle(value, index, 'type');
|
|
11932
|
-
}
|
|
11933
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
11934
|
-
}
|
|
11935
|
-
}];
|
|
11936
|
-
}
|
|
11937
|
-
break;
|
|
11938
|
-
case 'WDT_EXCHANGE_GOODS':
|
|
11939
|
-
{
|
|
11940
|
-
columns = [{
|
|
11941
|
-
dataIndex: 'goodId',
|
|
11942
|
-
title: "SPUID",
|
|
11943
|
-
align: 'center',
|
|
11944
|
-
ellipsis: true,
|
|
11945
|
-
width: 70
|
|
11946
|
-
}, {
|
|
11947
|
-
dataIndex: 'goodNo',
|
|
11948
|
-
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
11949
|
-
align: 'center',
|
|
11950
|
-
ellipsis: true,
|
|
11951
|
-
width: 180
|
|
11952
|
-
}, {
|
|
11953
|
-
dataIndex: 'goodName',
|
|
11954
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
11955
|
-
align: 'center',
|
|
11956
|
-
ellipsis: true,
|
|
11957
|
-
width: 250
|
|
11958
|
-
}, {
|
|
11959
|
-
dataIndex: 'specId',
|
|
11960
|
-
title: "".concat(text, "SKUID"),
|
|
11961
|
-
align: 'center',
|
|
11962
|
-
ellipsis: true,
|
|
11963
|
-
width: 100
|
|
11964
|
-
}, {
|
|
11965
|
-
dataIndex: 'specNo',
|
|
11966
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
11967
|
-
align: 'center',
|
|
11968
|
-
ellipsis: true,
|
|
11969
|
-
width: 180
|
|
11970
|
-
}, {
|
|
11971
|
-
dataIndex: 'specName',
|
|
11972
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
11973
|
-
align: 'center',
|
|
11974
|
-
ellipsis: true,
|
|
11975
|
-
width: 250
|
|
11976
|
-
}, {
|
|
11977
|
-
dataIndex: 'num',
|
|
11978
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
11979
|
-
align: 'center',
|
|
11980
|
-
ellipsis: true,
|
|
11981
|
-
width: 100,
|
|
11982
|
-
render: function render(val, record, index) {
|
|
11983
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
11984
|
-
style: {
|
|
11985
|
-
width: 70
|
|
11986
|
-
},
|
|
11987
|
-
value: val,
|
|
11988
|
-
min: 1,
|
|
11989
|
-
precision: 0,
|
|
11990
|
-
onChange: function onChange(num) {
|
|
11991
|
-
return updateHandle(num, index, 'num');
|
|
11992
|
-
}
|
|
11993
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
11994
|
-
}
|
|
11995
|
-
}, {
|
|
11996
|
-
dataIndex: 'price',
|
|
11997
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
11998
|
-
align: 'center',
|
|
11999
|
-
ellipsis: true,
|
|
12000
|
-
width: 100,
|
|
12001
|
-
render: function render(val, record, index) {
|
|
12002
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12003
|
-
style: {
|
|
12004
|
-
width: 70
|
|
12005
|
-
},
|
|
12006
|
-
value: val,
|
|
12007
|
-
min: 0,
|
|
12008
|
-
onChange: function onChange(value) {
|
|
12009
|
-
return updateHandle(value, index, 'price');
|
|
12010
|
-
}
|
|
12011
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12012
|
-
}
|
|
12013
|
-
}, {
|
|
12014
|
-
dataIndex: 'exchangePrice',
|
|
12015
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
12016
|
-
align: 'center',
|
|
12017
|
-
ellipsis: true,
|
|
12018
|
-
width: 100
|
|
12019
|
-
}, {
|
|
12020
|
-
dataIndex: 'giftType',
|
|
12021
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12022
|
-
align: 'center',
|
|
12023
|
-
ellipsis: true,
|
|
12024
|
-
width: 100,
|
|
12025
|
-
render: function render(val) {
|
|
12026
|
-
var giftTypeMap = {
|
|
12027
|
-
0: '非赠品',
|
|
12028
|
-
1: '自动赠送',
|
|
12029
|
-
2: '手工赠送',
|
|
12030
|
-
3: '回购自动送赠品',
|
|
12031
|
-
4: '前N有礼送赠品',
|
|
12032
|
-
6: '天猫优仓赠品',
|
|
12033
|
-
7: '淘宝CRM会员送赠'
|
|
12034
|
-
};
|
|
12035
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
12036
|
-
}
|
|
12037
|
-
}, {
|
|
12038
|
-
dataIndex: 'type',
|
|
12039
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
12040
|
-
align: 'center',
|
|
12041
|
-
ellipsis: true,
|
|
12042
|
-
width: 100,
|
|
12043
|
-
render: function render(val, record, index) {
|
|
12044
|
-
var options = [{
|
|
12045
|
-
label: '单品',
|
|
12046
|
-
value: '1'
|
|
12047
|
-
}, {
|
|
12048
|
-
label: '组合装',
|
|
12049
|
-
value: '2'
|
|
12050
|
-
}];
|
|
12051
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12052
|
-
style: {
|
|
12053
|
-
width: 70
|
|
12054
|
-
},
|
|
12055
|
-
options: options,
|
|
12056
|
-
value: val,
|
|
12057
|
-
onChange: function onChange(value) {
|
|
12058
|
-
return updateHandle(value, index, 'type');
|
|
12059
|
-
}
|
|
12060
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12061
|
-
}
|
|
12062
|
-
}];
|
|
12063
|
-
}
|
|
12064
|
-
break;
|
|
12065
11784
|
default:
|
|
12066
11785
|
columns = [{
|
|
12067
11786
|
dataIndex: 'mark',
|
|
@@ -12203,7 +11922,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12203
11922
|
}, [showHeader, value, disabled]);
|
|
12204
11923
|
var onSubmit = function onSubmit(list) {
|
|
12205
11924
|
var newList = [];
|
|
12206
|
-
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'
|
|
11925
|
+
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
|
|
12207
11926
|
newList = list.map(function (item) {
|
|
12208
11927
|
item.uuid = kmkfUtils.uuid();
|
|
12209
11928
|
item.canDelete = true;
|
|
@@ -12211,10 +11930,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12211
11930
|
item.orderPrice = 0;
|
|
12212
11931
|
item.sharePrice = 0;
|
|
12213
11932
|
item.canUpdateNumber = canUpdateNumber;
|
|
12214
|
-
if (type === 'WDT_EXCHANGE_GOODS') {
|
|
12215
|
-
item.price = item.retailPrice;
|
|
12216
|
-
item.type = '1';
|
|
12217
|
-
}
|
|
12218
11933
|
return item;
|
|
12219
11934
|
});
|
|
12220
11935
|
} else {
|
|
@@ -12285,7 +12000,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12285
12000
|
locale: {
|
|
12286
12001
|
emptyText: '暂无数据'
|
|
12287
12002
|
}
|
|
12288
|
-
})), ['WDT_REISSUE_GOODS', 'WDT_GOODS'
|
|
12003
|
+
})), ['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(WdtGoodsModal, {
|
|
12289
12004
|
ref: refModal,
|
|
12290
12005
|
onSubmit: onSubmit,
|
|
12291
12006
|
width: width,
|
|
@@ -13042,7 +12757,7 @@ var index$1 = (function (props) {
|
|
|
13042
12757
|
}();
|
|
13043
12758
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
13044
12759
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderNo) {
|
|
13045
|
-
var _yield$request3, success, data
|
|
12760
|
+
var _yield$request3, success, data;
|
|
13046
12761
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
13047
12762
|
while (1) switch (_context3.prev = _context3.next) {
|
|
13048
12763
|
case 0:
|
|
@@ -13058,25 +12773,15 @@ var index$1 = (function (props) {
|
|
|
13058
12773
|
success = _yield$request3.success;
|
|
13059
12774
|
data = _yield$request3.data;
|
|
13060
12775
|
if (success) {
|
|
13061
|
-
trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
13062
|
-
return (item.srcTid || '').split(',').includes(orderNo);
|
|
13063
|
-
}).map(function (item) {
|
|
13064
|
-
if (Array.isArray(item.goodDetails)) {
|
|
13065
|
-
item.goodDetails = item.goodDetails.filter(function (good) {
|
|
13066
|
-
return good.srcTid === orderNo;
|
|
13067
|
-
});
|
|
13068
|
-
}
|
|
13069
|
-
return item;
|
|
13070
|
-
});
|
|
13071
12776
|
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13072
|
-
orders: trades.map(function (item) {
|
|
12777
|
+
orders: ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
|
|
13073
12778
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13074
12779
|
billNo: item.tradeNo,
|
|
13075
12780
|
billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
13076
12781
|
billTag: item.tagName
|
|
13077
12782
|
});
|
|
13078
12783
|
}),
|
|
13079
|
-
showOrderInfo: trades.map(function (item) {
|
|
12784
|
+
showOrderInfo: data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
|
|
13080
12785
|
return {
|
|
13081
12786
|
billNo: item.tradeNo,
|
|
13082
12787
|
billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
@@ -13165,10 +12870,8 @@ var componentMap$1 = {
|
|
|
13165
12870
|
reissueType: 'wdtReissueType',
|
|
13166
12871
|
returnType: 'wdtReturnType',
|
|
13167
12872
|
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
13168
|
-
returnSelectList: 'wdtReturnSelectList',
|
|
13169
12873
|
deleteGood: 'wdtDeleteGood',
|
|
13170
|
-
returnDeleteGood: 'wdtReturnDeleteGood'
|
|
13171
|
-
exchangeDeleteGood: 'wdtExchangeDeleteGood'
|
|
12874
|
+
returnDeleteGood: 'wdtReturnDeleteGood'
|
|
13172
12875
|
}
|
|
13173
12876
|
}
|
|
13174
12877
|
};
|
|
@@ -13235,7 +12938,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13235
12938
|
setTableSelect(['2', '4'].includes(data.val));
|
|
13236
12939
|
if (['1', '3'].includes(data.val)) {
|
|
13237
12940
|
var _valueRef$current5, _valueRef$current6;
|
|
13238
|
-
pubsub__default['default'].publish(componentMap$1[
|
|
12941
|
+
pubsub__default['default'].publish(componentMap$1[type].eventNameMap.returnSelectListReturn, {
|
|
13239
12942
|
list: lodash.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]) || []),
|
|
13240
12943
|
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
|
|
13241
12944
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
@@ -13253,15 +12956,15 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13253
12956
|
};
|
|
13254
12957
|
}, [disabled]);
|
|
13255
12958
|
var _onSelect = function onSelect(list) {
|
|
13256
|
-
var
|
|
12959
|
+
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
13257
12960
|
if (disabled) return;
|
|
13258
12961
|
var newList = lodash.cloneDeep(list);
|
|
13259
|
-
var typeMap = (
|
|
12962
|
+
var typeMap = _defineProperty({
|
|
13260
12963
|
// type: componentMap[compType].eventNameMap.selectList,
|
|
13261
12964
|
// returnType: componentMap[compType].eventNameMap.returnSelectList,
|
|
13262
12965
|
// reissueType: componentMap[compType].eventNameMap.reissueSelectList,
|
|
13263
12966
|
type: componentMap$1[compType].eventNameMap.selectList
|
|
13264
|
-
},
|
|
12967
|
+
}, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
|
|
13265
12968
|
var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
|
|
13266
12969
|
// console.log('onSelect', type, withInfo.current, newList);
|
|
13267
12970
|
pubsub__default['default'].publish(type, {
|
|
@@ -13279,7 +12982,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13279
12982
|
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
|
|
13280
12983
|
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
|
|
13281
12984
|
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
|
|
13282
|
-
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.exchangeDeleteGood, deleteId);
|
|
13283
12985
|
};
|
|
13284
12986
|
var changeHandle = function changeHandle(list) {
|
|
13285
12987
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, componentMap$1[compType].key, list)));
|
|
@@ -13304,263 +13006,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13304
13006
|
}));
|
|
13305
13007
|
};
|
|
13306
13008
|
|
|
13307
|
-
var componentMap$2 = {
|
|
13308
|
-
'WDT_RETURN_GOODS': {
|
|
13309
|
-
type: 'wdt',
|
|
13310
|
-
valueKey: 'wdtReturnGoods',
|
|
13311
|
-
returnTypeKey: 'wdtReturnType',
|
|
13312
|
-
name: '旺店通',
|
|
13313
|
-
eventNameMap: {
|
|
13314
|
-
changeShopCode: 'wdtChangeShopCode',
|
|
13315
|
-
returnType: 'wdtReturnType',
|
|
13316
|
-
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
13317
|
-
returnDeleteGood: 'wdtReturnDeleteGood',
|
|
13318
|
-
returnSelectList: 'wdtReturnSelectList',
|
|
13319
|
-
exchangeCopyGood: 'wdtExchangeCopyGood',
|
|
13320
|
-
exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
|
|
13321
|
-
}
|
|
13322
|
-
}
|
|
13323
|
-
};
|
|
13324
|
-
var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
13325
|
-
var value = props.value,
|
|
13326
|
-
onChange = props.onChange,
|
|
13327
|
-
_props$reasonList = props.reasonList,
|
|
13328
|
-
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
13329
|
-
disabled = props.disabled,
|
|
13330
|
-
compType = props.type;
|
|
13331
|
-
var valueRef = React.useRef({});
|
|
13332
|
-
React.useEffect(function () {
|
|
13333
|
-
var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
|
|
13334
|
-
var _valueRef$current, _valueRef$current2;
|
|
13335
|
-
pubsub__default['default'].publish(componentMap$2[compType].eventNameMap.exchangeBackCopyGood, {
|
|
13336
|
-
list: lodash.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]) || []),
|
|
13337
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
|
|
13338
|
-
});
|
|
13339
|
-
});
|
|
13340
|
-
return function () {
|
|
13341
|
-
pubsub__default['default'].unsubscribe(subscription);
|
|
13342
|
-
};
|
|
13343
|
-
}, []);
|
|
13344
|
-
React.useEffect(function () {
|
|
13345
|
-
var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.returnSelectList, function (_, data) {
|
|
13346
|
-
if (disabled) return;
|
|
13347
|
-
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
13348
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13349
|
-
});
|
|
13350
|
-
if (compType === 'WDT_RETURN_GOODS') {
|
|
13351
|
-
newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13352
|
-
if (typeof item.type === 'undefined') {
|
|
13353
|
-
item.type = '1';
|
|
13354
|
-
}
|
|
13355
|
-
if (typeof item.returnPrice === 'undefined') {
|
|
13356
|
-
item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
|
|
13357
|
-
}
|
|
13358
|
-
if (item.srcOid) {
|
|
13359
|
-
item.oid = item.srcOid;
|
|
13360
|
-
}
|
|
13361
|
-
return item;
|
|
13362
|
-
});
|
|
13363
|
-
} else {
|
|
13364
|
-
newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13365
|
-
}
|
|
13366
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13367
|
-
});
|
|
13368
|
-
return function () {
|
|
13369
|
-
pubsub__default['default'].unsubscribe(subscription);
|
|
13370
|
-
};
|
|
13371
|
-
}, []);
|
|
13372
|
-
React.useEffect(function () {
|
|
13373
|
-
var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.returnSelectListReturn, function (_, data) {
|
|
13374
|
-
if (disabled) return;
|
|
13375
|
-
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
13376
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13377
|
-
});
|
|
13378
|
-
if (compType === 'WDT_RETURN_GOODS') {
|
|
13379
|
-
newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13380
|
-
if (typeof item.type === 'undefined') {
|
|
13381
|
-
item.type = '1';
|
|
13382
|
-
}
|
|
13383
|
-
if (typeof item.returnPrice === 'undefined') {
|
|
13384
|
-
item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
|
|
13385
|
-
}
|
|
13386
|
-
if (item.srcOid) {
|
|
13387
|
-
item.oid = item.srcOid;
|
|
13388
|
-
}
|
|
13389
|
-
return item;
|
|
13390
|
-
});
|
|
13391
|
-
} else {
|
|
13392
|
-
newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13393
|
-
}
|
|
13394
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13395
|
-
});
|
|
13396
|
-
return function () {
|
|
13397
|
-
pubsub__default['default'].unsubscribe(subscription);
|
|
13398
|
-
};
|
|
13399
|
-
}, []);
|
|
13400
|
-
React.useEffect(function () {
|
|
13401
|
-
valueRef.current = value;
|
|
13402
|
-
pubsub__default['default'].subscribeOnce(componentMap$2[compType].eventNameMap.returnDeleteGood, function (_, data) {
|
|
13403
|
-
if (disabled) return;
|
|
13404
|
-
if (value) {
|
|
13405
|
-
var newValue = _objectSpread2({}, value);
|
|
13406
|
-
newValue[componentMap$2[compType].valueKey] = newValue[componentMap$2[compType].valueKey].filter(function (item) {
|
|
13407
|
-
return item.sku !== data;
|
|
13408
|
-
});
|
|
13409
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13410
|
-
}
|
|
13411
|
-
});
|
|
13412
|
-
pubsub__default['default'].subscribeOnce(componentMap$2[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
13413
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13414
|
-
shopCode: data.shopCode
|
|
13415
|
-
}));
|
|
13416
|
-
});
|
|
13417
|
-
}, [value, disabled]);
|
|
13418
|
-
var changeTypeHandle = function changeTypeHandle(val) {
|
|
13419
|
-
var newValue = _objectSpread2({}, value);
|
|
13420
|
-
newValue[componentMap$2[compType].returnTypeKey] = val;
|
|
13421
|
-
newValue[componentMap$2[compType].valueKey] = [];
|
|
13422
|
-
if (['2'].includes(val[0])) {
|
|
13423
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13424
|
-
valueRef.current = newValue;
|
|
13425
|
-
}
|
|
13426
|
-
pubsub__default['default'].publish(componentMap$2[compType].eventNameMap.returnType, {
|
|
13427
|
-
val: val[0],
|
|
13428
|
-
goodValue: newValue
|
|
13429
|
-
});
|
|
13430
|
-
};
|
|
13431
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
13432
|
-
var newValue = _objectSpread2({}, value);
|
|
13433
|
-
newValue[componentMap$2[compType].valueKey] = val;
|
|
13434
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13435
|
-
};
|
|
13436
|
-
//显示选择商品按钮 原单换不显示选择商品
|
|
13437
|
-
// const showChangeBtn = useMemo(() => {
|
|
13438
|
-
// return ['2'].includes(value?.[componentMap[compType].returnTypeKey]?.[0]);
|
|
13439
|
-
// }, [value?.[componentMap[compType].returnTypeKey]]);
|
|
13440
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
13441
|
-
style: {
|
|
13442
|
-
marginBottom: '8px'
|
|
13443
|
-
},
|
|
13444
|
-
disabled: disabled,
|
|
13445
|
-
allowClear: false,
|
|
13446
|
-
options: reasonList,
|
|
13447
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
|
|
13448
|
-
onChange: function onChange(val) {
|
|
13449
|
-
return changeTypeHandle(val);
|
|
13450
|
-
}
|
|
13451
|
-
}), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
13452
|
-
key: componentMap$2[compType].type
|
|
13453
|
-
}, props), {}, {
|
|
13454
|
-
disabled: disabled,
|
|
13455
|
-
canUpdateNumber: true,
|
|
13456
|
-
showChangeBtn: false,
|
|
13457
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
13458
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].valueKey],
|
|
13459
|
-
onChange: function onChange(val) {
|
|
13460
|
-
return changeGoodHandle(val);
|
|
13461
|
-
}
|
|
13462
|
-
})));
|
|
13463
|
-
};
|
|
13464
|
-
|
|
13465
|
-
var componentMap$3 = {
|
|
13466
|
-
'WDT_EXCHANGE_GOODS': {
|
|
13467
|
-
type: 'wdt',
|
|
13468
|
-
valueKey: 'wdtExchangeGoods',
|
|
13469
|
-
returnTypeKey: 'wdtExchangeType',
|
|
13470
|
-
name: '旺店通',
|
|
13471
|
-
eventNameMap: {
|
|
13472
|
-
changeShopCode: 'wdtChangeShopCode',
|
|
13473
|
-
exchangeDeleteGood: 'wdtExchangeDeleteGood',
|
|
13474
|
-
exchangeCopyGood: 'wdtExchangeCopyGood',
|
|
13475
|
-
exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
|
|
13476
|
-
}
|
|
13477
|
-
}
|
|
13478
|
-
};
|
|
13479
|
-
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
13480
|
-
var value = props.value,
|
|
13481
|
-
onChange = props.onChange,
|
|
13482
|
-
disabled = props.disabled,
|
|
13483
|
-
compType = props.type;
|
|
13484
|
-
var valueRef = React.useRef({});
|
|
13485
|
-
React.useEffect(function () {
|
|
13486
|
-
var subscription = pubsub__default['default'].subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
|
|
13487
|
-
if (disabled) return;
|
|
13488
|
-
var newValue = {
|
|
13489
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13490
|
-
};
|
|
13491
|
-
if (compType === 'WDT_EXCHANGE_GOODS') {
|
|
13492
|
-
newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13493
|
-
if (typeof item.type === 'undefined') {
|
|
13494
|
-
item.type = '1';
|
|
13495
|
-
}
|
|
13496
|
-
item.price = item.sharePrice;
|
|
13497
|
-
if (typeof item.exchangePrice === 'undefined') {
|
|
13498
|
-
item.exchangePrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.price)).toString();
|
|
13499
|
-
}
|
|
13500
|
-
return item;
|
|
13501
|
-
});
|
|
13502
|
-
} else {
|
|
13503
|
-
newValue[componentMap$3[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13504
|
-
}
|
|
13505
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13506
|
-
});
|
|
13507
|
-
return function () {
|
|
13508
|
-
pubsub__default['default'].unsubscribe(subscription);
|
|
13509
|
-
};
|
|
13510
|
-
});
|
|
13511
|
-
React.useEffect(function () {
|
|
13512
|
-
valueRef.current = value;
|
|
13513
|
-
pubsub__default['default'].subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
|
|
13514
|
-
if (disabled) return;
|
|
13515
|
-
if (value) {
|
|
13516
|
-
var newValue = _objectSpread2({}, value);
|
|
13517
|
-
newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
|
|
13518
|
-
return item.sku !== data;
|
|
13519
|
-
});
|
|
13520
|
-
onChange(newValue);
|
|
13521
|
-
}
|
|
13522
|
-
});
|
|
13523
|
-
pubsub__default['default'].subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
13524
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13525
|
-
shopCode: data.shopCode
|
|
13526
|
-
}));
|
|
13527
|
-
});
|
|
13528
|
-
}, [value]);
|
|
13529
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
13530
|
-
var newValue = _objectSpread2({}, value);
|
|
13531
|
-
if (compType === 'WDT_EXCHANGE_GOODS') {
|
|
13532
|
-
val = val.map(function (item) {
|
|
13533
|
-
item.exchangePrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.price)).toString();
|
|
13534
|
-
return item;
|
|
13535
|
-
});
|
|
13536
|
-
}
|
|
13537
|
-
newValue[componentMap$3[compType].valueKey] = val;
|
|
13538
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13539
|
-
};
|
|
13540
|
-
var copyGoods = function copyGoods() {
|
|
13541
|
-
var copyHandle = function copyHandle() {
|
|
13542
|
-
pubsub__default['default'].publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
|
|
13543
|
-
};
|
|
13544
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13545
|
-
type: "link",
|
|
13546
|
-
onClick: copyHandle
|
|
13547
|
-
}, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
|
|
13548
|
-
};
|
|
13549
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
13550
|
-
key: componentMap$3[compType].type
|
|
13551
|
-
}, props), {}, {
|
|
13552
|
-
disabled: disabled,
|
|
13553
|
-
canUpdateNumber: true,
|
|
13554
|
-
showChangeBtn: true,
|
|
13555
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
13556
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
|
|
13557
|
-
otherOperations: copyGoods(),
|
|
13558
|
-
onChange: function onChange(val) {
|
|
13559
|
-
return changeGoodHandle(val);
|
|
13560
|
-
}
|
|
13561
|
-
})));
|
|
13562
|
-
};
|
|
13563
|
-
|
|
13564
13009
|
var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
13565
13010
|
var typeMap$1 = {
|
|
13566
13011
|
WDT_REISSUE_GOODS: {
|
|
@@ -14349,7 +13794,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14349
13794
|
changeIndex = _useState2[0],
|
|
14350
13795
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14351
13796
|
React.useEffect(function () {
|
|
14352
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)
|
|
13797
|
+
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
14353
13798
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
|
|
14354
13799
|
}
|
|
14355
13800
|
}, [value, type]);
|
|
@@ -14388,7 +13833,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14388
13833
|
return setChangeIndex(index);
|
|
14389
13834
|
}
|
|
14390
13835
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14391
|
-
}))) : null, value.length
|
|
13836
|
+
}))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14392
13837
|
disabled: disabled,
|
|
14393
13838
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
14394
13839
|
onChange: function onChange(e) {
|
|
@@ -14403,18 +13848,12 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14403
13848
|
},
|
|
14404
13849
|
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
|
|
14405
13850
|
})) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14406
|
-
disabled:
|
|
13851
|
+
disabled: true,
|
|
14407
13852
|
placeholder: "\u8BF7\u8F93\u5165\u8865\u53D1\u5355id",
|
|
14408
|
-
onChange: function onChange(e) {
|
|
14409
|
-
return changeInputHandle(e.target.value, 'billNo');
|
|
14410
|
-
},
|
|
14411
13853
|
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
|
|
14412
13854
|
})) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14413
|
-
disabled:
|
|
13855
|
+
disabled: true,
|
|
14414
13856
|
placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
|
|
14415
|
-
onChange: function onChange(e) {
|
|
14416
|
-
return changeInputHandle(e.target.value, 'billNo');
|
|
14417
|
-
},
|
|
14418
13857
|
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
|
|
14419
13858
|
})) : null) : null);
|
|
14420
13859
|
};
|
|
@@ -14476,7 +13915,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14476
13915
|
return setChangeIndex(index);
|
|
14477
13916
|
}
|
|
14478
13917
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14479
|
-
}))) : null, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
13918
|
+
}))) : null, value.length && type === 1 || type === 2 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
14480
13919
|
showSearch: true,
|
|
14481
13920
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
14482
13921
|
filterOption: function filterOption(input, option) {
|
|
@@ -14492,7 +13931,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14492
13931
|
}
|
|
14493
13932
|
}))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14494
13933
|
className: "c-red"
|
|
14495
|
-
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
13934
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
14496
13935
|
};
|
|
14497
13936
|
|
|
14498
13937
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
@@ -14608,10 +14047,8 @@ exports.BsSystemOrder = index$1;
|
|
|
14608
14047
|
exports.BuyerNick = BuyerNick;
|
|
14609
14048
|
exports.CalculationInput = CalculationInput;
|
|
14610
14049
|
exports.ChooseBaby = ChooseBaby;
|
|
14611
|
-
exports.CommonExchangeGoods = CommonExchangeGoods;
|
|
14612
14050
|
exports.CommonGoods = CommonGoods;
|
|
14613
14051
|
exports.CommonMultiStatus = CommonSystemOrder$1;
|
|
14614
|
-
exports.CommonReturnGoods = CommonReturnGoods;
|
|
14615
14052
|
exports.CommonStatus = CommonStatus;
|
|
14616
14053
|
exports.CommonSystemOrder = CommonSystemOrder;
|
|
14617
14054
|
exports.ExpressLogistics = ExpressLogistics;
|