@bit-sun/business-component 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +543 -85
- package/dist/index.js +543 -84
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.md +41 -0
- package/src/components/Business/AddSelectBusiness/index.tsx +299 -0
- package/src/components/Business/CommodityEntry/index.tsx +5 -2
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1 -0
- package/src/components/Functional/AddSelect/index.less +10 -1
- package/src/components/Functional/AddSelect/index.md +3 -1
- package/src/components/Functional/AddSelect/index.tsx +117 -16
- package/src/components/Functional/DataImport/index.tsx +0 -1
- package/src/components/Functional/DataValidation/index.tsx +8 -1
- package/src/index.ts +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -2363,16 +2363,26 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2363
2363
|
var _this$props = _this.props,
|
|
2364
2364
|
validDataUrl = _this$props.validDataUrl,
|
|
2365
2365
|
updateData = _this$props.updateData,
|
|
2366
|
-
columns = _this$props.columns
|
|
2366
|
+
columns = _this$props.columns,
|
|
2367
|
+
isBrandAuth = _this$props.isBrandAuth;
|
|
2367
2368
|
|
|
2368
2369
|
var resultData = _this.getData().filter(function (d) {
|
|
2369
2370
|
return _.compact(Object.values(d)).length;
|
|
2370
|
-
});
|
|
2371
|
+
}); // 处理业务参数
|
|
2371
2372
|
|
|
2372
|
-
|
|
2373
|
+
|
|
2374
|
+
var otherParams = {};
|
|
2375
|
+
|
|
2376
|
+
if (isBrandAuth) {
|
|
2377
|
+
otherParams = {
|
|
2378
|
+
brandAuth: 'ctl-withAuth'
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
axios.post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
2373
2383
|
columns: columns,
|
|
2374
2384
|
data: resultData
|
|
2375
|
-
}).then(function (result) {
|
|
2385
|
+
})).then(function (result) {
|
|
2376
2386
|
result = result.data;
|
|
2377
2387
|
|
|
2378
2388
|
if (result.status !== '0') {
|
|
@@ -2962,7 +2972,6 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2962
2972
|
console.time();
|
|
2963
2973
|
var sheetData = luckysheet$1.getSheetData();
|
|
2964
2974
|
var data = JSON.parse(JSON.stringify(sheetData)).filter(function (item) {
|
|
2965
|
-
debugger;
|
|
2966
2975
|
return item[0];
|
|
2967
2976
|
}).map(function (item) {
|
|
2968
2977
|
var obj = {};
|
|
@@ -4386,9 +4395,72 @@ var SearchSelect = function SearchSelect(props) {
|
|
|
4386
4395
|
}), " \u5168\u9009\u6240\u6709\u9875\u9762") : '')))));
|
|
4387
4396
|
};
|
|
4388
4397
|
|
|
4389
|
-
var css_248z$4 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input {\n height: auto;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n";
|
|
4398
|
+
var css_248z$4 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input {\n height: auto;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n";
|
|
4390
4399
|
styleInject(css_248z$4);
|
|
4391
4400
|
|
|
4401
|
+
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4402
|
+
return new Promise(function (resolve, reject) {
|
|
4403
|
+
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
4404
|
+
var _result, _result2;
|
|
4405
|
+
|
|
4406
|
+
result = result.data;
|
|
4407
|
+
|
|
4408
|
+
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4409
|
+
message.error(result.msg);
|
|
4410
|
+
return;
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
resolve(result);
|
|
4414
|
+
}).catch(function (err) {
|
|
4415
|
+
reject(err);
|
|
4416
|
+
});
|
|
4417
|
+
});
|
|
4418
|
+
};
|
|
4419
|
+
|
|
4420
|
+
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4421
|
+
var _reData$position;
|
|
4422
|
+
|
|
4423
|
+
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
4424
|
+
var data = reData && ((_reData$position = reData[position]) === null || _reData$position === void 0 ? void 0 : _reData$position.data);
|
|
4425
|
+
var list = Array.isArray(data) ? data : (data === null || data === void 0 ? void 0 : data.items) || (data === null || data === void 0 ? void 0 : data.list) || (data === null || data === void 0 ? void 0 : data.children) || [];
|
|
4426
|
+
var formatData = (list === null || list === void 0 ? void 0 : list.length) ? list.map(function (v) {
|
|
4427
|
+
return {
|
|
4428
|
+
text: v[resKeyValue[1]],
|
|
4429
|
+
value: v[resKeyValue[0]]
|
|
4430
|
+
};
|
|
4431
|
+
}) : [];
|
|
4432
|
+
changeSearchForm[changePosition] = _objectSpread2(_objectSpread2({}, changeSearchForm[changePosition]), {}, {
|
|
4433
|
+
initialSource: formatData
|
|
4434
|
+
});
|
|
4435
|
+
}; // 格式化树选择器数据源
|
|
4436
|
+
|
|
4437
|
+
|
|
4438
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
4439
|
+
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
4440
|
+
return {
|
|
4441
|
+
title: treeDataItem[resKeyValue[1]],
|
|
4442
|
+
value: treeDataItem[resKeyValue[0]],
|
|
4443
|
+
parentId: treeDataItem.parent,
|
|
4444
|
+
data: _objectSpread2({}, treeDataItem),
|
|
4445
|
+
isLeaf: !haveChildren,
|
|
4446
|
+
disabled: haveChildren,
|
|
4447
|
+
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
4448
|
+
return mapSearchTree(i, resKeyValue);
|
|
4449
|
+
}) : []
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
|
|
4453
|
+
var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
|
|
4454
|
+
var _reData$position2;
|
|
4455
|
+
|
|
4456
|
+
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
4457
|
+
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
4458
|
+
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
4459
|
+
return mapSearchTree(ites, resKeyValue);
|
|
4460
|
+
}) || [];
|
|
4461
|
+
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4462
|
+
};
|
|
4463
|
+
|
|
4392
4464
|
var Option$1 = Select.Option;
|
|
4393
4465
|
|
|
4394
4466
|
var AddSelect = function AddSelect(props) {
|
|
@@ -4406,7 +4478,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
4406
4478
|
_props$needModalTable = props.needModalTable,
|
|
4407
4479
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4408
4480
|
_props$getPopupContai = props.getPopupContainer,
|
|
4409
|
-
onSaveCallback = props.onSaveCallback
|
|
4481
|
+
onSaveCallback = props.onSaveCallback,
|
|
4482
|
+
_props$buttonText = props.buttonText,
|
|
4483
|
+
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
|
|
4484
|
+
beforeShowModal = props.beforeShowModal;
|
|
4410
4485
|
|
|
4411
4486
|
var _ref = requestConfig || {},
|
|
4412
4487
|
url = _ref.url,
|
|
@@ -4508,51 +4583,56 @@ var AddSelect = function AddSelect(props) {
|
|
|
4508
4583
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4509
4584
|
form = _Form$useForm2[0];
|
|
4510
4585
|
|
|
4511
|
-
var _useState17 = useState(
|
|
4586
|
+
var _useState17 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
4512
4587
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4513
|
-
|
|
4514
|
-
|
|
4588
|
+
tableSearchForm = _useState18[0],
|
|
4589
|
+
setTableSearchForm = _useState18[1];
|
|
4515
4590
|
|
|
4516
|
-
var _useState19 = useState(
|
|
4591
|
+
var _useState19 = useState(true),
|
|
4517
4592
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
4518
|
-
|
|
4519
|
-
|
|
4593
|
+
caretLeftFlag = _useState20[0],
|
|
4594
|
+
setCaretLeftFlag = _useState20[1];
|
|
4520
4595
|
|
|
4521
|
-
var _useState21 = useState(
|
|
4596
|
+
var _useState21 = useState([]),
|
|
4597
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
4598
|
+
tableData = _useState22[0],
|
|
4599
|
+
setTableData = _useState22[1];
|
|
4600
|
+
|
|
4601
|
+
var _useState23 = useState({
|
|
4522
4602
|
total: 0,
|
|
4523
4603
|
size: "small",
|
|
4524
4604
|
current: 1,
|
|
4525
4605
|
pageSize: tableInitPageSize
|
|
4526
4606
|
}),
|
|
4527
|
-
_useState22 = _slicedToArray(_useState21, 2),
|
|
4528
|
-
tablePagination = _useState22[0],
|
|
4529
|
-
setTablePagination = _useState22[1];
|
|
4530
|
-
|
|
4531
|
-
var _useState23 = useState([]),
|
|
4532
4607
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4533
|
-
|
|
4534
|
-
|
|
4608
|
+
tablePagination = _useState24[0],
|
|
4609
|
+
setTablePagination = _useState24[1];
|
|
4535
4610
|
|
|
4536
4611
|
var _useState25 = useState([]),
|
|
4537
4612
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4538
|
-
|
|
4539
|
-
|
|
4613
|
+
selectedRowKeys = _useState26[0],
|
|
4614
|
+
setSelectedRowKeys = _useState26[1];
|
|
4540
4615
|
|
|
4541
|
-
|
|
4542
|
-
var _useState27 = useState(false),
|
|
4616
|
+
var _useState27 = useState([]),
|
|
4543
4617
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4544
|
-
|
|
4545
|
-
|
|
4618
|
+
doubleArr = _useState28[0],
|
|
4619
|
+
setDoubleArr = _useState28[1]; // 存放双数组的数组
|
|
4620
|
+
|
|
4546
4621
|
|
|
4547
4622
|
var _useState29 = useState(false),
|
|
4548
4623
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4549
|
-
|
|
4550
|
-
|
|
4624
|
+
checkedAll = _useState30[0],
|
|
4625
|
+
setCheckedAll = _useState30[1];
|
|
4551
4626
|
|
|
4552
|
-
var _useState31 = useState(
|
|
4627
|
+
var _useState31 = useState(false),
|
|
4553
4628
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4554
|
-
|
|
4555
|
-
|
|
4629
|
+
indeterminate = _useState32[0],
|
|
4630
|
+
setIndeterminate = _useState32[1];
|
|
4631
|
+
|
|
4632
|
+
var _useState33 = useState({}),
|
|
4633
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
4634
|
+
tableFormParams = _useState34[0],
|
|
4635
|
+
setTableFormParams = _useState34[1]; // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
|
|
4556
4636
|
|
|
4557
4637
|
|
|
4558
4638
|
var getData = function getData() {
|
|
@@ -4677,12 +4757,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
4677
4757
|
}, otherParams), fixedParam), params);
|
|
4678
4758
|
|
|
4679
4759
|
axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
|
|
4680
|
-
var
|
|
4760
|
+
var _result3, _result4;
|
|
4681
4761
|
|
|
4682
4762
|
setFetching(false);
|
|
4683
4763
|
result = result.data;
|
|
4684
4764
|
|
|
4685
|
-
if (((
|
|
4765
|
+
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
4686
4766
|
message.error(result.msg);
|
|
4687
4767
|
return;
|
|
4688
4768
|
}
|
|
@@ -4700,6 +4780,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4700
4780
|
} else {
|
|
4701
4781
|
var keys = res.list ? 'list' : 'items';
|
|
4702
4782
|
source = res ? res[keys] ? res[keys].map(function (item) {
|
|
4783
|
+
var _item$packingUnitList, _item$packingUnitList2;
|
|
4784
|
+
|
|
4703
4785
|
var textShowText = item[mappingTextField];
|
|
4704
4786
|
|
|
4705
4787
|
if (mappingTextShowTextField) {
|
|
@@ -4718,9 +4800,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4718
4800
|
text: item[mappingTextField],
|
|
4719
4801
|
textShowText: textShowText,
|
|
4720
4802
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4721
|
-
value: item[mappingValueField]
|
|
4803
|
+
value: item[mappingValueField],
|
|
4804
|
+
baseUnitCode: item === null || item === void 0 ? void 0 : (_item$packingUnitList = item.packingUnitList) === null || _item$packingUnitList === void 0 ? void 0 : (_item$packingUnitList2 = _item$packingUnitList.find(function (item) {
|
|
4805
|
+
return item.baseUnit === true;
|
|
4806
|
+
})) === null || _item$packingUnitList2 === void 0 ? void 0 : _item$packingUnitList2.unitCode
|
|
4722
4807
|
});
|
|
4723
4808
|
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item) {
|
|
4809
|
+
var _item$packingUnitList3, _item$packingUnitList4;
|
|
4810
|
+
|
|
4724
4811
|
var textShowText = item[mappingTextField];
|
|
4725
4812
|
|
|
4726
4813
|
if (mappingTextShowTextField) {
|
|
@@ -4739,7 +4826,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
4739
4826
|
text: item[mappingTextField],
|
|
4740
4827
|
textShowText: textShowText,
|
|
4741
4828
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4742
|
-
value: item[mappingValueField]
|
|
4829
|
+
value: item[mappingValueField],
|
|
4830
|
+
baseUnitCode: item === null || item === void 0 ? void 0 : (_item$packingUnitList3 = item.packingUnitList) === null || _item$packingUnitList3 === void 0 ? void 0 : (_item$packingUnitList4 = _item$packingUnitList3.find(function (item) {
|
|
4831
|
+
return item.baseUnit === true;
|
|
4832
|
+
})) === null || _item$packingUnitList4 === void 0 ? void 0 : _item$packingUnitList4.unitCode
|
|
4743
4833
|
});
|
|
4744
4834
|
})) : [];
|
|
4745
4835
|
}
|
|
@@ -4766,7 +4856,17 @@ var AddSelect = function AddSelect(props) {
|
|
|
4766
4856
|
};
|
|
4767
4857
|
|
|
4768
4858
|
useEffect(function () {
|
|
4769
|
-
|
|
4859
|
+
Promise.all([loadSelectSource("/items/brand/queryBrandList", {
|
|
4860
|
+
pageSize: 5000,
|
|
4861
|
+
currentPage: 1,
|
|
4862
|
+
'ctl-withAuth': true
|
|
4863
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
4864
|
+
pageSize: 5000,
|
|
4865
|
+
currentPage: 1
|
|
4866
|
+
})]).then(function (x) {
|
|
4867
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
4868
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
4869
|
+
});
|
|
4770
4870
|
}, []);
|
|
4771
4871
|
useEffect(function () {
|
|
4772
4872
|
if (value) {
|
|
@@ -4778,10 +4878,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4778
4878
|
}, [sourceName]);
|
|
4779
4879
|
|
|
4780
4880
|
var showModal = function showModal() {
|
|
4781
|
-
getData({
|
|
4782
|
-
pageSize: tableInitPageSize,
|
|
4783
|
-
currentPage: 1
|
|
4784
|
-
}, 2);
|
|
4881
|
+
// getData({ pageSize: tableInitPageSize, currentPage: 1 }, 2)
|
|
4785
4882
|
setIsModalVisible(true); // 回显
|
|
4786
4883
|
|
|
4787
4884
|
if (value) {
|
|
@@ -4815,6 +4912,24 @@ var AddSelect = function AddSelect(props) {
|
|
|
4815
4912
|
}]);
|
|
4816
4913
|
}
|
|
4817
4914
|
}
|
|
4915
|
+
|
|
4916
|
+
setTimeout(function () {
|
|
4917
|
+
var _document$getElementB;
|
|
4918
|
+
|
|
4919
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
4920
|
+
}, 50);
|
|
4921
|
+
};
|
|
4922
|
+
|
|
4923
|
+
var handleShowModal = function handleShowModal() {
|
|
4924
|
+
if (beforeShowModal) {
|
|
4925
|
+
beforeShowModal(popvalue).then(function (res) {
|
|
4926
|
+
showModal();
|
|
4927
|
+
}).catch(function (Error) {
|
|
4928
|
+
message.warning(Error);
|
|
4929
|
+
});
|
|
4930
|
+
} else {
|
|
4931
|
+
showModal();
|
|
4932
|
+
}
|
|
4818
4933
|
};
|
|
4819
4934
|
|
|
4820
4935
|
var handleOk = function handleOk(isContinue) {
|
|
@@ -4827,8 +4942,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
4827
4942
|
if (onSaveCallback) {
|
|
4828
4943
|
onSaveCallback(popvalue).then(function (res) {
|
|
4829
4944
|
{
|
|
4945
|
+
var _document$getElementB2;
|
|
4946
|
+
|
|
4830
4947
|
message.success('保存成功');
|
|
4831
4948
|
deleteSelectRows();
|
|
4949
|
+
(_document$getElementB2 = document.getElementById('first-query')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
4832
4950
|
!isContinue && handleCancel();
|
|
4833
4951
|
}
|
|
4834
4952
|
}).catch(function (Error) {
|
|
@@ -4843,10 +4961,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
4843
4961
|
form.resetFields();
|
|
4844
4962
|
setTableFormParams({});
|
|
4845
4963
|
setIsModalVisible(false);
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
}
|
|
4964
|
+
setTableData([]); // if (selectMode) {
|
|
4965
|
+
// run();
|
|
4966
|
+
// }
|
|
4850
4967
|
};
|
|
4851
4968
|
|
|
4852
4969
|
var onSearchTable = function onSearchTable() {
|
|
@@ -4878,6 +4995,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4878
4995
|
}; // 扁平化二维数组的方法
|
|
4879
4996
|
|
|
4880
4997
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
4998
|
+
if (selectKeys.length - selectedRowKeys.length > 0) {
|
|
4999
|
+
if (selectKeys.length - selectedRowKeys.length === 1) {
|
|
5000
|
+
selectRows[selectRows.length - 1]['needFocus'] = true;
|
|
5001
|
+
} else {
|
|
5002
|
+
selectRows[selectedRowKeys.length]['needFocus'] = true;
|
|
5003
|
+
}
|
|
5004
|
+
}
|
|
5005
|
+
|
|
4881
5006
|
setPopValue(selectRows);
|
|
4882
5007
|
setSelectedRowKeys(selectKeys); // setIndeterminate(!!filterRows.length && filterRows.length < tablePagination?.total);
|
|
4883
5008
|
// setCheckedAll(filterRows.length === tablePagination?.total);
|
|
@@ -4984,10 +5109,15 @@ var AddSelect = function AddSelect(props) {
|
|
|
4984
5109
|
label: i.label,
|
|
4985
5110
|
key: i.name
|
|
4986
5111
|
}, /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
4987
|
-
id: index === 0 ? "
|
|
5112
|
+
id: index === 0 ? "first-query" : 'index',
|
|
4988
5113
|
style: {
|
|
4989
5114
|
width: '100%'
|
|
4990
5115
|
},
|
|
5116
|
+
onKeyDown: function onKeyDown(e) {
|
|
5117
|
+
if (e.keyCode === 13) {
|
|
5118
|
+
onSearchTable();
|
|
5119
|
+
}
|
|
5120
|
+
},
|
|
4991
5121
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
4992
5122
|
allowClear: true,
|
|
4993
5123
|
maxLength: 100
|
|
@@ -5023,12 +5153,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
5023
5153
|
inputIndex++;
|
|
5024
5154
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5025
5155
|
render: function render(text, record, index) {
|
|
5156
|
+
// let
|
|
5157
|
+
if (record.needFocus === true && currentIndex === 0) ;
|
|
5158
|
+
|
|
5026
5159
|
return /*#__PURE__*/React.createElement(InputNumber, {
|
|
5027
5160
|
defaultValue: text || 0,
|
|
5028
5161
|
min: 0,
|
|
5162
|
+
autoFocus: record.needFocus,
|
|
5029
5163
|
keyboard: false,
|
|
5030
5164
|
onChange: function onChange(value) {
|
|
5031
|
-
record[
|
|
5165
|
+
record[item.dataIndex] = value;
|
|
5032
5166
|
},
|
|
5033
5167
|
// onFocus={(e)=> {
|
|
5034
5168
|
// let dom1 = e.currentTarget;
|
|
@@ -5037,10 +5171,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5037
5171
|
// }}
|
|
5038
5172
|
onKeyDown: function onKeyDown(e) {
|
|
5039
5173
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
5040
|
-
var _document$
|
|
5174
|
+
var _document$getElementB3;
|
|
5041
5175
|
|
|
5042
5176
|
handleOk(true);
|
|
5043
|
-
(_document$
|
|
5177
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
5044
5178
|
}
|
|
5045
5179
|
|
|
5046
5180
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
@@ -5147,14 +5281,18 @@ var AddSelect = function AddSelect(props) {
|
|
|
5147
5281
|
return item;
|
|
5148
5282
|
})), [{
|
|
5149
5283
|
title: '操作',
|
|
5150
|
-
width:
|
|
5284
|
+
width: 50,
|
|
5151
5285
|
fixed: 'right',
|
|
5152
5286
|
render: function render(text, record, index) {
|
|
5153
|
-
return /*#__PURE__*/React.createElement(
|
|
5287
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
5288
|
+
style: {
|
|
5289
|
+
cursor: 'pointer',
|
|
5290
|
+
color: '#005CFF'
|
|
5291
|
+
},
|
|
5154
5292
|
onClick: function onClick() {
|
|
5155
5293
|
deleteRecord(record);
|
|
5156
5294
|
},
|
|
5157
|
-
type: "
|
|
5295
|
+
type: "text"
|
|
5158
5296
|
}, "\u5220\u9664");
|
|
5159
5297
|
}
|
|
5160
5298
|
}]);
|
|
@@ -5164,9 +5302,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
5164
5302
|
className: "add_select_show",
|
|
5165
5303
|
id: "add_select_div_".concat(uniqueValue)
|
|
5166
5304
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
5167
|
-
onClick:
|
|
5305
|
+
onClick: handleShowModal,
|
|
5168
5306
|
type: "primary"
|
|
5169
|
-
},
|
|
5307
|
+
}, buttonText)), needModalTable && isModalVisible && /*#__PURE__*/React.createElement(Modal, {
|
|
5170
5308
|
width: '1200px',
|
|
5171
5309
|
style: {
|
|
5172
5310
|
top: 20
|
|
@@ -5221,7 +5359,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5221
5359
|
form: form,
|
|
5222
5360
|
layout: 'vertical',
|
|
5223
5361
|
key: 'modalForm'
|
|
5224
|
-
}, formItem(
|
|
5362
|
+
}, formItem(tableSearchForm)))), /*#__PURE__*/React.createElement("div", {
|
|
5225
5363
|
className: 'select_list_searchButton'
|
|
5226
5364
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
5227
5365
|
key: 'reset',
|
|
@@ -5380,7 +5518,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
|
|
|
5380
5518
|
return dicItemArray[0].text;
|
|
5381
5519
|
};
|
|
5382
5520
|
|
|
5383
|
-
var loadSelectSource = function loadSelectSource(url, params) {
|
|
5521
|
+
var loadSelectSource$1 = function loadSelectSource(url, params) {
|
|
5384
5522
|
return new Promise(function (resolve, reject) {
|
|
5385
5523
|
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
5386
5524
|
var _result, _result2;
|
|
@@ -5587,14 +5725,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5587
5725
|
label: '共享类型',
|
|
5588
5726
|
initialSource: sharingTypeDataList
|
|
5589
5727
|
}];
|
|
5590
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5728
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5591
5729
|
pageSize: 5000,
|
|
5592
5730
|
currentPage: 1,
|
|
5593
5731
|
'qp-companyType-eq': '30'
|
|
5594
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
5732
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
5595
5733
|
pageSize: 5000,
|
|
5596
5734
|
currentPage: 1
|
|
5597
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5735
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5598
5736
|
pageSize: 5000,
|
|
5599
5737
|
currentPage: 1,
|
|
5600
5738
|
'qp-companyType-eq': '20'
|
|
@@ -5682,7 +5820,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5682
5820
|
}
|
|
5683
5821
|
}
|
|
5684
5822
|
}];
|
|
5685
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
5823
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
5686
5824
|
formatSource(x, 0, 2, tableSearchForm);
|
|
5687
5825
|
formatSource(x, 1, 3, tableSearchForm);
|
|
5688
5826
|
});
|
|
@@ -5714,6 +5852,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5714
5852
|
mappingValueField: 'skuCode',
|
|
5715
5853
|
mappingTextShowTextField: ['name', 'propertyNameAndValue'],
|
|
5716
5854
|
otherParams: {
|
|
5855
|
+
'qp-combination-eq': false,
|
|
5717
5856
|
'qp-approveStatus-eq': 1,
|
|
5718
5857
|
// 'qp-type-eq': 10, // 查唯一国际条码【有些项目不需要必须要有国际条码,故注释,需要的项目自己定义otherParams补充上这个条件】
|
|
5719
5858
|
sorter: 'desc-id'
|
|
@@ -5912,14 +6051,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5912
6051
|
}
|
|
5913
6052
|
}
|
|
5914
6053
|
}];
|
|
5915
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
6054
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
5916
6055
|
pageSize: 5000,
|
|
5917
6056
|
currentPage: 1,
|
|
5918
6057
|
'ctl-withAuth': true
|
|
5919
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
6058
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
5920
6059
|
pageSize: 5000,
|
|
5921
6060
|
currentPage: 1
|
|
5922
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
6061
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
5923
6062
|
pageSize: 5000,
|
|
5924
6063
|
currentPage: 1
|
|
5925
6064
|
})]).then(function (x) {
|
|
@@ -6075,14 +6214,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6075
6214
|
}
|
|
6076
6215
|
}
|
|
6077
6216
|
}];
|
|
6078
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
6217
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
6079
6218
|
pageSize: 5000,
|
|
6080
6219
|
currentPage: 1,
|
|
6081
6220
|
'ctl-withAuth': true
|
|
6082
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
6221
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
6083
6222
|
pageSize: 5000,
|
|
6084
6223
|
currentPage: 1
|
|
6085
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
6224
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
6086
6225
|
pageSize: 5000,
|
|
6087
6226
|
currentPage: 1
|
|
6088
6227
|
})]).then(function (x) {
|
|
@@ -6173,7 +6312,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6173
6312
|
}
|
|
6174
6313
|
}
|
|
6175
6314
|
}];
|
|
6176
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6315
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6177
6316
|
pageSize: 5000,
|
|
6178
6317
|
currentPage: 1,
|
|
6179
6318
|
'qp-companyType-eq': 20
|
|
@@ -6361,14 +6500,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6361
6500
|
label: '共享类型',
|
|
6362
6501
|
initialSource: sharingTypeDataList
|
|
6363
6502
|
}];
|
|
6364
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6503
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6365
6504
|
pageSize: 5000,
|
|
6366
6505
|
currentPage: 1,
|
|
6367
6506
|
'qp-companyType-eq': '30'
|
|
6368
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6507
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6369
6508
|
pageSize: 5000,
|
|
6370
6509
|
currentPage: 1
|
|
6371
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6510
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6372
6511
|
pageSize: 5000,
|
|
6373
6512
|
currentPage: 1,
|
|
6374
6513
|
'qp-companyType-eq': '20'
|
|
@@ -6466,7 +6605,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6466
6605
|
}
|
|
6467
6606
|
}
|
|
6468
6607
|
}];
|
|
6469
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
6608
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
6470
6609
|
formatSource(x, 0, 2, tableSearchForm);
|
|
6471
6610
|
formatSource(x, 1, 3, tableSearchForm);
|
|
6472
6611
|
});
|
|
@@ -6589,19 +6728,19 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6589
6728
|
}
|
|
6590
6729
|
}
|
|
6591
6730
|
}];
|
|
6592
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6731
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6593
6732
|
pageSize: 5000,
|
|
6594
6733
|
currentPage: 1,
|
|
6595
6734
|
'qp-companyType-eq': '30'
|
|
6596
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6735
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6597
6736
|
pageSize: 5000,
|
|
6598
6737
|
currentPage: 1,
|
|
6599
6738
|
'qp-companyType-eq': '20'
|
|
6600
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
6739
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
6601
6740
|
// pageSize: 5000,
|
|
6602
6741
|
// currentPage: 1,
|
|
6603
6742
|
'qp-status-eq': '1'
|
|
6604
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6743
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6605
6744
|
pageSize: 5000,
|
|
6606
6745
|
currentPage: 1
|
|
6607
6746
|
})]).then(function (x) {
|
|
@@ -6689,7 +6828,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6689
6828
|
}
|
|
6690
6829
|
}
|
|
6691
6830
|
}];
|
|
6692
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
6831
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
6693
6832
|
'qp-employeeCode-eq': (_JSON$parse = JSON.parse(localStorage.getItem('userInfo') || '{}')) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$employeeR = _JSON$parse.employeeResVo) === null || _JSON$parse$employeeR === void 0 ? void 0 : _JSON$parse$employeeR.employeeNumber,
|
|
6694
6833
|
'qp-realOrg-eq': true,
|
|
6695
6834
|
'qp-status-eq': 10
|
|
@@ -6816,7 +6955,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6816
6955
|
name: 'qp-officeTelephone-like',
|
|
6817
6956
|
label: '手机号'
|
|
6818
6957
|
}];
|
|
6819
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6958
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6820
6959
|
pageSize: 5000,
|
|
6821
6960
|
currentPage: 1,
|
|
6822
6961
|
'qp-companyType-eq': 20
|
|
@@ -6891,7 +7030,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6891
7030
|
name: 'qp-officeTelephone-like',
|
|
6892
7031
|
label: '手机号'
|
|
6893
7032
|
}];
|
|
6894
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
7033
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
6895
7034
|
formatSource(x, 0, 2, tableSearchForm);
|
|
6896
7035
|
});
|
|
6897
7036
|
modalTableProps = _objectSpread2({
|
|
@@ -6987,10 +7126,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6987
7126
|
name: 'qp-remark-like',
|
|
6988
7127
|
label: '备注'
|
|
6989
7128
|
}];
|
|
6990
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
7129
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
6991
7130
|
pageSize: 5000,
|
|
6992
7131
|
currentPage: 1
|
|
6993
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
7132
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
6994
7133
|
pageSize: 5000,
|
|
6995
7134
|
currentPage: 1
|
|
6996
7135
|
})]).then(function (x) {
|
|
@@ -7078,18 +7217,336 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
7078
7217
|
return true;
|
|
7079
7218
|
});
|
|
7080
7219
|
|
|
7220
|
+
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
7221
|
+
var selectProps = {
|
|
7222
|
+
mode: 'multiple'
|
|
7223
|
+
};
|
|
7224
|
+
|
|
7225
|
+
var _useState = useState((selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode) ? [] : null),
|
|
7226
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7227
|
+
value = _useState2[0],
|
|
7228
|
+
setValue = _useState2[1];
|
|
7229
|
+
|
|
7230
|
+
var props = {
|
|
7231
|
+
buttonText: parProps.buttonText || '新增',
|
|
7232
|
+
value: value,
|
|
7233
|
+
// labelInValue: true, // 非必填 默认为false
|
|
7234
|
+
requestConfig: {
|
|
7235
|
+
url: "/items/sku/pager/v2",
|
|
7236
|
+
filter: 'qp-name-like',
|
|
7237
|
+
otherParams: {
|
|
7238
|
+
'qp-combination-eq': false
|
|
7239
|
+
},
|
|
7240
|
+
mappingTextField: 'name',
|
|
7241
|
+
mappingValueField: 'skuCode'
|
|
7242
|
+
},
|
|
7243
|
+
selectProps: selectProps,
|
|
7244
|
+
onChange: function onChange(value) {
|
|
7245
|
+
console.log(value);
|
|
7246
|
+
setValue(value);
|
|
7247
|
+
},
|
|
7248
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
7249
|
+
onSaveCallback: parProps.onSaveCallback // onSaveCallback: (rows) => {
|
|
7250
|
+
// console.log('save call', rows);
|
|
7251
|
+
// // return Promise.resolve(true);
|
|
7252
|
+
// // return Promise.reject('FAILE')
|
|
7253
|
+
// }
|
|
7254
|
+
|
|
7255
|
+
};
|
|
7256
|
+
var modalTableProps = {
|
|
7257
|
+
modalTableTitle: '选择商品',
|
|
7258
|
+
tableSearchForm: [{
|
|
7259
|
+
name: 'qp-skuCode-like',
|
|
7260
|
+
label: 'SKU编码'
|
|
7261
|
+
}, {
|
|
7262
|
+
name: 'qp-skuName-like',
|
|
7263
|
+
label: 'SKU名称'
|
|
7264
|
+
}, {
|
|
7265
|
+
name: 'qp-brandId-in',
|
|
7266
|
+
type: 'select',
|
|
7267
|
+
label: '品牌',
|
|
7268
|
+
field: {
|
|
7269
|
+
type: 'select',
|
|
7270
|
+
props: {
|
|
7271
|
+
mode: 'multiple',
|
|
7272
|
+
notFoundContent: '暂无数据',
|
|
7273
|
+
allowClear: true,
|
|
7274
|
+
showSearch: true,
|
|
7275
|
+
showArrow: true,
|
|
7276
|
+
maxTagCount: 1,
|
|
7277
|
+
optionFilterProp: 'children',
|
|
7278
|
+
filterOption: function filterOption(input, option) {
|
|
7279
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
7280
|
+
}
|
|
7281
|
+
}
|
|
7282
|
+
}
|
|
7283
|
+
}, {
|
|
7284
|
+
name: 'qp-categoryId-in',
|
|
7285
|
+
type: 'treeSelect',
|
|
7286
|
+
label: '类目',
|
|
7287
|
+
field: {
|
|
7288
|
+
type: 'treeSelect',
|
|
7289
|
+
props: {
|
|
7290
|
+
treeData: [],
|
|
7291
|
+
treeCheckable: true,
|
|
7292
|
+
showSearch: true,
|
|
7293
|
+
allowClear: true,
|
|
7294
|
+
showArrow: true,
|
|
7295
|
+
treeNodeFilterProp: 'title',
|
|
7296
|
+
treeDefaultExpandAll: true,
|
|
7297
|
+
maxTagCount: 1,
|
|
7298
|
+
placeholder: '请选择',
|
|
7299
|
+
style: {
|
|
7300
|
+
width: '100%'
|
|
7301
|
+
},
|
|
7302
|
+
dropdownStyle: {
|
|
7303
|
+
maxHeight: 400,
|
|
7304
|
+
maxWidth: 100,
|
|
7305
|
+
overflow: 'auto'
|
|
7306
|
+
}
|
|
7307
|
+
}
|
|
7308
|
+
}
|
|
7309
|
+
}],
|
|
7310
|
+
tableColumns: [{
|
|
7311
|
+
title: 'SKU编码',
|
|
7312
|
+
width: 150,
|
|
7313
|
+
dataIndex: 'skuCode'
|
|
7314
|
+
}, {
|
|
7315
|
+
title: 'SKU名称',
|
|
7316
|
+
width: 200,
|
|
7317
|
+
ellipsis: {
|
|
7318
|
+
showTitle: false
|
|
7319
|
+
},
|
|
7320
|
+
render: function render(text) {
|
|
7321
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7322
|
+
placement: "topLeft",
|
|
7323
|
+
title: text
|
|
7324
|
+
}, text);
|
|
7325
|
+
},
|
|
7326
|
+
dataIndex: 'name'
|
|
7327
|
+
}, {
|
|
7328
|
+
title: '国际条码',
|
|
7329
|
+
width: 100,
|
|
7330
|
+
ellipsis: {
|
|
7331
|
+
showTitle: false
|
|
7332
|
+
},
|
|
7333
|
+
dataIndex: 'barCode',
|
|
7334
|
+
render: function render(text) {
|
|
7335
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7336
|
+
placement: "topLeft",
|
|
7337
|
+
title: text
|
|
7338
|
+
}, text);
|
|
7339
|
+
}
|
|
7340
|
+
}, {
|
|
7341
|
+
title: '所属SPU名称',
|
|
7342
|
+
width: 100,
|
|
7343
|
+
ellipsis: {
|
|
7344
|
+
showTitle: false
|
|
7345
|
+
},
|
|
7346
|
+
dataIndex: 'itemName',
|
|
7347
|
+
render: function render(text) {
|
|
7348
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7349
|
+
placement: "topLeft",
|
|
7350
|
+
title: text
|
|
7351
|
+
}, text);
|
|
7352
|
+
}
|
|
7353
|
+
}, {
|
|
7354
|
+
title: '所属SPU编码',
|
|
7355
|
+
width: 100,
|
|
7356
|
+
ellipsis: {
|
|
7357
|
+
showTitle: false
|
|
7358
|
+
},
|
|
7359
|
+
dataIndex: 'itemCode',
|
|
7360
|
+
render: function render(text) {
|
|
7361
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7362
|
+
placement: "topLeft",
|
|
7363
|
+
title: text
|
|
7364
|
+
}, text);
|
|
7365
|
+
}
|
|
7366
|
+
}, {
|
|
7367
|
+
title: '外部编码',
|
|
7368
|
+
width: 100,
|
|
7369
|
+
ellipsis: {
|
|
7370
|
+
showTitle: false
|
|
7371
|
+
},
|
|
7372
|
+
render: function render(text) {
|
|
7373
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7374
|
+
placement: "topLeft",
|
|
7375
|
+
title: text
|
|
7376
|
+
}, text);
|
|
7377
|
+
},
|
|
7378
|
+
dataIndex: 'externalCode'
|
|
7379
|
+
}, {
|
|
7380
|
+
title: '规格',
|
|
7381
|
+
width: 100,
|
|
7382
|
+
ellipsis: {
|
|
7383
|
+
showTitle: false
|
|
7384
|
+
},
|
|
7385
|
+
render: function render(text) {
|
|
7386
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7387
|
+
placement: "topLeft",
|
|
7388
|
+
title: text
|
|
7389
|
+
}, text);
|
|
7390
|
+
},
|
|
7391
|
+
dataIndex: 'propertyNameAndValue'
|
|
7392
|
+
}, {
|
|
7393
|
+
title: '类目',
|
|
7394
|
+
width: 100,
|
|
7395
|
+
ellipsis: {
|
|
7396
|
+
showTitle: false
|
|
7397
|
+
},
|
|
7398
|
+
render: function render(text) {
|
|
7399
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7400
|
+
placement: "topLeft",
|
|
7401
|
+
title: text
|
|
7402
|
+
}, text);
|
|
7403
|
+
},
|
|
7404
|
+
dataIndex: 'categoryName'
|
|
7405
|
+
}, {
|
|
7406
|
+
title: '品类',
|
|
7407
|
+
width: 100,
|
|
7408
|
+
ellipsis: {
|
|
7409
|
+
showTitle: false
|
|
7410
|
+
},
|
|
7411
|
+
render: function render(text) {
|
|
7412
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7413
|
+
placement: "topLeft",
|
|
7414
|
+
title: text
|
|
7415
|
+
}, text);
|
|
7416
|
+
},
|
|
7417
|
+
dataIndex: 'className'
|
|
7418
|
+
}, {
|
|
7419
|
+
title: '品牌',
|
|
7420
|
+
width: 100,
|
|
7421
|
+
ellipsis: {
|
|
7422
|
+
showTitle: false
|
|
7423
|
+
},
|
|
7424
|
+
render: function render(text) {
|
|
7425
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7426
|
+
placement: "topLeft",
|
|
7427
|
+
title: text
|
|
7428
|
+
}, text);
|
|
7429
|
+
},
|
|
7430
|
+
dataIndex: 'brandName'
|
|
7431
|
+
}],
|
|
7432
|
+
selectColumn: [{
|
|
7433
|
+
title: 'SKU编码',
|
|
7434
|
+
width: 150,
|
|
7435
|
+
dataIndex: 'skuCode'
|
|
7436
|
+
}, {
|
|
7437
|
+
title: 'SKU名称',
|
|
7438
|
+
width: 200,
|
|
7439
|
+
ellipsis: {
|
|
7440
|
+
showTitle: false
|
|
7441
|
+
},
|
|
7442
|
+
render: function render(text) {
|
|
7443
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7444
|
+
placement: "topLeft",
|
|
7445
|
+
title: text
|
|
7446
|
+
}, text);
|
|
7447
|
+
},
|
|
7448
|
+
dataIndex: 'name'
|
|
7449
|
+
}, {
|
|
7450
|
+
title: '数量',
|
|
7451
|
+
width: 100,
|
|
7452
|
+
isInputItem: true,
|
|
7453
|
+
dataIndex: 'count'
|
|
7454
|
+
}, {
|
|
7455
|
+
title: '单位',
|
|
7456
|
+
dataIndex: 'selectUnitCode',
|
|
7457
|
+
width: 80,
|
|
7458
|
+
ellipsis: {
|
|
7459
|
+
showTitle: false
|
|
7460
|
+
},
|
|
7461
|
+
render: function render(text, record) {
|
|
7462
|
+
var baseUnitCode = '';
|
|
7463
|
+
|
|
7464
|
+
if (record === null || record === void 0 ? void 0 : record.packingUnitList) {
|
|
7465
|
+
var base = record.packingUnitList.filter(function (item) {
|
|
7466
|
+
return item.unitCode;
|
|
7467
|
+
});
|
|
7468
|
+
|
|
7469
|
+
if (base.length) {
|
|
7470
|
+
var _base$;
|
|
7471
|
+
|
|
7472
|
+
baseUnitCode = base[0].unitCode;
|
|
7473
|
+
record.selectUnitCode = base[0].unitCode;
|
|
7474
|
+
record.selectedScale = ((_base$ = base[0]) === null || _base$ === void 0 ? void 0 : _base$.baseUnitScale) || 1;
|
|
7475
|
+
}
|
|
7476
|
+
}
|
|
7477
|
+
|
|
7478
|
+
if (baseUnitCode) {
|
|
7479
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Select, {
|
|
7480
|
+
defaultValue: baseUnitCode,
|
|
7481
|
+
onChange: function onChange(value) {
|
|
7482
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
7483
|
+
|
|
7484
|
+
record.selectUnitCode = value;
|
|
7485
|
+
record.selectedScale = (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi.find(function (item) {
|
|
7486
|
+
return item.unitCode === value;
|
|
7487
|
+
})) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.baseUnitScale) || 1;
|
|
7488
|
+
},
|
|
7489
|
+
style: {
|
|
7490
|
+
width: '60px'
|
|
7491
|
+
}
|
|
7492
|
+
}, record.packingUnitList && record.packingUnitList.map(function (item) {
|
|
7493
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
7494
|
+
value: item.unitCode
|
|
7495
|
+
}, item.name);
|
|
7496
|
+
})));
|
|
7497
|
+
}
|
|
7498
|
+
|
|
7499
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
7500
|
+
}
|
|
7501
|
+
}, {
|
|
7502
|
+
title: '所属SPU编码',
|
|
7503
|
+
width: 150,
|
|
7504
|
+
ellipsis: {
|
|
7505
|
+
showTitle: false
|
|
7506
|
+
},
|
|
7507
|
+
dataIndex: 'itemCode',
|
|
7508
|
+
render: function render(text) {
|
|
7509
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7510
|
+
placement: "topLeft",
|
|
7511
|
+
title: text
|
|
7512
|
+
}, text);
|
|
7513
|
+
}
|
|
7514
|
+
}, {
|
|
7515
|
+
title: '规格',
|
|
7516
|
+
width: 200,
|
|
7517
|
+
ellipsis: {
|
|
7518
|
+
showTitle: false
|
|
7519
|
+
},
|
|
7520
|
+
render: function render(text) {
|
|
7521
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7522
|
+
placement: "topLeft",
|
|
7523
|
+
title: text
|
|
7524
|
+
}, text);
|
|
7525
|
+
},
|
|
7526
|
+
dataIndex: 'propertyNameAndValue'
|
|
7527
|
+
}]
|
|
7528
|
+
};
|
|
7529
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7530
|
+
modalTableProps: modalTableProps
|
|
7531
|
+
})));
|
|
7532
|
+
};
|
|
7533
|
+
|
|
7081
7534
|
var CommodityEntry = function CommodityEntry(props) {
|
|
7082
7535
|
var dataValidationRef = useRef();
|
|
7083
7536
|
var _props$buttonName = props.buttonName,
|
|
7084
7537
|
buttonName = _props$buttonName === void 0 ? ' + 录入商品' : _props$buttonName,
|
|
7085
7538
|
_props$modalTitle = props.modalTitle,
|
|
7086
7539
|
modalTitle = _props$modalTitle === void 0 ? '录入商品' : _props$modalTitle,
|
|
7540
|
+
_props$buttonProps = props.buttonProps,
|
|
7541
|
+
buttonProps = _props$buttonProps === void 0 ? {} : _props$buttonProps,
|
|
7087
7542
|
callbackHideModal = props.callbackHideModal,
|
|
7088
7543
|
callbackHandleOk = props.callbackHandleOk,
|
|
7089
7544
|
_props$columns = props.columns,
|
|
7090
7545
|
columns = _props$columns === void 0 ? ["skuCode", "quantity", "price"] : _props$columns,
|
|
7091
7546
|
_props$validDataUrl = props.validDataUrl,
|
|
7092
|
-
validDataUrl = _props$validDataUrl === void 0 ? "/items/
|
|
7547
|
+
validDataUrl = _props$validDataUrl === void 0 ? "/items/sku/import/check" : _props$validDataUrl,
|
|
7548
|
+
_props$isBrandAuth = props.isBrandAuth,
|
|
7549
|
+
isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth;
|
|
7093
7550
|
|
|
7094
7551
|
var _useState = useState({
|
|
7095
7552
|
maskClosable: false,
|
|
@@ -7140,9 +7597,9 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
7140
7597
|
modalProps.hideModal();
|
|
7141
7598
|
};
|
|
7142
7599
|
|
|
7143
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
7600
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, _objectSpread2({
|
|
7144
7601
|
onClick: handleShowModal
|
|
7145
|
-
}, buttonName), modalProps.visible && /*#__PURE__*/React.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
7602
|
+
}, buttonProps), buttonName), modalProps.visible && /*#__PURE__*/React.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
7146
7603
|
onOk: handleOk,
|
|
7147
7604
|
onCancel: handleCancel,
|
|
7148
7605
|
destroyOnClose: true,
|
|
@@ -7152,7 +7609,8 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
7152
7609
|
dataValidationRef = ref;
|
|
7153
7610
|
},
|
|
7154
7611
|
columns: columns,
|
|
7155
|
-
validDataUrl: validDataUrl
|
|
7612
|
+
validDataUrl: validDataUrl,
|
|
7613
|
+
isBrandAuth: isBrandAuth
|
|
7156
7614
|
})) || '');
|
|
7157
7615
|
};
|
|
7158
7616
|
|
|
@@ -7544,4 +8002,4 @@ if (localStorage.getItem('x-user-auth-context')) {
|
|
|
7544
8002
|
axios.defaults.headers.common['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
7545
8003
|
}
|
|
7546
8004
|
|
|
7547
|
-
export { AddSelect, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };
|
|
8005
|
+
export { AddSelect, AddSkuSelect, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };
|