@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.js
CHANGED
|
@@ -2374,16 +2374,26 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2374
2374
|
var _this$props = _this.props,
|
|
2375
2375
|
validDataUrl = _this$props.validDataUrl,
|
|
2376
2376
|
updateData = _this$props.updateData,
|
|
2377
|
-
columns = _this$props.columns
|
|
2377
|
+
columns = _this$props.columns,
|
|
2378
|
+
isBrandAuth = _this$props.isBrandAuth;
|
|
2378
2379
|
|
|
2379
2380
|
var resultData = _this.getData().filter(function (d) {
|
|
2380
2381
|
return ___default['default'].compact(Object.values(d)).length;
|
|
2381
|
-
});
|
|
2382
|
+
}); // 处理业务参数
|
|
2382
2383
|
|
|
2383
|
-
|
|
2384
|
+
|
|
2385
|
+
var otherParams = {};
|
|
2386
|
+
|
|
2387
|
+
if (isBrandAuth) {
|
|
2388
|
+
otherParams = {
|
|
2389
|
+
brandAuth: 'ctl-withAuth'
|
|
2390
|
+
};
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
2384
2394
|
columns: columns,
|
|
2385
2395
|
data: resultData
|
|
2386
|
-
}).then(function (result) {
|
|
2396
|
+
})).then(function (result) {
|
|
2387
2397
|
result = result.data;
|
|
2388
2398
|
|
|
2389
2399
|
if (result.status !== '0') {
|
|
@@ -2973,7 +2983,6 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2973
2983
|
console.time();
|
|
2974
2984
|
var sheetData = luckysheet$1.getSheetData();
|
|
2975
2985
|
var data = JSON.parse(JSON.stringify(sheetData)).filter(function (item) {
|
|
2976
|
-
debugger;
|
|
2977
2986
|
return item[0];
|
|
2978
2987
|
}).map(function (item) {
|
|
2979
2988
|
var obj = {};
|
|
@@ -4397,9 +4406,72 @@ var SearchSelect = function SearchSelect(props) {
|
|
|
4397
4406
|
}), " \u5168\u9009\u6240\u6709\u9875\u9762") : '')))));
|
|
4398
4407
|
};
|
|
4399
4408
|
|
|
4400
|
-
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";
|
|
4409
|
+
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";
|
|
4401
4410
|
styleInject(css_248z$4);
|
|
4402
4411
|
|
|
4412
|
+
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4413
|
+
return new Promise(function (resolve, reject) {
|
|
4414
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
4415
|
+
var _result, _result2;
|
|
4416
|
+
|
|
4417
|
+
result = result.data;
|
|
4418
|
+
|
|
4419
|
+
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') {
|
|
4420
|
+
antd.message.error(result.msg);
|
|
4421
|
+
return;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
resolve(result);
|
|
4425
|
+
}).catch(function (err) {
|
|
4426
|
+
reject(err);
|
|
4427
|
+
});
|
|
4428
|
+
});
|
|
4429
|
+
};
|
|
4430
|
+
|
|
4431
|
+
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4432
|
+
var _reData$position;
|
|
4433
|
+
|
|
4434
|
+
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
4435
|
+
var data = reData && ((_reData$position = reData[position]) === null || _reData$position === void 0 ? void 0 : _reData$position.data);
|
|
4436
|
+
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) || [];
|
|
4437
|
+
var formatData = (list === null || list === void 0 ? void 0 : list.length) ? list.map(function (v) {
|
|
4438
|
+
return {
|
|
4439
|
+
text: v[resKeyValue[1]],
|
|
4440
|
+
value: v[resKeyValue[0]]
|
|
4441
|
+
};
|
|
4442
|
+
}) : [];
|
|
4443
|
+
changeSearchForm[changePosition] = _objectSpread2(_objectSpread2({}, changeSearchForm[changePosition]), {}, {
|
|
4444
|
+
initialSource: formatData
|
|
4445
|
+
});
|
|
4446
|
+
}; // 格式化树选择器数据源
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
4450
|
+
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
4451
|
+
return {
|
|
4452
|
+
title: treeDataItem[resKeyValue[1]],
|
|
4453
|
+
value: treeDataItem[resKeyValue[0]],
|
|
4454
|
+
parentId: treeDataItem.parent,
|
|
4455
|
+
data: _objectSpread2({}, treeDataItem),
|
|
4456
|
+
isLeaf: !haveChildren,
|
|
4457
|
+
disabled: haveChildren,
|
|
4458
|
+
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
4459
|
+
return mapSearchTree(i, resKeyValue);
|
|
4460
|
+
}) : []
|
|
4461
|
+
};
|
|
4462
|
+
};
|
|
4463
|
+
|
|
4464
|
+
var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
|
|
4465
|
+
var _reData$position2;
|
|
4466
|
+
|
|
4467
|
+
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
4468
|
+
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
4469
|
+
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
4470
|
+
return mapSearchTree(ites, resKeyValue);
|
|
4471
|
+
}) || [];
|
|
4472
|
+
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4473
|
+
};
|
|
4474
|
+
|
|
4403
4475
|
var Option$1 = antd.Select.Option;
|
|
4404
4476
|
|
|
4405
4477
|
var AddSelect = function AddSelect(props) {
|
|
@@ -4417,7 +4489,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
4417
4489
|
_props$needModalTable = props.needModalTable,
|
|
4418
4490
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4419
4491
|
_props$getPopupContai = props.getPopupContainer,
|
|
4420
|
-
onSaveCallback = props.onSaveCallback
|
|
4492
|
+
onSaveCallback = props.onSaveCallback,
|
|
4493
|
+
_props$buttonText = props.buttonText,
|
|
4494
|
+
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
|
|
4495
|
+
beforeShowModal = props.beforeShowModal;
|
|
4421
4496
|
|
|
4422
4497
|
var _ref = requestConfig || {},
|
|
4423
4498
|
url = _ref.url,
|
|
@@ -4519,51 +4594,56 @@ var AddSelect = function AddSelect(props) {
|
|
|
4519
4594
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4520
4595
|
form = _Form$useForm2[0];
|
|
4521
4596
|
|
|
4522
|
-
var _useState17 = React.useState(
|
|
4597
|
+
var _useState17 = React.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
4523
4598
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4524
|
-
|
|
4525
|
-
|
|
4599
|
+
tableSearchForm = _useState18[0],
|
|
4600
|
+
setTableSearchForm = _useState18[1];
|
|
4526
4601
|
|
|
4527
|
-
var _useState19 = React.useState(
|
|
4602
|
+
var _useState19 = React.useState(true),
|
|
4528
4603
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
4529
|
-
|
|
4530
|
-
|
|
4604
|
+
caretLeftFlag = _useState20[0],
|
|
4605
|
+
setCaretLeftFlag = _useState20[1];
|
|
4531
4606
|
|
|
4532
|
-
var _useState21 = React.useState(
|
|
4607
|
+
var _useState21 = React.useState([]),
|
|
4608
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
4609
|
+
tableData = _useState22[0],
|
|
4610
|
+
setTableData = _useState22[1];
|
|
4611
|
+
|
|
4612
|
+
var _useState23 = React.useState({
|
|
4533
4613
|
total: 0,
|
|
4534
4614
|
size: "small",
|
|
4535
4615
|
current: 1,
|
|
4536
4616
|
pageSize: tableInitPageSize
|
|
4537
4617
|
}),
|
|
4538
|
-
_useState22 = _slicedToArray(_useState21, 2),
|
|
4539
|
-
tablePagination = _useState22[0],
|
|
4540
|
-
setTablePagination = _useState22[1];
|
|
4541
|
-
|
|
4542
|
-
var _useState23 = React.useState([]),
|
|
4543
4618
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4544
|
-
|
|
4545
|
-
|
|
4619
|
+
tablePagination = _useState24[0],
|
|
4620
|
+
setTablePagination = _useState24[1];
|
|
4546
4621
|
|
|
4547
4622
|
var _useState25 = React.useState([]),
|
|
4548
4623
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4549
|
-
|
|
4550
|
-
|
|
4624
|
+
selectedRowKeys = _useState26[0],
|
|
4625
|
+
setSelectedRowKeys = _useState26[1];
|
|
4551
4626
|
|
|
4552
|
-
|
|
4553
|
-
var _useState27 = React.useState(false),
|
|
4627
|
+
var _useState27 = React.useState([]),
|
|
4554
4628
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4555
|
-
|
|
4556
|
-
|
|
4629
|
+
doubleArr = _useState28[0],
|
|
4630
|
+
setDoubleArr = _useState28[1]; // 存放双数组的数组
|
|
4631
|
+
|
|
4557
4632
|
|
|
4558
4633
|
var _useState29 = React.useState(false),
|
|
4559
4634
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4560
|
-
|
|
4561
|
-
|
|
4635
|
+
checkedAll = _useState30[0],
|
|
4636
|
+
setCheckedAll = _useState30[1];
|
|
4562
4637
|
|
|
4563
|
-
var _useState31 = React.useState(
|
|
4638
|
+
var _useState31 = React.useState(false),
|
|
4564
4639
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4565
|
-
|
|
4566
|
-
|
|
4640
|
+
indeterminate = _useState32[0],
|
|
4641
|
+
setIndeterminate = _useState32[1];
|
|
4642
|
+
|
|
4643
|
+
var _useState33 = React.useState({}),
|
|
4644
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
4645
|
+
tableFormParams = _useState34[0],
|
|
4646
|
+
setTableFormParams = _useState34[1]; // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
|
|
4567
4647
|
|
|
4568
4648
|
|
|
4569
4649
|
var getData = function getData() {
|
|
@@ -4688,12 +4768,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
4688
4768
|
}, otherParams), fixedParam), params);
|
|
4689
4769
|
|
|
4690
4770
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
|
|
4691
|
-
var
|
|
4771
|
+
var _result3, _result4;
|
|
4692
4772
|
|
|
4693
4773
|
setFetching(false);
|
|
4694
4774
|
result = result.data;
|
|
4695
4775
|
|
|
4696
|
-
if (((
|
|
4776
|
+
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') {
|
|
4697
4777
|
antd.message.error(result.msg);
|
|
4698
4778
|
return;
|
|
4699
4779
|
}
|
|
@@ -4711,6 +4791,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4711
4791
|
} else {
|
|
4712
4792
|
var keys = res.list ? 'list' : 'items';
|
|
4713
4793
|
source = res ? res[keys] ? res[keys].map(function (item) {
|
|
4794
|
+
var _item$packingUnitList, _item$packingUnitList2;
|
|
4795
|
+
|
|
4714
4796
|
var textShowText = item[mappingTextField];
|
|
4715
4797
|
|
|
4716
4798
|
if (mappingTextShowTextField) {
|
|
@@ -4729,9 +4811,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4729
4811
|
text: item[mappingTextField],
|
|
4730
4812
|
textShowText: textShowText,
|
|
4731
4813
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4732
|
-
value: item[mappingValueField]
|
|
4814
|
+
value: item[mappingValueField],
|
|
4815
|
+
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) {
|
|
4816
|
+
return item.baseUnit === true;
|
|
4817
|
+
})) === null || _item$packingUnitList2 === void 0 ? void 0 : _item$packingUnitList2.unitCode
|
|
4733
4818
|
});
|
|
4734
4819
|
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item) {
|
|
4820
|
+
var _item$packingUnitList3, _item$packingUnitList4;
|
|
4821
|
+
|
|
4735
4822
|
var textShowText = item[mappingTextField];
|
|
4736
4823
|
|
|
4737
4824
|
if (mappingTextShowTextField) {
|
|
@@ -4750,7 +4837,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
4750
4837
|
text: item[mappingTextField],
|
|
4751
4838
|
textShowText: textShowText,
|
|
4752
4839
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4753
|
-
value: item[mappingValueField]
|
|
4840
|
+
value: item[mappingValueField],
|
|
4841
|
+
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) {
|
|
4842
|
+
return item.baseUnit === true;
|
|
4843
|
+
})) === null || _item$packingUnitList4 === void 0 ? void 0 : _item$packingUnitList4.unitCode
|
|
4754
4844
|
});
|
|
4755
4845
|
})) : [];
|
|
4756
4846
|
}
|
|
@@ -4777,7 +4867,17 @@ var AddSelect = function AddSelect(props) {
|
|
|
4777
4867
|
};
|
|
4778
4868
|
|
|
4779
4869
|
React.useEffect(function () {
|
|
4780
|
-
|
|
4870
|
+
Promise.all([loadSelectSource("/items/brand/queryBrandList", {
|
|
4871
|
+
pageSize: 5000,
|
|
4872
|
+
currentPage: 1,
|
|
4873
|
+
'ctl-withAuth': true
|
|
4874
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
4875
|
+
pageSize: 5000,
|
|
4876
|
+
currentPage: 1
|
|
4877
|
+
})]).then(function (x) {
|
|
4878
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
4879
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
4880
|
+
});
|
|
4781
4881
|
}, []);
|
|
4782
4882
|
React.useEffect(function () {
|
|
4783
4883
|
if (value) {
|
|
@@ -4789,10 +4889,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4789
4889
|
}, [sourceName]);
|
|
4790
4890
|
|
|
4791
4891
|
var showModal = function showModal() {
|
|
4792
|
-
getData({
|
|
4793
|
-
pageSize: tableInitPageSize,
|
|
4794
|
-
currentPage: 1
|
|
4795
|
-
}, 2);
|
|
4892
|
+
// getData({ pageSize: tableInitPageSize, currentPage: 1 }, 2)
|
|
4796
4893
|
setIsModalVisible(true); // 回显
|
|
4797
4894
|
|
|
4798
4895
|
if (value) {
|
|
@@ -4826,6 +4923,24 @@ var AddSelect = function AddSelect(props) {
|
|
|
4826
4923
|
}]);
|
|
4827
4924
|
}
|
|
4828
4925
|
}
|
|
4926
|
+
|
|
4927
|
+
setTimeout(function () {
|
|
4928
|
+
var _document$getElementB;
|
|
4929
|
+
|
|
4930
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
4931
|
+
}, 50);
|
|
4932
|
+
};
|
|
4933
|
+
|
|
4934
|
+
var handleShowModal = function handleShowModal() {
|
|
4935
|
+
if (beforeShowModal) {
|
|
4936
|
+
beforeShowModal(popvalue).then(function (res) {
|
|
4937
|
+
showModal();
|
|
4938
|
+
}).catch(function (Error) {
|
|
4939
|
+
antd.message.warning(Error);
|
|
4940
|
+
});
|
|
4941
|
+
} else {
|
|
4942
|
+
showModal();
|
|
4943
|
+
}
|
|
4829
4944
|
};
|
|
4830
4945
|
|
|
4831
4946
|
var handleOk = function handleOk(isContinue) {
|
|
@@ -4838,8 +4953,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
4838
4953
|
if (onSaveCallback) {
|
|
4839
4954
|
onSaveCallback(popvalue).then(function (res) {
|
|
4840
4955
|
{
|
|
4956
|
+
var _document$getElementB2;
|
|
4957
|
+
|
|
4841
4958
|
antd.message.success('保存成功');
|
|
4842
4959
|
deleteSelectRows();
|
|
4960
|
+
(_document$getElementB2 = document.getElementById('first-query')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
4843
4961
|
!isContinue && handleCancel();
|
|
4844
4962
|
}
|
|
4845
4963
|
}).catch(function (Error) {
|
|
@@ -4854,10 +4972,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
4854
4972
|
form.resetFields();
|
|
4855
4973
|
setTableFormParams({});
|
|
4856
4974
|
setIsModalVisible(false);
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
}
|
|
4975
|
+
setTableData([]); // if (selectMode) {
|
|
4976
|
+
// run();
|
|
4977
|
+
// }
|
|
4861
4978
|
};
|
|
4862
4979
|
|
|
4863
4980
|
var onSearchTable = function onSearchTable() {
|
|
@@ -4889,6 +5006,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4889
5006
|
}; // 扁平化二维数组的方法
|
|
4890
5007
|
|
|
4891
5008
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
5009
|
+
if (selectKeys.length - selectedRowKeys.length > 0) {
|
|
5010
|
+
if (selectKeys.length - selectedRowKeys.length === 1) {
|
|
5011
|
+
selectRows[selectRows.length - 1]['needFocus'] = true;
|
|
5012
|
+
} else {
|
|
5013
|
+
selectRows[selectedRowKeys.length]['needFocus'] = true;
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5016
|
+
|
|
4892
5017
|
setPopValue(selectRows);
|
|
4893
5018
|
setSelectedRowKeys(selectKeys); // setIndeterminate(!!filterRows.length && filterRows.length < tablePagination?.total);
|
|
4894
5019
|
// setCheckedAll(filterRows.length === tablePagination?.total);
|
|
@@ -4995,10 +5120,15 @@ var AddSelect = function AddSelect(props) {
|
|
|
4995
5120
|
label: i.label,
|
|
4996
5121
|
key: i.name
|
|
4997
5122
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
4998
|
-
id: index === 0 ? "
|
|
5123
|
+
id: index === 0 ? "first-query" : 'index',
|
|
4999
5124
|
style: {
|
|
5000
5125
|
width: '100%'
|
|
5001
5126
|
},
|
|
5127
|
+
onKeyDown: function onKeyDown(e) {
|
|
5128
|
+
if (e.keyCode === 13) {
|
|
5129
|
+
onSearchTable();
|
|
5130
|
+
}
|
|
5131
|
+
},
|
|
5002
5132
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5003
5133
|
allowClear: true,
|
|
5004
5134
|
maxLength: 100
|
|
@@ -5034,12 +5164,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
5034
5164
|
inputIndex++;
|
|
5035
5165
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5036
5166
|
render: function render(text, record, index) {
|
|
5167
|
+
// let
|
|
5168
|
+
if (record.needFocus === true && currentIndex === 0) ;
|
|
5169
|
+
|
|
5037
5170
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
5038
5171
|
defaultValue: text || 0,
|
|
5039
5172
|
min: 0,
|
|
5173
|
+
autoFocus: record.needFocus,
|
|
5040
5174
|
keyboard: false,
|
|
5041
5175
|
onChange: function onChange(value) {
|
|
5042
|
-
record[
|
|
5176
|
+
record[item.dataIndex] = value;
|
|
5043
5177
|
},
|
|
5044
5178
|
// onFocus={(e)=> {
|
|
5045
5179
|
// let dom1 = e.currentTarget;
|
|
@@ -5048,10 +5182,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5048
5182
|
// }}
|
|
5049
5183
|
onKeyDown: function onKeyDown(e) {
|
|
5050
5184
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
5051
|
-
var _document$
|
|
5185
|
+
var _document$getElementB3;
|
|
5052
5186
|
|
|
5053
5187
|
handleOk(true);
|
|
5054
|
-
(_document$
|
|
5188
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
5055
5189
|
}
|
|
5056
5190
|
|
|
5057
5191
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
@@ -5158,14 +5292,18 @@ var AddSelect = function AddSelect(props) {
|
|
|
5158
5292
|
return item;
|
|
5159
5293
|
})), [{
|
|
5160
5294
|
title: '操作',
|
|
5161
|
-
width:
|
|
5295
|
+
width: 50,
|
|
5162
5296
|
fixed: 'right',
|
|
5163
5297
|
render: function render(text, record, index) {
|
|
5164
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
5298
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
5299
|
+
style: {
|
|
5300
|
+
cursor: 'pointer',
|
|
5301
|
+
color: '#005CFF'
|
|
5302
|
+
},
|
|
5165
5303
|
onClick: function onClick() {
|
|
5166
5304
|
deleteRecord(record);
|
|
5167
5305
|
},
|
|
5168
|
-
type: "
|
|
5306
|
+
type: "text"
|
|
5169
5307
|
}, "\u5220\u9664");
|
|
5170
5308
|
}
|
|
5171
5309
|
}]);
|
|
@@ -5175,9 +5313,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
5175
5313
|
className: "add_select_show",
|
|
5176
5314
|
id: "add_select_div_".concat(uniqueValue)
|
|
5177
5315
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
5178
|
-
onClick:
|
|
5316
|
+
onClick: handleShowModal,
|
|
5179
5317
|
type: "primary"
|
|
5180
|
-
},
|
|
5318
|
+
}, buttonText)), needModalTable && isModalVisible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
5181
5319
|
width: '1200px',
|
|
5182
5320
|
style: {
|
|
5183
5321
|
top: 20
|
|
@@ -5232,7 +5370,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5232
5370
|
form: form,
|
|
5233
5371
|
layout: 'vertical',
|
|
5234
5372
|
key: 'modalForm'
|
|
5235
|
-
}, formItem(
|
|
5373
|
+
}, formItem(tableSearchForm)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5236
5374
|
className: 'select_list_searchButton'
|
|
5237
5375
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
5238
5376
|
key: 'reset',
|
|
@@ -5391,7 +5529,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
|
|
|
5391
5529
|
return dicItemArray[0].text;
|
|
5392
5530
|
};
|
|
5393
5531
|
|
|
5394
|
-
var loadSelectSource = function loadSelectSource(url, params) {
|
|
5532
|
+
var loadSelectSource$1 = function loadSelectSource(url, params) {
|
|
5395
5533
|
return new Promise(function (resolve, reject) {
|
|
5396
5534
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
5397
5535
|
var _result, _result2;
|
|
@@ -5598,14 +5736,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5598
5736
|
label: '共享类型',
|
|
5599
5737
|
initialSource: sharingTypeDataList
|
|
5600
5738
|
}];
|
|
5601
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5739
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5602
5740
|
pageSize: 5000,
|
|
5603
5741
|
currentPage: 1,
|
|
5604
5742
|
'qp-companyType-eq': '30'
|
|
5605
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
5743
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
5606
5744
|
pageSize: 5000,
|
|
5607
5745
|
currentPage: 1
|
|
5608
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5746
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
5609
5747
|
pageSize: 5000,
|
|
5610
5748
|
currentPage: 1,
|
|
5611
5749
|
'qp-companyType-eq': '20'
|
|
@@ -5693,7 +5831,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5693
5831
|
}
|
|
5694
5832
|
}
|
|
5695
5833
|
}];
|
|
5696
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
5834
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
5697
5835
|
formatSource(x, 0, 2, tableSearchForm);
|
|
5698
5836
|
formatSource(x, 1, 3, tableSearchForm);
|
|
5699
5837
|
});
|
|
@@ -5725,6 +5863,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5725
5863
|
mappingValueField: 'skuCode',
|
|
5726
5864
|
mappingTextShowTextField: ['name', 'propertyNameAndValue'],
|
|
5727
5865
|
otherParams: {
|
|
5866
|
+
'qp-combination-eq': false,
|
|
5728
5867
|
'qp-approveStatus-eq': 1,
|
|
5729
5868
|
// 'qp-type-eq': 10, // 查唯一国际条码【有些项目不需要必须要有国际条码,故注释,需要的项目自己定义otherParams补充上这个条件】
|
|
5730
5869
|
sorter: 'desc-id'
|
|
@@ -5923,14 +6062,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5923
6062
|
}
|
|
5924
6063
|
}
|
|
5925
6064
|
}];
|
|
5926
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
6065
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
5927
6066
|
pageSize: 5000,
|
|
5928
6067
|
currentPage: 1,
|
|
5929
6068
|
'ctl-withAuth': true
|
|
5930
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
6069
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
5931
6070
|
pageSize: 5000,
|
|
5932
6071
|
currentPage: 1
|
|
5933
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
6072
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
5934
6073
|
pageSize: 5000,
|
|
5935
6074
|
currentPage: 1
|
|
5936
6075
|
})]).then(function (x) {
|
|
@@ -6086,14 +6225,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6086
6225
|
}
|
|
6087
6226
|
}
|
|
6088
6227
|
}];
|
|
6089
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
6228
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
6090
6229
|
pageSize: 5000,
|
|
6091
6230
|
currentPage: 1,
|
|
6092
6231
|
'ctl-withAuth': true
|
|
6093
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
6232
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
6094
6233
|
pageSize: 5000,
|
|
6095
6234
|
currentPage: 1
|
|
6096
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
6235
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
6097
6236
|
pageSize: 5000,
|
|
6098
6237
|
currentPage: 1
|
|
6099
6238
|
})]).then(function (x) {
|
|
@@ -6184,7 +6323,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6184
6323
|
}
|
|
6185
6324
|
}
|
|
6186
6325
|
}];
|
|
6187
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6326
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6188
6327
|
pageSize: 5000,
|
|
6189
6328
|
currentPage: 1,
|
|
6190
6329
|
'qp-companyType-eq': 20
|
|
@@ -6372,14 +6511,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6372
6511
|
label: '共享类型',
|
|
6373
6512
|
initialSource: sharingTypeDataList
|
|
6374
6513
|
}];
|
|
6375
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6514
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6376
6515
|
pageSize: 5000,
|
|
6377
6516
|
currentPage: 1,
|
|
6378
6517
|
'qp-companyType-eq': '30'
|
|
6379
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6518
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6380
6519
|
pageSize: 5000,
|
|
6381
6520
|
currentPage: 1
|
|
6382
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6521
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6383
6522
|
pageSize: 5000,
|
|
6384
6523
|
currentPage: 1,
|
|
6385
6524
|
'qp-companyType-eq': '20'
|
|
@@ -6477,7 +6616,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6477
6616
|
}
|
|
6478
6617
|
}
|
|
6479
6618
|
}];
|
|
6480
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
6619
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
6481
6620
|
formatSource(x, 0, 2, tableSearchForm);
|
|
6482
6621
|
formatSource(x, 1, 3, tableSearchForm);
|
|
6483
6622
|
});
|
|
@@ -6600,19 +6739,19 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6600
6739
|
}
|
|
6601
6740
|
}
|
|
6602
6741
|
}];
|
|
6603
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6742
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6604
6743
|
pageSize: 5000,
|
|
6605
6744
|
currentPage: 1,
|
|
6606
6745
|
'qp-companyType-eq': '30'
|
|
6607
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6746
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6608
6747
|
pageSize: 5000,
|
|
6609
6748
|
currentPage: 1,
|
|
6610
6749
|
'qp-companyType-eq': '20'
|
|
6611
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
6750
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
6612
6751
|
// pageSize: 5000,
|
|
6613
6752
|
// currentPage: 1,
|
|
6614
6753
|
'qp-status-eq': '1'
|
|
6615
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6754
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
6616
6755
|
pageSize: 5000,
|
|
6617
6756
|
currentPage: 1
|
|
6618
6757
|
})]).then(function (x) {
|
|
@@ -6700,7 +6839,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6700
6839
|
}
|
|
6701
6840
|
}
|
|
6702
6841
|
}];
|
|
6703
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
6842
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
6704
6843
|
'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,
|
|
6705
6844
|
'qp-realOrg-eq': true,
|
|
6706
6845
|
'qp-status-eq': 10
|
|
@@ -6827,7 +6966,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6827
6966
|
name: 'qp-officeTelephone-like',
|
|
6828
6967
|
label: '手机号'
|
|
6829
6968
|
}];
|
|
6830
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6969
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
6831
6970
|
pageSize: 5000,
|
|
6832
6971
|
currentPage: 1,
|
|
6833
6972
|
'qp-companyType-eq': 20
|
|
@@ -6902,7 +7041,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6902
7041
|
name: 'qp-officeTelephone-like',
|
|
6903
7042
|
label: '手机号'
|
|
6904
7043
|
}];
|
|
6905
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
7044
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {})]).then(function (x) {
|
|
6906
7045
|
formatSource(x, 0, 2, tableSearchForm);
|
|
6907
7046
|
});
|
|
6908
7047
|
modalTableProps = _objectSpread2({
|
|
@@ -6998,10 +7137,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6998
7137
|
name: 'qp-remark-like',
|
|
6999
7138
|
label: '备注'
|
|
7000
7139
|
}];
|
|
7001
|
-
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
7140
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
7002
7141
|
pageSize: 5000,
|
|
7003
7142
|
currentPage: 1
|
|
7004
|
-
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
7143
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
7005
7144
|
pageSize: 5000,
|
|
7006
7145
|
currentPage: 1
|
|
7007
7146
|
})]).then(function (x) {
|
|
@@ -7089,18 +7228,336 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
7089
7228
|
return true;
|
|
7090
7229
|
});
|
|
7091
7230
|
|
|
7231
|
+
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
7232
|
+
var selectProps = {
|
|
7233
|
+
mode: 'multiple'
|
|
7234
|
+
};
|
|
7235
|
+
|
|
7236
|
+
var _useState = React.useState((selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode) ? [] : null),
|
|
7237
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7238
|
+
value = _useState2[0],
|
|
7239
|
+
setValue = _useState2[1];
|
|
7240
|
+
|
|
7241
|
+
var props = {
|
|
7242
|
+
buttonText: parProps.buttonText || '新增',
|
|
7243
|
+
value: value,
|
|
7244
|
+
// labelInValue: true, // 非必填 默认为false
|
|
7245
|
+
requestConfig: {
|
|
7246
|
+
url: "/items/sku/pager/v2",
|
|
7247
|
+
filter: 'qp-name-like',
|
|
7248
|
+
otherParams: {
|
|
7249
|
+
'qp-combination-eq': false
|
|
7250
|
+
},
|
|
7251
|
+
mappingTextField: 'name',
|
|
7252
|
+
mappingValueField: 'skuCode'
|
|
7253
|
+
},
|
|
7254
|
+
selectProps: selectProps,
|
|
7255
|
+
onChange: function onChange(value) {
|
|
7256
|
+
console.log(value);
|
|
7257
|
+
setValue(value);
|
|
7258
|
+
},
|
|
7259
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
7260
|
+
onSaveCallback: parProps.onSaveCallback // onSaveCallback: (rows) => {
|
|
7261
|
+
// console.log('save call', rows);
|
|
7262
|
+
// // return Promise.resolve(true);
|
|
7263
|
+
// // return Promise.reject('FAILE')
|
|
7264
|
+
// }
|
|
7265
|
+
|
|
7266
|
+
};
|
|
7267
|
+
var modalTableProps = {
|
|
7268
|
+
modalTableTitle: '选择商品',
|
|
7269
|
+
tableSearchForm: [{
|
|
7270
|
+
name: 'qp-skuCode-like',
|
|
7271
|
+
label: 'SKU编码'
|
|
7272
|
+
}, {
|
|
7273
|
+
name: 'qp-skuName-like',
|
|
7274
|
+
label: 'SKU名称'
|
|
7275
|
+
}, {
|
|
7276
|
+
name: 'qp-brandId-in',
|
|
7277
|
+
type: 'select',
|
|
7278
|
+
label: '品牌',
|
|
7279
|
+
field: {
|
|
7280
|
+
type: 'select',
|
|
7281
|
+
props: {
|
|
7282
|
+
mode: 'multiple',
|
|
7283
|
+
notFoundContent: '暂无数据',
|
|
7284
|
+
allowClear: true,
|
|
7285
|
+
showSearch: true,
|
|
7286
|
+
showArrow: true,
|
|
7287
|
+
maxTagCount: 1,
|
|
7288
|
+
optionFilterProp: 'children',
|
|
7289
|
+
filterOption: function filterOption(input, option) {
|
|
7290
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
7291
|
+
}
|
|
7292
|
+
}
|
|
7293
|
+
}
|
|
7294
|
+
}, {
|
|
7295
|
+
name: 'qp-categoryId-in',
|
|
7296
|
+
type: 'treeSelect',
|
|
7297
|
+
label: '类目',
|
|
7298
|
+
field: {
|
|
7299
|
+
type: 'treeSelect',
|
|
7300
|
+
props: {
|
|
7301
|
+
treeData: [],
|
|
7302
|
+
treeCheckable: true,
|
|
7303
|
+
showSearch: true,
|
|
7304
|
+
allowClear: true,
|
|
7305
|
+
showArrow: true,
|
|
7306
|
+
treeNodeFilterProp: 'title',
|
|
7307
|
+
treeDefaultExpandAll: true,
|
|
7308
|
+
maxTagCount: 1,
|
|
7309
|
+
placeholder: '请选择',
|
|
7310
|
+
style: {
|
|
7311
|
+
width: '100%'
|
|
7312
|
+
},
|
|
7313
|
+
dropdownStyle: {
|
|
7314
|
+
maxHeight: 400,
|
|
7315
|
+
maxWidth: 100,
|
|
7316
|
+
overflow: 'auto'
|
|
7317
|
+
}
|
|
7318
|
+
}
|
|
7319
|
+
}
|
|
7320
|
+
}],
|
|
7321
|
+
tableColumns: [{
|
|
7322
|
+
title: 'SKU编码',
|
|
7323
|
+
width: 150,
|
|
7324
|
+
dataIndex: 'skuCode'
|
|
7325
|
+
}, {
|
|
7326
|
+
title: 'SKU名称',
|
|
7327
|
+
width: 200,
|
|
7328
|
+
ellipsis: {
|
|
7329
|
+
showTitle: false
|
|
7330
|
+
},
|
|
7331
|
+
render: function render(text) {
|
|
7332
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7333
|
+
placement: "topLeft",
|
|
7334
|
+
title: text
|
|
7335
|
+
}, text);
|
|
7336
|
+
},
|
|
7337
|
+
dataIndex: 'name'
|
|
7338
|
+
}, {
|
|
7339
|
+
title: '国际条码',
|
|
7340
|
+
width: 100,
|
|
7341
|
+
ellipsis: {
|
|
7342
|
+
showTitle: false
|
|
7343
|
+
},
|
|
7344
|
+
dataIndex: 'barCode',
|
|
7345
|
+
render: function render(text) {
|
|
7346
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7347
|
+
placement: "topLeft",
|
|
7348
|
+
title: text
|
|
7349
|
+
}, text);
|
|
7350
|
+
}
|
|
7351
|
+
}, {
|
|
7352
|
+
title: '所属SPU名称',
|
|
7353
|
+
width: 100,
|
|
7354
|
+
ellipsis: {
|
|
7355
|
+
showTitle: false
|
|
7356
|
+
},
|
|
7357
|
+
dataIndex: 'itemName',
|
|
7358
|
+
render: function render(text) {
|
|
7359
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7360
|
+
placement: "topLeft",
|
|
7361
|
+
title: text
|
|
7362
|
+
}, text);
|
|
7363
|
+
}
|
|
7364
|
+
}, {
|
|
7365
|
+
title: '所属SPU编码',
|
|
7366
|
+
width: 100,
|
|
7367
|
+
ellipsis: {
|
|
7368
|
+
showTitle: false
|
|
7369
|
+
},
|
|
7370
|
+
dataIndex: 'itemCode',
|
|
7371
|
+
render: function render(text) {
|
|
7372
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7373
|
+
placement: "topLeft",
|
|
7374
|
+
title: text
|
|
7375
|
+
}, text);
|
|
7376
|
+
}
|
|
7377
|
+
}, {
|
|
7378
|
+
title: '外部编码',
|
|
7379
|
+
width: 100,
|
|
7380
|
+
ellipsis: {
|
|
7381
|
+
showTitle: false
|
|
7382
|
+
},
|
|
7383
|
+
render: function render(text) {
|
|
7384
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7385
|
+
placement: "topLeft",
|
|
7386
|
+
title: text
|
|
7387
|
+
}, text);
|
|
7388
|
+
},
|
|
7389
|
+
dataIndex: 'externalCode'
|
|
7390
|
+
}, {
|
|
7391
|
+
title: '规格',
|
|
7392
|
+
width: 100,
|
|
7393
|
+
ellipsis: {
|
|
7394
|
+
showTitle: false
|
|
7395
|
+
},
|
|
7396
|
+
render: function render(text) {
|
|
7397
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7398
|
+
placement: "topLeft",
|
|
7399
|
+
title: text
|
|
7400
|
+
}, text);
|
|
7401
|
+
},
|
|
7402
|
+
dataIndex: 'propertyNameAndValue'
|
|
7403
|
+
}, {
|
|
7404
|
+
title: '类目',
|
|
7405
|
+
width: 100,
|
|
7406
|
+
ellipsis: {
|
|
7407
|
+
showTitle: false
|
|
7408
|
+
},
|
|
7409
|
+
render: function render(text) {
|
|
7410
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7411
|
+
placement: "topLeft",
|
|
7412
|
+
title: text
|
|
7413
|
+
}, text);
|
|
7414
|
+
},
|
|
7415
|
+
dataIndex: 'categoryName'
|
|
7416
|
+
}, {
|
|
7417
|
+
title: '品类',
|
|
7418
|
+
width: 100,
|
|
7419
|
+
ellipsis: {
|
|
7420
|
+
showTitle: false
|
|
7421
|
+
},
|
|
7422
|
+
render: function render(text) {
|
|
7423
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7424
|
+
placement: "topLeft",
|
|
7425
|
+
title: text
|
|
7426
|
+
}, text);
|
|
7427
|
+
},
|
|
7428
|
+
dataIndex: 'className'
|
|
7429
|
+
}, {
|
|
7430
|
+
title: '品牌',
|
|
7431
|
+
width: 100,
|
|
7432
|
+
ellipsis: {
|
|
7433
|
+
showTitle: false
|
|
7434
|
+
},
|
|
7435
|
+
render: function render(text) {
|
|
7436
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7437
|
+
placement: "topLeft",
|
|
7438
|
+
title: text
|
|
7439
|
+
}, text);
|
|
7440
|
+
},
|
|
7441
|
+
dataIndex: 'brandName'
|
|
7442
|
+
}],
|
|
7443
|
+
selectColumn: [{
|
|
7444
|
+
title: 'SKU编码',
|
|
7445
|
+
width: 150,
|
|
7446
|
+
dataIndex: 'skuCode'
|
|
7447
|
+
}, {
|
|
7448
|
+
title: 'SKU名称',
|
|
7449
|
+
width: 200,
|
|
7450
|
+
ellipsis: {
|
|
7451
|
+
showTitle: false
|
|
7452
|
+
},
|
|
7453
|
+
render: function render(text) {
|
|
7454
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7455
|
+
placement: "topLeft",
|
|
7456
|
+
title: text
|
|
7457
|
+
}, text);
|
|
7458
|
+
},
|
|
7459
|
+
dataIndex: 'name'
|
|
7460
|
+
}, {
|
|
7461
|
+
title: '数量',
|
|
7462
|
+
width: 100,
|
|
7463
|
+
isInputItem: true,
|
|
7464
|
+
dataIndex: 'count'
|
|
7465
|
+
}, {
|
|
7466
|
+
title: '单位',
|
|
7467
|
+
dataIndex: 'selectUnitCode',
|
|
7468
|
+
width: 80,
|
|
7469
|
+
ellipsis: {
|
|
7470
|
+
showTitle: false
|
|
7471
|
+
},
|
|
7472
|
+
render: function render(text, record) {
|
|
7473
|
+
var baseUnitCode = '';
|
|
7474
|
+
|
|
7475
|
+
if (record === null || record === void 0 ? void 0 : record.packingUnitList) {
|
|
7476
|
+
var base = record.packingUnitList.filter(function (item) {
|
|
7477
|
+
return item.unitCode;
|
|
7478
|
+
});
|
|
7479
|
+
|
|
7480
|
+
if (base.length) {
|
|
7481
|
+
var _base$;
|
|
7482
|
+
|
|
7483
|
+
baseUnitCode = base[0].unitCode;
|
|
7484
|
+
record.selectUnitCode = base[0].unitCode;
|
|
7485
|
+
record.selectedScale = ((_base$ = base[0]) === null || _base$ === void 0 ? void 0 : _base$.baseUnitScale) || 1;
|
|
7486
|
+
}
|
|
7487
|
+
}
|
|
7488
|
+
|
|
7489
|
+
if (baseUnitCode) {
|
|
7490
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
7491
|
+
defaultValue: baseUnitCode,
|
|
7492
|
+
onChange: function onChange(value) {
|
|
7493
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
7494
|
+
|
|
7495
|
+
record.selectUnitCode = value;
|
|
7496
|
+
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) {
|
|
7497
|
+
return item.unitCode === value;
|
|
7498
|
+
})) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.baseUnitScale) || 1;
|
|
7499
|
+
},
|
|
7500
|
+
style: {
|
|
7501
|
+
width: '60px'
|
|
7502
|
+
}
|
|
7503
|
+
}, record.packingUnitList && record.packingUnitList.map(function (item) {
|
|
7504
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
7505
|
+
value: item.unitCode
|
|
7506
|
+
}, item.name);
|
|
7507
|
+
})));
|
|
7508
|
+
}
|
|
7509
|
+
|
|
7510
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
7511
|
+
}
|
|
7512
|
+
}, {
|
|
7513
|
+
title: '所属SPU编码',
|
|
7514
|
+
width: 150,
|
|
7515
|
+
ellipsis: {
|
|
7516
|
+
showTitle: false
|
|
7517
|
+
},
|
|
7518
|
+
dataIndex: 'itemCode',
|
|
7519
|
+
render: function render(text) {
|
|
7520
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7521
|
+
placement: "topLeft",
|
|
7522
|
+
title: text
|
|
7523
|
+
}, text);
|
|
7524
|
+
}
|
|
7525
|
+
}, {
|
|
7526
|
+
title: '规格',
|
|
7527
|
+
width: 200,
|
|
7528
|
+
ellipsis: {
|
|
7529
|
+
showTitle: false
|
|
7530
|
+
},
|
|
7531
|
+
render: function render(text) {
|
|
7532
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
7533
|
+
placement: "topLeft",
|
|
7534
|
+
title: text
|
|
7535
|
+
}, text);
|
|
7536
|
+
},
|
|
7537
|
+
dataIndex: 'propertyNameAndValue'
|
|
7538
|
+
}]
|
|
7539
|
+
};
|
|
7540
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7541
|
+
modalTableProps: modalTableProps
|
|
7542
|
+
})));
|
|
7543
|
+
};
|
|
7544
|
+
|
|
7092
7545
|
var CommodityEntry = function CommodityEntry(props) {
|
|
7093
7546
|
var dataValidationRef = React.useRef();
|
|
7094
7547
|
var _props$buttonName = props.buttonName,
|
|
7095
7548
|
buttonName = _props$buttonName === void 0 ? ' + 录入商品' : _props$buttonName,
|
|
7096
7549
|
_props$modalTitle = props.modalTitle,
|
|
7097
7550
|
modalTitle = _props$modalTitle === void 0 ? '录入商品' : _props$modalTitle,
|
|
7551
|
+
_props$buttonProps = props.buttonProps,
|
|
7552
|
+
buttonProps = _props$buttonProps === void 0 ? {} : _props$buttonProps,
|
|
7098
7553
|
callbackHideModal = props.callbackHideModal,
|
|
7099
7554
|
callbackHandleOk = props.callbackHandleOk,
|
|
7100
7555
|
_props$columns = props.columns,
|
|
7101
7556
|
columns = _props$columns === void 0 ? ["skuCode", "quantity", "price"] : _props$columns,
|
|
7102
7557
|
_props$validDataUrl = props.validDataUrl,
|
|
7103
|
-
validDataUrl = _props$validDataUrl === void 0 ? "/items/
|
|
7558
|
+
validDataUrl = _props$validDataUrl === void 0 ? "/items/sku/import/check" : _props$validDataUrl,
|
|
7559
|
+
_props$isBrandAuth = props.isBrandAuth,
|
|
7560
|
+
isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth;
|
|
7104
7561
|
|
|
7105
7562
|
var _useState = React.useState({
|
|
7106
7563
|
maskClosable: false,
|
|
@@ -7151,9 +7608,9 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
7151
7608
|
modalProps.hideModal();
|
|
7152
7609
|
};
|
|
7153
7610
|
|
|
7154
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
7611
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
7155
7612
|
onClick: handleShowModal
|
|
7156
|
-
}, buttonName), modalProps.visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
7613
|
+
}, buttonProps), buttonName), modalProps.visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
7157
7614
|
onOk: handleOk,
|
|
7158
7615
|
onCancel: handleCancel,
|
|
7159
7616
|
destroyOnClose: true,
|
|
@@ -7163,7 +7620,8 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
7163
7620
|
dataValidationRef = ref;
|
|
7164
7621
|
},
|
|
7165
7622
|
columns: columns,
|
|
7166
|
-
validDataUrl: validDataUrl
|
|
7623
|
+
validDataUrl: validDataUrl,
|
|
7624
|
+
isBrandAuth: isBrandAuth
|
|
7167
7625
|
})) || '');
|
|
7168
7626
|
};
|
|
7169
7627
|
|
|
@@ -7556,6 +8014,7 @@ if (localStorage.getItem('x-user-auth-context')) {
|
|
|
7556
8014
|
}
|
|
7557
8015
|
|
|
7558
8016
|
exports.AddSelect = AddSelect;
|
|
8017
|
+
exports.AddSkuSelect = AddSkuSelect;
|
|
7559
8018
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
7560
8019
|
exports.BusinessTreeSearchSelect = index$1;
|
|
7561
8020
|
exports.CheckOneUser = index;
|