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