@kmkf-fe-packages/basic-components 2.6.1-beta.1 → 2.6.1-beta.11
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 +50 -6
- package/dist/index.js +50 -6
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -8601,6 +8601,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8601
8601
|
REPAIR_ORDER_STATUS: {
|
|
8602
8602
|
status: 'repairOrderStatusValue',
|
|
8603
8603
|
reason: 'repairOrderStatusReason'
|
|
8604
|
+
},
|
|
8605
|
+
ERP_REMARK: {
|
|
8606
|
+
status: 'erpRemarkStatusValue',
|
|
8607
|
+
reason: 'erpRemarkStatusReason'
|
|
8604
8608
|
}
|
|
8605
8609
|
};
|
|
8606
8610
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9446,6 +9450,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9446
9450
|
REISSUE_LOGISTICS: processReissueLogistics,
|
|
9447
9451
|
REISSUE_STATUS: processCallBackStatus,
|
|
9448
9452
|
ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
|
|
9453
|
+
ERP_REMARK: processCallBackStatus,
|
|
9449
9454
|
CREATE_STATUS: processCallBackStatus,
|
|
9450
9455
|
INVOICE_STATUS: processCallBackStatus,
|
|
9451
9456
|
INVOICING_STATUS: processCallBackStatus,
|
|
@@ -16359,6 +16364,10 @@ var searchFormData = [{
|
|
|
16359
16364
|
label: '款式编码',
|
|
16360
16365
|
name: 'styleCode',
|
|
16361
16366
|
type: 'optionalInput'
|
|
16367
|
+
}, {
|
|
16368
|
+
label: '规格值',
|
|
16369
|
+
name: 'propertiesValue',
|
|
16370
|
+
type: 'optionalInput'
|
|
16362
16371
|
}, {
|
|
16363
16372
|
label: '商品类型',
|
|
16364
16373
|
name: 'skuType',
|
|
@@ -24076,7 +24085,7 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24076
24085
|
sysTitle: item.goodName,
|
|
24077
24086
|
title: null,
|
|
24078
24087
|
shortTitle: item.goodShortName,
|
|
24079
|
-
sysOuterId: item.
|
|
24088
|
+
sysOuterId: item.specNo,
|
|
24080
24089
|
outerId: item.goodNo,
|
|
24081
24090
|
skuSysId: item.specId,
|
|
24082
24091
|
sysSkuId: item.specId,
|
|
@@ -26395,11 +26404,46 @@ var index$2 = (function (props) {
|
|
|
26395
26404
|
return _ref13.apply(this, arguments);
|
|
26396
26405
|
};
|
|
26397
26406
|
}();
|
|
26398
|
-
var
|
|
26399
|
-
|
|
26407
|
+
var rowKey = rowKeyMap[type] || 'billNo';
|
|
26408
|
+
var handleRadioChange = function handleRadioChange(record) {
|
|
26409
|
+
var _value$selectIds;
|
|
26410
|
+
if (disabled) return;
|
|
26411
|
+
var currentKey = String(value === null || value === void 0 ? void 0 : (_value$selectIds = value.selectIds) === null || _value$selectIds === void 0 ? void 0 : _value$selectIds[0]);
|
|
26412
|
+
var rowKeyVal = String(record[rowKey]);
|
|
26413
|
+
if (currentKey && currentKey === rowKeyVal) {
|
|
26414
|
+
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26415
|
+
selectIds: [],
|
|
26416
|
+
selectedRows: []
|
|
26417
|
+
}));
|
|
26418
|
+
} else {
|
|
26419
|
+
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26420
|
+
selectIds: [rowKeyVal],
|
|
26421
|
+
selectedRows: [record]
|
|
26422
|
+
}));
|
|
26423
|
+
}
|
|
26424
|
+
};
|
|
26425
|
+
var radioColumn = isRadio ? {
|
|
26426
|
+
width: 50,
|
|
26427
|
+
fixed: true,
|
|
26428
|
+
render: function render(_, record) {
|
|
26429
|
+
var _value$selectIds2;
|
|
26430
|
+
var checked = String(value === null || value === void 0 ? void 0 : (_value$selectIds2 = value.selectIds) === null || _value$selectIds2 === void 0 ? void 0 : _value$selectIds2[0]) === String(record[rowKey]);
|
|
26431
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
26432
|
+
checked: checked,
|
|
26433
|
+
onClick: function onClick(e) {
|
|
26434
|
+
e.preventDefault();
|
|
26435
|
+
handleRadioChange(record);
|
|
26436
|
+
},
|
|
26437
|
+
disabled: disabled
|
|
26438
|
+
});
|
|
26439
|
+
}
|
|
26440
|
+
} : null;
|
|
26441
|
+
var displayColumns = isRadio && radioColumn ? [radioColumn].concat(_toConsumableArray(columns)) : columns;
|
|
26442
|
+
var rowSelection = isRadio ? undefined : {
|
|
26443
|
+
type: 'checkbox',
|
|
26400
26444
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
26401
26445
|
fixed: true,
|
|
26402
|
-
onChange: function onChange(selectedRowKeys, selectedRows
|
|
26446
|
+
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
26403
26447
|
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26404
26448
|
selectIds: selectedRowKeys,
|
|
26405
26449
|
selectedRows: selectedRows
|
|
@@ -26445,9 +26489,9 @@ var index$2 = (function (props) {
|
|
|
26445
26489
|
allowClear: true
|
|
26446
26490
|
})), /*#__PURE__*/React.createElement(Table, {
|
|
26447
26491
|
dataSource: filteredData,
|
|
26448
|
-
columns:
|
|
26492
|
+
columns: displayColumns,
|
|
26449
26493
|
rowSelection: rowSelection,
|
|
26450
|
-
rowKey:
|
|
26494
|
+
rowKey: rowKey,
|
|
26451
26495
|
size: "small",
|
|
26452
26496
|
pagination: false,
|
|
26453
26497
|
scroll: {
|
package/dist/index.js
CHANGED
|
@@ -8616,6 +8616,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8616
8616
|
REPAIR_ORDER_STATUS: {
|
|
8617
8617
|
status: 'repairOrderStatusValue',
|
|
8618
8618
|
reason: 'repairOrderStatusReason'
|
|
8619
|
+
},
|
|
8620
|
+
ERP_REMARK: {
|
|
8621
|
+
status: 'erpRemarkStatusValue',
|
|
8622
|
+
reason: 'erpRemarkStatusReason'
|
|
8619
8623
|
}
|
|
8620
8624
|
};
|
|
8621
8625
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9461,6 +9465,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9461
9465
|
REISSUE_LOGISTICS: processReissueLogistics,
|
|
9462
9466
|
REISSUE_STATUS: processCallBackStatus,
|
|
9463
9467
|
ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
|
|
9468
|
+
ERP_REMARK: processCallBackStatus,
|
|
9464
9469
|
CREATE_STATUS: processCallBackStatus,
|
|
9465
9470
|
INVOICE_STATUS: processCallBackStatus,
|
|
9466
9471
|
INVOICING_STATUS: processCallBackStatus,
|
|
@@ -16374,6 +16379,10 @@ var searchFormData = [{
|
|
|
16374
16379
|
label: '款式编码',
|
|
16375
16380
|
name: 'styleCode',
|
|
16376
16381
|
type: 'optionalInput'
|
|
16382
|
+
}, {
|
|
16383
|
+
label: '规格值',
|
|
16384
|
+
name: 'propertiesValue',
|
|
16385
|
+
type: 'optionalInput'
|
|
16377
16386
|
}, {
|
|
16378
16387
|
label: '商品类型',
|
|
16379
16388
|
name: 'skuType',
|
|
@@ -24091,7 +24100,7 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24091
24100
|
sysTitle: item.goodName,
|
|
24092
24101
|
title: null,
|
|
24093
24102
|
shortTitle: item.goodShortName,
|
|
24094
|
-
sysOuterId: item.
|
|
24103
|
+
sysOuterId: item.specNo,
|
|
24095
24104
|
outerId: item.goodNo,
|
|
24096
24105
|
skuSysId: item.specId,
|
|
24097
24106
|
sysSkuId: item.specId,
|
|
@@ -26410,11 +26419,46 @@ var index$2 = (function (props) {
|
|
|
26410
26419
|
return _ref13.apply(this, arguments);
|
|
26411
26420
|
};
|
|
26412
26421
|
}();
|
|
26413
|
-
var
|
|
26414
|
-
|
|
26422
|
+
var rowKey = rowKeyMap[type] || 'billNo';
|
|
26423
|
+
var handleRadioChange = function handleRadioChange(record) {
|
|
26424
|
+
var _value$selectIds;
|
|
26425
|
+
if (disabled) return;
|
|
26426
|
+
var currentKey = String(value === null || value === void 0 ? void 0 : (_value$selectIds = value.selectIds) === null || _value$selectIds === void 0 ? void 0 : _value$selectIds[0]);
|
|
26427
|
+
var rowKeyVal = String(record[rowKey]);
|
|
26428
|
+
if (currentKey && currentKey === rowKeyVal) {
|
|
26429
|
+
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26430
|
+
selectIds: [],
|
|
26431
|
+
selectedRows: []
|
|
26432
|
+
}));
|
|
26433
|
+
} else {
|
|
26434
|
+
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26435
|
+
selectIds: [rowKeyVal],
|
|
26436
|
+
selectedRows: [record]
|
|
26437
|
+
}));
|
|
26438
|
+
}
|
|
26439
|
+
};
|
|
26440
|
+
var radioColumn = isRadio ? {
|
|
26441
|
+
width: 50,
|
|
26442
|
+
fixed: true,
|
|
26443
|
+
render: function render(_, record) {
|
|
26444
|
+
var _value$selectIds2;
|
|
26445
|
+
var checked = String(value === null || value === void 0 ? void 0 : (_value$selectIds2 = value.selectIds) === null || _value$selectIds2 === void 0 ? void 0 : _value$selectIds2[0]) === String(record[rowKey]);
|
|
26446
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Radio, {
|
|
26447
|
+
checked: checked,
|
|
26448
|
+
onClick: function onClick(e) {
|
|
26449
|
+
e.preventDefault();
|
|
26450
|
+
handleRadioChange(record);
|
|
26451
|
+
},
|
|
26452
|
+
disabled: disabled
|
|
26453
|
+
});
|
|
26454
|
+
}
|
|
26455
|
+
} : null;
|
|
26456
|
+
var displayColumns = isRadio && radioColumn ? [radioColumn].concat(_toConsumableArray(columns)) : columns;
|
|
26457
|
+
var rowSelection = isRadio ? undefined : {
|
|
26458
|
+
type: 'checkbox',
|
|
26415
26459
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
26416
26460
|
fixed: true,
|
|
26417
|
-
onChange: function onChange(selectedRowKeys, selectedRows
|
|
26461
|
+
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
26418
26462
|
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26419
26463
|
selectIds: selectedRowKeys,
|
|
26420
26464
|
selectedRows: selectedRows
|
|
@@ -26460,9 +26504,9 @@ var index$2 = (function (props) {
|
|
|
26460
26504
|
allowClear: true
|
|
26461
26505
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
26462
26506
|
dataSource: filteredData,
|
|
26463
|
-
columns:
|
|
26507
|
+
columns: displayColumns,
|
|
26464
26508
|
rowSelection: rowSelection,
|
|
26465
|
-
rowKey:
|
|
26509
|
+
rowKey: rowKey,
|
|
26466
26510
|
size: "small",
|
|
26467
26511
|
pagination: false,
|
|
26468
26512
|
scroll: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.6.1-beta.
|
|
3
|
+
"version": "2.6.1-beta.11",
|
|
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.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.6.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": "d65356cd4c472acc03938936df301a92c41bb20d"
|
|
70
70
|
}
|