@kmkf-fe-packages/basic-components 2.2.44 → 2.2.45
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 +147 -57
- package/dist/index.js +146 -56
- package/dist/src/bs/component/model/Columns/Erp/km.d.ts +6 -0
- package/dist/src/bs/component/model/components/SearchForm/components.d.ts +2 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +4 -3
- package/dist/src/bs/component/model/components/SearchForm/utils.d.ts +5 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -14097,7 +14097,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
|
|
|
14097
14097
|
var css_248z$b = ".GoodModalColumns .ellipsis-text-3 {\n display: -webkit-box;\n overflow: hidden;\n white-space: normal !important;\n text-overflow: ellipsis;\n word-break: break-all;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n}\n";
|
|
14098
14098
|
styleInject(css_248z$b);
|
|
14099
14099
|
|
|
14100
|
-
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width:
|
|
14100
|
+
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width: 50% !important;\n }\n .search-form .ant-input-affix-wrapper,\n .search-form .ant-select,\n .search-form .ant-select-selector {\n width: 100% !important;\n }\n .search-form .optional-input-select {\n width: 70px !important;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content .ant-btn {\n width: calc((100% - 8px) / 2) !important;\n padding: 0 !important;\n }\n}\n";
|
|
14101
14101
|
styleInject(css_248z$c);
|
|
14102
14102
|
|
|
14103
14103
|
var _excluded$d = ["shopId"];
|
|
@@ -14981,7 +14981,9 @@ var kmColumns = [{
|
|
|
14981
14981
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
14982
14982
|
ellipsis: true,
|
|
14983
14983
|
width: 150,
|
|
14984
|
-
render:
|
|
14984
|
+
render: function render(type) {
|
|
14985
|
+
return renderTextEllipsis((kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[type]) || type);
|
|
14986
|
+
}
|
|
14985
14987
|
}, {
|
|
14986
14988
|
dataIndex: 'specName',
|
|
14987
14989
|
title: "SKU\u540D\u79F0",
|
|
@@ -15318,6 +15320,64 @@ var useGetColumns = (function (type) {
|
|
|
15318
15320
|
return [columns, showColumnsDataIndexList, loading];
|
|
15319
15321
|
});
|
|
15320
15322
|
|
|
15323
|
+
var compareSymbolList = [{
|
|
15324
|
+
label: '模糊',
|
|
15325
|
+
value: 'like'
|
|
15326
|
+
}, {
|
|
15327
|
+
label: '精准',
|
|
15328
|
+
value: 'eq'
|
|
15329
|
+
}];
|
|
15330
|
+
var OptionalInput = function OptionalInput(props) {
|
|
15331
|
+
var value = props.value,
|
|
15332
|
+
onChange = props.onChange,
|
|
15333
|
+
_props$placeholder = props.placeholder,
|
|
15334
|
+
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
15335
|
+
onPressEnter = props.onPressEnter,
|
|
15336
|
+
onBlur = props.onBlur,
|
|
15337
|
+
formItemProps = props.formItemProps;
|
|
15338
|
+
var handleSelectChange = function handleSelectChange(compareSymbol) {
|
|
15339
|
+
if (typeof onChange === 'function') {
|
|
15340
|
+
onChange({
|
|
15341
|
+
type: compareSymbol || 'like',
|
|
15342
|
+
inputValue: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15343
|
+
});
|
|
15344
|
+
}
|
|
15345
|
+
};
|
|
15346
|
+
var handleInputChange = function handleInputChange(e) {
|
|
15347
|
+
if (typeof onChange === 'function') {
|
|
15348
|
+
onChange({
|
|
15349
|
+
type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15350
|
+
inputValue: e.target.value
|
|
15351
|
+
});
|
|
15352
|
+
}
|
|
15353
|
+
};
|
|
15354
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15355
|
+
style: {
|
|
15356
|
+
display: 'flex',
|
|
15357
|
+
alignItems: 'center'
|
|
15358
|
+
}
|
|
15359
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
15360
|
+
className: "optional-input-select",
|
|
15361
|
+
style: {
|
|
15362
|
+
width: '70px'
|
|
15363
|
+
},
|
|
15364
|
+
options: compareSymbolList,
|
|
15365
|
+
onChange: handleSelectChange,
|
|
15366
|
+
value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15367
|
+
onBlur: onBlur
|
|
15368
|
+
}), /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
15369
|
+
style: {
|
|
15370
|
+
width: '150px'
|
|
15371
|
+
},
|
|
15372
|
+
allowClear: true,
|
|
15373
|
+
placeholder: placeholder,
|
|
15374
|
+
onChange: handleInputChange,
|
|
15375
|
+
onPressEnter: onPressEnter,
|
|
15376
|
+
onBlur: onBlur,
|
|
15377
|
+
value: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15378
|
+
}, formItemProps)));
|
|
15379
|
+
};
|
|
15380
|
+
|
|
15321
15381
|
function SearchForm(_ref) {
|
|
15322
15382
|
var searchFormData = _ref.searchFormData,
|
|
15323
15383
|
form = _ref.form,
|
|
@@ -15369,7 +15429,16 @@ function SearchForm(_ref) {
|
|
|
15369
15429
|
style: {
|
|
15370
15430
|
marginBottom: '12px'
|
|
15371
15431
|
}
|
|
15372
|
-
}, type === '
|
|
15432
|
+
}, type === 'optionalInput' ? /*#__PURE__*/React.createElement(OptionalInput, {
|
|
15433
|
+
onPressEnter: function onPressEnter() {
|
|
15434
|
+
return submitForm();
|
|
15435
|
+
},
|
|
15436
|
+
onBlur: function onBlur() {
|
|
15437
|
+
return submitForm();
|
|
15438
|
+
},
|
|
15439
|
+
placeholder: label,
|
|
15440
|
+
formItemProps: formItemProps
|
|
15441
|
+
}) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
15373
15442
|
placeholder: label,
|
|
15374
15443
|
showSearch: true,
|
|
15375
15444
|
allowClear: true,
|
|
@@ -15410,24 +15479,35 @@ function SearchForm(_ref) {
|
|
|
15410
15479
|
}, "\u91CD\u7F6E")));
|
|
15411
15480
|
}
|
|
15412
15481
|
|
|
15482
|
+
var transformFormData = function transformFormData(formData) {
|
|
15483
|
+
var conditionList = [];
|
|
15484
|
+
for (var key in formData) {
|
|
15485
|
+
if (formData[key]) {
|
|
15486
|
+
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15487
|
+
var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
|
|
15488
|
+
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : 'like';
|
|
15489
|
+
conditionList.push({
|
|
15490
|
+
leftValue: key,
|
|
15491
|
+
compareSymbol: compareSymbol,
|
|
15492
|
+
rightValue: value
|
|
15493
|
+
});
|
|
15494
|
+
}
|
|
15495
|
+
}
|
|
15496
|
+
return conditionList;
|
|
15497
|
+
};
|
|
15498
|
+
|
|
15413
15499
|
var getTableData = function getTableData(_ref, formData) {
|
|
15414
|
-
var _formData$brandIds;
|
|
15415
15500
|
var current = _ref.current,
|
|
15416
15501
|
pageSize = _ref.pageSize;
|
|
15417
|
-
var
|
|
15418
|
-
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
15419
|
-
skuCode: formData.skuCode || null,
|
|
15420
|
-
skuName: formData.skuName || null,
|
|
15421
|
-
goodName: formData.goodName || null,
|
|
15422
|
-
goodNo: formData.goodNo || null
|
|
15423
|
-
};
|
|
15502
|
+
var conditionList = transformFormData(formData);
|
|
15424
15503
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15425
15504
|
method: 'post',
|
|
15426
|
-
data:
|
|
15505
|
+
data: {
|
|
15427
15506
|
pageSize: pageSize,
|
|
15428
15507
|
pageNo: current,
|
|
15429
|
-
platform: 'WDT_ERP'
|
|
15430
|
-
|
|
15508
|
+
platform: 'WDT_ERP',
|
|
15509
|
+
conditionList: conditionList
|
|
15510
|
+
}
|
|
15431
15511
|
}).then(function (res) {
|
|
15432
15512
|
var _res$data = res.data,
|
|
15433
15513
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15521,13 +15601,15 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15521
15601
|
}, {
|
|
15522
15602
|
label: 'SKU编码',
|
|
15523
15603
|
name: 'skuCode',
|
|
15524
|
-
dataIndex: 'specNo'
|
|
15604
|
+
dataIndex: 'specNo',
|
|
15605
|
+
type: 'optionalInput'
|
|
15525
15606
|
}, {
|
|
15526
15607
|
label: '商品名称',
|
|
15527
15608
|
name: 'goodName'
|
|
15528
15609
|
}, {
|
|
15529
15610
|
label: '商品编码',
|
|
15530
|
-
name: 'goodNo'
|
|
15611
|
+
name: 'goodNo',
|
|
15612
|
+
type: 'optionalInput'
|
|
15531
15613
|
}, {
|
|
15532
15614
|
label: '品牌',
|
|
15533
15615
|
name: 'brandIds',
|
|
@@ -15717,13 +15799,15 @@ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
|
|
|
15717
15799
|
var getTableData$1 = function getTableData(_ref, formData) {
|
|
15718
15800
|
var current = _ref.current,
|
|
15719
15801
|
pageSize = _ref.pageSize;
|
|
15802
|
+
var conditionList = transformFormData(formData);
|
|
15720
15803
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15721
15804
|
method: 'post',
|
|
15722
|
-
data:
|
|
15805
|
+
data: {
|
|
15723
15806
|
pageSize: pageSize,
|
|
15724
15807
|
pageNo: current,
|
|
15725
|
-
platform: 'JST_ERP'
|
|
15726
|
-
|
|
15808
|
+
platform: 'JST_ERP',
|
|
15809
|
+
conditionList: conditionList
|
|
15810
|
+
}
|
|
15727
15811
|
}).then(function (res) {
|
|
15728
15812
|
var _res$data = res.data,
|
|
15729
15813
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15744,10 +15828,12 @@ var searchFormData = [{
|
|
|
15744
15828
|
name: 'goodName'
|
|
15745
15829
|
}, {
|
|
15746
15830
|
label: '商品编码',
|
|
15747
|
-
name: 'goodNo'
|
|
15831
|
+
name: 'goodNo',
|
|
15832
|
+
type: 'optionalInput'
|
|
15748
15833
|
}, {
|
|
15749
15834
|
label: '款式编码',
|
|
15750
|
-
name: 'styleCode'
|
|
15835
|
+
name: 'styleCode',
|
|
15836
|
+
type: 'optionalInput'
|
|
15751
15837
|
}, {
|
|
15752
15838
|
label: '商品类型',
|
|
15753
15839
|
name: 'skuType',
|
|
@@ -15968,19 +16054,15 @@ var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
|
|
|
15968
16054
|
var getTableData$2 = function getTableData(_ref, formData) {
|
|
15969
16055
|
var current = _ref.current,
|
|
15970
16056
|
pageSize = _ref.pageSize;
|
|
15971
|
-
var
|
|
15972
|
-
goodNo: formData.goodNo || null,
|
|
15973
|
-
goodName: formData.goodName || null,
|
|
15974
|
-
skuCode: formData.skuCode || null,
|
|
15975
|
-
skuId: formData.skuId || null
|
|
15976
|
-
};
|
|
16057
|
+
var conditionList = transformFormData(formData);
|
|
15977
16058
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15978
16059
|
method: 'post',
|
|
15979
|
-
data:
|
|
16060
|
+
data: {
|
|
15980
16061
|
pageSize: pageSize,
|
|
15981
16062
|
pageNo: current,
|
|
15982
|
-
platform: 'BS_E3_ERP'
|
|
15983
|
-
|
|
16063
|
+
platform: 'BS_E3_ERP',
|
|
16064
|
+
conditionList: conditionList
|
|
16065
|
+
}
|
|
15984
16066
|
}).then(function (res) {
|
|
15985
16067
|
var _res$data = res.data,
|
|
15986
16068
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16000,18 +16082,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16000
16082
|
};
|
|
16001
16083
|
var searchFormData$1 = [{
|
|
16002
16084
|
label: '商品货号',
|
|
16003
|
-
name: 'goodNo'
|
|
16085
|
+
name: 'goodNo',
|
|
16086
|
+
type: 'optionalInput'
|
|
16004
16087
|
}, {
|
|
16005
16088
|
label: '商品名称',
|
|
16006
16089
|
name: 'goodName'
|
|
16007
16090
|
}, {
|
|
16008
16091
|
label: 'SKU',
|
|
16009
16092
|
name: 'skuCode',
|
|
16010
|
-
dataIndex: 'specNo'
|
|
16093
|
+
dataIndex: 'specNo',
|
|
16094
|
+
type: 'optionalInput'
|
|
16011
16095
|
}, {
|
|
16012
16096
|
label: 'SKU ID',
|
|
16013
16097
|
name: 'skuId',
|
|
16014
|
-
dataIndex: 'specId'
|
|
16098
|
+
dataIndex: 'specId',
|
|
16099
|
+
type: 'optionalInput'
|
|
16015
16100
|
}];
|
|
16016
16101
|
var GoodList$2 = function GoodList(props, ref) {
|
|
16017
16102
|
var _useState = useState([]),
|
|
@@ -16213,13 +16298,15 @@ var rowCheckKey = 'id';
|
|
|
16213
16298
|
var getTableData$3 = function getTableData(_ref, formData) {
|
|
16214
16299
|
var current = _ref.current,
|
|
16215
16300
|
pageSize = _ref.pageSize;
|
|
16301
|
+
var conditionList = transformFormData(formData);
|
|
16216
16302
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16217
16303
|
method: 'post',
|
|
16218
|
-
data:
|
|
16304
|
+
data: {
|
|
16219
16305
|
pageSize: pageSize,
|
|
16220
16306
|
pageNo: current,
|
|
16221
|
-
platform: 'KM_ERP'
|
|
16222
|
-
|
|
16307
|
+
platform: 'KM_ERP',
|
|
16308
|
+
conditionList: conditionList
|
|
16309
|
+
}
|
|
16223
16310
|
}).then(function (res) {
|
|
16224
16311
|
var _res$data = res.data,
|
|
16225
16312
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16240,7 +16327,8 @@ var searchFormData$2 = [{
|
|
|
16240
16327
|
name: 'goodName'
|
|
16241
16328
|
}, {
|
|
16242
16329
|
label: '商品编码',
|
|
16243
|
-
name: 'goodNo'
|
|
16330
|
+
name: 'goodNo',
|
|
16331
|
+
type: 'optionalInput'
|
|
16244
16332
|
}, {
|
|
16245
16333
|
label: 'SKU名称',
|
|
16246
16334
|
name: 'skuName',
|
|
@@ -16248,7 +16336,8 @@ var searchFormData$2 = [{
|
|
|
16248
16336
|
}, {
|
|
16249
16337
|
label: 'SKU编码',
|
|
16250
16338
|
name: 'skuCode',
|
|
16251
|
-
dataIndex: 'specNo'
|
|
16339
|
+
dataIndex: 'specNo',
|
|
16340
|
+
type: 'optionalInput'
|
|
16252
16341
|
}];
|
|
16253
16342
|
var GoodList$3 = function GoodList(props, ref) {
|
|
16254
16343
|
var _useState = useState([]),
|
|
@@ -16456,20 +16545,15 @@ var KmGoodsModal = /*#__PURE__*/forwardRef(ErpGoodsModal);
|
|
|
16456
16545
|
var getTableData$4 = function getTableData(_ref, formData) {
|
|
16457
16546
|
var current = _ref.current,
|
|
16458
16547
|
pageSize = _ref.pageSize;
|
|
16459
|
-
var
|
|
16460
|
-
goodShortName: formData.goodShortName || null,
|
|
16461
|
-
skuName: formData.skuName || null,
|
|
16462
|
-
skuCode: formData.skuCode || null,
|
|
16463
|
-
goodName: formData.goodName || null,
|
|
16464
|
-
goodNo: formData.goodNo || null
|
|
16465
|
-
};
|
|
16548
|
+
var conditionList = transformFormData(formData);
|
|
16466
16549
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16467
16550
|
method: 'post',
|
|
16468
|
-
data:
|
|
16551
|
+
data: {
|
|
16469
16552
|
pageSize: pageSize,
|
|
16470
16553
|
pageNo: current,
|
|
16471
|
-
platform: 'GY_ERP'
|
|
16472
|
-
|
|
16554
|
+
platform: 'GY_ERP',
|
|
16555
|
+
conditionList: conditionList
|
|
16556
|
+
}
|
|
16473
16557
|
}).then(function (res) {
|
|
16474
16558
|
var _res$data = res.data,
|
|
16475
16559
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16495,13 +16579,15 @@ var searchFormData$3 = [{
|
|
|
16495
16579
|
}, {
|
|
16496
16580
|
label: '商品sku编码',
|
|
16497
16581
|
name: 'skuCode',
|
|
16498
|
-
dataIndex: 'specNo'
|
|
16582
|
+
dataIndex: 'specNo',
|
|
16583
|
+
type: 'optionalInput'
|
|
16499
16584
|
}, {
|
|
16500
16585
|
label: '商品名称',
|
|
16501
16586
|
name: 'goodName'
|
|
16502
16587
|
}, {
|
|
16503
16588
|
label: '商品编码',
|
|
16504
|
-
name: 'goodNo'
|
|
16589
|
+
name: 'goodNo',
|
|
16590
|
+
type: 'optionalInput'
|
|
16505
16591
|
}];
|
|
16506
16592
|
var GoodList$4 = function GoodList(props, ref) {
|
|
16507
16593
|
var _useState = useState([]),
|
|
@@ -18121,13 +18207,15 @@ var GyGoodsModal$2 = /*#__PURE__*/forwardRef(GyGoodsModal$1);
|
|
|
18121
18207
|
var getTableData$5 = function getTableData(_ref, formData) {
|
|
18122
18208
|
var current = _ref.current,
|
|
18123
18209
|
pageSize = _ref.pageSize;
|
|
18210
|
+
var conditionList = transformFormData(formData);
|
|
18124
18211
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18125
18212
|
method: 'post',
|
|
18126
|
-
data:
|
|
18213
|
+
data: {
|
|
18127
18214
|
pageSize: pageSize,
|
|
18128
18215
|
pageNo: current,
|
|
18129
|
-
platform: 'JY_ERP'
|
|
18130
|
-
|
|
18216
|
+
platform: 'JY_ERP',
|
|
18217
|
+
conditionList: conditionList
|
|
18218
|
+
}
|
|
18131
18219
|
}).then(function (res) {
|
|
18132
18220
|
var _res$data = res.data,
|
|
18133
18221
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18150,13 +18238,15 @@ var searchFormData$4 = [{
|
|
|
18150
18238
|
}, {
|
|
18151
18239
|
label: '规格编码',
|
|
18152
18240
|
name: 'skuCode',
|
|
18153
|
-
dataIndex: 'specNo'
|
|
18241
|
+
dataIndex: 'specNo',
|
|
18242
|
+
type: 'optionalInput'
|
|
18154
18243
|
}, {
|
|
18155
18244
|
label: '商品名称',
|
|
18156
18245
|
name: 'goodName'
|
|
18157
18246
|
}, {
|
|
18158
18247
|
label: '商品编码',
|
|
18159
|
-
name: 'goodNo'
|
|
18248
|
+
name: 'goodNo',
|
|
18249
|
+
type: 'optionalInput'
|
|
18160
18250
|
}];
|
|
18161
18251
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18162
18252
|
var _useState = useState([]),
|
|
@@ -22257,7 +22347,7 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
22257
22347
|
sysPicPath: item.goodPicUrl,
|
|
22258
22348
|
payment: null,
|
|
22259
22349
|
price: item.retailPrice,
|
|
22260
|
-
type: null,
|
|
22350
|
+
type: (kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
|
|
22261
22351
|
uuid: uuid(),
|
|
22262
22352
|
canDelete: true,
|
|
22263
22353
|
canEdit: true
|
package/dist/index.js
CHANGED
|
@@ -14112,7 +14112,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
|
|
|
14112
14112
|
var css_248z$b = ".GoodModalColumns .ellipsis-text-3 {\n display: -webkit-box;\n overflow: hidden;\n white-space: normal !important;\n text-overflow: ellipsis;\n word-break: break-all;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n}\n";
|
|
14113
14113
|
styleInject(css_248z$b);
|
|
14114
14114
|
|
|
14115
|
-
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width:
|
|
14115
|
+
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width: 50% !important;\n }\n .search-form .ant-input-affix-wrapper,\n .search-form .ant-select,\n .search-form .ant-select-selector {\n width: 100% !important;\n }\n .search-form .optional-input-select {\n width: 70px !important;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content .ant-btn {\n width: calc((100% - 8px) / 2) !important;\n padding: 0 !important;\n }\n}\n";
|
|
14116
14116
|
styleInject(css_248z$c);
|
|
14117
14117
|
|
|
14118
14118
|
var _excluded$d = ["shopId"];
|
|
@@ -14996,7 +14996,9 @@ var kmColumns = [{
|
|
|
14996
14996
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
14997
14997
|
ellipsis: true,
|
|
14998
14998
|
width: 150,
|
|
14999
|
-
render:
|
|
14999
|
+
render: function render(type) {
|
|
15000
|
+
return renderTextEllipsis((kmkfUtils.kmSkuTypeMap === null || kmkfUtils.kmSkuTypeMap === void 0 ? void 0 : kmkfUtils.kmSkuTypeMap[type]) || type);
|
|
15001
|
+
}
|
|
15000
15002
|
}, {
|
|
15001
15003
|
dataIndex: 'specName',
|
|
15002
15004
|
title: "SKU\u540D\u79F0",
|
|
@@ -15333,6 +15335,64 @@ var useGetColumns = (function (type) {
|
|
|
15333
15335
|
return [columns, showColumnsDataIndexList, loading];
|
|
15334
15336
|
});
|
|
15335
15337
|
|
|
15338
|
+
var compareSymbolList = [{
|
|
15339
|
+
label: '模糊',
|
|
15340
|
+
value: 'like'
|
|
15341
|
+
}, {
|
|
15342
|
+
label: '精准',
|
|
15343
|
+
value: 'eq'
|
|
15344
|
+
}];
|
|
15345
|
+
var OptionalInput = function OptionalInput(props) {
|
|
15346
|
+
var value = props.value,
|
|
15347
|
+
onChange = props.onChange,
|
|
15348
|
+
_props$placeholder = props.placeholder,
|
|
15349
|
+
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
15350
|
+
onPressEnter = props.onPressEnter,
|
|
15351
|
+
onBlur = props.onBlur,
|
|
15352
|
+
formItemProps = props.formItemProps;
|
|
15353
|
+
var handleSelectChange = function handleSelectChange(compareSymbol) {
|
|
15354
|
+
if (typeof onChange === 'function') {
|
|
15355
|
+
onChange({
|
|
15356
|
+
type: compareSymbol || 'like',
|
|
15357
|
+
inputValue: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15358
|
+
});
|
|
15359
|
+
}
|
|
15360
|
+
};
|
|
15361
|
+
var handleInputChange = function handleInputChange(e) {
|
|
15362
|
+
if (typeof onChange === 'function') {
|
|
15363
|
+
onChange({
|
|
15364
|
+
type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15365
|
+
inputValue: e.target.value
|
|
15366
|
+
});
|
|
15367
|
+
}
|
|
15368
|
+
};
|
|
15369
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15370
|
+
style: {
|
|
15371
|
+
display: 'flex',
|
|
15372
|
+
alignItems: 'center'
|
|
15373
|
+
}
|
|
15374
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
15375
|
+
className: "optional-input-select",
|
|
15376
|
+
style: {
|
|
15377
|
+
width: '70px'
|
|
15378
|
+
},
|
|
15379
|
+
options: compareSymbolList,
|
|
15380
|
+
onChange: handleSelectChange,
|
|
15381
|
+
value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15382
|
+
onBlur: onBlur
|
|
15383
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
15384
|
+
style: {
|
|
15385
|
+
width: '150px'
|
|
15386
|
+
},
|
|
15387
|
+
allowClear: true,
|
|
15388
|
+
placeholder: placeholder,
|
|
15389
|
+
onChange: handleInputChange,
|
|
15390
|
+
onPressEnter: onPressEnter,
|
|
15391
|
+
onBlur: onBlur,
|
|
15392
|
+
value: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15393
|
+
}, formItemProps)));
|
|
15394
|
+
};
|
|
15395
|
+
|
|
15336
15396
|
function SearchForm(_ref) {
|
|
15337
15397
|
var searchFormData = _ref.searchFormData,
|
|
15338
15398
|
form = _ref.form,
|
|
@@ -15384,7 +15444,16 @@ function SearchForm(_ref) {
|
|
|
15384
15444
|
style: {
|
|
15385
15445
|
marginBottom: '12px'
|
|
15386
15446
|
}
|
|
15387
|
-
}, type === '
|
|
15447
|
+
}, type === 'optionalInput' ? /*#__PURE__*/React__default['default'].createElement(OptionalInput, {
|
|
15448
|
+
onPressEnter: function onPressEnter() {
|
|
15449
|
+
return submitForm();
|
|
15450
|
+
},
|
|
15451
|
+
onBlur: function onBlur() {
|
|
15452
|
+
return submitForm();
|
|
15453
|
+
},
|
|
15454
|
+
placeholder: label,
|
|
15455
|
+
formItemProps: formItemProps
|
|
15456
|
+
}) : type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
15388
15457
|
placeholder: label,
|
|
15389
15458
|
showSearch: true,
|
|
15390
15459
|
allowClear: true,
|
|
@@ -15425,24 +15494,35 @@ function SearchForm(_ref) {
|
|
|
15425
15494
|
}, "\u91CD\u7F6E")));
|
|
15426
15495
|
}
|
|
15427
15496
|
|
|
15497
|
+
var transformFormData = function transformFormData(formData) {
|
|
15498
|
+
var conditionList = [];
|
|
15499
|
+
for (var key in formData) {
|
|
15500
|
+
if (formData[key]) {
|
|
15501
|
+
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15502
|
+
var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
|
|
15503
|
+
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : 'like';
|
|
15504
|
+
conditionList.push({
|
|
15505
|
+
leftValue: key,
|
|
15506
|
+
compareSymbol: compareSymbol,
|
|
15507
|
+
rightValue: value
|
|
15508
|
+
});
|
|
15509
|
+
}
|
|
15510
|
+
}
|
|
15511
|
+
return conditionList;
|
|
15512
|
+
};
|
|
15513
|
+
|
|
15428
15514
|
var getTableData = function getTableData(_ref, formData) {
|
|
15429
|
-
var _formData$brandIds;
|
|
15430
15515
|
var current = _ref.current,
|
|
15431
15516
|
pageSize = _ref.pageSize;
|
|
15432
|
-
var
|
|
15433
|
-
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
15434
|
-
skuCode: formData.skuCode || null,
|
|
15435
|
-
skuName: formData.skuName || null,
|
|
15436
|
-
goodName: formData.goodName || null,
|
|
15437
|
-
goodNo: formData.goodNo || null
|
|
15438
|
-
};
|
|
15517
|
+
var conditionList = transformFormData(formData);
|
|
15439
15518
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15440
15519
|
method: 'post',
|
|
15441
|
-
data:
|
|
15520
|
+
data: {
|
|
15442
15521
|
pageSize: pageSize,
|
|
15443
15522
|
pageNo: current,
|
|
15444
|
-
platform: 'WDT_ERP'
|
|
15445
|
-
|
|
15523
|
+
platform: 'WDT_ERP',
|
|
15524
|
+
conditionList: conditionList
|
|
15525
|
+
}
|
|
15446
15526
|
}).then(function (res) {
|
|
15447
15527
|
var _res$data = res.data,
|
|
15448
15528
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15536,13 +15616,15 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15536
15616
|
}, {
|
|
15537
15617
|
label: 'SKU编码',
|
|
15538
15618
|
name: 'skuCode',
|
|
15539
|
-
dataIndex: 'specNo'
|
|
15619
|
+
dataIndex: 'specNo',
|
|
15620
|
+
type: 'optionalInput'
|
|
15540
15621
|
}, {
|
|
15541
15622
|
label: '商品名称',
|
|
15542
15623
|
name: 'goodName'
|
|
15543
15624
|
}, {
|
|
15544
15625
|
label: '商品编码',
|
|
15545
|
-
name: 'goodNo'
|
|
15626
|
+
name: 'goodNo',
|
|
15627
|
+
type: 'optionalInput'
|
|
15546
15628
|
}, {
|
|
15547
15629
|
label: '品牌',
|
|
15548
15630
|
name: 'brandIds',
|
|
@@ -15732,13 +15814,15 @@ var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
|
15732
15814
|
var getTableData$1 = function getTableData(_ref, formData) {
|
|
15733
15815
|
var current = _ref.current,
|
|
15734
15816
|
pageSize = _ref.pageSize;
|
|
15817
|
+
var conditionList = transformFormData(formData);
|
|
15735
15818
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15736
15819
|
method: 'post',
|
|
15737
|
-
data:
|
|
15820
|
+
data: {
|
|
15738
15821
|
pageSize: pageSize,
|
|
15739
15822
|
pageNo: current,
|
|
15740
|
-
platform: 'JST_ERP'
|
|
15741
|
-
|
|
15823
|
+
platform: 'JST_ERP',
|
|
15824
|
+
conditionList: conditionList
|
|
15825
|
+
}
|
|
15742
15826
|
}).then(function (res) {
|
|
15743
15827
|
var _res$data = res.data,
|
|
15744
15828
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15759,10 +15843,12 @@ var searchFormData = [{
|
|
|
15759
15843
|
name: 'goodName'
|
|
15760
15844
|
}, {
|
|
15761
15845
|
label: '商品编码',
|
|
15762
|
-
name: 'goodNo'
|
|
15846
|
+
name: 'goodNo',
|
|
15847
|
+
type: 'optionalInput'
|
|
15763
15848
|
}, {
|
|
15764
15849
|
label: '款式编码',
|
|
15765
|
-
name: 'styleCode'
|
|
15850
|
+
name: 'styleCode',
|
|
15851
|
+
type: 'optionalInput'
|
|
15766
15852
|
}, {
|
|
15767
15853
|
label: '商品类型',
|
|
15768
15854
|
name: 'skuType',
|
|
@@ -15983,19 +16069,15 @@ var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
|
15983
16069
|
var getTableData$2 = function getTableData(_ref, formData) {
|
|
15984
16070
|
var current = _ref.current,
|
|
15985
16071
|
pageSize = _ref.pageSize;
|
|
15986
|
-
var
|
|
15987
|
-
goodNo: formData.goodNo || null,
|
|
15988
|
-
goodName: formData.goodName || null,
|
|
15989
|
-
skuCode: formData.skuCode || null,
|
|
15990
|
-
skuId: formData.skuId || null
|
|
15991
|
-
};
|
|
16072
|
+
var conditionList = transformFormData(formData);
|
|
15992
16073
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15993
16074
|
method: 'post',
|
|
15994
|
-
data:
|
|
16075
|
+
data: {
|
|
15995
16076
|
pageSize: pageSize,
|
|
15996
16077
|
pageNo: current,
|
|
15997
|
-
platform: 'BS_E3_ERP'
|
|
15998
|
-
|
|
16078
|
+
platform: 'BS_E3_ERP',
|
|
16079
|
+
conditionList: conditionList
|
|
16080
|
+
}
|
|
15999
16081
|
}).then(function (res) {
|
|
16000
16082
|
var _res$data = res.data,
|
|
16001
16083
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16015,18 +16097,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16015
16097
|
};
|
|
16016
16098
|
var searchFormData$1 = [{
|
|
16017
16099
|
label: '商品货号',
|
|
16018
|
-
name: 'goodNo'
|
|
16100
|
+
name: 'goodNo',
|
|
16101
|
+
type: 'optionalInput'
|
|
16019
16102
|
}, {
|
|
16020
16103
|
label: '商品名称',
|
|
16021
16104
|
name: 'goodName'
|
|
16022
16105
|
}, {
|
|
16023
16106
|
label: 'SKU',
|
|
16024
16107
|
name: 'skuCode',
|
|
16025
|
-
dataIndex: 'specNo'
|
|
16108
|
+
dataIndex: 'specNo',
|
|
16109
|
+
type: 'optionalInput'
|
|
16026
16110
|
}, {
|
|
16027
16111
|
label: 'SKU ID',
|
|
16028
16112
|
name: 'skuId',
|
|
16029
|
-
dataIndex: 'specId'
|
|
16113
|
+
dataIndex: 'specId',
|
|
16114
|
+
type: 'optionalInput'
|
|
16030
16115
|
}];
|
|
16031
16116
|
var GoodList$2 = function GoodList(props, ref) {
|
|
16032
16117
|
var _useState = React.useState([]),
|
|
@@ -16228,13 +16313,15 @@ var rowCheckKey = 'id';
|
|
|
16228
16313
|
var getTableData$3 = function getTableData(_ref, formData) {
|
|
16229
16314
|
var current = _ref.current,
|
|
16230
16315
|
pageSize = _ref.pageSize;
|
|
16316
|
+
var conditionList = transformFormData(formData);
|
|
16231
16317
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16232
16318
|
method: 'post',
|
|
16233
|
-
data:
|
|
16319
|
+
data: {
|
|
16234
16320
|
pageSize: pageSize,
|
|
16235
16321
|
pageNo: current,
|
|
16236
|
-
platform: 'KM_ERP'
|
|
16237
|
-
|
|
16322
|
+
platform: 'KM_ERP',
|
|
16323
|
+
conditionList: conditionList
|
|
16324
|
+
}
|
|
16238
16325
|
}).then(function (res) {
|
|
16239
16326
|
var _res$data = res.data,
|
|
16240
16327
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16255,7 +16342,8 @@ var searchFormData$2 = [{
|
|
|
16255
16342
|
name: 'goodName'
|
|
16256
16343
|
}, {
|
|
16257
16344
|
label: '商品编码',
|
|
16258
|
-
name: 'goodNo'
|
|
16345
|
+
name: 'goodNo',
|
|
16346
|
+
type: 'optionalInput'
|
|
16259
16347
|
}, {
|
|
16260
16348
|
label: 'SKU名称',
|
|
16261
16349
|
name: 'skuName',
|
|
@@ -16263,7 +16351,8 @@ var searchFormData$2 = [{
|
|
|
16263
16351
|
}, {
|
|
16264
16352
|
label: 'SKU编码',
|
|
16265
16353
|
name: 'skuCode',
|
|
16266
|
-
dataIndex: 'specNo'
|
|
16354
|
+
dataIndex: 'specNo',
|
|
16355
|
+
type: 'optionalInput'
|
|
16267
16356
|
}];
|
|
16268
16357
|
var GoodList$3 = function GoodList(props, ref) {
|
|
16269
16358
|
var _useState = React.useState([]),
|
|
@@ -16471,20 +16560,15 @@ var KmGoodsModal = /*#__PURE__*/React.forwardRef(ErpGoodsModal);
|
|
|
16471
16560
|
var getTableData$4 = function getTableData(_ref, formData) {
|
|
16472
16561
|
var current = _ref.current,
|
|
16473
16562
|
pageSize = _ref.pageSize;
|
|
16474
|
-
var
|
|
16475
|
-
goodShortName: formData.goodShortName || null,
|
|
16476
|
-
skuName: formData.skuName || null,
|
|
16477
|
-
skuCode: formData.skuCode || null,
|
|
16478
|
-
goodName: formData.goodName || null,
|
|
16479
|
-
goodNo: formData.goodNo || null
|
|
16480
|
-
};
|
|
16563
|
+
var conditionList = transformFormData(formData);
|
|
16481
16564
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16482
16565
|
method: 'post',
|
|
16483
|
-
data:
|
|
16566
|
+
data: {
|
|
16484
16567
|
pageSize: pageSize,
|
|
16485
16568
|
pageNo: current,
|
|
16486
|
-
platform: 'GY_ERP'
|
|
16487
|
-
|
|
16569
|
+
platform: 'GY_ERP',
|
|
16570
|
+
conditionList: conditionList
|
|
16571
|
+
}
|
|
16488
16572
|
}).then(function (res) {
|
|
16489
16573
|
var _res$data = res.data,
|
|
16490
16574
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16510,13 +16594,15 @@ var searchFormData$3 = [{
|
|
|
16510
16594
|
}, {
|
|
16511
16595
|
label: '商品sku编码',
|
|
16512
16596
|
name: 'skuCode',
|
|
16513
|
-
dataIndex: 'specNo'
|
|
16597
|
+
dataIndex: 'specNo',
|
|
16598
|
+
type: 'optionalInput'
|
|
16514
16599
|
}, {
|
|
16515
16600
|
label: '商品名称',
|
|
16516
16601
|
name: 'goodName'
|
|
16517
16602
|
}, {
|
|
16518
16603
|
label: '商品编码',
|
|
16519
|
-
name: 'goodNo'
|
|
16604
|
+
name: 'goodNo',
|
|
16605
|
+
type: 'optionalInput'
|
|
16520
16606
|
}];
|
|
16521
16607
|
var GoodList$4 = function GoodList(props, ref) {
|
|
16522
16608
|
var _useState = React.useState([]),
|
|
@@ -18136,13 +18222,15 @@ var GyGoodsModal$2 = /*#__PURE__*/React.forwardRef(GyGoodsModal$1);
|
|
|
18136
18222
|
var getTableData$5 = function getTableData(_ref, formData) {
|
|
18137
18223
|
var current = _ref.current,
|
|
18138
18224
|
pageSize = _ref.pageSize;
|
|
18225
|
+
var conditionList = transformFormData(formData);
|
|
18139
18226
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18140
18227
|
method: 'post',
|
|
18141
|
-
data:
|
|
18228
|
+
data: {
|
|
18142
18229
|
pageSize: pageSize,
|
|
18143
18230
|
pageNo: current,
|
|
18144
|
-
platform: 'JY_ERP'
|
|
18145
|
-
|
|
18231
|
+
platform: 'JY_ERP',
|
|
18232
|
+
conditionList: conditionList
|
|
18233
|
+
}
|
|
18146
18234
|
}).then(function (res) {
|
|
18147
18235
|
var _res$data = res.data,
|
|
18148
18236
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18165,13 +18253,15 @@ var searchFormData$4 = [{
|
|
|
18165
18253
|
}, {
|
|
18166
18254
|
label: '规格编码',
|
|
18167
18255
|
name: 'skuCode',
|
|
18168
|
-
dataIndex: 'specNo'
|
|
18256
|
+
dataIndex: 'specNo',
|
|
18257
|
+
type: 'optionalInput'
|
|
18169
18258
|
}, {
|
|
18170
18259
|
label: '商品名称',
|
|
18171
18260
|
name: 'goodName'
|
|
18172
18261
|
}, {
|
|
18173
18262
|
label: '商品编码',
|
|
18174
|
-
name: 'goodNo'
|
|
18263
|
+
name: 'goodNo',
|
|
18264
|
+
type: 'optionalInput'
|
|
18175
18265
|
}];
|
|
18176
18266
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18177
18267
|
var _useState = React.useState([]),
|
|
@@ -22272,7 +22362,7 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
22272
22362
|
sysPicPath: item.goodPicUrl,
|
|
22273
22363
|
payment: null,
|
|
22274
22364
|
price: item.retailPrice,
|
|
22275
|
-
type: null,
|
|
22365
|
+
type: (kmkfUtils.kmSkuTypeMap === null || kmkfUtils.kmSkuTypeMap === void 0 ? void 0 : kmkfUtils.kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
|
|
22276
22366
|
uuid: kmkfUtils.uuid(),
|
|
22277
22367
|
canDelete: true,
|
|
22278
22368
|
canEdit: true
|
|
@@ -5,6 +5,12 @@ declare const _default: ({
|
|
|
5
5
|
width: number;
|
|
6
6
|
render: (val: string) => React.JSX.Element;
|
|
7
7
|
ellipsis?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
title: string;
|
|
11
|
+
ellipsis: boolean;
|
|
12
|
+
width: number;
|
|
13
|
+
render: (type: number) => React.JSX.Element;
|
|
8
14
|
} | {
|
|
9
15
|
dataIndex: string;
|
|
10
16
|
title: string;
|
|
@@ -8,12 +8,13 @@ type Props = {
|
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type SearchFormItem = {
|
|
12
12
|
label: string;
|
|
13
13
|
name: string;
|
|
14
14
|
dataIndex?: string;
|
|
15
|
-
type?: undefined | 'input' | 'select';
|
|
15
|
+
type?: undefined | 'input' | 'select' | 'optionalInput';
|
|
16
16
|
formItemProps?: Record<string, any>;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
|
+
export type SearchFormData = SearchFormItem[];
|
|
18
19
|
declare function SearchForm({ searchFormData, form, showColumnsDataIndexList, submit, reset, }: Props): React.JSX.Element;
|
|
19
20
|
export default SearchForm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.45",
|
|
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.2.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.45",
|
|
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": "2ad8d90257f0b1670e5082daaa71c5ea041cdd64"
|
|
70
70
|
}
|