@bit-sun/business-component 2.1.21 → 2.1.22
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 +225 -85
- package/dist/index.js +225 -85
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10191,6 +10191,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
10191
10191
|
case 'realWarehouse':
|
|
10192
10192
|
case 'virtualWarehouse':
|
|
10193
10193
|
case 'channelWarehouse':
|
|
10194
|
+
case 'ownerWarehouse':
|
|
10194
10195
|
result = '/stock';
|
|
10195
10196
|
break;
|
|
10196
10197
|
|
|
@@ -10202,6 +10203,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
10202
10203
|
break;
|
|
10203
10204
|
|
|
10204
10205
|
case 'deliveryMode':
|
|
10206
|
+
case 'ruleTemplate':
|
|
10205
10207
|
result = '/basic';
|
|
10206
10208
|
break;
|
|
10207
10209
|
|
|
@@ -10916,7 +10918,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
10916
10918
|
sourceName: 'qp-propertyValueCode-in'
|
|
10917
10919
|
}, requestConfigProp);
|
|
10918
10920
|
needModalTable = false;
|
|
10919
|
-
} //
|
|
10921
|
+
} // 仓库选择器(物理、逻辑仓、运营仓)
|
|
10920
10922
|
|
|
10921
10923
|
|
|
10922
10924
|
if (type === 'physicalWarehouse') {
|
|
@@ -11034,6 +11036,66 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
11034
11036
|
}
|
|
11035
11037
|
}]
|
|
11036
11038
|
}, modalTableBusProps);
|
|
11039
|
+
}
|
|
11040
|
+
|
|
11041
|
+
if (type === 'ownerWarehouse') {
|
|
11042
|
+
requestConfig = _objectSpread2({
|
|
11043
|
+
url: "".concat(prefixUrl.selectPrefix, "/ownerWarehouse"),
|
|
11044
|
+
filter: 'qp-name,operationWarehouseCode-orGroup,like',
|
|
11045
|
+
mappingTextField: 'name',
|
|
11046
|
+
mappingTextShowKeyField: 'operationWarehouseCode',
|
|
11047
|
+
mappingValueField: 'operationWarehouseCode',
|
|
11048
|
+
otherParams: {
|
|
11049
|
+
'qp-status-eq': 1,
|
|
11050
|
+
sorter: 'desc-id'
|
|
11051
|
+
},
|
|
11052
|
+
sourceName: 'qp-operationWarehouseCode-in'
|
|
11053
|
+
}, requestConfigProp);
|
|
11054
|
+
tableSearchForm = [{
|
|
11055
|
+
name: 'qp-name-like',
|
|
11056
|
+
label: '运营仓名称'
|
|
11057
|
+
}, {
|
|
11058
|
+
name: 'qp-operationWarehouseCode-like',
|
|
11059
|
+
label: '运营仓编码'
|
|
11060
|
+
}, {
|
|
11061
|
+
name: 'qp-groupCode-in',
|
|
11062
|
+
type: 'select',
|
|
11063
|
+
label: '运营组',
|
|
11064
|
+
field: {
|
|
11065
|
+
type: 'select',
|
|
11066
|
+
props: {
|
|
11067
|
+
mode: 'multiple',
|
|
11068
|
+
notFoundContent: '暂无数据',
|
|
11069
|
+
allowClear: true,
|
|
11070
|
+
showSearch: true,
|
|
11071
|
+
showArrow: true,
|
|
11072
|
+
maxTagCount: 1,
|
|
11073
|
+
optionFilterProp: 'children',
|
|
11074
|
+
filterOption: function filterOption(input, option) {
|
|
11075
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11076
|
+
}
|
|
11077
|
+
}
|
|
11078
|
+
}
|
|
11079
|
+
}];
|
|
11080
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11081
|
+
'qp-status-eq': 1
|
|
11082
|
+
})]).then(function (x) {
|
|
11083
|
+
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11084
|
+
});
|
|
11085
|
+
modalTableProps = _objectSpread2({
|
|
11086
|
+
modalTableTitle: '选择运营仓',
|
|
11087
|
+
tableSearchForm: tableSearchForm,
|
|
11088
|
+
tableColumns: [{
|
|
11089
|
+
title: '运营仓编码',
|
|
11090
|
+
dataIndex: 'operationWarehouseCode'
|
|
11091
|
+
}, {
|
|
11092
|
+
title: '运营仓名称',
|
|
11093
|
+
dataIndex: 'name'
|
|
11094
|
+
}, {
|
|
11095
|
+
title: '运营组',
|
|
11096
|
+
dataIndex: 'groupName'
|
|
11097
|
+
}]
|
|
11098
|
+
}, modalTableBusProps);
|
|
11037
11099
|
} // 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
11038
11100
|
|
|
11039
11101
|
|
|
@@ -11849,6 +11911,60 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
11849
11911
|
title: '备注'
|
|
11850
11912
|
}]
|
|
11851
11913
|
}, modalTableBusProps);
|
|
11914
|
+
} // 规则场景选择器
|
|
11915
|
+
|
|
11916
|
+
|
|
11917
|
+
if (type === 'ruleTemplate') {
|
|
11918
|
+
requestConfig = _objectSpread2({
|
|
11919
|
+
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
11920
|
+
filter: 'qp-name,code-orGroup,like',
|
|
11921
|
+
mappingTextField: 'name',
|
|
11922
|
+
mappingTextShowKeyField: 'code',
|
|
11923
|
+
mappingValueField: 'code',
|
|
11924
|
+
otherParams: {
|
|
11925
|
+
sorter: 'desc-id'
|
|
11926
|
+
},
|
|
11927
|
+
sourceName: 'ruleTemplateCode'
|
|
11928
|
+
}, requestConfigProp);
|
|
11929
|
+
tableSearchForm = [{
|
|
11930
|
+
name: 'qp-name-like',
|
|
11931
|
+
label: '规则场景名称'
|
|
11932
|
+
}, {
|
|
11933
|
+
name: 'qp-code-like',
|
|
11934
|
+
label: '规则场景编码'
|
|
11935
|
+
}];
|
|
11936
|
+
modalTableProps = _objectSpread2({
|
|
11937
|
+
modalTableTitle: '选择规则场景',
|
|
11938
|
+
tableSearchForm: tableSearchForm,
|
|
11939
|
+
tableColumns: [{
|
|
11940
|
+
title: '规则场景编码',
|
|
11941
|
+
dataIndex: 'code'
|
|
11942
|
+
}, {
|
|
11943
|
+
title: '规则场景名称',
|
|
11944
|
+
dataIndex: 'name',
|
|
11945
|
+
render: function render(text) {
|
|
11946
|
+
return handleTextOverflow(text);
|
|
11947
|
+
}
|
|
11948
|
+
}, {
|
|
11949
|
+
title: '条件对象',
|
|
11950
|
+
dataIndex: 'objectName',
|
|
11951
|
+
render: function render(text) {
|
|
11952
|
+
return handleTextOverflow(text);
|
|
11953
|
+
}
|
|
11954
|
+
}, {
|
|
11955
|
+
dataIndex: 'extName',
|
|
11956
|
+
title: '条件扩展',
|
|
11957
|
+
render: function render(text) {
|
|
11958
|
+
return handleTextOverflow(text);
|
|
11959
|
+
}
|
|
11960
|
+
}, {
|
|
11961
|
+
dataIndex: 'actionName',
|
|
11962
|
+
title: '执行动作',
|
|
11963
|
+
render: function render(text) {
|
|
11964
|
+
return handleTextOverflow(text);
|
|
11965
|
+
}
|
|
11966
|
+
}]
|
|
11967
|
+
}, modalTableBusProps);
|
|
11852
11968
|
}
|
|
11853
11969
|
|
|
11854
11970
|
return {
|
|
@@ -12973,6 +13089,29 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
12973
13089
|
return true;
|
|
12974
13090
|
});
|
|
12975
13091
|
|
|
13092
|
+
function handleSelectColumn(c, parentProps) {
|
|
13093
|
+
var result = c;
|
|
13094
|
+
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
13095
|
+
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
13096
|
+
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || []; // 过滤不需要展示内容
|
|
13097
|
+
|
|
13098
|
+
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
13099
|
+
result = result.filter(function (i) {
|
|
13100
|
+
return !exceptColumns.includes(i.dataIndex);
|
|
13101
|
+
});
|
|
13102
|
+
} // 追加
|
|
13103
|
+
|
|
13104
|
+
|
|
13105
|
+
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) ; // 覆盖内容
|
|
13106
|
+
|
|
13107
|
+
|
|
13108
|
+
if (coverColumns === null || coverColumns === void 0 ? void 0 : coverColumns.length) {
|
|
13109
|
+
result = coverColumns;
|
|
13110
|
+
}
|
|
13111
|
+
|
|
13112
|
+
return result;
|
|
13113
|
+
}
|
|
13114
|
+
|
|
12976
13115
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
12977
13116
|
var selectProps = {
|
|
12978
13117
|
mode: 'multiple'
|
|
@@ -12983,6 +13122,90 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
12983
13122
|
value = _useState2[0],
|
|
12984
13123
|
setValue = _useState2[1];
|
|
12985
13124
|
|
|
13125
|
+
var initialSelectColumn = [{
|
|
13126
|
+
title: 'SKU编码',
|
|
13127
|
+
width: 150,
|
|
13128
|
+
dataIndex: 'skuCode'
|
|
13129
|
+
}, {
|
|
13130
|
+
title: 'SKU名称',
|
|
13131
|
+
width: 200,
|
|
13132
|
+
ellipsis: {
|
|
13133
|
+
showTitle: false
|
|
13134
|
+
},
|
|
13135
|
+
render: function render(text) {
|
|
13136
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13137
|
+
placement: "topLeft",
|
|
13138
|
+
title: text
|
|
13139
|
+
}, text);
|
|
13140
|
+
},
|
|
13141
|
+
dataIndex: 'name'
|
|
13142
|
+
}, {
|
|
13143
|
+
title: '图片',
|
|
13144
|
+
dataIndex: 'itemUrl',
|
|
13145
|
+
width: 200,
|
|
13146
|
+
ellipsis: {
|
|
13147
|
+
showTitle: false
|
|
13148
|
+
},
|
|
13149
|
+
render: function render(text, record) {
|
|
13150
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13151
|
+
placement: "topLeft",
|
|
13152
|
+
title: text
|
|
13153
|
+
}, tableColumnsImage(getSkuImg(record), {
|
|
13154
|
+
width: 28,
|
|
13155
|
+
height: 28
|
|
13156
|
+
}));
|
|
13157
|
+
}
|
|
13158
|
+
}, {
|
|
13159
|
+
title: '数量',
|
|
13160
|
+
width: 100,
|
|
13161
|
+
isInputItem: true,
|
|
13162
|
+
dataIndex: 'count'
|
|
13163
|
+
}, {
|
|
13164
|
+
title: '单位',
|
|
13165
|
+
dataIndex: 'selectUnitCode',
|
|
13166
|
+
width: 80,
|
|
13167
|
+
ellipsis: {
|
|
13168
|
+
showTitle: false
|
|
13169
|
+
},
|
|
13170
|
+
render: function render(text, record) {
|
|
13171
|
+
var _record$packingUnitLi;
|
|
13172
|
+
|
|
13173
|
+
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
13174
|
+
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
13175
|
+
record.selectUnitCode = basePackUnit.unitCode;
|
|
13176
|
+
return basePackUnit.name || basePackUnit.unitCode;
|
|
13177
|
+
}
|
|
13178
|
+
|
|
13179
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
13180
|
+
}
|
|
13181
|
+
}, {
|
|
13182
|
+
title: '所属SPU编码',
|
|
13183
|
+
width: 150,
|
|
13184
|
+
ellipsis: {
|
|
13185
|
+
showTitle: false
|
|
13186
|
+
},
|
|
13187
|
+
dataIndex: 'itemCode',
|
|
13188
|
+
render: function render(text) {
|
|
13189
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13190
|
+
placement: "topLeft",
|
|
13191
|
+
title: text
|
|
13192
|
+
}, text);
|
|
13193
|
+
}
|
|
13194
|
+
}, {
|
|
13195
|
+
title: '规格',
|
|
13196
|
+
width: 200,
|
|
13197
|
+
ellipsis: {
|
|
13198
|
+
showTitle: false
|
|
13199
|
+
},
|
|
13200
|
+
render: function render(text) {
|
|
13201
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13202
|
+
placement: "topLeft",
|
|
13203
|
+
title: text
|
|
13204
|
+
}, text);
|
|
13205
|
+
},
|
|
13206
|
+
dataIndex: 'propertyNameAndValue'
|
|
13207
|
+
}];
|
|
13208
|
+
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
12986
13209
|
var props = {
|
|
12987
13210
|
buttonText: parProps.buttonText || '新增',
|
|
12988
13211
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -13204,89 +13427,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
13204
13427
|
},
|
|
13205
13428
|
dataIndex: 'brandName'
|
|
13206
13429
|
}],
|
|
13207
|
-
selectColumn:
|
|
13208
|
-
title: 'SKU编码',
|
|
13209
|
-
width: 150,
|
|
13210
|
-
dataIndex: 'skuCode'
|
|
13211
|
-
}, {
|
|
13212
|
-
title: 'SKU名称',
|
|
13213
|
-
width: 200,
|
|
13214
|
-
ellipsis: {
|
|
13215
|
-
showTitle: false
|
|
13216
|
-
},
|
|
13217
|
-
render: function render(text) {
|
|
13218
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13219
|
-
placement: "topLeft",
|
|
13220
|
-
title: text
|
|
13221
|
-
}, text);
|
|
13222
|
-
},
|
|
13223
|
-
dataIndex: 'name'
|
|
13224
|
-
}, {
|
|
13225
|
-
title: '图片',
|
|
13226
|
-
dataIndex: 'itemUrl',
|
|
13227
|
-
width: 200,
|
|
13228
|
-
ellipsis: {
|
|
13229
|
-
showTitle: false
|
|
13230
|
-
},
|
|
13231
|
-
render: function render(text, record) {
|
|
13232
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13233
|
-
placement: "topLeft",
|
|
13234
|
-
title: text
|
|
13235
|
-
}, tableColumnsImage(getSkuImg(record), {
|
|
13236
|
-
width: 28,
|
|
13237
|
-
height: 28
|
|
13238
|
-
}));
|
|
13239
|
-
}
|
|
13240
|
-
}, {
|
|
13241
|
-
title: '数量',
|
|
13242
|
-
width: 100,
|
|
13243
|
-
isInputItem: true,
|
|
13244
|
-
dataIndex: 'count'
|
|
13245
|
-
}, {
|
|
13246
|
-
title: '单位',
|
|
13247
|
-
dataIndex: 'selectUnitCode',
|
|
13248
|
-
width: 80,
|
|
13249
|
-
ellipsis: {
|
|
13250
|
-
showTitle: false
|
|
13251
|
-
},
|
|
13252
|
-
render: function render(text, record) {
|
|
13253
|
-
var _record$packingUnitLi;
|
|
13254
|
-
|
|
13255
|
-
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
13256
|
-
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
13257
|
-
record.selectUnitCode = basePackUnit.unitCode;
|
|
13258
|
-
return basePackUnit.name || basePackUnit.unitCode;
|
|
13259
|
-
}
|
|
13260
|
-
|
|
13261
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
13262
|
-
}
|
|
13263
|
-
}, {
|
|
13264
|
-
title: '所属SPU编码',
|
|
13265
|
-
width: 150,
|
|
13266
|
-
ellipsis: {
|
|
13267
|
-
showTitle: false
|
|
13268
|
-
},
|
|
13269
|
-
dataIndex: 'itemCode',
|
|
13270
|
-
render: function render(text) {
|
|
13271
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13272
|
-
placement: "topLeft",
|
|
13273
|
-
title: text
|
|
13274
|
-
}, text);
|
|
13275
|
-
}
|
|
13276
|
-
}, {
|
|
13277
|
-
title: '规格',
|
|
13278
|
-
width: 200,
|
|
13279
|
-
ellipsis: {
|
|
13280
|
-
showTitle: false
|
|
13281
|
-
},
|
|
13282
|
-
render: function render(text) {
|
|
13283
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
13284
|
-
placement: "topLeft",
|
|
13285
|
-
title: text
|
|
13286
|
-
}, text);
|
|
13287
|
-
},
|
|
13288
|
-
dataIndex: 'propertyNameAndValue'
|
|
13289
|
-
}]
|
|
13430
|
+
selectColumn: mTpSelectColumn
|
|
13290
13431
|
};
|
|
13291
13432
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
13292
13433
|
modalTableProps: modalTableProps
|
|
@@ -18064,7 +18205,6 @@ var index$5 = (function (props) {
|
|
|
18064
18205
|
}
|
|
18065
18206
|
}, [props === null || props === void 0 ? void 0 : props.columns]);
|
|
18066
18207
|
useEffect(function () {
|
|
18067
|
-
console.log('刷新列表');
|
|
18068
18208
|
setInitialTableInfo();
|
|
18069
18209
|
}, [props === null || props === void 0 ? void 0 : props.refreshColumns]);
|
|
18070
18210
|
var watchWinResize = debounce(function () {
|
package/dist/index.js
CHANGED
|
@@ -10205,6 +10205,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
10205
10205
|
case 'realWarehouse':
|
|
10206
10206
|
case 'virtualWarehouse':
|
|
10207
10207
|
case 'channelWarehouse':
|
|
10208
|
+
case 'ownerWarehouse':
|
|
10208
10209
|
result = '/stock';
|
|
10209
10210
|
break;
|
|
10210
10211
|
|
|
@@ -10216,6 +10217,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
10216
10217
|
break;
|
|
10217
10218
|
|
|
10218
10219
|
case 'deliveryMode':
|
|
10220
|
+
case 'ruleTemplate':
|
|
10219
10221
|
result = '/basic';
|
|
10220
10222
|
break;
|
|
10221
10223
|
|
|
@@ -10930,7 +10932,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
10930
10932
|
sourceName: 'qp-propertyValueCode-in'
|
|
10931
10933
|
}, requestConfigProp);
|
|
10932
10934
|
needModalTable = false;
|
|
10933
|
-
} //
|
|
10935
|
+
} // 仓库选择器(物理、逻辑仓、运营仓)
|
|
10934
10936
|
|
|
10935
10937
|
|
|
10936
10938
|
if (type === 'physicalWarehouse') {
|
|
@@ -11048,6 +11050,66 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
11048
11050
|
}
|
|
11049
11051
|
}]
|
|
11050
11052
|
}, modalTableBusProps);
|
|
11053
|
+
}
|
|
11054
|
+
|
|
11055
|
+
if (type === 'ownerWarehouse') {
|
|
11056
|
+
requestConfig = _objectSpread2({
|
|
11057
|
+
url: "".concat(prefixUrl.selectPrefix, "/ownerWarehouse"),
|
|
11058
|
+
filter: 'qp-name,operationWarehouseCode-orGroup,like',
|
|
11059
|
+
mappingTextField: 'name',
|
|
11060
|
+
mappingTextShowKeyField: 'operationWarehouseCode',
|
|
11061
|
+
mappingValueField: 'operationWarehouseCode',
|
|
11062
|
+
otherParams: {
|
|
11063
|
+
'qp-status-eq': 1,
|
|
11064
|
+
sorter: 'desc-id'
|
|
11065
|
+
},
|
|
11066
|
+
sourceName: 'qp-operationWarehouseCode-in'
|
|
11067
|
+
}, requestConfigProp);
|
|
11068
|
+
tableSearchForm = [{
|
|
11069
|
+
name: 'qp-name-like',
|
|
11070
|
+
label: '运营仓名称'
|
|
11071
|
+
}, {
|
|
11072
|
+
name: 'qp-operationWarehouseCode-like',
|
|
11073
|
+
label: '运营仓编码'
|
|
11074
|
+
}, {
|
|
11075
|
+
name: 'qp-groupCode-in',
|
|
11076
|
+
type: 'select',
|
|
11077
|
+
label: '运营组',
|
|
11078
|
+
field: {
|
|
11079
|
+
type: 'select',
|
|
11080
|
+
props: {
|
|
11081
|
+
mode: 'multiple',
|
|
11082
|
+
notFoundContent: '暂无数据',
|
|
11083
|
+
allowClear: true,
|
|
11084
|
+
showSearch: true,
|
|
11085
|
+
showArrow: true,
|
|
11086
|
+
maxTagCount: 1,
|
|
11087
|
+
optionFilterProp: 'children',
|
|
11088
|
+
filterOption: function filterOption(input, option) {
|
|
11089
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11090
|
+
}
|
|
11091
|
+
}
|
|
11092
|
+
}
|
|
11093
|
+
}];
|
|
11094
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11095
|
+
'qp-status-eq': 1
|
|
11096
|
+
})]).then(function (x) {
|
|
11097
|
+
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11098
|
+
});
|
|
11099
|
+
modalTableProps = _objectSpread2({
|
|
11100
|
+
modalTableTitle: '选择运营仓',
|
|
11101
|
+
tableSearchForm: tableSearchForm,
|
|
11102
|
+
tableColumns: [{
|
|
11103
|
+
title: '运营仓编码',
|
|
11104
|
+
dataIndex: 'operationWarehouseCode'
|
|
11105
|
+
}, {
|
|
11106
|
+
title: '运营仓名称',
|
|
11107
|
+
dataIndex: 'name'
|
|
11108
|
+
}, {
|
|
11109
|
+
title: '运营组',
|
|
11110
|
+
dataIndex: 'groupName'
|
|
11111
|
+
}]
|
|
11112
|
+
}, modalTableBusProps);
|
|
11051
11113
|
} // 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
11052
11114
|
|
|
11053
11115
|
|
|
@@ -11863,6 +11925,60 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
11863
11925
|
title: '备注'
|
|
11864
11926
|
}]
|
|
11865
11927
|
}, modalTableBusProps);
|
|
11928
|
+
} // 规则场景选择器
|
|
11929
|
+
|
|
11930
|
+
|
|
11931
|
+
if (type === 'ruleTemplate') {
|
|
11932
|
+
requestConfig = _objectSpread2({
|
|
11933
|
+
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
11934
|
+
filter: 'qp-name,code-orGroup,like',
|
|
11935
|
+
mappingTextField: 'name',
|
|
11936
|
+
mappingTextShowKeyField: 'code',
|
|
11937
|
+
mappingValueField: 'code',
|
|
11938
|
+
otherParams: {
|
|
11939
|
+
sorter: 'desc-id'
|
|
11940
|
+
},
|
|
11941
|
+
sourceName: 'ruleTemplateCode'
|
|
11942
|
+
}, requestConfigProp);
|
|
11943
|
+
tableSearchForm = [{
|
|
11944
|
+
name: 'qp-name-like',
|
|
11945
|
+
label: '规则场景名称'
|
|
11946
|
+
}, {
|
|
11947
|
+
name: 'qp-code-like',
|
|
11948
|
+
label: '规则场景编码'
|
|
11949
|
+
}];
|
|
11950
|
+
modalTableProps = _objectSpread2({
|
|
11951
|
+
modalTableTitle: '选择规则场景',
|
|
11952
|
+
tableSearchForm: tableSearchForm,
|
|
11953
|
+
tableColumns: [{
|
|
11954
|
+
title: '规则场景编码',
|
|
11955
|
+
dataIndex: 'code'
|
|
11956
|
+
}, {
|
|
11957
|
+
title: '规则场景名称',
|
|
11958
|
+
dataIndex: 'name',
|
|
11959
|
+
render: function render(text) {
|
|
11960
|
+
return handleTextOverflow(text);
|
|
11961
|
+
}
|
|
11962
|
+
}, {
|
|
11963
|
+
title: '条件对象',
|
|
11964
|
+
dataIndex: 'objectName',
|
|
11965
|
+
render: function render(text) {
|
|
11966
|
+
return handleTextOverflow(text);
|
|
11967
|
+
}
|
|
11968
|
+
}, {
|
|
11969
|
+
dataIndex: 'extName',
|
|
11970
|
+
title: '条件扩展',
|
|
11971
|
+
render: function render(text) {
|
|
11972
|
+
return handleTextOverflow(text);
|
|
11973
|
+
}
|
|
11974
|
+
}, {
|
|
11975
|
+
dataIndex: 'actionName',
|
|
11976
|
+
title: '执行动作',
|
|
11977
|
+
render: function render(text) {
|
|
11978
|
+
return handleTextOverflow(text);
|
|
11979
|
+
}
|
|
11980
|
+
}]
|
|
11981
|
+
}, modalTableBusProps);
|
|
11866
11982
|
}
|
|
11867
11983
|
|
|
11868
11984
|
return {
|
|
@@ -12987,6 +13103,29 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
12987
13103
|
return true;
|
|
12988
13104
|
});
|
|
12989
13105
|
|
|
13106
|
+
function handleSelectColumn(c, parentProps) {
|
|
13107
|
+
var result = c;
|
|
13108
|
+
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
13109
|
+
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
13110
|
+
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || []; // 过滤不需要展示内容
|
|
13111
|
+
|
|
13112
|
+
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
13113
|
+
result = result.filter(function (i) {
|
|
13114
|
+
return !exceptColumns.includes(i.dataIndex);
|
|
13115
|
+
});
|
|
13116
|
+
} // 追加
|
|
13117
|
+
|
|
13118
|
+
|
|
13119
|
+
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) ; // 覆盖内容
|
|
13120
|
+
|
|
13121
|
+
|
|
13122
|
+
if (coverColumns === null || coverColumns === void 0 ? void 0 : coverColumns.length) {
|
|
13123
|
+
result = coverColumns;
|
|
13124
|
+
}
|
|
13125
|
+
|
|
13126
|
+
return result;
|
|
13127
|
+
}
|
|
13128
|
+
|
|
12990
13129
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
12991
13130
|
var selectProps = {
|
|
12992
13131
|
mode: 'multiple'
|
|
@@ -12997,6 +13136,90 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
12997
13136
|
value = _useState2[0],
|
|
12998
13137
|
setValue = _useState2[1];
|
|
12999
13138
|
|
|
13139
|
+
var initialSelectColumn = [{
|
|
13140
|
+
title: 'SKU编码',
|
|
13141
|
+
width: 150,
|
|
13142
|
+
dataIndex: 'skuCode'
|
|
13143
|
+
}, {
|
|
13144
|
+
title: 'SKU名称',
|
|
13145
|
+
width: 200,
|
|
13146
|
+
ellipsis: {
|
|
13147
|
+
showTitle: false
|
|
13148
|
+
},
|
|
13149
|
+
render: function render(text) {
|
|
13150
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13151
|
+
placement: "topLeft",
|
|
13152
|
+
title: text
|
|
13153
|
+
}, text);
|
|
13154
|
+
},
|
|
13155
|
+
dataIndex: 'name'
|
|
13156
|
+
}, {
|
|
13157
|
+
title: '图片',
|
|
13158
|
+
dataIndex: 'itemUrl',
|
|
13159
|
+
width: 200,
|
|
13160
|
+
ellipsis: {
|
|
13161
|
+
showTitle: false
|
|
13162
|
+
},
|
|
13163
|
+
render: function render(text, record) {
|
|
13164
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13165
|
+
placement: "topLeft",
|
|
13166
|
+
title: text
|
|
13167
|
+
}, tableColumnsImage(getSkuImg(record), {
|
|
13168
|
+
width: 28,
|
|
13169
|
+
height: 28
|
|
13170
|
+
}));
|
|
13171
|
+
}
|
|
13172
|
+
}, {
|
|
13173
|
+
title: '数量',
|
|
13174
|
+
width: 100,
|
|
13175
|
+
isInputItem: true,
|
|
13176
|
+
dataIndex: 'count'
|
|
13177
|
+
}, {
|
|
13178
|
+
title: '单位',
|
|
13179
|
+
dataIndex: 'selectUnitCode',
|
|
13180
|
+
width: 80,
|
|
13181
|
+
ellipsis: {
|
|
13182
|
+
showTitle: false
|
|
13183
|
+
},
|
|
13184
|
+
render: function render(text, record) {
|
|
13185
|
+
var _record$packingUnitLi;
|
|
13186
|
+
|
|
13187
|
+
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
13188
|
+
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
13189
|
+
record.selectUnitCode = basePackUnit.unitCode;
|
|
13190
|
+
return basePackUnit.name || basePackUnit.unitCode;
|
|
13191
|
+
}
|
|
13192
|
+
|
|
13193
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
13194
|
+
}
|
|
13195
|
+
}, {
|
|
13196
|
+
title: '所属SPU编码',
|
|
13197
|
+
width: 150,
|
|
13198
|
+
ellipsis: {
|
|
13199
|
+
showTitle: false
|
|
13200
|
+
},
|
|
13201
|
+
dataIndex: 'itemCode',
|
|
13202
|
+
render: function render(text) {
|
|
13203
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13204
|
+
placement: "topLeft",
|
|
13205
|
+
title: text
|
|
13206
|
+
}, text);
|
|
13207
|
+
}
|
|
13208
|
+
}, {
|
|
13209
|
+
title: '规格',
|
|
13210
|
+
width: 200,
|
|
13211
|
+
ellipsis: {
|
|
13212
|
+
showTitle: false
|
|
13213
|
+
},
|
|
13214
|
+
render: function render(text) {
|
|
13215
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13216
|
+
placement: "topLeft",
|
|
13217
|
+
title: text
|
|
13218
|
+
}, text);
|
|
13219
|
+
},
|
|
13220
|
+
dataIndex: 'propertyNameAndValue'
|
|
13221
|
+
}];
|
|
13222
|
+
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
13000
13223
|
var props = {
|
|
13001
13224
|
buttonText: parProps.buttonText || '新增',
|
|
13002
13225
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -13218,89 +13441,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
13218
13441
|
},
|
|
13219
13442
|
dataIndex: 'brandName'
|
|
13220
13443
|
}],
|
|
13221
|
-
selectColumn:
|
|
13222
|
-
title: 'SKU编码',
|
|
13223
|
-
width: 150,
|
|
13224
|
-
dataIndex: 'skuCode'
|
|
13225
|
-
}, {
|
|
13226
|
-
title: 'SKU名称',
|
|
13227
|
-
width: 200,
|
|
13228
|
-
ellipsis: {
|
|
13229
|
-
showTitle: false
|
|
13230
|
-
},
|
|
13231
|
-
render: function render(text) {
|
|
13232
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13233
|
-
placement: "topLeft",
|
|
13234
|
-
title: text
|
|
13235
|
-
}, text);
|
|
13236
|
-
},
|
|
13237
|
-
dataIndex: 'name'
|
|
13238
|
-
}, {
|
|
13239
|
-
title: '图片',
|
|
13240
|
-
dataIndex: 'itemUrl',
|
|
13241
|
-
width: 200,
|
|
13242
|
-
ellipsis: {
|
|
13243
|
-
showTitle: false
|
|
13244
|
-
},
|
|
13245
|
-
render: function render(text, record) {
|
|
13246
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13247
|
-
placement: "topLeft",
|
|
13248
|
-
title: text
|
|
13249
|
-
}, tableColumnsImage(getSkuImg(record), {
|
|
13250
|
-
width: 28,
|
|
13251
|
-
height: 28
|
|
13252
|
-
}));
|
|
13253
|
-
}
|
|
13254
|
-
}, {
|
|
13255
|
-
title: '数量',
|
|
13256
|
-
width: 100,
|
|
13257
|
-
isInputItem: true,
|
|
13258
|
-
dataIndex: 'count'
|
|
13259
|
-
}, {
|
|
13260
|
-
title: '单位',
|
|
13261
|
-
dataIndex: 'selectUnitCode',
|
|
13262
|
-
width: 80,
|
|
13263
|
-
ellipsis: {
|
|
13264
|
-
showTitle: false
|
|
13265
|
-
},
|
|
13266
|
-
render: function render(text, record) {
|
|
13267
|
-
var _record$packingUnitLi;
|
|
13268
|
-
|
|
13269
|
-
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
13270
|
-
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
13271
|
-
record.selectUnitCode = basePackUnit.unitCode;
|
|
13272
|
-
return basePackUnit.name || basePackUnit.unitCode;
|
|
13273
|
-
}
|
|
13274
|
-
|
|
13275
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
13276
|
-
}
|
|
13277
|
-
}, {
|
|
13278
|
-
title: '所属SPU编码',
|
|
13279
|
-
width: 150,
|
|
13280
|
-
ellipsis: {
|
|
13281
|
-
showTitle: false
|
|
13282
|
-
},
|
|
13283
|
-
dataIndex: 'itemCode',
|
|
13284
|
-
render: function render(text) {
|
|
13285
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13286
|
-
placement: "topLeft",
|
|
13287
|
-
title: text
|
|
13288
|
-
}, text);
|
|
13289
|
-
}
|
|
13290
|
-
}, {
|
|
13291
|
-
title: '规格',
|
|
13292
|
-
width: 200,
|
|
13293
|
-
ellipsis: {
|
|
13294
|
-
showTitle: false
|
|
13295
|
-
},
|
|
13296
|
-
render: function render(text) {
|
|
13297
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
13298
|
-
placement: "topLeft",
|
|
13299
|
-
title: text
|
|
13300
|
-
}, text);
|
|
13301
|
-
},
|
|
13302
|
-
dataIndex: 'propertyNameAndValue'
|
|
13303
|
-
}]
|
|
13444
|
+
selectColumn: mTpSelectColumn
|
|
13304
13445
|
};
|
|
13305
13446
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
13306
13447
|
modalTableProps: modalTableProps
|
|
@@ -18078,7 +18219,6 @@ var index$5 = (function (props) {
|
|
|
18078
18219
|
}
|
|
18079
18220
|
}, [props === null || props === void 0 ? void 0 : props.columns]);
|
|
18080
18221
|
React.useEffect(function () {
|
|
18081
|
-
console.log('刷新列表');
|
|
18082
18222
|
setInitialTableInfo();
|
|
18083
18223
|
}, [props === null || props === void 0 ? void 0 : props.refreshColumns]);
|
|
18084
18224
|
var watchWinResize = _.debounce(function () {
|