@kmkf-fe-packages/basic-components 2.0.18 → 2.0.19-beta.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 +1 -1
- package/dist/index.esm.js +529 -11
- package/dist/index.js +528 -9
- package/dist/src/business/LogisticsInterception/index.d.ts +4 -0
- package/dist/src/gy/Return/index.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -10247,6 +10247,7 @@ 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()) || [];
|
|
10250
10251
|
var address = kmkfUtils.AddressData.getInstance();
|
|
10251
10252
|
var _props$value = props.value,
|
|
10252
10253
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -10258,7 +10259,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10258
10259
|
_props$disabled = props.disabled,
|
|
10259
10260
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
10260
10261
|
_props$isEditing = props.isEditing,
|
|
10261
|
-
isEditing = _props$isEditing === void 0 ? false : _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;
|
|
10262
10266
|
var _useState = React.useState(''),
|
|
10263
10267
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10264
10268
|
initCompany = _useState2[0],
|
|
@@ -10346,6 +10350,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10346
10350
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
10347
10351
|
})) === null || _find3 === void 0 ? void 0 : (_find3$config = _find3.config) === null || _find3$config === void 0 ? void 0 : _find3$config.showSenderMobile;
|
|
10348
10352
|
}, [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]);
|
|
10349
10361
|
//判断是否能修改物流信息
|
|
10350
10362
|
var isEdit = React.useMemo(function () {
|
|
10351
10363
|
var company = expressInterceptData.find(function (item) {
|
|
@@ -10355,10 +10367,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10355
10367
|
}, [isEditing, initCompany]);
|
|
10356
10368
|
//退回地址列表
|
|
10357
10369
|
var logisticsAddressOptions = React.useMemo(function () {
|
|
10358
|
-
return
|
|
10370
|
+
return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
10359
10371
|
return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
10360
10372
|
});
|
|
10361
10373
|
}, [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]);
|
|
10362
10385
|
var returnValue = React.useMemo(function () {
|
|
10363
10386
|
var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
|
|
10364
10387
|
var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
|
|
@@ -10376,6 +10399,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10376
10399
|
var changeHandle = function changeHandle(val, type) {
|
|
10377
10400
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
10378
10401
|
if (type === 'interceptCompany') {
|
|
10402
|
+
var _matchKCodeList$;
|
|
10379
10403
|
var interceptCompany = expressInterceptData.find(function (item) {
|
|
10380
10404
|
return item.value === val;
|
|
10381
10405
|
});
|
|
@@ -10383,7 +10407,28 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10383
10407
|
var _item$config4;
|
|
10384
10408
|
return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
|
|
10385
10409
|
});
|
|
10386
|
-
|
|
10410
|
+
// const demoList = [
|
|
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), {}, {
|
|
10387
10432
|
interceptCompany: val,
|
|
10388
10433
|
interceptType: _returnValue === null || _returnValue === void 0 ? void 0 : _returnValue.value,
|
|
10389
10434
|
interceptSenderMobile: undefined,
|
|
@@ -10398,18 +10443,31 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10398
10443
|
interceptLogisticsApiStatus: {
|
|
10399
10444
|
status: '',
|
|
10400
10445
|
reason: ''
|
|
10401
|
-
}
|
|
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
|
|
10402
10449
|
});
|
|
10403
10450
|
}
|
|
10404
10451
|
if (type === 'interceptLogisticsApiStatus') {
|
|
10405
10452
|
var _value$interceptLogis;
|
|
10406
|
-
newValue = _objectSpread2(_objectSpread2({},
|
|
10453
|
+
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
10407
10454
|
interceptLogisticsApiStatus: {
|
|
10408
10455
|
status: val,
|
|
10409
10456
|
reason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis = value.interceptLogisticsApiStatus) === null || _value$interceptLogis === void 0 ? void 0 : _value$interceptLogis.reason) || ''
|
|
10410
10457
|
}
|
|
10411
10458
|
});
|
|
10412
10459
|
}
|
|
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);
|
|
10413
10471
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10414
10472
|
};
|
|
10415
10473
|
//智能识别回调
|
|
@@ -10462,6 +10520,47 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10462
10520
|
return changeHandle(e.target.value, 'interceptCode');
|
|
10463
10521
|
},
|
|
10464
10522
|
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
|
|
10465
10564
|
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
10466
10565
|
label: '拦截类型',
|
|
10467
10566
|
required: required,
|
|
@@ -10606,7 +10705,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10606
10705
|
value = _props$value === void 0 ? [] : _props$value,
|
|
10607
10706
|
disabled = props.disabled,
|
|
10608
10707
|
onChange = props.onChange,
|
|
10609
|
-
isEditing = props.isEditing
|
|
10708
|
+
isEditing = props.isEditing,
|
|
10709
|
+
effects = props.effects;
|
|
10610
10710
|
var _useState = React.useState(0),
|
|
10611
10711
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10612
10712
|
changeIndex = _useState2[0],
|
|
@@ -10648,6 +10748,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10648
10748
|
value: item,
|
|
10649
10749
|
disabled: disabled,
|
|
10650
10750
|
isEditing: false,
|
|
10751
|
+
platform: effects === null || effects === void 0 ? void 0 : effects.env,
|
|
10752
|
+
onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
|
|
10651
10753
|
onChange: function onChange(val) {
|
|
10652
10754
|
return handleChange(val, index);
|
|
10653
10755
|
}
|
|
@@ -12528,6 +12630,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
12528
12630
|
var current = _ref.current,
|
|
12529
12631
|
pageSize = _ref.pageSize;
|
|
12530
12632
|
var data = {
|
|
12633
|
+
goodShortName: formData.goodShortName || null,
|
|
12531
12634
|
goodNo: formData.goodNo || null,
|
|
12532
12635
|
goodName: formData.goodName || null,
|
|
12533
12636
|
skuCode: formData.skuCode || null,
|
|
@@ -12685,6 +12788,17 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
12685
12788
|
layout: "inline",
|
|
12686
12789
|
form: form
|
|
12687
12790
|
}, /*#__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, {
|
|
12688
12802
|
name: "goodNo",
|
|
12689
12803
|
style: {
|
|
12690
12804
|
marginBottom: '12px'
|
|
@@ -14372,6 +14486,117 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14372
14486
|
align: 'center',
|
|
14373
14487
|
ellipsis: true
|
|
14374
14488
|
});
|
|
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
|
+
});
|
|
14375
14600
|
})
|
|
14376
14601
|
};
|
|
14377
14602
|
};
|
|
@@ -15302,6 +15527,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15302
15527
|
case 'JST_EXCHANGE_GOODS':
|
|
15303
15528
|
case 'JST_RETURN_GOODS':
|
|
15304
15529
|
case 'GY_REISSUE_GOODS':
|
|
15530
|
+
case 'GY_RETURN_GOODS':
|
|
15305
15531
|
{
|
|
15306
15532
|
columns = getColumnsMap({
|
|
15307
15533
|
text: text,
|
|
@@ -17068,12 +17294,13 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17068
17294
|
};
|
|
17069
17295
|
|
|
17070
17296
|
var componentMap$2 = {
|
|
17071
|
-
|
|
17297
|
+
WDT_RETURN_GOODS: {
|
|
17072
17298
|
type: 'wdt',
|
|
17073
17299
|
valueKey: 'wdtReturnGoods',
|
|
17074
17300
|
returnTypeKey: 'wdtReturnType',
|
|
17075
17301
|
name: '旺店通',
|
|
17076
17302
|
eventNameMap: {
|
|
17303
|
+
// pubsub 事件
|
|
17077
17304
|
changeShopCode: 'wdtChangeShopCode',
|
|
17078
17305
|
returnType: 'wdtReturnType',
|
|
17079
17306
|
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
@@ -18692,7 +18919,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18692
18919
|
onClick: function onClick() {
|
|
18693
18920
|
return setChangeIndex(index);
|
|
18694
18921
|
}
|
|
18695
|
-
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
18922
|
+
}, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
|
|
18696
18923
|
}))) : 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), {}, {
|
|
18697
18924
|
showSearch: true,
|
|
18698
18925
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -19141,7 +19368,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19141
19368
|
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)]);
|
|
19142
19369
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19143
19370
|
}, [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]);
|
|
19144
|
-
|
|
19371
|
+
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19145
19372
|
var showChangeBtn = React.useMemo(function () {
|
|
19146
19373
|
var _typeMap$type27;
|
|
19147
19374
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
@@ -19217,6 +19444,297 @@ var GyReissue = function GyReissue(props) {
|
|
|
19217
19444
|
})));
|
|
19218
19445
|
};
|
|
19219
19446
|
|
|
19447
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19448
|
+
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19449
|
+
var typeMap$5 = {
|
|
19450
|
+
GY_RETURN_GOODS: {
|
|
19451
|
+
key: 'gyReturnGoods',
|
|
19452
|
+
name: '管易',
|
|
19453
|
+
typeName: 'gyReturnType',
|
|
19454
|
+
systemOrder: 'gySystemOrder',
|
|
19455
|
+
systemOrderNo: 'gySystemOrderNo',
|
|
19456
|
+
returnSelectList: 'gyReturnSelectList',
|
|
19457
|
+
returnSelectListReturn: 'gyReturnSelectListReturn',
|
|
19458
|
+
returnDeleteGood: 'gyReturnDeleteGood',
|
|
19459
|
+
changeShopCode: 'gyChangeShopCode',
|
|
19460
|
+
returnType: 'gyReturnType',
|
|
19461
|
+
formatDefaultField: {
|
|
19462
|
+
money: 'orderPrice',
|
|
19463
|
+
share: 'sharePrice'
|
|
19464
|
+
},
|
|
19465
|
+
getOrderList: gyUtils.getGyOrderListSingleton
|
|
19466
|
+
}
|
|
19467
|
+
};
|
|
19468
|
+
var GyReturnGoods = function GyReturnGoods(props) {
|
|
19469
|
+
var _value$gySystemOrder, _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
19470
|
+
var value = props.value,
|
|
19471
|
+
onChange = props.onChange,
|
|
19472
|
+
_props$reasonList = props.reasonList,
|
|
19473
|
+
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19474
|
+
disabled = props.disabled,
|
|
19475
|
+
type = props.type,
|
|
19476
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19477
|
+
var valueRef = React.useRef({});
|
|
19478
|
+
var getOrderFlag = React.useRef(false);
|
|
19479
|
+
var _useState = React.useState(false),
|
|
19480
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19481
|
+
isStrict = _useState2[0],
|
|
19482
|
+
setIsStrict = _useState2[1];
|
|
19483
|
+
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) {
|
|
19484
|
+
var _order$platformCode;
|
|
19485
|
+
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
19486
|
+
});
|
|
19487
|
+
React.useEffect(function () {
|
|
19488
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19489
|
+
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)) {
|
|
19490
|
+
var _value$typeMap$type$s4, _typeMap$type3;
|
|
19491
|
+
getOrderFlag.current = true;
|
|
19492
|
+
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);
|
|
19493
|
+
}
|
|
19494
|
+
return;
|
|
19495
|
+
}, [value]);
|
|
19496
|
+
// useEffect(() => {
|
|
19497
|
+
// pubsub.subscribe('returnSelectList', (_: any, data: any) => {
|
|
19498
|
+
// if (disabled) return;
|
|
19499
|
+
// const newValue = { ...data.goodValue, shopCode: data?.shopCode };
|
|
19500
|
+
// newValue.gyReturnGoods = data?.list || [];
|
|
19501
|
+
// onChange?.(newValue);
|
|
19502
|
+
// });
|
|
19503
|
+
// }, []);
|
|
19504
|
+
// useEffect(() => {
|
|
19505
|
+
// pubsub.subscribe('returnSelectListReturn', (_: any, data: any) => {
|
|
19506
|
+
// // console.log('returnSelectListReturn', data);
|
|
19507
|
+
// if (disabled) return;
|
|
19508
|
+
// const newValue = { ...data.goodValue, shopCode: data?.shopCode };
|
|
19509
|
+
// newValue.gyReturnGoods = data?.list || [];
|
|
19510
|
+
// onChange?.(newValue);
|
|
19511
|
+
// });
|
|
19512
|
+
// }, []);
|
|
19513
|
+
// useEffect(() => {
|
|
19514
|
+
// valueRef.current = value;
|
|
19515
|
+
// pubsub.subscribeOnce('returnDeleteGood', (_: any, data: any) => {
|
|
19516
|
+
// if (disabled) return;
|
|
19517
|
+
// if (value) {
|
|
19518
|
+
// const newValue = { ...value };
|
|
19519
|
+
// newValue.gyReturnGoods = newValue.gyReturnGoods.filter(
|
|
19520
|
+
// (item: any) => item.sku !== data,
|
|
19521
|
+
// );
|
|
19522
|
+
// onChange?.(newValue);
|
|
19523
|
+
// }
|
|
19524
|
+
// });
|
|
19525
|
+
// pubsub.subscribeOnce('changeShopCode', (type: any, data: any) => {
|
|
19526
|
+
// onChange({
|
|
19527
|
+
// ...value,
|
|
19528
|
+
// shopCode: data.shopCode,
|
|
19529
|
+
// });
|
|
19530
|
+
// });
|
|
19531
|
+
// }, [value, disabled]);
|
|
19532
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
19533
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
19534
|
+
var _typeMap$type4;
|
|
19535
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19536
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19537
|
+
case 0:
|
|
19538
|
+
(_typeMap$type4 = typeMap$5[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19539
|
+
var _typeMap$type5, _typeMap$type6;
|
|
19540
|
+
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
19541
|
+
var showOrderInfo = orders.map(function (_ref2) {
|
|
19542
|
+
var billNo = _ref2.billNo,
|
|
19543
|
+
billType = _ref2.billType,
|
|
19544
|
+
billTag = _ref2.billTag,
|
|
19545
|
+
tradeTagName = _ref2.tradeTagName,
|
|
19546
|
+
deliveryState = _ref2.deliveryState,
|
|
19547
|
+
vipCode = _ref2.vipCode,
|
|
19548
|
+
shopCode = _ref2.shopCode,
|
|
19549
|
+
rest = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
19550
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
19551
|
+
billNo: billNo,
|
|
19552
|
+
billType: billType,
|
|
19553
|
+
billTag: billTag,
|
|
19554
|
+
tradeTagName: tradeTagName,
|
|
19555
|
+
deliveryState: deliveryState,
|
|
19556
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
19557
|
+
vipCode: vipCode,
|
|
19558
|
+
shopCode: shopCode
|
|
19559
|
+
});
|
|
19560
|
+
});
|
|
19561
|
+
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]), {}, {
|
|
19562
|
+
showOrderInfo: showOrderInfo,
|
|
19563
|
+
orders: orders
|
|
19564
|
+
}))));
|
|
19565
|
+
});
|
|
19566
|
+
case 1:
|
|
19567
|
+
case "end":
|
|
19568
|
+
return _context.stop();
|
|
19569
|
+
}
|
|
19570
|
+
}, _callee);
|
|
19571
|
+
}));
|
|
19572
|
+
return function getOrderList(_x) {
|
|
19573
|
+
return _ref.apply(this, arguments);
|
|
19574
|
+
};
|
|
19575
|
+
}();
|
|
19576
|
+
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
19577
|
+
var _typeMap$type7, _typeMap$type8, _uniqBy, _typeMap$type9;
|
|
19578
|
+
var newValue = _objectSpread2({}, value);
|
|
19579
|
+
// 原订单商品
|
|
19580
|
+
var originTradeGoodList = getGoodDetails({
|
|
19581
|
+
mode: isStrict
|
|
19582
|
+
}) || [];
|
|
19583
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19584
|
+
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)]) || [];
|
|
19585
|
+
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) {
|
|
19586
|
+
return skuList.includes(item.uuid);
|
|
19587
|
+
});
|
|
19588
|
+
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)]);
|
|
19589
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19590
|
+
}, [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]);
|
|
19591
|
+
var changeTypeHandle = function changeTypeHandle(val) {
|
|
19592
|
+
var _value$typeMap$type$t, _typeMap$type11, _typeMap$type12;
|
|
19593
|
+
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
19594
|
+
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;
|
|
19595
|
+
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
19596
|
+
var newValue = _objectSpread2({}, value);
|
|
19597
|
+
newValue[(_typeMap$type12 = typeMap$5[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
|
|
19598
|
+
if (typeName === '1') {
|
|
19599
|
+
var _typeMap$type13;
|
|
19600
|
+
newValue[(_typeMap$type13 = typeMap$5[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
|
|
19601
|
+
mode: isStrict
|
|
19602
|
+
});
|
|
19603
|
+
} else if (typeName === '2') {
|
|
19604
|
+
var _typeMap$type14;
|
|
19605
|
+
// 切换到非原单,清空列表
|
|
19606
|
+
newValue[(_typeMap$type14 = typeMap$5[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
|
|
19607
|
+
}
|
|
19608
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19609
|
+
};
|
|
19610
|
+
var changeGoodHandle = function changeGoodHandle(val) {
|
|
19611
|
+
var _typeMap$type15;
|
|
19612
|
+
var newValue = _objectSpread2({}, value);
|
|
19613
|
+
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) {
|
|
19614
|
+
var _typeMap$type16, _typeMap$type17;
|
|
19615
|
+
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;
|
|
19616
|
+
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;
|
|
19617
|
+
return item;
|
|
19618
|
+
});
|
|
19619
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19620
|
+
};
|
|
19621
|
+
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
19622
|
+
var _typeMap$type18, _value$typeMap$type$t2, _typeMap$type19, _value$typeMap$type$t3, _typeMap$type21;
|
|
19623
|
+
var newValue = _objectSpread2({}, value);
|
|
19624
|
+
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;
|
|
19625
|
+
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])) {
|
|
19626
|
+
var _typeMap$type20;
|
|
19627
|
+
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)] = [];
|
|
19628
|
+
} 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])) {
|
|
19629
|
+
var _typeMap$type22;
|
|
19630
|
+
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({
|
|
19631
|
+
mode: isStrict,
|
|
19632
|
+
sysOrderNo: val
|
|
19633
|
+
});
|
|
19634
|
+
}
|
|
19635
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19636
|
+
};
|
|
19637
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
19638
|
+
var _typeMap$type23, _typeMap$type24, _order$details;
|
|
19639
|
+
var mode = _ref3.mode,
|
|
19640
|
+
sysOrderNo = _ref3.sysOrderNo;
|
|
19641
|
+
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];
|
|
19642
|
+
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];
|
|
19643
|
+
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
19644
|
+
return order.code === systemOrderNo;
|
|
19645
|
+
});
|
|
19646
|
+
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]) : [];
|
|
19647
|
+
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
19648
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
19649
|
+
return !orderNo || (orderNo || '').includes(goodItem.oid);
|
|
19650
|
+
}) : goodDetails;
|
|
19651
|
+
};
|
|
19652
|
+
var handleModeChange = function handleModeChange(mode) {
|
|
19653
|
+
var _value$typeMap$type$t4, _typeMap$type25, _typeMap$type26;
|
|
19654
|
+
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';
|
|
19655
|
+
setIsStrict(mode);
|
|
19656
|
+
if (!isOriginalOrder) return;
|
|
19657
|
+
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({
|
|
19658
|
+
mode: mode
|
|
19659
|
+
}))));
|
|
19660
|
+
};
|
|
19661
|
+
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19662
|
+
var showChangeBtn = React.useMemo(function () {
|
|
19663
|
+
var _typeMap$type27;
|
|
19664
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
19665
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
19666
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
19667
|
+
gutter: 8,
|
|
19668
|
+
wrap: true
|
|
19669
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
19670
|
+
className: "gutter-row",
|
|
19671
|
+
xs: {
|
|
19672
|
+
span: 11
|
|
19673
|
+
},
|
|
19674
|
+
sm: {
|
|
19675
|
+
span: 6
|
|
19676
|
+
}
|
|
19677
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
19678
|
+
style: {
|
|
19679
|
+
marginBottom: '8px'
|
|
19680
|
+
},
|
|
19681
|
+
disabled: disabled,
|
|
19682
|
+
allowClear: false,
|
|
19683
|
+
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)],
|
|
19684
|
+
onChange: function onChange(val) {
|
|
19685
|
+
return changeSystemOrderHandle(val);
|
|
19686
|
+
},
|
|
19687
|
+
placeholder: "\u9009\u62E9\u9000\u8D27\u7684\u7CFB\u7EDF\u5355"
|
|
19688
|
+
}, ((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) {
|
|
19689
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
19690
|
+
key: item.billNo,
|
|
19691
|
+
value: item.billNo,
|
|
19692
|
+
label: item.billNo
|
|
19693
|
+
}, item.billNo);
|
|
19694
|
+
}))), /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
19695
|
+
className: "gutter-row",
|
|
19696
|
+
xs: {
|
|
19697
|
+
span: 11
|
|
19698
|
+
},
|
|
19699
|
+
sm: {
|
|
19700
|
+
span: 6
|
|
19701
|
+
}
|
|
19702
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
19703
|
+
style: {
|
|
19704
|
+
marginBottom: '8px'
|
|
19705
|
+
},
|
|
19706
|
+
disabled: disabled,
|
|
19707
|
+
allowClear: false,
|
|
19708
|
+
options: reasonList,
|
|
19709
|
+
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)],
|
|
19710
|
+
onChange: function onChange(val) {
|
|
19711
|
+
return changeTypeHandle(val);
|
|
19712
|
+
}
|
|
19713
|
+
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
19714
|
+
key: 'returnGoods'
|
|
19715
|
+
}, other), {}, {
|
|
19716
|
+
type: type,
|
|
19717
|
+
disabled: disabled,
|
|
19718
|
+
canUpdateNumber: showChangeBtn,
|
|
19719
|
+
showChangeBtn: showChangeBtn,
|
|
19720
|
+
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
19721
|
+
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)],
|
|
19722
|
+
onChange: function onChange(val) {
|
|
19723
|
+
return changeGoodHandle(val);
|
|
19724
|
+
},
|
|
19725
|
+
onModeChange: handleModeChange,
|
|
19726
|
+
showModeBtn: showModeBtn,
|
|
19727
|
+
isStrict: isStrict,
|
|
19728
|
+
showErpGoodsBtn: false,
|
|
19729
|
+
tradeGoods: {
|
|
19730
|
+
originDataSource: getGoodDetails({
|
|
19731
|
+
mode: isStrict
|
|
19732
|
+
}),
|
|
19733
|
+
selectedGoodsChange: selectedGoodsChange
|
|
19734
|
+
}
|
|
19735
|
+
})));
|
|
19736
|
+
};
|
|
19737
|
+
|
|
19220
19738
|
exports.Address = ApaasAddress;
|
|
19221
19739
|
exports.AliPay = AliPay;
|
|
19222
19740
|
exports.ApaasAddress = Province;
|
|
@@ -19256,6 +19774,7 @@ exports.ExpressLogistics = ExpressLogistics;
|
|
|
19256
19774
|
exports.Goods = Goods;
|
|
19257
19775
|
exports.GoodsTable = index$2;
|
|
19258
19776
|
exports.GyReissue = GyReissue;
|
|
19777
|
+
exports.GyReturn = GyReturnGoods;
|
|
19259
19778
|
exports.IdentifyAddress = IdentifyAddress;
|
|
19260
19779
|
exports.Invoice = Invoice;
|
|
19261
19780
|
exports.JstGoods = jstGoods;
|