@kmkf-fe-packages/basic-components 2.9.0 → 2.9.1-beta.5
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
CHANGED
|
@@ -8625,7 +8625,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8625
8625
|
MSG_STATUS: 'msgStatusValues',
|
|
8626
8626
|
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8627
8627
|
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8628
|
-
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
|
|
8628
|
+
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
|
|
8629
|
+
KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
|
|
8629
8630
|
};
|
|
8630
8631
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8631
8632
|
};
|
|
@@ -9349,7 +9350,8 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9349
9350
|
},
|
|
9350
9351
|
jstReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9351
9352
|
jstReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnGoods")), []),
|
|
9352
|
-
jstSystemOrderBillType:
|
|
9353
|
+
// jstSystemOrderBillType:
|
|
9354
|
+
// getValue(`${nex.uniqueKey}_jstSystemOrderBillType`) || '',
|
|
9353
9355
|
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9354
9356
|
jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
|
|
9355
9357
|
});
|
|
@@ -9473,6 +9475,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9473
9475
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9474
9476
|
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9475
9477
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9478
|
+
KM_WAREHOUSING_STATUS: processSceneStatus,
|
|
9476
9479
|
BS_LOGISTICS: processErpLogistics,
|
|
9477
9480
|
WLN_LOGISTICS: processErpLogistics,
|
|
9478
9481
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -11656,7 +11659,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11656
11659
|
key: item.value
|
|
11657
11660
|
}, item.label);
|
|
11658
11661
|
})), /*#__PURE__*/React.createElement(Search, {
|
|
11659
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11662
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
|
|
11660
11663
|
// enterButton="搜索"
|
|
11661
11664
|
className: "search",
|
|
11662
11665
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -13310,13 +13313,26 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13310
13313
|
var changeHandle = function changeHandle(val, type) {
|
|
13311
13314
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
13312
13315
|
if (type === 'interceptCompany') {
|
|
13316
|
+
var _props$interceptTypeD, _defaultInterceptType;
|
|
13313
13317
|
var interceptCompany = expressInterceptData.find(function (item) {
|
|
13314
13318
|
return item.value === val;
|
|
13315
13319
|
});
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
+
// 优先使用配置的默认值
|
|
13321
|
+
var defaultInterceptType;
|
|
13322
|
+
var configuredDefault = (_props$interceptTypeD = props.interceptTypeDefaults) === null || _props$interceptTypeD === void 0 ? void 0 : _props$interceptTypeD[val];
|
|
13323
|
+
if (configuredDefault) {
|
|
13324
|
+
// 使用配置的默认值
|
|
13325
|
+
defaultInterceptType = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
13326
|
+
return item.value === configuredDefault;
|
|
13327
|
+
});
|
|
13328
|
+
}
|
|
13329
|
+
// 如果没有配置默认值,使用原有的 isDefault 逻辑
|
|
13330
|
+
if (!defaultInterceptType) {
|
|
13331
|
+
defaultInterceptType = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
13332
|
+
var _item$config4;
|
|
13333
|
+
return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
|
|
13334
|
+
});
|
|
13335
|
+
}
|
|
13320
13336
|
// const demoList = [
|
|
13321
13337
|
// {
|
|
13322
13338
|
// city: 330100,
|
|
@@ -13340,7 +13356,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13340
13356
|
});
|
|
13341
13357
|
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
13342
13358
|
interceptCompany: val,
|
|
13343
|
-
interceptType:
|
|
13359
|
+
interceptType: (_defaultInterceptType = defaultInterceptType) === null || _defaultInterceptType === void 0 ? void 0 : _defaultInterceptType.value,
|
|
13344
13360
|
interceptSenderMobile: undefined,
|
|
13345
13361
|
interceptAddress: [],
|
|
13346
13362
|
interceptDetail: undefined,
|
|
@@ -13637,7 +13653,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
13637
13653
|
disabled = props.disabled,
|
|
13638
13654
|
onChange = props.onChange,
|
|
13639
13655
|
isEditing = props.isEditing,
|
|
13640
|
-
effects = props.effects
|
|
13656
|
+
effects = props.effects,
|
|
13657
|
+
interceptTypeDefaults = props.interceptTypeDefaults;
|
|
13641
13658
|
var _useState = useState(0),
|
|
13642
13659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13643
13660
|
changeIndex = _useState2[0],
|
|
@@ -13683,7 +13700,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
13683
13700
|
onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
|
|
13684
13701
|
onChange: function onChange(val) {
|
|
13685
13702
|
return handleChange(val, index);
|
|
13686
|
-
}
|
|
13703
|
+
},
|
|
13704
|
+
interceptTypeDefaults: interceptTypeDefaults
|
|
13687
13705
|
}) : null;
|
|
13688
13706
|
}) : null);
|
|
13689
13707
|
};
|
|
@@ -16278,30 +16296,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16278
16296
|
selectedRowKeys: selectIds,
|
|
16279
16297
|
fixed: true,
|
|
16280
16298
|
onSelect: function onSelect(record, selected) {
|
|
16299
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16281
16300
|
if (selected) {
|
|
16282
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16301
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16283
16302
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16284
16303
|
} else {
|
|
16285
16304
|
setSelectIds(selectIds.filter(function (t) {
|
|
16286
|
-
return t !==
|
|
16305
|
+
return t !== uniqueKey;
|
|
16287
16306
|
}));
|
|
16288
16307
|
setSelect(selectList.filter(function (t) {
|
|
16289
|
-
return t.specNo !==
|
|
16308
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16290
16309
|
}));
|
|
16291
16310
|
}
|
|
16292
16311
|
},
|
|
16293
16312
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16294
16313
|
if (selected) {
|
|
16295
|
-
|
|
16296
|
-
return t.specNo;
|
|
16297
|
-
})
|
|
16314
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16315
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16316
|
+
});
|
|
16317
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16298
16318
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16299
16319
|
} else {
|
|
16300
|
-
|
|
16301
|
-
return t.specNo;
|
|
16302
|
-
})
|
|
16320
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16321
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16322
|
+
});
|
|
16323
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16303
16324
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16304
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16325
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16305
16326
|
});
|
|
16306
16327
|
setSelect(list);
|
|
16307
16328
|
}
|
|
@@ -16309,11 +16330,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16309
16330
|
};
|
|
16310
16331
|
var showTable = function showTable() {
|
|
16311
16332
|
var handleDelete = function handleDelete(record) {
|
|
16333
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16312
16334
|
setSelectIds(selectIds.filter(function (t) {
|
|
16313
|
-
return t !==
|
|
16335
|
+
return t !== uniqueKey;
|
|
16314
16336
|
}));
|
|
16315
16337
|
setSelect(selectList.filter(function (t) {
|
|
16316
|
-
return t.specNo !==
|
|
16338
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16317
16339
|
}));
|
|
16318
16340
|
};
|
|
16319
16341
|
var showColumns = [{
|
|
@@ -16337,7 +16359,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16337
16359
|
}
|
|
16338
16360
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16339
16361
|
columns: showColumns,
|
|
16340
|
-
rowKey:
|
|
16362
|
+
rowKey: function rowKey(record) {
|
|
16363
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16364
|
+
},
|
|
16341
16365
|
dataSource: selectList,
|
|
16342
16366
|
scroll: {
|
|
16343
16367
|
x: '100%',
|
|
@@ -16367,7 +16391,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16367
16391
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16368
16392
|
className: "GoodModalColumns",
|
|
16369
16393
|
rowSelection: rowSelection,
|
|
16370
|
-
rowKey:
|
|
16394
|
+
rowKey: function rowKey(record) {
|
|
16395
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16396
|
+
},
|
|
16371
16397
|
columns: columns,
|
|
16372
16398
|
scroll: {
|
|
16373
16399
|
x: '100%',
|
|
@@ -20934,9 +20960,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20934
20960
|
};
|
|
20935
20961
|
|
|
20936
20962
|
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20937
|
-
|
|
20938
|
-
|
|
20963
|
+
switch (val) {
|
|
20964
|
+
case true:
|
|
20965
|
+
case '1':
|
|
20966
|
+
case 1:
|
|
20967
|
+
return '是';
|
|
20968
|
+
case false:
|
|
20969
|
+
case '0':
|
|
20970
|
+
case 0:
|
|
20971
|
+
return '否';
|
|
20972
|
+
default:
|
|
20973
|
+
return null;
|
|
20974
|
+
}
|
|
20939
20975
|
};
|
|
20976
|
+
|
|
20940
20977
|
function toNum$1(value) {
|
|
20941
20978
|
if (typeof value === 'string') {
|
|
20942
20979
|
return value ? +value : void 0;
|
|
@@ -21424,10 +21461,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
21424
21461
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21425
21462
|
return false;
|
|
21426
21463
|
};
|
|
21427
|
-
var getYesOrNo$5 = function getYesOrNo(val) {
|
|
21428
|
-
if (isNull(val)) return null;
|
|
21429
|
-
return val ? '是' : '否';
|
|
21430
|
-
};
|
|
21431
21464
|
function toNum$2(value) {
|
|
21432
21465
|
if (typeof value === 'string') {
|
|
21433
21466
|
return value ? +value : void 0;
|
|
@@ -21539,7 +21572,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21539
21572
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
21540
21573
|
width: 150,
|
|
21541
21574
|
render: function render(val) {
|
|
21542
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21575
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21543
21576
|
}
|
|
21544
21577
|
}, {
|
|
21545
21578
|
dataIndex: 'isGift',
|
|
@@ -21558,7 +21591,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21558
21591
|
label: '否',
|
|
21559
21592
|
value: 0
|
|
21560
21593
|
}]
|
|
21561
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21594
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21562
21595
|
}
|
|
21563
21596
|
}, {
|
|
21564
21597
|
dataIndex: 'skuNote',
|
|
@@ -21684,7 +21717,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21684
21717
|
label: '否',
|
|
21685
21718
|
value: 0
|
|
21686
21719
|
}]
|
|
21687
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21720
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21688
21721
|
}
|
|
21689
21722
|
}].map(function (item) {
|
|
21690
21723
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21813,7 +21846,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21813
21846
|
label: '否',
|
|
21814
21847
|
value: 0
|
|
21815
21848
|
}]
|
|
21816
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21849
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21817
21850
|
}
|
|
21818
21851
|
}].map(function (item) {
|
|
21819
21852
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -22190,7 +22223,8 @@ var getColumns$5 = function getColumns() {
|
|
|
22190
22223
|
min: 0,
|
|
22191
22224
|
precision: 2,
|
|
22192
22225
|
onChange: function onChange(num) {
|
|
22193
|
-
|
|
22226
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
22227
|
+
if ((num || num === 0) && (record.qty || record.qty === 0)) updateHandle(num * (record.qty || 0), index, 'saleAmount');
|
|
22194
22228
|
}
|
|
22195
22229
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(4).replace(/\.?0+$/, '') : '');
|
|
22196
22230
|
}
|
|
@@ -22220,16 +22254,39 @@ var getColumns$5 = function getColumns() {
|
|
|
22220
22254
|
min: 1,
|
|
22221
22255
|
precision: 0,
|
|
22222
22256
|
onChange: function onChange(num) {
|
|
22223
|
-
|
|
22257
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
22258
|
+
if ((num || num === 0) && (record.salePrice || record.salePrice === 0)) updateHandle(num * (record.salePrice || 0), index, 'saleAmount');
|
|
22224
22259
|
}
|
|
22225
22260
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22226
22261
|
}
|
|
22227
22262
|
}, {
|
|
22228
22263
|
dataIndex: 'saleAmount',
|
|
22229
22264
|
title: '总金额',
|
|
22230
|
-
|
|
22231
|
-
var
|
|
22232
|
-
|
|
22265
|
+
validator: function validator(_rule, value) {
|
|
22266
|
+
var goodsName = '';
|
|
22267
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
22268
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.saleAmount);
|
|
22269
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
22270
|
+
if (res) {
|
|
22271
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22272
|
+
}
|
|
22273
|
+
return res;
|
|
22274
|
+
})) {
|
|
22275
|
+
return Promise.reject("".concat(goodsName, "\u603B\u91D1\u989D\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
22276
|
+
}
|
|
22277
|
+
},
|
|
22278
|
+
render: function render(val, record, index) {
|
|
22279
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22280
|
+
style: {
|
|
22281
|
+
width: 130
|
|
22282
|
+
},
|
|
22283
|
+
value: val,
|
|
22284
|
+
min: 0,
|
|
22285
|
+
precision: 2,
|
|
22286
|
+
onChange: function onChange(num) {
|
|
22287
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'saleAmount');
|
|
22288
|
+
}
|
|
22289
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22233
22290
|
}
|
|
22234
22291
|
}, {
|
|
22235
22292
|
dataIndex: 'batchId',
|
|
@@ -22310,6 +22367,19 @@ var getColumns$5 = function getColumns() {
|
|
|
22310
22367
|
dataIndex: 'salePrice',
|
|
22311
22368
|
title: '单价',
|
|
22312
22369
|
width: 120,
|
|
22370
|
+
validator: function validator(_rule, value) {
|
|
22371
|
+
var goodsName = '';
|
|
22372
|
+
if (((value === null || value === void 0 ? void 0 : value.jstExchangeGoods) || []).some(function (goods) {
|
|
22373
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
22374
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
22375
|
+
if (res) {
|
|
22376
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22377
|
+
}
|
|
22378
|
+
return res;
|
|
22379
|
+
})) {
|
|
22380
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
22381
|
+
}
|
|
22382
|
+
},
|
|
22313
22383
|
render: function render(val, record, index) {
|
|
22314
22384
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22315
22385
|
style: {
|
|
@@ -22319,7 +22389,8 @@ var getColumns$5 = function getColumns() {
|
|
|
22319
22389
|
min: 0,
|
|
22320
22390
|
precision: 2,
|
|
22321
22391
|
onChange: function onChange(num) {
|
|
22322
|
-
|
|
22392
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
22393
|
+
if ((num || num === 0) && (record.qty || record.qty === 0)) updateHandle(num * (record.qty || 0), index, 'saleAmount');
|
|
22323
22394
|
}
|
|
22324
22395
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(4).replace(/\.?0+$/, '') : '');
|
|
22325
22396
|
}
|
|
@@ -22327,6 +22398,19 @@ var getColumns$5 = function getColumns() {
|
|
|
22327
22398
|
dataIndex: 'qty',
|
|
22328
22399
|
title: '数量',
|
|
22329
22400
|
width: 100,
|
|
22401
|
+
validator: function validator(_rule, value) {
|
|
22402
|
+
var goodsName = '';
|
|
22403
|
+
if (((value === null || value === void 0 ? void 0 : value.jstExchangeGoods) || []).some(function (goods) {
|
|
22404
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
22405
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
22406
|
+
if (res) {
|
|
22407
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22408
|
+
}
|
|
22409
|
+
return res;
|
|
22410
|
+
})) {
|
|
22411
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22412
|
+
}
|
|
22413
|
+
},
|
|
22330
22414
|
render: function render(val, record, index) {
|
|
22331
22415
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22332
22416
|
style: {
|
|
@@ -22336,16 +22420,39 @@ var getColumns$5 = function getColumns() {
|
|
|
22336
22420
|
min: 1,
|
|
22337
22421
|
precision: 0,
|
|
22338
22422
|
onChange: function onChange(num) {
|
|
22339
|
-
|
|
22423
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
22424
|
+
if ((num || num === 0) && (record.salePrice || record.salePrice === 0)) updateHandle(num * (record.salePrice || 0), index, 'saleAmount');
|
|
22340
22425
|
}
|
|
22341
22426
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22342
22427
|
}
|
|
22343
22428
|
}, {
|
|
22344
22429
|
dataIndex: 'saleAmount',
|
|
22345
22430
|
title: '总金额',
|
|
22346
|
-
|
|
22347
|
-
var
|
|
22348
|
-
|
|
22431
|
+
validator: function validator(_rule, value) {
|
|
22432
|
+
var goodsName = '';
|
|
22433
|
+
if (((value === null || value === void 0 ? void 0 : value.jstExchangeGoods) || []).some(function (goods) {
|
|
22434
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.saleAmount);
|
|
22435
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
22436
|
+
if (res) {
|
|
22437
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22438
|
+
}
|
|
22439
|
+
return res;
|
|
22440
|
+
})) {
|
|
22441
|
+
return Promise.reject("".concat(goodsName, "\u603B\u91D1\u989D\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
22442
|
+
}
|
|
22443
|
+
},
|
|
22444
|
+
render: function render(val, record, index) {
|
|
22445
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22446
|
+
style: {
|
|
22447
|
+
width: 130
|
|
22448
|
+
},
|
|
22449
|
+
value: val,
|
|
22450
|
+
min: 0,
|
|
22451
|
+
precision: 2,
|
|
22452
|
+
onChange: function onChange(num) {
|
|
22453
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'saleAmount');
|
|
22454
|
+
}
|
|
22455
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22349
22456
|
}
|
|
22350
22457
|
}, {
|
|
22351
22458
|
dataIndex: 'isGift',
|
|
@@ -24955,6 +25062,8 @@ var systemOrderNoMap = {
|
|
|
24955
25062
|
KM_RETURN_GOODS: 'sid',
|
|
24956
25063
|
KM_EXCHANGE_GOODS: 'sid',
|
|
24957
25064
|
JST_REISSUE_GOODS: 'oId',
|
|
25065
|
+
JST_RETURN_GOODS: 'oId',
|
|
25066
|
+
JST_EXCHANGE_GOODS: 'oId',
|
|
24958
25067
|
GY_REISSUE_GOODS: 'code',
|
|
24959
25068
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
24960
25069
|
WDT_REISSUE_GOODS: 'tradeNo'
|
|
@@ -25266,10 +25375,11 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25266
25375
|
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
25267
25376
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
25268
25377
|
// 监听聚水潭退货商品
|
|
25269
|
-
|
|
25270
|
-
|
|
25378
|
+
// const jstReturnGoods = Form?.useWatch('3979edfd6d', form);
|
|
25379
|
+
// const isShowSelectTradeGoods =
|
|
25380
|
+
// type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
|
|
25271
25381
|
// 判断是否为是否展示系统单筛选项
|
|
25272
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
25382
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
25273
25383
|
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
|
|
25274
25384
|
var refModal = useRef();
|
|
25275
25385
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -25562,7 +25672,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25562
25672
|
}, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
|
|
25563
25673
|
checked: isStrict,
|
|
25564
25674
|
onChange: handleCheckboxChange
|
|
25565
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) &&
|
|
25675
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
25566
25676
|
isReloadSelectTable: isReloadSelectTable,
|
|
25567
25677
|
validSystemOrderFn: validSystemOrderFn,
|
|
25568
25678
|
validSystemOrder: validSystemOrder,
|
|
@@ -29111,10 +29221,11 @@ var componentMap$4 = {
|
|
|
29111
29221
|
systemOrderNo: 'jstSystemOrderNo',
|
|
29112
29222
|
oIdKey: 'oId',
|
|
29113
29223
|
goodDetailsKey: 'items',
|
|
29114
|
-
skuIdKey: 'skuId',
|
|
29115
29224
|
outerOiIdKey: '',
|
|
29116
29225
|
name: '聚水潭',
|
|
29117
29226
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
29227
|
+
isShowSelectTradeGoods: true,
|
|
29228
|
+
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
29118
29229
|
eventNameMap: {
|
|
29119
29230
|
// pubsub 事件
|
|
29120
29231
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -29132,7 +29243,7 @@ var componentMap$4 = {
|
|
|
29132
29243
|
systemOrderNo: 'kmSystemOrderNo',
|
|
29133
29244
|
oIdKey: 'billNo',
|
|
29134
29245
|
goodDetailsKey: 'subOrders',
|
|
29135
|
-
|
|
29246
|
+
uniqueKey: 'skuId',
|
|
29136
29247
|
outerOiIdKey: '',
|
|
29137
29248
|
name: '快麦',
|
|
29138
29249
|
updateGoodsHandle: updateKmGoodsHandle,
|
|
@@ -29180,7 +29291,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29180
29291
|
disabled = props.disabled,
|
|
29181
29292
|
compType = props.type,
|
|
29182
29293
|
form = props.form;
|
|
29183
|
-
var uniqueKey = (componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp = componentMap$4[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.
|
|
29294
|
+
var uniqueKey = (componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp = componentMap$4[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.uniqueKey) || 'uuid';
|
|
29184
29295
|
var valueRef = useRef({});
|
|
29185
29296
|
// PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
|
|
29186
29297
|
var _useState = useState(false),
|
|
@@ -29191,6 +29302,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29191
29302
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
29192
29303
|
originDataSource = _useState4[0],
|
|
29193
29304
|
setOriginDataSource = _useState4[1];
|
|
29305
|
+
var _useState5 = useState([]),
|
|
29306
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
29307
|
+
orders = _useState6[0],
|
|
29308
|
+
setOrders = _useState6[1];
|
|
29194
29309
|
useEffect(function () {
|
|
29195
29310
|
var subscription = componentMap$4[compType].eventNameMap.exchangeBackCopyGood && pubsub.subscribe(componentMap$4[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
|
|
29196
29311
|
if (disabled) return;
|
|
@@ -29250,11 +29365,13 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29250
29365
|
newValue[componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$4[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.valueKey] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), uniqueKey)) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
29251
29366
|
return skuList.includes(item[uniqueKey]);
|
|
29252
29367
|
});
|
|
29253
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29368
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(JSON.parse(JSON.stringify(newValue)));
|
|
29254
29369
|
}, [value === null || value === void 0 ? void 0 : value[componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$4[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.valueKey], isStrict, originDataSource]);
|
|
29255
29370
|
var getGoodDetails = function getGoodDetails(_ref) {
|
|
29256
|
-
var _componentMap$compTyp5, _componentMap$compTyp6,
|
|
29257
|
-
var
|
|
29371
|
+
var _componentMap$compTyp5, _componentMap$compTyp6, _componentMap$compTyp7, _componentMap$compTyp8;
|
|
29372
|
+
var _ref$isAllOrders = _ref.isAllOrders,
|
|
29373
|
+
isAllOrders = _ref$isAllOrders === void 0 ? false : _ref$isAllOrders,
|
|
29374
|
+
returnGoodsValue = _ref.returnGoodsValue,
|
|
29258
29375
|
mode = _ref.mode,
|
|
29259
29376
|
sysOrderNo = _ref.sysOrderNo;
|
|
29260
29377
|
var systemOrder = returnGoodsValue === null || returnGoodsValue === void 0 ? void 0 : returnGoodsValue[(_componentMap$compTyp5 = componentMap$4[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.systemOrder];
|
|
@@ -29262,9 +29379,17 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29262
29379
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
29263
29380
|
return order[componentMap$4[compType].oIdKey] === systemOrderNo;
|
|
29264
29381
|
});
|
|
29265
|
-
var
|
|
29382
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : order ? [order] : [];
|
|
29383
|
+
setOrders(orders);
|
|
29384
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
29385
|
+
var _order$componentMap$c;
|
|
29386
|
+
return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$4[compType].goodDetailsKey]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.length;
|
|
29387
|
+
});
|
|
29388
|
+
var goodDetails = hasGoodDetails ? componentMap$4[compType].mergeIdenticalGoods ? componentMap$4[compType].mergeIdenticalGoods((_componentMap$compTyp7 = componentMap$4[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.updateGoodsHandle(orders, {
|
|
29389
|
+
canEdit: true
|
|
29390
|
+
})) : (_componentMap$compTyp8 = componentMap$4[compType]) === null || _componentMap$compTyp8 === void 0 ? void 0 : _componentMap$compTyp8.updateGoodsHandle(orders, {
|
|
29266
29391
|
canEdit: true
|
|
29267
|
-
}) : []
|
|
29392
|
+
}) : [];
|
|
29268
29393
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
29269
29394
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
29270
29395
|
return !orderNo || goodItem[componentMap$4[compType].outerOiIdKey] === orderNo;
|
|
@@ -29273,9 +29398,11 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29273
29398
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
29274
29399
|
return new Promise(function (resolve) {
|
|
29275
29400
|
pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
29401
|
+
var _componentMap$compTyp9;
|
|
29276
29402
|
resolve(data);
|
|
29277
29403
|
setOriginDataSource(getGoodDetails({
|
|
29278
29404
|
returnGoodsValue: data,
|
|
29405
|
+
isAllOrders: componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp9 = componentMap$4[compType]) === null || _componentMap$compTyp9 === void 0 ? void 0 : _componentMap$compTyp9.isShowSelectTradeGoods,
|
|
29279
29406
|
mode: isStrict
|
|
29280
29407
|
}));
|
|
29281
29408
|
});
|
|
@@ -29286,7 +29413,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29286
29413
|
key: componentMap$4[compType].type
|
|
29287
29414
|
}, props), {}, {
|
|
29288
29415
|
validSystemOrderFn: function validSystemOrderFn() {
|
|
29289
|
-
|
|
29416
|
+
var _componentMap$compTyp10, _componentMap$compTyp11;
|
|
29417
|
+
return (_componentMap$compTyp10 = (_componentMap$compTyp11 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.call(_componentMap$compTyp11, form);
|
|
29290
29418
|
},
|
|
29291
29419
|
isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
|
|
29292
29420
|
disabled: disabled,
|
|
@@ -29295,6 +29423,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29295
29423
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
29296
29424
|
value: value === null || value === void 0 ? void 0 : value[componentMap$4[compType].valueKey],
|
|
29297
29425
|
otherOperations: copyGoods(),
|
|
29426
|
+
systemOrders: orders,
|
|
29298
29427
|
tradeGoods: componentMap$4[compType].showChooseTradeGoodsBtn ? {
|
|
29299
29428
|
uniqueKey: uniqueKey,
|
|
29300
29429
|
originDataSource: originDataSource,
|
|
@@ -29589,7 +29718,7 @@ var typeMap$2 = {
|
|
|
29589
29718
|
typeName: 'jstReturnType',
|
|
29590
29719
|
systemOrder: 'jstSystemOrder',
|
|
29591
29720
|
systemOrderNo: 'jstSystemOrderNo',
|
|
29592
|
-
systemOrderBillType: 'jstSystemOrderBillType',
|
|
29721
|
+
// systemOrderBillType: 'jstSystemOrderBillType',
|
|
29593
29722
|
getOrderList: jstUtils.getJstOrderListSingleton,
|
|
29594
29723
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
29595
29724
|
alwaysShowChooseErpGoodsBtn: true,
|
|
@@ -29599,6 +29728,8 @@ var typeMap$2 = {
|
|
|
29599
29728
|
goodDetailsKey: 'items',
|
|
29600
29729
|
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
29601
29730
|
uniqueKey: 'uuid',
|
|
29731
|
+
hideSelectSysOrderId: true,
|
|
29732
|
+
isShowSelectTradeGoods: true,
|
|
29602
29733
|
eventNameMap: {
|
|
29603
29734
|
// pubsub 事件
|
|
29604
29735
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -29702,7 +29833,7 @@ var typeMap$2 = {
|
|
|
29702
29833
|
}
|
|
29703
29834
|
};
|
|
29704
29835
|
var PublicReissue = function PublicReissue(props) {
|
|
29705
|
-
var _typeMap$type, _typeMap$type2, _typeMap$
|
|
29836
|
+
var _typeMap$type, _typeMap$type2, _typeMap$type21, _typeMap$type39, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _value$typeMap$type$s8, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56, _typeMap$type57, _value$typeMap$type$s9, _typeMap$type58, _typeMap$type59, _typeMap$type60, _typeMap$type61;
|
|
29706
29837
|
var value = props.value,
|
|
29707
29838
|
onChange = props.onChange,
|
|
29708
29839
|
_props$reasonList = props.reasonList,
|
|
@@ -29802,23 +29933,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29802
29933
|
var newValue = _objectSpread2({}, value);
|
|
29803
29934
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName] = val;
|
|
29804
29935
|
if (typeName === '1') {
|
|
29805
|
-
var _typeMap$type16;
|
|
29936
|
+
var _typeMap$type16, _typeMap$type17;
|
|
29806
29937
|
newValue[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key] = getGoodDetails({
|
|
29807
|
-
mode: isStrict
|
|
29938
|
+
mode: isStrict,
|
|
29939
|
+
// 如果没有选择系统单,拿平台单下所有商品
|
|
29940
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.hideSelectSysOrderId
|
|
29808
29941
|
});
|
|
29809
29942
|
} else if (typeName === '2') {
|
|
29810
|
-
var _typeMap$
|
|
29943
|
+
var _typeMap$type18;
|
|
29811
29944
|
// 切换到非原单,清空列表
|
|
29812
|
-
newValue[(_typeMap$
|
|
29945
|
+
newValue[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key] = [];
|
|
29813
29946
|
}
|
|
29814
29947
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29815
29948
|
};
|
|
29816
29949
|
var handleModeChange = function handleModeChange(mode) {
|
|
29817
|
-
var _value$typeMap$type$t, _typeMap$
|
|
29818
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$
|
|
29950
|
+
var _value$typeMap$type$t, _typeMap$type19, _typeMap$type20;
|
|
29951
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
|
|
29819
29952
|
setIsStrict(mode);
|
|
29820
29953
|
if (!isOriginalOrder) return;
|
|
29821
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
29954
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key, getGoodDetails({
|
|
29822
29955
|
mode: mode
|
|
29823
29956
|
}))));
|
|
29824
29957
|
};
|
|
@@ -29835,7 +29968,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29835
29968
|
});
|
|
29836
29969
|
}
|
|
29837
29970
|
return map;
|
|
29838
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29971
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key]]);
|
|
29839
29972
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
29840
29973
|
var processedSysItemIdsRef = useRef(new Set());
|
|
29841
29974
|
useEffect(function () {
|
|
@@ -29907,13 +30040,13 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29907
30040
|
}
|
|
29908
30041
|
}, [sysItemIdMap]);
|
|
29909
30042
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
29910
|
-
var _typeMap$
|
|
30043
|
+
var _typeMap$type22, _typeMap$type23, _value$typeMap$type$s6, _typeMap$type24, _typeMap$type25, _typeMap$type26, _typeMap$type27;
|
|
29911
30044
|
var mode = _ref5.mode,
|
|
29912
30045
|
sysOrderNo = _ref5.sysOrderNo,
|
|
29913
30046
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
29914
30047
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
29915
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29916
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30048
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrder];
|
|
30049
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo];
|
|
29917
30050
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
29918
30051
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
29919
30052
|
});
|
|
@@ -29940,12 +30073,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29940
30073
|
canEdit: true
|
|
29941
30074
|
};
|
|
29942
30075
|
}
|
|
29943
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
30076
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
29944
30077
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
29945
30078
|
var _order$typeMap$type$g;
|
|
29946
30079
|
return 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;
|
|
29947
30080
|
});
|
|
29948
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
30081
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.updateGoodsHandle(orders, orderRest, type) : [];
|
|
29949
30082
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
29950
30083
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
29951
30084
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -29953,30 +30086,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29953
30086
|
return list;
|
|
29954
30087
|
};
|
|
29955
30088
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
29956
|
-
var _typeMap$
|
|
30089
|
+
var _typeMap$type28;
|
|
29957
30090
|
var newValue = _objectSpread2({}, value);
|
|
29958
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30091
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)] = val || [];
|
|
29959
30092
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29960
30093
|
};
|
|
29961
30094
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
29962
|
-
var _typeMap$
|
|
30095
|
+
var _typeMap$type29, _typeMap$type30, _value$typeMap$type$t2, _typeMap$type35, _value$typeMap$type$t3, _typeMap$type37;
|
|
29963
30096
|
var newValue = _objectSpread2({}, value);
|
|
29964
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29965
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29966
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
29967
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
30097
|
+
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.systemOrderNo)] = val;
|
|
30098
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType) {
|
|
30099
|
+
var _value$typeMap$type$s7, _typeMap$type31, _typeMap$type33, _typeMap$type34;
|
|
30100
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
29968
30101
|
var targetOrder = val && orders.find(function (oItem) {
|
|
29969
|
-
var _typeMap$
|
|
29970
|
-
return oItem[(_typeMap$
|
|
30102
|
+
var _typeMap$type32;
|
|
30103
|
+
return oItem[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.oIdKey] === val;
|
|
29971
30104
|
});
|
|
29972
|
-
newValue[(_typeMap$
|
|
29973
|
-
}
|
|
29974
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
29975
|
-
var _typeMap$
|
|
29976
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29977
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
29978
|
-
var _typeMap$
|
|
29979
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30105
|
+
newValue[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.orderTypeKey];
|
|
30106
|
+
}
|
|
30107
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
30108
|
+
var _typeMap$type36;
|
|
30109
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)] = [];
|
|
30110
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
30111
|
+
var _typeMap$type38;
|
|
30112
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = getGoodDetails({
|
|
29980
30113
|
mode: isStrict,
|
|
29981
30114
|
sysOrderNo: val
|
|
29982
30115
|
});
|
|
@@ -29984,28 +30117,28 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29984
30117
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
29985
30118
|
};
|
|
29986
30119
|
//显示选择商品按钮
|
|
29987
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30120
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.systemOrderNo]);
|
|
29988
30121
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
29989
|
-
var _typeMap$
|
|
30122
|
+
var _typeMap$type40, _typeMap$type41, _typeMap$type42, _uniqBy, _typeMap$type43;
|
|
29990
30123
|
var newValue = _objectSpread2({}, value);
|
|
29991
30124
|
// 原订单商品
|
|
29992
30125
|
var originTradeGoodList = getGoodDetails({
|
|
29993
30126
|
mode: isStrict,
|
|
29994
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30127
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.isShowSelectTradeGoods
|
|
29995
30128
|
}) || [];
|
|
29996
30129
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
29997
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29998
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29999
|
-
var _typeMap$
|
|
30000
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30130
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)]) || [];
|
|
30131
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
30132
|
+
var _typeMap$type44;
|
|
30133
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.uniqueKey) || 'uuid']);
|
|
30001
30134
|
});
|
|
30002
30135
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
30003
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30136
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.key)], value, isStrict]);
|
|
30004
30137
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
30005
30138
|
gutter: 8,
|
|
30006
30139
|
wrap: true,
|
|
30007
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30008
|
-
}, /*#__PURE__*/React.createElement(Col, {
|
|
30140
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.key) || "".concat(Date.now())
|
|
30141
|
+
}, !(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.hideSelectSysOrderId) && /*#__PURE__*/React.createElement(Col, {
|
|
30009
30142
|
className: "gutter-row",
|
|
30010
30143
|
xs: {
|
|
30011
30144
|
span: 11
|
|
@@ -30020,12 +30153,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30020
30153
|
},
|
|
30021
30154
|
disabled: disabled,
|
|
30022
30155
|
allowClear: false,
|
|
30023
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30156
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderNo)],
|
|
30024
30157
|
onChange: function onChange(val) {
|
|
30025
30158
|
return changeSystemOrderHandle(val);
|
|
30026
30159
|
},
|
|
30027
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30028
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
30160
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
30161
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
30029
30162
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30030
30163
|
key: item[typeMap$2[type].oIdKey],
|
|
30031
30164
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -30047,11 +30180,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30047
30180
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
30048
30181
|
allowClear: false,
|
|
30049
30182
|
options: reasonList,
|
|
30050
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30183
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.typeName)],
|
|
30051
30184
|
onChange: function onChange(val) {
|
|
30052
30185
|
return changeTypeHandle(val);
|
|
30053
30186
|
}
|
|
30054
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30187
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
30055
30188
|
className: "gutter-row",
|
|
30056
30189
|
xs: {
|
|
30057
30190
|
span: 11
|
|
@@ -30060,7 +30193,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30060
30193
|
span: 6
|
|
30061
30194
|
}
|
|
30062
30195
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
30063
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30196
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrderBillType)],
|
|
30064
30197
|
disabled: disabled,
|
|
30065
30198
|
readOnly: true
|
|
30066
30199
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -30071,25 +30204,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30071
30204
|
canUpdateNumber: showChangeBtn,
|
|
30072
30205
|
hasSelectedSystemOrder: showChangeBtn,
|
|
30073
30206
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
30074
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30075
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30207
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.alwaysShowChooseErpGoodsBtn,
|
|
30208
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.showErpGoodsBtn,
|
|
30076
30209
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
30077
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30210
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.key)],
|
|
30078
30211
|
onChange: function onChange(val) {
|
|
30079
30212
|
return changeGoodHandle(val);
|
|
30080
30213
|
},
|
|
30081
30214
|
onModeChange: handleModeChange,
|
|
30082
30215
|
showModeBtn: showModeBtn,
|
|
30083
30216
|
isStrict: isStrict,
|
|
30084
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30085
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
30086
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30217
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.isShowSelectTradeGoods,
|
|
30218
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
30219
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type59 = typeMap$2[type]) === null || _typeMap$type59 === void 0 ? void 0 : _typeMap$type59.systemOrderNo)]] : [],
|
|
30087
30220
|
tradeGoods: {
|
|
30088
30221
|
originDataSource: getGoodDetails({
|
|
30089
30222
|
mode: isStrict,
|
|
30090
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30223
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type60 = typeMap$2[type]) === null || _typeMap$type60 === void 0 ? void 0 : _typeMap$type60.isShowSelectTradeGoods
|
|
30091
30224
|
}),
|
|
30092
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30225
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type61 = typeMap$2[type]) === null || _typeMap$type61 === void 0 ? void 0 : _typeMap$type61.uniqueKey) || 'uuid',
|
|
30093
30226
|
selectedGoodsChange: selectedGoodsChange
|
|
30094
30227
|
}
|
|
30095
30228
|
})));
|
|
@@ -30457,7 +30590,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
30457
30590
|
key: item.value
|
|
30458
30591
|
}, item.label);
|
|
30459
30592
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
30460
|
-
placeholder: "\u5B9D\u8D1D\
|
|
30593
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
30461
30594
|
allowClear: true,
|
|
30462
30595
|
enterButton: "\u641C\u7D22",
|
|
30463
30596
|
style: {
|
|
@@ -32,6 +32,7 @@ interface LogisticsInterceptionProps {
|
|
|
32
32
|
showReason?: boolean;
|
|
33
33
|
onJumpPage?: (val: any) => void;
|
|
34
34
|
preCreateAndNotModified?: boolean;
|
|
35
|
+
interceptTypeDefaults?: Record<string, string>;
|
|
35
36
|
}
|
|
36
37
|
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
|
|
37
38
|
export default LogisticsInterception;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getYesOrNo: (val: boolean | string | number) => "是" | "否" | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1-beta.5",
|
|
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.9.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.9.1-beta.5",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "77a235e1fb430d21f43e9616f753767f69c441af"
|
|
70
70
|
}
|