@kmkf-fe-packages/basic-components 2.0.19-beta.1 → 2.0.21
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 +1 -1
- package/dist/index.esm.js +11 -529
- package/dist/index.js +9 -528
- package/dist/src/business/LogisticsInterception/index.d.ts +0 -4
- package/dist/src/index.d.ts +0 -1
- package/package.json +4 -4
- package/dist/src/gy/Return/index.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -10247,7 +10247,6 @@ var Item = antd.Form.Item;
|
|
|
10247
10247
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
10248
10248
|
var _value$interceptLogis2, _value$interceptLogis3, _value$interceptLogis4;
|
|
10249
10249
|
var LogisticsAddress = kmkfUtils.LogisticsAddressData.getInstance();
|
|
10250
|
-
var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
|
|
10251
10250
|
var address = kmkfUtils.AddressData.getInstance();
|
|
10252
10251
|
var _props$value = props.value,
|
|
10253
10252
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -10259,10 +10258,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10259
10258
|
_props$disabled = props.disabled,
|
|
10260
10259
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
10261
10260
|
_props$isEditing = props.isEditing,
|
|
10262
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing
|
|
10263
|
-
_props$platform = props.platform,
|
|
10264
|
-
platform = _props$platform === void 0 ? '' : _props$platform,
|
|
10265
|
-
onJumpPage = props.onJumpPage;
|
|
10261
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
10266
10262
|
var _useState = React.useState(''),
|
|
10267
10263
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10268
10264
|
initCompany = _useState2[0],
|
|
@@ -10350,14 +10346,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10350
10346
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
10351
10347
|
})) === null || _find3 === void 0 ? void 0 : (_find3$config = _find3.config) === null || _find3$config === void 0 ? void 0 : _find3$config.showSenderMobile;
|
|
10352
10348
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
10353
|
-
var showKcode = React.useMemo(function () {
|
|
10354
|
-
var isShow = false;
|
|
10355
|
-
if (value === null || value === void 0 ? void 0 : value.interceptCompany) {
|
|
10356
|
-
var _value$interceptCompa, _value$interceptCompa2;
|
|
10357
|
-
isShow = (value === null || value === void 0 ? void 0 : (_value$interceptCompa = value.interceptCompany) === null || _value$interceptCompa === void 0 ? void 0 : _value$interceptCompa.indexOf('YT')) > -1 || (value === null || value === void 0 ? void 0 : (_value$interceptCompa2 = value.interceptCompany) === null || _value$interceptCompa2 === void 0 ? void 0 : _value$interceptCompa2.indexOf('CP468398')) > -1;
|
|
10358
|
-
}
|
|
10359
|
-
return isShow;
|
|
10360
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
10361
10349
|
//判断是否能修改物流信息
|
|
10362
10350
|
var isEdit = React.useMemo(function () {
|
|
10363
10351
|
var company = expressInterceptData.find(function (item) {
|
|
@@ -10367,21 +10355,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10367
10355
|
}, [isEditing, initCompany]);
|
|
10368
10356
|
//退回地址列表
|
|
10369
10357
|
var logisticsAddressOptions = React.useMemo(function () {
|
|
10370
|
-
return
|
|
10358
|
+
return ((LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || []).filter(function (item) {
|
|
10371
10359
|
return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
10372
10360
|
});
|
|
10373
10361
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
10374
|
-
// K码列表
|
|
10375
|
-
var kCodeList = React.useMemo(function () {
|
|
10376
|
-
return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
10377
|
-
return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany) && item.userKCode;
|
|
10378
|
-
}).map(function (item) {
|
|
10379
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
10380
|
-
value: item === null || item === void 0 ? void 0 : item.userKCode,
|
|
10381
|
-
label: item === null || item === void 0 ? void 0 : item.userKCode
|
|
10382
|
-
});
|
|
10383
|
-
});
|
|
10384
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
10385
10362
|
var returnValue = React.useMemo(function () {
|
|
10386
10363
|
var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
|
|
10387
10364
|
var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
|
|
@@ -10399,7 +10376,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10399
10376
|
var changeHandle = function changeHandle(val, type) {
|
|
10400
10377
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
10401
10378
|
if (type === 'interceptCompany') {
|
|
10402
|
-
var _matchKCodeList$;
|
|
10403
10379
|
var interceptCompany = expressInterceptData.find(function (item) {
|
|
10404
10380
|
return item.value === val;
|
|
10405
10381
|
});
|
|
@@ -10407,28 +10383,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10407
10383
|
var _item$config4;
|
|
10408
10384
|
return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
|
|
10409
10385
|
});
|
|
10410
|
-
|
|
10411
|
-
// {
|
|
10412
|
-
// city: 330100,
|
|
10413
|
-
// cpCode: 'YTO',
|
|
10414
|
-
// detail: '光云大厦',
|
|
10415
|
-
// district: 330108,
|
|
10416
|
-
// mobile: '18858820420',
|
|
10417
|
-
// province: 330000,
|
|
10418
|
-
// sendGoodName: '测试编码仓',
|
|
10419
|
-
// senderMobile: '',
|
|
10420
|
-
// senderMobilePhoneList: [],
|
|
10421
|
-
// uk: '8Y2FjwQHdw',
|
|
10422
|
-
// update: 1735887721299,
|
|
10423
|
-
// userName: '南月 光云大厦',
|
|
10424
|
-
// userKCode: 'K12345678',
|
|
10425
|
-
// userSecretKey: '12345678',
|
|
10426
|
-
// },
|
|
10427
|
-
// ];
|
|
10428
|
-
var matchKCodeList = LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
10429
|
-
return item.cpCode === val && item.userKCode;
|
|
10430
|
-
});
|
|
10431
|
-
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
10386
|
+
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10432
10387
|
interceptCompany: val,
|
|
10433
10388
|
interceptType: _returnValue === null || _returnValue === void 0 ? void 0 : _returnValue.value,
|
|
10434
10389
|
interceptSenderMobile: undefined,
|
|
@@ -10443,31 +10398,18 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10443
10398
|
interceptLogisticsApiStatus: {
|
|
10444
10399
|
status: '',
|
|
10445
10400
|
reason: ''
|
|
10446
|
-
}
|
|
10447
|
-
interceptLogisticsUserKCode: (matchKCodeList === null || matchKCodeList === void 0 ? void 0 : matchKCodeList.length) === 1 ? matchKCodeList[0].userKCode : undefined,
|
|
10448
|
-
interceptLogisticsUserSecretKey: (matchKCodeList === null || matchKCodeList === void 0 ? void 0 : matchKCodeList.length) === 1 ? (_matchKCodeList$ = matchKCodeList[0]) === null || _matchKCodeList$ === void 0 ? void 0 : _matchKCodeList$.userSecretKey : undefined
|
|
10401
|
+
}
|
|
10449
10402
|
});
|
|
10450
10403
|
}
|
|
10451
10404
|
if (type === 'interceptLogisticsApiStatus') {
|
|
10452
10405
|
var _value$interceptLogis;
|
|
10453
|
-
newValue = _objectSpread2(_objectSpread2({},
|
|
10406
|
+
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10454
10407
|
interceptLogisticsApiStatus: {
|
|
10455
10408
|
status: val,
|
|
10456
10409
|
reason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis = value.interceptLogisticsApiStatus) === null || _value$interceptLogis === void 0 ? void 0 : _value$interceptLogis.reason) || ''
|
|
10457
10410
|
}
|
|
10458
10411
|
});
|
|
10459
10412
|
}
|
|
10460
|
-
if (type === 'interceptLogisticsUserKCode') {
|
|
10461
|
-
var kCodeItem = kCodeList === null || kCodeList === void 0 ? void 0 : kCodeList.find(function (item) {
|
|
10462
|
-
return item.value === val;
|
|
10463
|
-
});
|
|
10464
|
-
if (kCodeItem) {
|
|
10465
|
-
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
10466
|
-
interceptLogisticsUserSecretKey: kCodeItem === null || kCodeItem === void 0 ? void 0 : kCodeItem.userSecretKey
|
|
10467
|
-
});
|
|
10468
|
-
}
|
|
10469
|
-
}
|
|
10470
|
-
console.log('newValue', newValue);
|
|
10471
10413
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10472
10414
|
};
|
|
10473
10415
|
//智能识别回调
|
|
@@ -10520,47 +10462,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10520
10462
|
return changeHandle(e.target.value, 'interceptCode');
|
|
10521
10463
|
},
|
|
10522
10464
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
10523
|
-
}))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
10524
|
-
label: /*#__PURE__*/React__default['default'].createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React__default['default'].createElement(antd.Typography.Link, {
|
|
10525
|
-
style: {
|
|
10526
|
-
cursor: 'pointer'
|
|
10527
|
-
},
|
|
10528
|
-
onClick: function onClick() {
|
|
10529
|
-
return onJumpPage && (onJumpPage === null || onJumpPage === void 0 ? void 0 : onJumpPage({
|
|
10530
|
-
type: 'interceptConfig'
|
|
10531
|
-
}));
|
|
10532
|
-
}
|
|
10533
|
-
}, 'k码配置>>') : null),
|
|
10534
|
-
required: true,
|
|
10535
|
-
key: 'interceptLogisticsUserKCode',
|
|
10536
|
-
hidden: !showKcode
|
|
10537
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
10538
|
-
disabled: disabled || isEdit,
|
|
10539
|
-
placeholder: "\u9009\u62E9K\u7801",
|
|
10540
|
-
showSearch: true,
|
|
10541
|
-
style: {
|
|
10542
|
-
width: '200px'
|
|
10543
|
-
},
|
|
10544
|
-
onChange: function onChange(val) {
|
|
10545
|
-
return changeHandle(val, 'interceptLogisticsUserKCode');
|
|
10546
|
-
},
|
|
10547
|
-
options: kCodeList,
|
|
10548
|
-
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserKCode,
|
|
10549
|
-
filterOption: function filterOption(input, option) {
|
|
10550
|
-
return option.label.includes(input);
|
|
10551
|
-
}
|
|
10552
|
-
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
10553
|
-
key: 'interceptLogisticsUserSecretKey',
|
|
10554
|
-
hidden: !showKcode,
|
|
10555
|
-
noStyle: true
|
|
10556
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10557
|
-
style: {
|
|
10558
|
-
width: '200px',
|
|
10559
|
-
marginTop: '6px'
|
|
10560
|
-
},
|
|
10561
|
-
placeholder: "\u5BA2\u6237\u5BC6\u94A5",
|
|
10562
|
-
disabled: true,
|
|
10563
|
-
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserSecretKey
|
|
10564
10465
|
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
10565
10466
|
label: '拦截类型',
|
|
10566
10467
|
required: required,
|
|
@@ -10705,8 +10606,7 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10705
10606
|
value = _props$value === void 0 ? [] : _props$value,
|
|
10706
10607
|
disabled = props.disabled,
|
|
10707
10608
|
onChange = props.onChange,
|
|
10708
|
-
isEditing = props.isEditing
|
|
10709
|
-
effects = props.effects;
|
|
10609
|
+
isEditing = props.isEditing;
|
|
10710
10610
|
var _useState = React.useState(0),
|
|
10711
10611
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10712
10612
|
changeIndex = _useState2[0],
|
|
@@ -10748,8 +10648,6 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10748
10648
|
value: item,
|
|
10749
10649
|
disabled: disabled,
|
|
10750
10650
|
isEditing: false,
|
|
10751
|
-
platform: effects === null || effects === void 0 ? void 0 : effects.env,
|
|
10752
|
-
onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
|
|
10753
10651
|
onChange: function onChange(val) {
|
|
10754
10652
|
return handleChange(val, index);
|
|
10755
10653
|
}
|
|
@@ -12630,7 +12528,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
12630
12528
|
var current = _ref.current,
|
|
12631
12529
|
pageSize = _ref.pageSize;
|
|
12632
12530
|
var data = {
|
|
12633
|
-
goodShortName: formData.goodShortName || null,
|
|
12634
12531
|
goodNo: formData.goodNo || null,
|
|
12635
12532
|
goodName: formData.goodName || null,
|
|
12636
12533
|
skuCode: formData.skuCode || null,
|
|
@@ -12788,17 +12685,6 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
12788
12685
|
layout: "inline",
|
|
12789
12686
|
form: form
|
|
12790
12687
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12791
|
-
name: "goodShortName",
|
|
12792
|
-
style: {
|
|
12793
|
-
marginBottom: '12px'
|
|
12794
|
-
}
|
|
12795
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12796
|
-
placeholder: "\u5546\u54C1\u7B80\u79F0",
|
|
12797
|
-
allowClear: true,
|
|
12798
|
-
style: {
|
|
12799
|
-
width: 150
|
|
12800
|
-
}
|
|
12801
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12802
12688
|
name: "goodNo",
|
|
12803
12689
|
style: {
|
|
12804
12690
|
marginBottom: '12px'
|
|
@@ -14486,117 +14372,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14486
14372
|
align: 'center',
|
|
14487
14373
|
ellipsis: true
|
|
14488
14374
|
});
|
|
14489
|
-
}),
|
|
14490
|
-
//管易退货商品信息
|
|
14491
|
-
GY_RETURN_GOODS: [{
|
|
14492
|
-
dataIndex: 'goodName',
|
|
14493
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
14494
|
-
width: 150
|
|
14495
|
-
}, {
|
|
14496
|
-
dataIndex: 'goodShortName',
|
|
14497
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14498
|
-
width: 150
|
|
14499
|
-
}, {
|
|
14500
|
-
dataIndex: 'goodNo',
|
|
14501
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
14502
|
-
width: 200
|
|
14503
|
-
}, {
|
|
14504
|
-
dataIndex: 'specName',
|
|
14505
|
-
title: "SKU\u540D\u79F0",
|
|
14506
|
-
align: 'center',
|
|
14507
|
-
ellipsis: true,
|
|
14508
|
-
width: 250
|
|
14509
|
-
}, {
|
|
14510
|
-
dataIndex: 'specNo',
|
|
14511
|
-
title: "SKU\u7F16\u7801",
|
|
14512
|
-
align: 'center',
|
|
14513
|
-
ellipsis: true,
|
|
14514
|
-
width: 150
|
|
14515
|
-
}, {
|
|
14516
|
-
dataIndex: 'qty',
|
|
14517
|
-
title: "\u6570\u91CF",
|
|
14518
|
-
width: 100,
|
|
14519
|
-
render: function render(val, record, index) {
|
|
14520
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
14521
|
-
style: {
|
|
14522
|
-
width: 70
|
|
14523
|
-
},
|
|
14524
|
-
value: val,
|
|
14525
|
-
min: 1,
|
|
14526
|
-
precision: 0,
|
|
14527
|
-
onChange: function onChange(num) {
|
|
14528
|
-
updateDataHandle({
|
|
14529
|
-
qty: num,
|
|
14530
|
-
amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
|
|
14531
|
-
originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
|
|
14532
|
-
}, index);
|
|
14533
|
-
}
|
|
14534
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14535
|
-
}
|
|
14536
|
-
}, {
|
|
14537
|
-
dataIndex: 'price',
|
|
14538
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
14539
|
-
width: 150,
|
|
14540
|
-
render: function render(val, record, index) {
|
|
14541
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
14542
|
-
style: {
|
|
14543
|
-
width: 130
|
|
14544
|
-
},
|
|
14545
|
-
value: val,
|
|
14546
|
-
min: 0,
|
|
14547
|
-
precision: 2,
|
|
14548
|
-
onChange: function onChange(num) {
|
|
14549
|
-
updateDataHandle({
|
|
14550
|
-
price: num,
|
|
14551
|
-
amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
|
|
14552
|
-
}, index);
|
|
14553
|
-
}
|
|
14554
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14555
|
-
}
|
|
14556
|
-
}, {
|
|
14557
|
-
dataIndex: 'amount',
|
|
14558
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
14559
|
-
width: 150
|
|
14560
|
-
}, {
|
|
14561
|
-
dataIndex: 'originPrice',
|
|
14562
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
14563
|
-
width: 150
|
|
14564
|
-
}, {
|
|
14565
|
-
dataIndex: 'originAmount',
|
|
14566
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
14567
|
-
width: 150
|
|
14568
|
-
}, {
|
|
14569
|
-
dataIndex: 'discountFee',
|
|
14570
|
-
title: "\u8BA9\u5229\u91D1\u989D",
|
|
14571
|
-
width: 150
|
|
14572
|
-
}, {
|
|
14573
|
-
dataIndex: 'amountAfter',
|
|
14574
|
-
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
14575
|
-
width: 150
|
|
14576
|
-
}, {
|
|
14577
|
-
dataIndex: 'isGift',
|
|
14578
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
14579
|
-
width: 150,
|
|
14580
|
-
render: function render(val, record, index) {
|
|
14581
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14582
|
-
value: val,
|
|
14583
|
-
onChange: function onChange(value) {
|
|
14584
|
-
updateHandle(value, index, 'isGift');
|
|
14585
|
-
},
|
|
14586
|
-
options: [{
|
|
14587
|
-
label: '是',
|
|
14588
|
-
value: 1
|
|
14589
|
-
}, {
|
|
14590
|
-
label: '否',
|
|
14591
|
-
value: 0
|
|
14592
|
-
}]
|
|
14593
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
14594
|
-
}
|
|
14595
|
-
}].map(function (item) {
|
|
14596
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14597
|
-
align: 'center',
|
|
14598
|
-
ellipsis: true
|
|
14599
|
-
});
|
|
14600
14375
|
})
|
|
14601
14376
|
};
|
|
14602
14377
|
};
|
|
@@ -15527,7 +15302,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15527
15302
|
case 'JST_EXCHANGE_GOODS':
|
|
15528
15303
|
case 'JST_RETURN_GOODS':
|
|
15529
15304
|
case 'GY_REISSUE_GOODS':
|
|
15530
|
-
case 'GY_RETURN_GOODS':
|
|
15531
15305
|
{
|
|
15532
15306
|
columns = getColumnsMap({
|
|
15533
15307
|
text: text,
|
|
@@ -17294,13 +17068,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17294
17068
|
};
|
|
17295
17069
|
|
|
17296
17070
|
var componentMap$2 = {
|
|
17297
|
-
WDT_RETURN_GOODS: {
|
|
17071
|
+
'WDT_RETURN_GOODS': {
|
|
17298
17072
|
type: 'wdt',
|
|
17299
17073
|
valueKey: 'wdtReturnGoods',
|
|
17300
17074
|
returnTypeKey: 'wdtReturnType',
|
|
17301
17075
|
name: '旺店通',
|
|
17302
17076
|
eventNameMap: {
|
|
17303
|
-
// pubsub 事件
|
|
17304
17077
|
changeShopCode: 'wdtChangeShopCode',
|
|
17305
17078
|
returnType: 'wdtReturnType',
|
|
17306
17079
|
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
@@ -18919,7 +18692,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18919
18692
|
onClick: function onClick() {
|
|
18920
18693
|
return setChangeIndex(index);
|
|
18921
18694
|
}
|
|
18922
|
-
}, kmkfUtils.msgTypeCh[key]
|
|
18695
|
+
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
18923
18696
|
}))) : null, type === 1 ? /*#__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), {}, {
|
|
18924
18697
|
showSearch: true,
|
|
18925
18698
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -19368,7 +19141,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19368
19141
|
console.log('商品发生变化', newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type25 = typeMap$4[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
|
|
19369
19142
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19370
19143
|
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type26 = typeMap$4[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
|
|
19371
|
-
|
|
19144
|
+
//显示选择商品按钮 原单换不显示选择商品
|
|
19372
19145
|
var showChangeBtn = React.useMemo(function () {
|
|
19373
19146
|
var _typeMap$type27;
|
|
19374
19147
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
@@ -19449,297 +19222,6 @@ var GyReissue = function GyReissue(props) {
|
|
|
19449
19222
|
})));
|
|
19450
19223
|
};
|
|
19451
19224
|
|
|
19452
|
-
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19453
|
-
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19454
|
-
var typeMap$5 = {
|
|
19455
|
-
GY_RETURN_GOODS: {
|
|
19456
|
-
key: 'gyReturnGoods',
|
|
19457
|
-
name: '管易',
|
|
19458
|
-
typeName: 'gyReturnType',
|
|
19459
|
-
systemOrder: 'gySystemOrder',
|
|
19460
|
-
systemOrderNo: 'gySystemOrderNo',
|
|
19461
|
-
returnSelectList: 'gyReturnSelectList',
|
|
19462
|
-
returnSelectListReturn: 'gyReturnSelectListReturn',
|
|
19463
|
-
returnDeleteGood: 'gyReturnDeleteGood',
|
|
19464
|
-
changeShopCode: 'gyChangeShopCode',
|
|
19465
|
-
returnType: 'gyReturnType',
|
|
19466
|
-
formatDefaultField: {
|
|
19467
|
-
money: 'orderPrice',
|
|
19468
|
-
share: 'sharePrice'
|
|
19469
|
-
},
|
|
19470
|
-
getOrderList: gyUtils.getGyOrderListSingleton
|
|
19471
|
-
}
|
|
19472
|
-
};
|
|
19473
|
-
var GyReturnGoods = function GyReturnGoods(props) {
|
|
19474
|
-
var _value$gySystemOrder, _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
19475
|
-
var value = props.value,
|
|
19476
|
-
onChange = props.onChange,
|
|
19477
|
-
_props$reasonList = props.reasonList,
|
|
19478
|
-
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19479
|
-
disabled = props.disabled,
|
|
19480
|
-
type = props.type,
|
|
19481
|
-
other = _objectWithoutProperties(props, _excluded$o);
|
|
19482
|
-
var valueRef = React.useRef({});
|
|
19483
|
-
var getOrderFlag = React.useRef(false);
|
|
19484
|
-
var _useState = React.useState(false),
|
|
19485
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
19486
|
-
isStrict = _useState2[0],
|
|
19487
|
-
setIsStrict = _useState2[1];
|
|
19488
|
-
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$gySystemOrder = value.gySystemOrder) === null || _value$gySystemOrder === void 0 ? void 0 : _value$gySystemOrder.orders) || []).some(function (order) {
|
|
19489
|
-
var _order$platformCode;
|
|
19490
|
-
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
19491
|
-
});
|
|
19492
|
-
React.useEffect(function () {
|
|
19493
|
-
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19494
|
-
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$5[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$5[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
19495
|
-
var _value$typeMap$type$s4, _typeMap$type3;
|
|
19496
|
-
getOrderFlag.current = true;
|
|
19497
|
-
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$5[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
19498
|
-
}
|
|
19499
|
-
return;
|
|
19500
|
-
}, [value]);
|
|
19501
|
-
// useEffect(() => {
|
|
19502
|
-
// pubsub.subscribe('returnSelectList', (_: any, data: any) => {
|
|
19503
|
-
// if (disabled) return;
|
|
19504
|
-
// const newValue = { ...data.goodValue, shopCode: data?.shopCode };
|
|
19505
|
-
// newValue.gyReturnGoods = data?.list || [];
|
|
19506
|
-
// onChange?.(newValue);
|
|
19507
|
-
// });
|
|
19508
|
-
// }, []);
|
|
19509
|
-
// useEffect(() => {
|
|
19510
|
-
// pubsub.subscribe('returnSelectListReturn', (_: any, data: any) => {
|
|
19511
|
-
// // console.log('returnSelectListReturn', data);
|
|
19512
|
-
// if (disabled) return;
|
|
19513
|
-
// const newValue = { ...data.goodValue, shopCode: data?.shopCode };
|
|
19514
|
-
// newValue.gyReturnGoods = data?.list || [];
|
|
19515
|
-
// onChange?.(newValue);
|
|
19516
|
-
// });
|
|
19517
|
-
// }, []);
|
|
19518
|
-
// useEffect(() => {
|
|
19519
|
-
// valueRef.current = value;
|
|
19520
|
-
// pubsub.subscribeOnce('returnDeleteGood', (_: any, data: any) => {
|
|
19521
|
-
// if (disabled) return;
|
|
19522
|
-
// if (value) {
|
|
19523
|
-
// const newValue = { ...value };
|
|
19524
|
-
// newValue.gyReturnGoods = newValue.gyReturnGoods.filter(
|
|
19525
|
-
// (item: any) => item.sku !== data,
|
|
19526
|
-
// );
|
|
19527
|
-
// onChange?.(newValue);
|
|
19528
|
-
// }
|
|
19529
|
-
// });
|
|
19530
|
-
// pubsub.subscribeOnce('changeShopCode', (type: any, data: any) => {
|
|
19531
|
-
// onChange({
|
|
19532
|
-
// ...value,
|
|
19533
|
-
// shopCode: data.shopCode,
|
|
19534
|
-
// });
|
|
19535
|
-
// });
|
|
19536
|
-
// }, [value, disabled]);
|
|
19537
|
-
var getOrderList = /*#__PURE__*/function () {
|
|
19538
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
19539
|
-
var _typeMap$type4;
|
|
19540
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19541
|
-
while (1) switch (_context.prev = _context.next) {
|
|
19542
|
-
case 0:
|
|
19543
|
-
(_typeMap$type4 = typeMap$5[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19544
|
-
var _typeMap$type5, _typeMap$type6;
|
|
19545
|
-
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
19546
|
-
var showOrderInfo = orders.map(function (_ref2) {
|
|
19547
|
-
var billNo = _ref2.billNo,
|
|
19548
|
-
billType = _ref2.billType,
|
|
19549
|
-
billTag = _ref2.billTag,
|
|
19550
|
-
tradeTagName = _ref2.tradeTagName,
|
|
19551
|
-
deliveryState = _ref2.deliveryState,
|
|
19552
|
-
vipCode = _ref2.vipCode,
|
|
19553
|
-
shopCode = _ref2.shopCode,
|
|
19554
|
-
rest = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
19555
|
-
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
19556
|
-
billNo: billNo,
|
|
19557
|
-
billType: billType,
|
|
19558
|
-
billTag: billTag,
|
|
19559
|
-
tradeTagName: tradeTagName,
|
|
19560
|
-
deliveryState: deliveryState,
|
|
19561
|
-
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
19562
|
-
vipCode: vipCode,
|
|
19563
|
-
shopCode: shopCode
|
|
19564
|
-
});
|
|
19565
|
-
});
|
|
19566
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$5[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$5[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
|
|
19567
|
-
showOrderInfo: showOrderInfo,
|
|
19568
|
-
orders: orders
|
|
19569
|
-
}))));
|
|
19570
|
-
});
|
|
19571
|
-
case 1:
|
|
19572
|
-
case "end":
|
|
19573
|
-
return _context.stop();
|
|
19574
|
-
}
|
|
19575
|
-
}, _callee);
|
|
19576
|
-
}));
|
|
19577
|
-
return function getOrderList(_x) {
|
|
19578
|
-
return _ref.apply(this, arguments);
|
|
19579
|
-
};
|
|
19580
|
-
}();
|
|
19581
|
-
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
19582
|
-
var _typeMap$type7, _typeMap$type8, _uniqBy, _typeMap$type9;
|
|
19583
|
-
var newValue = _objectSpread2({}, value);
|
|
19584
|
-
// 原订单商品
|
|
19585
|
-
var originTradeGoodList = getGoodDetails({
|
|
19586
|
-
mode: isStrict
|
|
19587
|
-
}) || [];
|
|
19588
|
-
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19589
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type7 = typeMap$5[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.key)]) || [];
|
|
19590
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type8 = typeMap$5[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19591
|
-
return skuList.includes(item.uuid);
|
|
19592
|
-
});
|
|
19593
|
-
console.log('商品发生变化', newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type9 = typeMap$5[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key)]);
|
|
19594
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19595
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type10 = typeMap$5[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.key)], isStrict]);
|
|
19596
|
-
var changeTypeHandle = function changeTypeHandle(val) {
|
|
19597
|
-
var _value$typeMap$type$t, _typeMap$type11, _typeMap$type12;
|
|
19598
|
-
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
19599
|
-
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type11 = typeMap$5[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) return;
|
|
19600
|
-
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
19601
|
-
var newValue = _objectSpread2({}, value);
|
|
19602
|
-
newValue[(_typeMap$type12 = typeMap$5[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
|
|
19603
|
-
if (typeName === '1') {
|
|
19604
|
-
var _typeMap$type13;
|
|
19605
|
-
newValue[(_typeMap$type13 = typeMap$5[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
|
|
19606
|
-
mode: isStrict
|
|
19607
|
-
});
|
|
19608
|
-
} else if (typeName === '2') {
|
|
19609
|
-
var _typeMap$type14;
|
|
19610
|
-
// 切换到非原单,清空列表
|
|
19611
|
-
newValue[(_typeMap$type14 = typeMap$5[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
|
|
19612
|
-
}
|
|
19613
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19614
|
-
};
|
|
19615
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
19616
|
-
var _typeMap$type15;
|
|
19617
|
-
var newValue = _objectSpread2({}, value);
|
|
19618
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type15 = typeMap$5[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
|
|
19619
|
-
var _typeMap$type16, _typeMap$type17;
|
|
19620
|
-
item["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type16 = typeMap$5[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
|
|
19621
|
-
item["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type17 = typeMap$5[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
|
|
19622
|
-
return item;
|
|
19623
|
-
});
|
|
19624
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19625
|
-
};
|
|
19626
|
-
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
19627
|
-
var _typeMap$type18, _value$typeMap$type$t2, _typeMap$type19, _value$typeMap$type$t3, _typeMap$type21;
|
|
19628
|
-
var newValue = _objectSpread2({}, value);
|
|
19629
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type18 = typeMap$5[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo)] = val;
|
|
19630
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type19 = typeMap$5[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
19631
|
-
var _typeMap$type20;
|
|
19632
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type20 = typeMap$5[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = [];
|
|
19633
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type21 = typeMap$5[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
19634
|
-
var _typeMap$type22;
|
|
19635
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type22 = typeMap$5[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
|
|
19636
|
-
mode: isStrict,
|
|
19637
|
-
sysOrderNo: val
|
|
19638
|
-
});
|
|
19639
|
-
}
|
|
19640
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19641
|
-
};
|
|
19642
|
-
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
19643
|
-
var _typeMap$type23, _typeMap$type24, _order$details;
|
|
19644
|
-
var mode = _ref3.mode,
|
|
19645
|
-
sysOrderNo = _ref3.sysOrderNo;
|
|
19646
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$5[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder];
|
|
19647
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type24 = typeMap$5[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo];
|
|
19648
|
-
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
19649
|
-
return order.code === systemOrderNo;
|
|
19650
|
-
});
|
|
19651
|
-
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$details = order.details) === null || _order$details === void 0 ? void 0 : _order$details.length) ? kmkfUtils.updateGyGoodsHandle([order]) : [];
|
|
19652
|
-
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
19653
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
19654
|
-
return !orderNo || (orderNo || '').includes(goodItem.oid);
|
|
19655
|
-
}) : goodDetails;
|
|
19656
|
-
};
|
|
19657
|
-
var handleModeChange = function handleModeChange(mode) {
|
|
19658
|
-
var _value$typeMap$type$t4, _typeMap$type25, _typeMap$type26;
|
|
19659
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type25 = typeMap$5[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0]) === '1';
|
|
19660
|
-
setIsStrict(mode);
|
|
19661
|
-
if (!isOriginalOrder) return;
|
|
19662
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type26 = typeMap$5[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key, getGoodDetails({
|
|
19663
|
-
mode: mode
|
|
19664
|
-
}))));
|
|
19665
|
-
};
|
|
19666
|
-
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19667
|
-
var showChangeBtn = React.useMemo(function () {
|
|
19668
|
-
var _typeMap$type27;
|
|
19669
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
19670
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
19671
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
19672
|
-
gutter: 8,
|
|
19673
|
-
wrap: true
|
|
19674
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
19675
|
-
className: "gutter-row",
|
|
19676
|
-
xs: {
|
|
19677
|
-
span: 11
|
|
19678
|
-
},
|
|
19679
|
-
sm: {
|
|
19680
|
-
span: 6
|
|
19681
|
-
}
|
|
19682
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
19683
|
-
style: {
|
|
19684
|
-
marginBottom: '8px'
|
|
19685
|
-
},
|
|
19686
|
-
disabled: disabled,
|
|
19687
|
-
allowClear: false,
|
|
19688
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type29 = typeMap$5[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)],
|
|
19689
|
-
onChange: function onChange(val) {
|
|
19690
|
-
return changeSystemOrderHandle(val);
|
|
19691
|
-
},
|
|
19692
|
-
placeholder: "\u9009\u62E9\u9000\u8D27\u7684\u7CFB\u7EDF\u5355"
|
|
19693
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$5[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
19694
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
19695
|
-
key: item.billNo,
|
|
19696
|
-
value: item.billNo,
|
|
19697
|
-
label: item.billNo
|
|
19698
|
-
}, item.billNo);
|
|
19699
|
-
}))), /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
19700
|
-
className: "gutter-row",
|
|
19701
|
-
xs: {
|
|
19702
|
-
span: 11
|
|
19703
|
-
},
|
|
19704
|
-
sm: {
|
|
19705
|
-
span: 6
|
|
19706
|
-
}
|
|
19707
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
19708
|
-
style: {
|
|
19709
|
-
marginBottom: '8px'
|
|
19710
|
-
},
|
|
19711
|
-
disabled: disabled,
|
|
19712
|
-
allowClear: false,
|
|
19713
|
-
options: reasonList,
|
|
19714
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type31 = typeMap$5[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
|
|
19715
|
-
onChange: function onChange(val) {
|
|
19716
|
-
return changeTypeHandle(val);
|
|
19717
|
-
}
|
|
19718
|
-
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
19719
|
-
key: 'returnGoods'
|
|
19720
|
-
}, other), {}, {
|
|
19721
|
-
type: type,
|
|
19722
|
-
disabled: disabled,
|
|
19723
|
-
canUpdateNumber: showChangeBtn,
|
|
19724
|
-
showChangeBtn: showChangeBtn,
|
|
19725
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
19726
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type32 = typeMap$5[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
|
|
19727
|
-
onChange: function onChange(val) {
|
|
19728
|
-
return changeGoodHandle(val);
|
|
19729
|
-
},
|
|
19730
|
-
onModeChange: handleModeChange,
|
|
19731
|
-
showModeBtn: showModeBtn,
|
|
19732
|
-
isStrict: isStrict,
|
|
19733
|
-
showErpGoodsBtn: false,
|
|
19734
|
-
tradeGoods: {
|
|
19735
|
-
originDataSource: getGoodDetails({
|
|
19736
|
-
mode: isStrict
|
|
19737
|
-
}),
|
|
19738
|
-
selectedGoodsChange: selectedGoodsChange
|
|
19739
|
-
}
|
|
19740
|
-
})));
|
|
19741
|
-
};
|
|
19742
|
-
|
|
19743
19225
|
exports.Address = ApaasAddress;
|
|
19744
19226
|
exports.AliPay = AliPay;
|
|
19745
19227
|
exports.ApaasAddress = Province;
|
|
@@ -19779,7 +19261,6 @@ exports.ExpressLogistics = ExpressLogistics;
|
|
|
19779
19261
|
exports.Goods = Goods;
|
|
19780
19262
|
exports.GoodsTable = index$2;
|
|
19781
19263
|
exports.GyReissue = GyReissue;
|
|
19782
|
-
exports.GyReturn = GyReturnGoods;
|
|
19783
19264
|
exports.IdentifyAddress = IdentifyAddress;
|
|
19784
19265
|
exports.Invoice = Invoice;
|
|
19785
19266
|
exports.JstGoods = jstGoods;
|