@kmkf-fe-packages/basic-components 2.0.69 → 2.0.71
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/dist/index.esm.js +219 -49
- package/dist/index.js +219 -49
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -16182,6 +16182,15 @@ var getColumns$5 = function getColumns() {
|
|
|
16182
16182
|
};
|
|
16183
16183
|
};
|
|
16184
16184
|
|
|
16185
|
+
function toNum$2(value) {
|
|
16186
|
+
if (typeof value === 'string') {
|
|
16187
|
+
return value ? +value : void 0;
|
|
16188
|
+
}
|
|
16189
|
+
if (typeof value === 'number') {
|
|
16190
|
+
return value;
|
|
16191
|
+
}
|
|
16192
|
+
return void 0;
|
|
16193
|
+
}
|
|
16185
16194
|
var getColumns$6 = function getColumns(_ref) {
|
|
16186
16195
|
var _ref$text = _ref.text,
|
|
16187
16196
|
disabled = _ref.disabled,
|
|
@@ -16207,10 +16216,6 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16207
16216
|
dataIndex: 'sysOuterId',
|
|
16208
16217
|
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
16209
16218
|
width: 150
|
|
16210
|
-
}, {
|
|
16211
|
-
dataIndex: 'outerId',
|
|
16212
|
-
title: "\u5546\u5BB6\u7F16\u7801",
|
|
16213
|
-
width: 150
|
|
16214
16219
|
}, {
|
|
16215
16220
|
dataIndex: 'skuSysId',
|
|
16216
16221
|
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
@@ -16283,6 +16288,129 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16283
16288
|
align: 'center',
|
|
16284
16289
|
ellipsis: true
|
|
16285
16290
|
});
|
|
16291
|
+
}),
|
|
16292
|
+
KM_REISSUE_GOODS: [{
|
|
16293
|
+
dataIndex: 'skuPropertiesName',
|
|
16294
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
16295
|
+
width: 250
|
|
16296
|
+
}, {
|
|
16297
|
+
dataIndex: 'sysTitle',
|
|
16298
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
16299
|
+
width: 150
|
|
16300
|
+
}, {
|
|
16301
|
+
dataIndex: 'shortTitle',
|
|
16302
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
16303
|
+
width: 150
|
|
16304
|
+
}, {
|
|
16305
|
+
dataIndex: 'title',
|
|
16306
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
16307
|
+
width: 150
|
|
16308
|
+
}, {
|
|
16309
|
+
dataIndex: 'sysOuterId',
|
|
16310
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
16311
|
+
width: 150
|
|
16312
|
+
}, {
|
|
16313
|
+
dataIndex: 'itemSysId',
|
|
16314
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
16315
|
+
width: 150
|
|
16316
|
+
}, {
|
|
16317
|
+
dataIndex: 'skuSysId',
|
|
16318
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
16319
|
+
width: 150
|
|
16320
|
+
}, {
|
|
16321
|
+
dataIndex: 'skuId',
|
|
16322
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
16323
|
+
width: 170
|
|
16324
|
+
}, {
|
|
16325
|
+
dataIndex: 'realNum',
|
|
16326
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
16327
|
+
width: 100,
|
|
16328
|
+
validator: function validator(_rule, value) {
|
|
16329
|
+
var title = '';
|
|
16330
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
16331
|
+
var realNum = toNum$2(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
16332
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
16333
|
+
if (res) {
|
|
16334
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
16335
|
+
}
|
|
16336
|
+
return res;
|
|
16337
|
+
})) {
|
|
16338
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
16339
|
+
}
|
|
16340
|
+
},
|
|
16341
|
+
render: function render(val, record, index) {
|
|
16342
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
16343
|
+
style: {
|
|
16344
|
+
width: 70
|
|
16345
|
+
},
|
|
16346
|
+
value: val,
|
|
16347
|
+
min: 1,
|
|
16348
|
+
precision: 0,
|
|
16349
|
+
onChange: function onChange(num) {
|
|
16350
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
16351
|
+
}
|
|
16352
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
16353
|
+
}
|
|
16354
|
+
}, {
|
|
16355
|
+
dataIndex: 'desiredNum',
|
|
16356
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
16357
|
+
width: 100,
|
|
16358
|
+
render: function render(val, record, index) {
|
|
16359
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
16360
|
+
style: {
|
|
16361
|
+
width: 70
|
|
16362
|
+
},
|
|
16363
|
+
value: val,
|
|
16364
|
+
min: 1,
|
|
16365
|
+
precision: 0,
|
|
16366
|
+
onChange: function onChange(num) {
|
|
16367
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
16368
|
+
}
|
|
16369
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
16370
|
+
}
|
|
16371
|
+
}, {
|
|
16372
|
+
dataIndex: 'price',
|
|
16373
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
16374
|
+
width: 150,
|
|
16375
|
+
render: function render(val) {
|
|
16376
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
16377
|
+
}
|
|
16378
|
+
}, {
|
|
16379
|
+
dataIndex: 'payment',
|
|
16380
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
16381
|
+
width: 150,
|
|
16382
|
+
render: function render(val, record, index) {
|
|
16383
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
16384
|
+
style: {
|
|
16385
|
+
width: 130
|
|
16386
|
+
},
|
|
16387
|
+
value: val,
|
|
16388
|
+
min: 0,
|
|
16389
|
+
precision: 2,
|
|
16390
|
+
onChange: function onChange(num) {
|
|
16391
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
16392
|
+
}
|
|
16393
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
16394
|
+
}
|
|
16395
|
+
}, {
|
|
16396
|
+
dataIndex: 'type',
|
|
16397
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
16398
|
+
width: 150
|
|
16399
|
+
}, {
|
|
16400
|
+
dataIndex: 'sysPicPath',
|
|
16401
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
16402
|
+
width: 100,
|
|
16403
|
+
render: function render(val) {
|
|
16404
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
16405
|
+
width: 60,
|
|
16406
|
+
src: val
|
|
16407
|
+
});
|
|
16408
|
+
}
|
|
16409
|
+
}].map(function (item) {
|
|
16410
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16411
|
+
align: 'center',
|
|
16412
|
+
ellipsis: true
|
|
16413
|
+
});
|
|
16286
16414
|
})
|
|
16287
16415
|
};
|
|
16288
16416
|
};
|
|
@@ -16596,7 +16724,7 @@ var isErpType = {
|
|
|
16596
16724
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
16597
16725
|
},
|
|
16598
16726
|
isKm: function isKm(type) {
|
|
16599
|
-
return ['KM_GOODS'].includes(type);
|
|
16727
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
16600
16728
|
}
|
|
16601
16729
|
};
|
|
16602
16730
|
var processGoods = function processGoods(_ref) {
|
|
@@ -16747,10 +16875,20 @@ var processJstGoods = function processJstGoods(_ref5) {
|
|
|
16747
16875
|
});
|
|
16748
16876
|
};
|
|
16749
16877
|
var processKmGoods = function processKmGoods(_ref6) {
|
|
16750
|
-
var list = _ref6.list
|
|
16878
|
+
var list = _ref6.list,
|
|
16879
|
+
type = _ref6.type;
|
|
16880
|
+
var initParamsMap = {
|
|
16881
|
+
KM_GOODS: {
|
|
16882
|
+
num: 1
|
|
16883
|
+
},
|
|
16884
|
+
KM_REISSUE_GOODS: {
|
|
16885
|
+
realNum: 1,
|
|
16886
|
+
desiredNum: 1
|
|
16887
|
+
}
|
|
16888
|
+
};
|
|
16751
16889
|
return list.map(function (item) {
|
|
16752
16890
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16753
|
-
|
|
16891
|
+
skuPropertiesName: item.specName,
|
|
16754
16892
|
sysTitle: item.goodName,
|
|
16755
16893
|
title: null,
|
|
16756
16894
|
shortTitle: item.goodShortName,
|
|
@@ -16764,9 +16902,8 @@ var processKmGoods = function processKmGoods(_ref6) {
|
|
|
16764
16902
|
type: null,
|
|
16765
16903
|
uuid: uuid(),
|
|
16766
16904
|
canDelete: true,
|
|
16767
|
-
canEdit: true
|
|
16768
|
-
|
|
16769
|
-
});
|
|
16905
|
+
canEdit: true
|
|
16906
|
+
}, initParamsMap[type] || {});
|
|
16770
16907
|
});
|
|
16771
16908
|
};
|
|
16772
16909
|
var processDefaultGoods = function processDefaultGoods(_ref7) {
|
|
@@ -16813,6 +16950,7 @@ var GoodsModalMap = {
|
|
|
16813
16950
|
JST_RETURN_GOODS: JstGoodsModal,
|
|
16814
16951
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
16815
16952
|
KM_GOODS: KmGoodsModal,
|
|
16953
|
+
KM_REISSUE_GOODS: KmGoodsModal,
|
|
16816
16954
|
OTHER_GOODS: GoodsModal$2
|
|
16817
16955
|
};
|
|
16818
16956
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
@@ -16875,7 +17013,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
16875
17013
|
};
|
|
16876
17014
|
var getButtonText = function getButtonText() {
|
|
16877
17015
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
16878
|
-
if (['KM_GOODS'].includes(type)) {
|
|
17016
|
+
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
16879
17017
|
return '选择快麦ERP商品';
|
|
16880
17018
|
}
|
|
16881
17019
|
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -17022,6 +17160,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
17022
17160
|
case 'GY_REISSUE_GOODS':
|
|
17023
17161
|
case 'GY_RETURN_GOODS':
|
|
17024
17162
|
case 'KM_GOODS':
|
|
17163
|
+
case 'KM_REISSUE_GOODS':
|
|
17025
17164
|
{
|
|
17026
17165
|
columns = getColumnsMap$1({
|
|
17027
17166
|
text: text,
|
|
@@ -19361,7 +19500,9 @@ var typeMap$2 = {
|
|
|
19361
19500
|
orderTypeKey: 'orderType',
|
|
19362
19501
|
oIdKey: 'oId',
|
|
19363
19502
|
outerOiIdKey: '',
|
|
19364
|
-
goodDetailsKey: 'items'
|
|
19503
|
+
goodDetailsKey: 'items',
|
|
19504
|
+
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
19505
|
+
uniqueKey: 'uuid'
|
|
19365
19506
|
},
|
|
19366
19507
|
JST_RETURN_GOODS: {
|
|
19367
19508
|
compType: '退货',
|
|
@@ -19377,6 +19518,8 @@ var typeMap$2 = {
|
|
|
19377
19518
|
oIdKey: 'oId',
|
|
19378
19519
|
outerOiIdKey: '',
|
|
19379
19520
|
goodDetailsKey: 'items',
|
|
19521
|
+
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
19522
|
+
uniqueKey: 'uuid',
|
|
19380
19523
|
eventNameMap: {
|
|
19381
19524
|
// pubsub 事件
|
|
19382
19525
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -19384,10 +19527,25 @@ var typeMap$2 = {
|
|
|
19384
19527
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
19385
19528
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
19386
19529
|
}
|
|
19530
|
+
},
|
|
19531
|
+
KM_REISSUE_GOODS: {
|
|
19532
|
+
compType: '补发',
|
|
19533
|
+
key: 'kmReissueGoods',
|
|
19534
|
+
typeName: 'kmReissueType',
|
|
19535
|
+
systemOrder: 'kmSystemOrder',
|
|
19536
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
19537
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
19538
|
+
updateGoodsHandle: updateKmGoodsHandle,
|
|
19539
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
19540
|
+
orderTypeKey: 'orderType',
|
|
19541
|
+
oIdKey: 'billNo',
|
|
19542
|
+
outerOiIdKey: '',
|
|
19543
|
+
goodDetailsKey: 'subOrders',
|
|
19544
|
+
uniqueKey: 'id'
|
|
19387
19545
|
}
|
|
19388
19546
|
};
|
|
19389
19547
|
var PublicReissue = function PublicReissue(props) {
|
|
19390
|
-
var _typeMap$
|
|
19548
|
+
var _typeMap$type32, _typeMap$type37, _typeMap$type38, _typeMap$type39, _typeMap$type40, _value$typeMap$type$s6, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48;
|
|
19391
19549
|
var value = props.value,
|
|
19392
19550
|
onChange = props.onChange,
|
|
19393
19551
|
_props$reasonList = props.reasonList,
|
|
@@ -19501,7 +19659,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19501
19659
|
}))));
|
|
19502
19660
|
};
|
|
19503
19661
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
19504
|
-
var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19;
|
|
19662
|
+
var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19, _typeMap$type20;
|
|
19505
19663
|
var mode = _ref4.mode,
|
|
19506
19664
|
sysOrderNo = _ref4.sysOrderNo;
|
|
19507
19665
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
|
|
@@ -19509,37 +19667,47 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19509
19667
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
19510
19668
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
19511
19669
|
});
|
|
19512
|
-
var
|
|
19670
|
+
var orderRest = undefined;
|
|
19671
|
+
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
19672
|
+
orderRest = true;
|
|
19673
|
+
} else if (type === 'KM_REISSUE_GOODS') {
|
|
19674
|
+
orderRest = {
|
|
19675
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
19676
|
+
canEdit: true
|
|
19677
|
+
};
|
|
19678
|
+
}
|
|
19679
|
+
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], orderRest)) : (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest) : [];
|
|
19513
19680
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
19514
|
-
|
|
19681
|
+
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
19515
19682
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
19516
19683
|
}) : goodDetails;
|
|
19684
|
+
return list;
|
|
19517
19685
|
};
|
|
19518
19686
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
19519
|
-
var _typeMap$
|
|
19687
|
+
var _typeMap$type21;
|
|
19520
19688
|
var newValue = _objectSpread2({}, value);
|
|
19521
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19689
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = val || [];
|
|
19522
19690
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19523
19691
|
};
|
|
19524
19692
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
19525
|
-
var _typeMap$
|
|
19693
|
+
var _typeMap$type22, _typeMap$type23, _value$typeMap$type$t2, _typeMap$type28, _value$typeMap$type$t3, _typeMap$type30;
|
|
19526
19694
|
var newValue = _objectSpread2({}, value);
|
|
19527
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19528
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19529
|
-
var _value$typeMap$type$s5, _typeMap$
|
|
19530
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
19695
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
|
|
19696
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderBillType) {
|
|
19697
|
+
var _value$typeMap$type$s5, _typeMap$type24, _typeMap$type26, _typeMap$type27;
|
|
19698
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orders) || [];
|
|
19531
19699
|
var targetOrder = val && orders.find(function (oItem) {
|
|
19532
|
-
var _typeMap$
|
|
19533
|
-
return oItem[(_typeMap$
|
|
19700
|
+
var _typeMap$type25;
|
|
19701
|
+
return oItem[(_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.oIdKey] === val;
|
|
19534
19702
|
});
|
|
19535
|
-
newValue[(_typeMap$
|
|
19536
|
-
}
|
|
19537
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
19538
|
-
var _typeMap$
|
|
19539
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19540
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
19541
|
-
var _typeMap$
|
|
19542
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19703
|
+
newValue[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.orderTypeKey];
|
|
19704
|
+
}
|
|
19705
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
19706
|
+
var _typeMap$type29;
|
|
19707
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)] = [];
|
|
19708
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
19709
|
+
var _typeMap$type31;
|
|
19710
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = getGoodDetails({
|
|
19543
19711
|
mode: isStrict,
|
|
19544
19712
|
sysOrderNo: val
|
|
19545
19713
|
});
|
|
@@ -19547,25 +19715,26 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19547
19715
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19548
19716
|
};
|
|
19549
19717
|
//显示选择商品按钮
|
|
19550
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
19718
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo]);
|
|
19551
19719
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
19552
|
-
var _typeMap$
|
|
19720
|
+
var _typeMap$type33, _typeMap$type34, _uniqBy, _typeMap$type35;
|
|
19553
19721
|
var newValue = _objectSpread2({}, value);
|
|
19554
19722
|
// 原订单商品
|
|
19555
19723
|
var originTradeGoodList = getGoodDetails({
|
|
19556
19724
|
mode: isStrict
|
|
19557
19725
|
}) || [];
|
|
19558
19726
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19559
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19560
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19561
|
-
|
|
19727
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)]) || [];
|
|
19728
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19729
|
+
var _typeMap$type36;
|
|
19730
|
+
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.uniqueKey]);
|
|
19562
19731
|
});
|
|
19563
19732
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19564
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19733
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)], isStrict]);
|
|
19565
19734
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
19566
19735
|
gutter: 8,
|
|
19567
19736
|
wrap: true,
|
|
19568
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19737
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key) || "".concat(Date.now())
|
|
19569
19738
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
19570
19739
|
className: "gutter-row",
|
|
19571
19740
|
xs: {
|
|
@@ -19581,12 +19750,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19581
19750
|
},
|
|
19582
19751
|
disabled: disabled,
|
|
19583
19752
|
allowClear: false,
|
|
19584
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19753
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.systemOrderNo)],
|
|
19585
19754
|
onChange: function onChange(val) {
|
|
19586
19755
|
return changeSystemOrderHandle(val);
|
|
19587
19756
|
},
|
|
19588
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19589
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
19757
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
19758
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
|
|
19590
19759
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
19591
19760
|
key: item[typeMap$2[type].oIdKey],
|
|
19592
19761
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -19608,11 +19777,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19608
19777
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
19609
19778
|
allowClear: false,
|
|
19610
19779
|
options: reasonList,
|
|
19611
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19780
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.typeName)],
|
|
19612
19781
|
onChange: function onChange(val) {
|
|
19613
19782
|
return changeTypeHandle(val);
|
|
19614
19783
|
}
|
|
19615
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19784
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
19616
19785
|
className: "gutter-row",
|
|
19617
19786
|
xs: {
|
|
19618
19787
|
span: 11
|
|
@@ -19621,7 +19790,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19621
19790
|
span: 6
|
|
19622
19791
|
}
|
|
19623
19792
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
19624
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19793
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderBillType)],
|
|
19625
19794
|
disabled: disabled,
|
|
19626
19795
|
readOnly: true
|
|
19627
19796
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -19631,10 +19800,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19631
19800
|
disabled: disabled,
|
|
19632
19801
|
canUpdateNumber: showChangeBtn,
|
|
19633
19802
|
showChangeBtn: showChangeBtn,
|
|
19634
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19635
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19803
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.alwaysShowChooseErpGoodsBtn,
|
|
19804
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.showErpGoodsBtn,
|
|
19636
19805
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
19637
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19806
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.key)],
|
|
19638
19807
|
onChange: function onChange(val) {
|
|
19639
19808
|
return changeGoodHandle(val);
|
|
19640
19809
|
},
|
|
@@ -19645,6 +19814,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19645
19814
|
originDataSource: getGoodDetails({
|
|
19646
19815
|
mode: isStrict
|
|
19647
19816
|
}),
|
|
19817
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.uniqueKey) || 'uuid',
|
|
19648
19818
|
selectedGoodsChange: selectedGoodsChange
|
|
19649
19819
|
}
|
|
19650
19820
|
})));
|
package/dist/index.js
CHANGED
|
@@ -16194,6 +16194,15 @@ var getColumns$5 = function getColumns() {
|
|
|
16194
16194
|
};
|
|
16195
16195
|
};
|
|
16196
16196
|
|
|
16197
|
+
function toNum$2(value) {
|
|
16198
|
+
if (typeof value === 'string') {
|
|
16199
|
+
return value ? +value : void 0;
|
|
16200
|
+
}
|
|
16201
|
+
if (typeof value === 'number') {
|
|
16202
|
+
return value;
|
|
16203
|
+
}
|
|
16204
|
+
return void 0;
|
|
16205
|
+
}
|
|
16197
16206
|
var getColumns$6 = function getColumns(_ref) {
|
|
16198
16207
|
var _ref$text = _ref.text,
|
|
16199
16208
|
disabled = _ref.disabled,
|
|
@@ -16219,10 +16228,6 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16219
16228
|
dataIndex: 'sysOuterId',
|
|
16220
16229
|
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
16221
16230
|
width: 150
|
|
16222
|
-
}, {
|
|
16223
|
-
dataIndex: 'outerId',
|
|
16224
|
-
title: "\u5546\u5BB6\u7F16\u7801",
|
|
16225
|
-
width: 150
|
|
16226
16231
|
}, {
|
|
16227
16232
|
dataIndex: 'skuSysId',
|
|
16228
16233
|
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
@@ -16295,6 +16300,129 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16295
16300
|
align: 'center',
|
|
16296
16301
|
ellipsis: true
|
|
16297
16302
|
});
|
|
16303
|
+
}),
|
|
16304
|
+
KM_REISSUE_GOODS: [{
|
|
16305
|
+
dataIndex: 'skuPropertiesName',
|
|
16306
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
16307
|
+
width: 250
|
|
16308
|
+
}, {
|
|
16309
|
+
dataIndex: 'sysTitle',
|
|
16310
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
16311
|
+
width: 150
|
|
16312
|
+
}, {
|
|
16313
|
+
dataIndex: 'shortTitle',
|
|
16314
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
16315
|
+
width: 150
|
|
16316
|
+
}, {
|
|
16317
|
+
dataIndex: 'title',
|
|
16318
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
16319
|
+
width: 150
|
|
16320
|
+
}, {
|
|
16321
|
+
dataIndex: 'sysOuterId',
|
|
16322
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
16323
|
+
width: 150
|
|
16324
|
+
}, {
|
|
16325
|
+
dataIndex: 'itemSysId',
|
|
16326
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
16327
|
+
width: 150
|
|
16328
|
+
}, {
|
|
16329
|
+
dataIndex: 'skuSysId',
|
|
16330
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
16331
|
+
width: 150
|
|
16332
|
+
}, {
|
|
16333
|
+
dataIndex: 'skuId',
|
|
16334
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
16335
|
+
width: 170
|
|
16336
|
+
}, {
|
|
16337
|
+
dataIndex: 'realNum',
|
|
16338
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
16339
|
+
width: 100,
|
|
16340
|
+
validator: function validator(_rule, value) {
|
|
16341
|
+
var title = '';
|
|
16342
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
16343
|
+
var realNum = toNum$2(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
16344
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
16345
|
+
if (res) {
|
|
16346
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
16347
|
+
}
|
|
16348
|
+
return res;
|
|
16349
|
+
})) {
|
|
16350
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
16351
|
+
}
|
|
16352
|
+
},
|
|
16353
|
+
render: function render(val, record, index) {
|
|
16354
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
16355
|
+
style: {
|
|
16356
|
+
width: 70
|
|
16357
|
+
},
|
|
16358
|
+
value: val,
|
|
16359
|
+
min: 1,
|
|
16360
|
+
precision: 0,
|
|
16361
|
+
onChange: function onChange(num) {
|
|
16362
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
16363
|
+
}
|
|
16364
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
16365
|
+
}
|
|
16366
|
+
}, {
|
|
16367
|
+
dataIndex: 'desiredNum',
|
|
16368
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
16369
|
+
width: 100,
|
|
16370
|
+
render: function render(val, record, index) {
|
|
16371
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
16372
|
+
style: {
|
|
16373
|
+
width: 70
|
|
16374
|
+
},
|
|
16375
|
+
value: val,
|
|
16376
|
+
min: 1,
|
|
16377
|
+
precision: 0,
|
|
16378
|
+
onChange: function onChange(num) {
|
|
16379
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
16380
|
+
}
|
|
16381
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
16382
|
+
}
|
|
16383
|
+
}, {
|
|
16384
|
+
dataIndex: 'price',
|
|
16385
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
16386
|
+
width: 150,
|
|
16387
|
+
render: function render(val) {
|
|
16388
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
16389
|
+
}
|
|
16390
|
+
}, {
|
|
16391
|
+
dataIndex: 'payment',
|
|
16392
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
16393
|
+
width: 150,
|
|
16394
|
+
render: function render(val, record, index) {
|
|
16395
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
16396
|
+
style: {
|
|
16397
|
+
width: 130
|
|
16398
|
+
},
|
|
16399
|
+
value: val,
|
|
16400
|
+
min: 0,
|
|
16401
|
+
precision: 2,
|
|
16402
|
+
onChange: function onChange(num) {
|
|
16403
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
16404
|
+
}
|
|
16405
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
16406
|
+
}
|
|
16407
|
+
}, {
|
|
16408
|
+
dataIndex: 'type',
|
|
16409
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
16410
|
+
width: 150
|
|
16411
|
+
}, {
|
|
16412
|
+
dataIndex: 'sysPicPath',
|
|
16413
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
16414
|
+
width: 100,
|
|
16415
|
+
render: function render(val) {
|
|
16416
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
16417
|
+
width: 60,
|
|
16418
|
+
src: val
|
|
16419
|
+
});
|
|
16420
|
+
}
|
|
16421
|
+
}].map(function (item) {
|
|
16422
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16423
|
+
align: 'center',
|
|
16424
|
+
ellipsis: true
|
|
16425
|
+
});
|
|
16298
16426
|
})
|
|
16299
16427
|
};
|
|
16300
16428
|
};
|
|
@@ -16608,7 +16736,7 @@ var isErpType = {
|
|
|
16608
16736
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
16609
16737
|
},
|
|
16610
16738
|
isKm: function isKm(type) {
|
|
16611
|
-
return ['KM_GOODS'].includes(type);
|
|
16739
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
16612
16740
|
}
|
|
16613
16741
|
};
|
|
16614
16742
|
var processGoods = function processGoods(_ref) {
|
|
@@ -16759,10 +16887,20 @@ var processJstGoods = function processJstGoods(_ref5) {
|
|
|
16759
16887
|
});
|
|
16760
16888
|
};
|
|
16761
16889
|
var processKmGoods = function processKmGoods(_ref6) {
|
|
16762
|
-
var list = _ref6.list
|
|
16890
|
+
var list = _ref6.list,
|
|
16891
|
+
type = _ref6.type;
|
|
16892
|
+
var initParamsMap = {
|
|
16893
|
+
KM_GOODS: {
|
|
16894
|
+
num: 1
|
|
16895
|
+
},
|
|
16896
|
+
KM_REISSUE_GOODS: {
|
|
16897
|
+
realNum: 1,
|
|
16898
|
+
desiredNum: 1
|
|
16899
|
+
}
|
|
16900
|
+
};
|
|
16763
16901
|
return list.map(function (item) {
|
|
16764
16902
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16765
|
-
|
|
16903
|
+
skuPropertiesName: item.specName,
|
|
16766
16904
|
sysTitle: item.goodName,
|
|
16767
16905
|
title: null,
|
|
16768
16906
|
shortTitle: item.goodShortName,
|
|
@@ -16776,9 +16914,8 @@ var processKmGoods = function processKmGoods(_ref6) {
|
|
|
16776
16914
|
type: null,
|
|
16777
16915
|
uuid: kmkfUtils.uuid(),
|
|
16778
16916
|
canDelete: true,
|
|
16779
|
-
canEdit: true
|
|
16780
|
-
|
|
16781
|
-
});
|
|
16917
|
+
canEdit: true
|
|
16918
|
+
}, initParamsMap[type] || {});
|
|
16782
16919
|
});
|
|
16783
16920
|
};
|
|
16784
16921
|
var processDefaultGoods = function processDefaultGoods(_ref7) {
|
|
@@ -16825,6 +16962,7 @@ var GoodsModalMap = {
|
|
|
16825
16962
|
JST_RETURN_GOODS: JstGoodsModal,
|
|
16826
16963
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
16827
16964
|
KM_GOODS: KmGoodsModal,
|
|
16965
|
+
KM_REISSUE_GOODS: KmGoodsModal,
|
|
16828
16966
|
OTHER_GOODS: GoodsModal$2
|
|
16829
16967
|
};
|
|
16830
16968
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
@@ -16887,7 +17025,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
16887
17025
|
};
|
|
16888
17026
|
var getButtonText = function getButtonText() {
|
|
16889
17027
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
16890
|
-
if (['KM_GOODS'].includes(type)) {
|
|
17028
|
+
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
16891
17029
|
return '选择快麦ERP商品';
|
|
16892
17030
|
}
|
|
16893
17031
|
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -17034,6 +17172,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
17034
17172
|
case 'GY_REISSUE_GOODS':
|
|
17035
17173
|
case 'GY_RETURN_GOODS':
|
|
17036
17174
|
case 'KM_GOODS':
|
|
17175
|
+
case 'KM_REISSUE_GOODS':
|
|
17037
17176
|
{
|
|
17038
17177
|
columns = getColumnsMap$1({
|
|
17039
17178
|
text: text,
|
|
@@ -19373,7 +19512,9 @@ var typeMap$2 = {
|
|
|
19373
19512
|
orderTypeKey: 'orderType',
|
|
19374
19513
|
oIdKey: 'oId',
|
|
19375
19514
|
outerOiIdKey: '',
|
|
19376
|
-
goodDetailsKey: 'items'
|
|
19515
|
+
goodDetailsKey: 'items',
|
|
19516
|
+
mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
|
|
19517
|
+
uniqueKey: 'uuid'
|
|
19377
19518
|
},
|
|
19378
19519
|
JST_RETURN_GOODS: {
|
|
19379
19520
|
compType: '退货',
|
|
@@ -19389,6 +19530,8 @@ var typeMap$2 = {
|
|
|
19389
19530
|
oIdKey: 'oId',
|
|
19390
19531
|
outerOiIdKey: '',
|
|
19391
19532
|
goodDetailsKey: 'items',
|
|
19533
|
+
mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
|
|
19534
|
+
uniqueKey: 'uuid',
|
|
19392
19535
|
eventNameMap: {
|
|
19393
19536
|
// pubsub 事件
|
|
19394
19537
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -19396,10 +19539,25 @@ var typeMap$2 = {
|
|
|
19396
19539
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
19397
19540
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
19398
19541
|
}
|
|
19542
|
+
},
|
|
19543
|
+
KM_REISSUE_GOODS: {
|
|
19544
|
+
compType: '补发',
|
|
19545
|
+
key: 'kmReissueGoods',
|
|
19546
|
+
typeName: 'kmReissueType',
|
|
19547
|
+
systemOrder: 'kmSystemOrder',
|
|
19548
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
19549
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
19550
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
19551
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
19552
|
+
orderTypeKey: 'orderType',
|
|
19553
|
+
oIdKey: 'billNo',
|
|
19554
|
+
outerOiIdKey: '',
|
|
19555
|
+
goodDetailsKey: 'subOrders',
|
|
19556
|
+
uniqueKey: 'id'
|
|
19399
19557
|
}
|
|
19400
19558
|
};
|
|
19401
19559
|
var PublicReissue = function PublicReissue(props) {
|
|
19402
|
-
var _typeMap$
|
|
19560
|
+
var _typeMap$type32, _typeMap$type37, _typeMap$type38, _typeMap$type39, _typeMap$type40, _value$typeMap$type$s6, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48;
|
|
19403
19561
|
var value = props.value,
|
|
19404
19562
|
onChange = props.onChange,
|
|
19405
19563
|
_props$reasonList = props.reasonList,
|
|
@@ -19513,7 +19671,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19513
19671
|
}))));
|
|
19514
19672
|
};
|
|
19515
19673
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
19516
|
-
var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19;
|
|
19674
|
+
var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19, _typeMap$type20;
|
|
19517
19675
|
var mode = _ref4.mode,
|
|
19518
19676
|
sysOrderNo = _ref4.sysOrderNo;
|
|
19519
19677
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
|
|
@@ -19521,37 +19679,47 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19521
19679
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
19522
19680
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
19523
19681
|
});
|
|
19524
|
-
var
|
|
19682
|
+
var orderRest = undefined;
|
|
19683
|
+
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
19684
|
+
orderRest = true;
|
|
19685
|
+
} else if (type === 'KM_REISSUE_GOODS') {
|
|
19686
|
+
orderRest = {
|
|
19687
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
19688
|
+
canEdit: true
|
|
19689
|
+
};
|
|
19690
|
+
}
|
|
19691
|
+
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], orderRest)) : (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest) : [];
|
|
19525
19692
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
19526
|
-
|
|
19693
|
+
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
19527
19694
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
19528
19695
|
}) : goodDetails;
|
|
19696
|
+
return list;
|
|
19529
19697
|
};
|
|
19530
19698
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
19531
|
-
var _typeMap$
|
|
19699
|
+
var _typeMap$type21;
|
|
19532
19700
|
var newValue = _objectSpread2({}, value);
|
|
19533
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19701
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = val || [];
|
|
19534
19702
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19535
19703
|
};
|
|
19536
19704
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
19537
|
-
var _typeMap$
|
|
19705
|
+
var _typeMap$type22, _typeMap$type23, _value$typeMap$type$t2, _typeMap$type28, _value$typeMap$type$t3, _typeMap$type30;
|
|
19538
19706
|
var newValue = _objectSpread2({}, value);
|
|
19539
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19540
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19541
|
-
var _value$typeMap$type$s5, _typeMap$
|
|
19542
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
19707
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
|
|
19708
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderBillType) {
|
|
19709
|
+
var _value$typeMap$type$s5, _typeMap$type24, _typeMap$type26, _typeMap$type27;
|
|
19710
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orders) || [];
|
|
19543
19711
|
var targetOrder = val && orders.find(function (oItem) {
|
|
19544
|
-
var _typeMap$
|
|
19545
|
-
return oItem[(_typeMap$
|
|
19712
|
+
var _typeMap$type25;
|
|
19713
|
+
return oItem[(_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.oIdKey] === val;
|
|
19546
19714
|
});
|
|
19547
|
-
newValue[(_typeMap$
|
|
19548
|
-
}
|
|
19549
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
19550
|
-
var _typeMap$
|
|
19551
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19552
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
19553
|
-
var _typeMap$
|
|
19554
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19715
|
+
newValue[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.orderTypeKey];
|
|
19716
|
+
}
|
|
19717
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
19718
|
+
var _typeMap$type29;
|
|
19719
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)] = [];
|
|
19720
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
19721
|
+
var _typeMap$type31;
|
|
19722
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = getGoodDetails({
|
|
19555
19723
|
mode: isStrict,
|
|
19556
19724
|
sysOrderNo: val
|
|
19557
19725
|
});
|
|
@@ -19559,25 +19727,26 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19559
19727
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19560
19728
|
};
|
|
19561
19729
|
//显示选择商品按钮
|
|
19562
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
19730
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo]);
|
|
19563
19731
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
19564
|
-
var _typeMap$
|
|
19732
|
+
var _typeMap$type33, _typeMap$type34, _uniqBy, _typeMap$type35;
|
|
19565
19733
|
var newValue = _objectSpread2({}, value);
|
|
19566
19734
|
// 原订单商品
|
|
19567
19735
|
var originTradeGoodList = getGoodDetails({
|
|
19568
19736
|
mode: isStrict
|
|
19569
19737
|
}) || [];
|
|
19570
19738
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19571
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19572
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19573
|
-
|
|
19739
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)]) || [];
|
|
19740
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19741
|
+
var _typeMap$type36;
|
|
19742
|
+
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.uniqueKey]);
|
|
19574
19743
|
});
|
|
19575
19744
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19576
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19745
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)], isStrict]);
|
|
19577
19746
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
19578
19747
|
gutter: 8,
|
|
19579
19748
|
wrap: true,
|
|
19580
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19749
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key) || "".concat(Date.now())
|
|
19581
19750
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
19582
19751
|
className: "gutter-row",
|
|
19583
19752
|
xs: {
|
|
@@ -19593,12 +19762,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19593
19762
|
},
|
|
19594
19763
|
disabled: disabled,
|
|
19595
19764
|
allowClear: false,
|
|
19596
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19765
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.systemOrderNo)],
|
|
19597
19766
|
onChange: function onChange(val) {
|
|
19598
19767
|
return changeSystemOrderHandle(val);
|
|
19599
19768
|
},
|
|
19600
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19601
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
19769
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
19770
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
|
|
19602
19771
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
19603
19772
|
key: item[typeMap$2[type].oIdKey],
|
|
19604
19773
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -19620,11 +19789,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19620
19789
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
19621
19790
|
allowClear: false,
|
|
19622
19791
|
options: reasonList,
|
|
19623
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19792
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.typeName)],
|
|
19624
19793
|
onChange: function onChange(val) {
|
|
19625
19794
|
return changeTypeHandle(val);
|
|
19626
19795
|
}
|
|
19627
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19796
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
19628
19797
|
className: "gutter-row",
|
|
19629
19798
|
xs: {
|
|
19630
19799
|
span: 11
|
|
@@ -19633,7 +19802,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19633
19802
|
span: 6
|
|
19634
19803
|
}
|
|
19635
19804
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
19636
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19805
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderBillType)],
|
|
19637
19806
|
disabled: disabled,
|
|
19638
19807
|
readOnly: true
|
|
19639
19808
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -19643,10 +19812,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19643
19812
|
disabled: disabled,
|
|
19644
19813
|
canUpdateNumber: showChangeBtn,
|
|
19645
19814
|
showChangeBtn: showChangeBtn,
|
|
19646
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19647
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19815
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.alwaysShowChooseErpGoodsBtn,
|
|
19816
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.showErpGoodsBtn,
|
|
19648
19817
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
19649
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
19818
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.key)],
|
|
19650
19819
|
onChange: function onChange(val) {
|
|
19651
19820
|
return changeGoodHandle(val);
|
|
19652
19821
|
},
|
|
@@ -19657,6 +19826,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19657
19826
|
originDataSource: getGoodDetails({
|
|
19658
19827
|
mode: isStrict
|
|
19659
19828
|
}),
|
|
19829
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.uniqueKey) || 'uuid',
|
|
19660
19830
|
selectedGoodsChange: selectedGoodsChange
|
|
19661
19831
|
}
|
|
19662
19832
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.71",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.71",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d3bc7172b07c7e0bb641de84d3f696d7e4332096"
|
|
69
69
|
}
|