@bit-sun/business-component 2.0.3 → 2.0.6
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/Functional/BillEntry/index.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +774 -11
- package/dist/index.js +772 -8
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.md +5 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +7 -3
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1 -0
- package/src/components/Functional/AddSelect/index.less +69 -1
- package/src/components/Functional/AddSelect/index.md +3 -1
- package/src/components/Functional/AddSelect/index.tsx +17 -3
- package/src/components/Functional/BillEntry/index.less +371 -0
- package/src/components/Functional/BillEntry/index.md +37 -0
- package/src/components/Functional/BillEntry/index.tsx +556 -0
- package/src/index.ts +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import 'antd/dist/antd.css';
|
|
3
|
+
import React, { createContext, useContext, useEffect, forwardRef, createElement, useState, useRef, useMemo } from 'react';
|
|
4
|
+
import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Popover } from 'antd';
|
|
4
5
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
5
6
|
import classNames from 'classnames';
|
|
6
7
|
import _ from 'loadsh';
|
|
@@ -4395,7 +4396,7 @@ var SearchSelect = function SearchSelect(props) {
|
|
|
4395
4396
|
}), " \u5168\u9009\u6240\u6709\u9875\u9762") : '')))));
|
|
4396
4397
|
};
|
|
4397
4398
|
|
|
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";
|
|
4399
|
+
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_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_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.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\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.add_select_wrapper_select_quick {\n margin: 0;\n}\n";
|
|
4399
4400
|
styleInject(css_248z$4);
|
|
4400
4401
|
|
|
4401
4402
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
@@ -4480,7 +4481,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4480
4481
|
_props$getPopupContai = props.getPopupContainer,
|
|
4481
4482
|
onSaveCallback = props.onSaveCallback,
|
|
4482
4483
|
_props$buttonText = props.buttonText,
|
|
4483
|
-
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText
|
|
4484
|
+
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
|
|
4485
|
+
beforeShowModal = props.beforeShowModal;
|
|
4484
4486
|
|
|
4485
4487
|
var _ref = requestConfig || {},
|
|
4486
4488
|
url = _ref.url,
|
|
@@ -4779,6 +4781,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4779
4781
|
} else {
|
|
4780
4782
|
var keys = res.list ? 'list' : 'items';
|
|
4781
4783
|
source = res ? res[keys] ? res[keys].map(function (item) {
|
|
4784
|
+
var _item$packingUnitList, _item$packingUnitList2;
|
|
4785
|
+
|
|
4782
4786
|
var textShowText = item[mappingTextField];
|
|
4783
4787
|
|
|
4784
4788
|
if (mappingTextShowTextField) {
|
|
@@ -4797,9 +4801,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4797
4801
|
text: item[mappingTextField],
|
|
4798
4802
|
textShowText: textShowText,
|
|
4799
4803
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4800
|
-
value: item[mappingValueField]
|
|
4804
|
+
value: item[mappingValueField],
|
|
4805
|
+
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) {
|
|
4806
|
+
return item.baseUnit === true;
|
|
4807
|
+
})) === null || _item$packingUnitList2 === void 0 ? void 0 : _item$packingUnitList2.unitCode
|
|
4801
4808
|
});
|
|
4802
4809
|
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item) {
|
|
4810
|
+
var _item$packingUnitList3, _item$packingUnitList4;
|
|
4811
|
+
|
|
4803
4812
|
var textShowText = item[mappingTextField];
|
|
4804
4813
|
|
|
4805
4814
|
if (mappingTextShowTextField) {
|
|
@@ -4818,7 +4827,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
4818
4827
|
text: item[mappingTextField],
|
|
4819
4828
|
textShowText: textShowText,
|
|
4820
4829
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4821
|
-
value: item[mappingValueField]
|
|
4830
|
+
value: item[mappingValueField],
|
|
4831
|
+
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) {
|
|
4832
|
+
return item.baseUnit === true;
|
|
4833
|
+
})) === null || _item$packingUnitList4 === void 0 ? void 0 : _item$packingUnitList4.unitCode
|
|
4822
4834
|
});
|
|
4823
4835
|
})) : [];
|
|
4824
4836
|
}
|
|
@@ -4845,7 +4857,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4845
4857
|
};
|
|
4846
4858
|
|
|
4847
4859
|
useEffect(function () {
|
|
4848
|
-
// run('init')
|
|
4849
4860
|
Promise.all([loadSelectSource("/items/brand/queryBrandList", {
|
|
4850
4861
|
pageSize: 5000,
|
|
4851
4862
|
currentPage: 1,
|
|
@@ -4910,6 +4921,18 @@ var AddSelect = function AddSelect(props) {
|
|
|
4910
4921
|
}, 50);
|
|
4911
4922
|
};
|
|
4912
4923
|
|
|
4924
|
+
var handleShowModal = function handleShowModal() {
|
|
4925
|
+
if (beforeShowModal) {
|
|
4926
|
+
beforeShowModal(popvalue).then(function (res) {
|
|
4927
|
+
showModal();
|
|
4928
|
+
}).catch(function (Error) {
|
|
4929
|
+
message.warning(Error);
|
|
4930
|
+
});
|
|
4931
|
+
} else {
|
|
4932
|
+
showModal();
|
|
4933
|
+
}
|
|
4934
|
+
};
|
|
4935
|
+
|
|
4913
4936
|
var handleOk = function handleOk(isContinue) {
|
|
4914
4937
|
if (!popvalue.length) {
|
|
4915
4938
|
message.warning('至少选中一条数据');
|
|
@@ -5280,7 +5303,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5280
5303
|
className: "add_select_show",
|
|
5281
5304
|
id: "add_select_div_".concat(uniqueValue)
|
|
5282
5305
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
5283
|
-
onClick:
|
|
5306
|
+
onClick: handleShowModal,
|
|
5284
5307
|
type: "primary"
|
|
5285
5308
|
}, buttonText)), needModalTable && isModalVisible && /*#__PURE__*/React.createElement(Modal, {
|
|
5286
5309
|
width: '1200px',
|
|
@@ -5413,6 +5436,735 @@ var AddSelect = function AddSelect(props) {
|
|
|
5413
5436
|
})))));
|
|
5414
5437
|
};
|
|
5415
5438
|
|
|
5439
|
+
var css_248z$5 = ".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_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_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.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\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.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
5440
|
+
styleInject(css_248z$5);
|
|
5441
|
+
|
|
5442
|
+
var _this = undefined;
|
|
5443
|
+
|
|
5444
|
+
var InputElement = function InputElement(_ref) {
|
|
5445
|
+
var record = _ref.record,
|
|
5446
|
+
text = _ref.text,
|
|
5447
|
+
currentIndex = _ref.currentIndex,
|
|
5448
|
+
inputLength = _ref.inputLength,
|
|
5449
|
+
index = _ref.index,
|
|
5450
|
+
setData = _ref.setData,
|
|
5451
|
+
data = _ref.data,
|
|
5452
|
+
item = _ref.item,
|
|
5453
|
+
callSelectItem = _ref.callSelectItem;
|
|
5454
|
+
|
|
5455
|
+
var _useState = useState(false),
|
|
5456
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5457
|
+
hoverVisibled = _useState2[0],
|
|
5458
|
+
updateHoverVisibled = _useState2[1];
|
|
5459
|
+
|
|
5460
|
+
var _useState3 = useState([]),
|
|
5461
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
5462
|
+
searchData = _useState4[0],
|
|
5463
|
+
updateSearchData = _useState4[1];
|
|
5464
|
+
|
|
5465
|
+
var tableRef = useRef(null);
|
|
5466
|
+
|
|
5467
|
+
var _useState5 = useState(text),
|
|
5468
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
5469
|
+
value = _useState6[0],
|
|
5470
|
+
setValue = _useState6[1];
|
|
5471
|
+
|
|
5472
|
+
var inputRef = useRef(false);
|
|
5473
|
+
|
|
5474
|
+
var onSerchdata = function onSerchdata(name) {
|
|
5475
|
+
axios.get("/items/sku/pager/v2?".concat(stringify({
|
|
5476
|
+
'skuCodeAndSkuName': name,
|
|
5477
|
+
'pageSize': 100
|
|
5478
|
+
}))).then(function (_ref2) {
|
|
5479
|
+
var data = _ref2.data,
|
|
5480
|
+
status = _ref2.status;
|
|
5481
|
+
|
|
5482
|
+
if (status === 200) {
|
|
5483
|
+
if (data.status === '0') {
|
|
5484
|
+
updateSearchData(data.data.items.map(function (item, index) {
|
|
5485
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5486
|
+
index: index
|
|
5487
|
+
});
|
|
5488
|
+
}));
|
|
5489
|
+
} else {
|
|
5490
|
+
updateSearchData([]);
|
|
5491
|
+
}
|
|
5492
|
+
}
|
|
5493
|
+
});
|
|
5494
|
+
};
|
|
5495
|
+
|
|
5496
|
+
var onCallback = function onCallback(itemData) {
|
|
5497
|
+
updateHoverVisibled(false);
|
|
5498
|
+
|
|
5499
|
+
if (itemData) {
|
|
5500
|
+
callSelectItem(_objectSpread2(_objectSpread2({}, itemData), {}, {
|
|
5501
|
+
needFocus: true
|
|
5502
|
+
}));
|
|
5503
|
+
setValue(itemData[item.dataIndex]);
|
|
5504
|
+
} else {
|
|
5505
|
+
callSelectItem(null);
|
|
5506
|
+
}
|
|
5507
|
+
};
|
|
5508
|
+
|
|
5509
|
+
var SearchDataTable = function SearchDataTable(hoverVisibled) {
|
|
5510
|
+
var _useState7 = useState(0),
|
|
5511
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
5512
|
+
selectIndex = _useState8[0],
|
|
5513
|
+
setSelectIndex = _useState8[1];
|
|
5514
|
+
|
|
5515
|
+
var inputRef = useRef(null);
|
|
5516
|
+
useEffect(function () {
|
|
5517
|
+
if (searchData.length && hoverVisibled) {
|
|
5518
|
+
var _tableRef$current;
|
|
5519
|
+
|
|
5520
|
+
var dom = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0];
|
|
5521
|
+
|
|
5522
|
+
if (dom) {
|
|
5523
|
+
dom.style.background = '#005CFF30';
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5526
|
+
}, [hoverVisibled, tableRef === null || tableRef === void 0 ? void 0 : tableRef.current]);
|
|
5527
|
+
useEffect(function () {
|
|
5528
|
+
var inter = setInterval(function () {
|
|
5529
|
+
if (inputRef.current) {
|
|
5530
|
+
inputRef.current.focus();
|
|
5531
|
+
}
|
|
5532
|
+
}, 500);
|
|
5533
|
+
return function () {
|
|
5534
|
+
clearInterval(inter);
|
|
5535
|
+
};
|
|
5536
|
+
});
|
|
5537
|
+
if (!hoverVisibled) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
5538
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
5539
|
+
className: 'add_select_wrapper_select',
|
|
5540
|
+
style: {
|
|
5541
|
+
width: '800px',
|
|
5542
|
+
height: '400px',
|
|
5543
|
+
overflow: 'auto',
|
|
5544
|
+
position: 'relative'
|
|
5545
|
+
}
|
|
5546
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
5547
|
+
placeholder: "\u8BF7\u8F93\u5165skucode\u6216\u8005sku\u540D\u79F0",
|
|
5548
|
+
ref: inputRef,
|
|
5549
|
+
style: {
|
|
5550
|
+
position: 'absolute',
|
|
5551
|
+
zIndex: '-100',
|
|
5552
|
+
height: '22px'
|
|
5553
|
+
},
|
|
5554
|
+
onKeyDown: function onKeyDown(e) {
|
|
5555
|
+
var currentIndex = selectIndex;
|
|
5556
|
+
|
|
5557
|
+
if (e.keyCode === 27) {
|
|
5558
|
+
e.stopPropagation();
|
|
5559
|
+
e.preventDefault();
|
|
5560
|
+
setSelectIndex(0);
|
|
5561
|
+
onCallback(null);
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
if (e.keyCode === 13) {
|
|
5565
|
+
// enter
|
|
5566
|
+
onCallback(searchData[currentIndex]);
|
|
5567
|
+
setSelectIndex(0);
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
if (e.keyCode === 40) {
|
|
5571
|
+
// 向下
|
|
5572
|
+
var dom = tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex + 1];
|
|
5573
|
+
|
|
5574
|
+
if (dom) {
|
|
5575
|
+
tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
|
|
5576
|
+
setSelectIndex(currentIndex + 1);
|
|
5577
|
+
dom.style.background = '#005CFF30';
|
|
5578
|
+
dom.scrollIntoViewIfNeeded(false);
|
|
5579
|
+
}
|
|
5580
|
+
} else if (e.keyCode === 38) {
|
|
5581
|
+
var _dom = tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex - 1];
|
|
5582
|
+
|
|
5583
|
+
if (_dom) {
|
|
5584
|
+
tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
|
|
5585
|
+
setSelectIndex(currentIndex - 1);
|
|
5586
|
+
_dom.style.background = '#005CFF30';
|
|
5587
|
+
|
|
5588
|
+
_dom.scrollIntoViewIfNeeded(false);
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5592
|
+
}), /*#__PURE__*/React.createElement(Table, {
|
|
5593
|
+
ref: tableRef,
|
|
5594
|
+
pagination: false,
|
|
5595
|
+
// components={
|
|
5596
|
+
// {
|
|
5597
|
+
// body: {
|
|
5598
|
+
// cell: ({index, record, ...props}) => {
|
|
5599
|
+
// debugger
|
|
5600
|
+
// return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
|
|
5601
|
+
// }
|
|
5602
|
+
// }
|
|
5603
|
+
// }
|
|
5604
|
+
// }
|
|
5605
|
+
onRow: function onRow(record, index) {
|
|
5606
|
+
return {
|
|
5607
|
+
onClick: function (record, index, event) {
|
|
5608
|
+
var dom = tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[index];
|
|
5609
|
+
|
|
5610
|
+
if (dom) {
|
|
5611
|
+
_toConsumableArray(tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')).map(function (item) {
|
|
5612
|
+
item.style.background = '';
|
|
5613
|
+
});
|
|
5614
|
+
|
|
5615
|
+
dom.style.background = '#005CFF30';
|
|
5616
|
+
dom.scrollIntoViewIfNeeded(false);
|
|
5617
|
+
}
|
|
5618
|
+
|
|
5619
|
+
setSelectIndex(index);
|
|
5620
|
+
}.bind(_this, record, index) // 点击行
|
|
5621
|
+
|
|
5622
|
+
};
|
|
5623
|
+
},
|
|
5624
|
+
rowClassName: 'row-class',
|
|
5625
|
+
columns: [{
|
|
5626
|
+
title: 'SKU编码',
|
|
5627
|
+
width: 150,
|
|
5628
|
+
dataIndex: 'skuCode'
|
|
5629
|
+
}, {
|
|
5630
|
+
title: 'SKU名称',
|
|
5631
|
+
width: 200,
|
|
5632
|
+
ellipsis: {
|
|
5633
|
+
showTitle: false
|
|
5634
|
+
},
|
|
5635
|
+
render: function render(text) {
|
|
5636
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
5637
|
+
placement: "topLeft",
|
|
5638
|
+
title: text
|
|
5639
|
+
}, text);
|
|
5640
|
+
},
|
|
5641
|
+
dataIndex: 'name'
|
|
5642
|
+
}, {
|
|
5643
|
+
title: '国际条码',
|
|
5644
|
+
width: 100,
|
|
5645
|
+
ellipsis: {
|
|
5646
|
+
showTitle: false
|
|
5647
|
+
},
|
|
5648
|
+
dataIndex: 'barCode',
|
|
5649
|
+
render: function render(text) {
|
|
5650
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
5651
|
+
placement: "topLeft",
|
|
5652
|
+
title: text
|
|
5653
|
+
}, text);
|
|
5654
|
+
}
|
|
5655
|
+
}, {
|
|
5656
|
+
title: '所属SPU名称',
|
|
5657
|
+
width: 100,
|
|
5658
|
+
ellipsis: {
|
|
5659
|
+
showTitle: false
|
|
5660
|
+
},
|
|
5661
|
+
dataIndex: 'itemName',
|
|
5662
|
+
render: function render(text) {
|
|
5663
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
5664
|
+
placement: "topLeft",
|
|
5665
|
+
title: text
|
|
5666
|
+
}, text);
|
|
5667
|
+
}
|
|
5668
|
+
}, {
|
|
5669
|
+
title: '所属SPU编码',
|
|
5670
|
+
width: 100,
|
|
5671
|
+
ellipsis: {
|
|
5672
|
+
showTitle: false
|
|
5673
|
+
},
|
|
5674
|
+
dataIndex: 'itemCode',
|
|
5675
|
+
render: function render(text) {
|
|
5676
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
5677
|
+
placement: "topLeft",
|
|
5678
|
+
title: text
|
|
5679
|
+
}, text);
|
|
5680
|
+
}
|
|
5681
|
+
}, {
|
|
5682
|
+
title: '外部编码',
|
|
5683
|
+
width: 100,
|
|
5684
|
+
ellipsis: {
|
|
5685
|
+
showTitle: false
|
|
5686
|
+
},
|
|
5687
|
+
render: function render(text) {
|
|
5688
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
5689
|
+
placement: "topLeft",
|
|
5690
|
+
title: text
|
|
5691
|
+
}, text);
|
|
5692
|
+
},
|
|
5693
|
+
dataIndex: 'externalCode'
|
|
5694
|
+
}],
|
|
5695
|
+
dataSource: searchData
|
|
5696
|
+
}));
|
|
5697
|
+
};
|
|
5698
|
+
|
|
5699
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
5700
|
+
placement: "bottomLeft",
|
|
5701
|
+
destroyTooltipOnHide: {
|
|
5702
|
+
keepParent: false
|
|
5703
|
+
},
|
|
5704
|
+
title: "",
|
|
5705
|
+
trigger: "",
|
|
5706
|
+
content: SearchDataTable(hoverVisibled),
|
|
5707
|
+
visible: hoverVisibled,
|
|
5708
|
+
onVisibleChange: function onVisibleChange(disabled) {
|
|
5709
|
+
updateHoverVisibled(disabled);
|
|
5710
|
+
}
|
|
5711
|
+
}, item.isPrimaryInput ? /*#__PURE__*/React.createElement(Input, {
|
|
5712
|
+
value: value,
|
|
5713
|
+
ref: inputRef,
|
|
5714
|
+
placeholder: "skucode / sku\u540D\u79F0",
|
|
5715
|
+
keyboard: false,
|
|
5716
|
+
autoFocus: record.autoFocus,
|
|
5717
|
+
onChange: function onChange(value) {
|
|
5718
|
+
record[item.dataIndex] = value.currentTarget.value;
|
|
5719
|
+
setValue(value.currentTarget.value); // setData(data);
|
|
5720
|
+
},
|
|
5721
|
+
// onFocus={(e)=> {
|
|
5722
|
+
// let dom1 = e.currentTarget;
|
|
5723
|
+
// dom1.setSelectionRange(100, 0);
|
|
5724
|
+
// dom1.select(text);
|
|
5725
|
+
// }}
|
|
5726
|
+
onKeyDown: function onKeyDown(e) {
|
|
5727
|
+
// if (e.keyCode === 13 && e.ctrlKey) {
|
|
5728
|
+
// handleOk(true)
|
|
5729
|
+
// document.getElementById("first-query")?.focus()
|
|
5730
|
+
// }
|
|
5731
|
+
if (e.keyCode === 8 && e.ctrlKey && index) {
|
|
5732
|
+
var _e$nativeEvent$path$;
|
|
5733
|
+
|
|
5734
|
+
message.success('删除当前行');
|
|
5735
|
+
e.stopPropagation();
|
|
5736
|
+
e.preventDefault();
|
|
5737
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[3].children[index - 1]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
5738
|
+
|
|
5739
|
+
if (dom) {
|
|
5740
|
+
dom.select();
|
|
5741
|
+
dom.focus();
|
|
5742
|
+
dom.scrollIntoView(false);
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
dom = null;
|
|
5746
|
+
setData(data.filter(function (item, innerIndex) {
|
|
5747
|
+
return innerIndex !== index;
|
|
5748
|
+
}));
|
|
5749
|
+
}
|
|
5750
|
+
|
|
5751
|
+
if (e.keyCode === 13) {
|
|
5752
|
+
// enter
|
|
5753
|
+
if (item.isPrimaryInput) {
|
|
5754
|
+
if (e.currentTarget.value.length < 2) {
|
|
5755
|
+
message.warning('至少输入两个字符');
|
|
5756
|
+
} else {
|
|
5757
|
+
updateHoverVisibled(true);
|
|
5758
|
+
onSerchdata(e.currentTarget.value);
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
|
|
5763
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
5764
|
+
var _e$nativeEvent$path$2;
|
|
5765
|
+
|
|
5766
|
+
// 左滑动
|
|
5767
|
+
e.stopPropagation();
|
|
5768
|
+
e.preventDefault();
|
|
5769
|
+
|
|
5770
|
+
var _dom2 = (_e$nativeEvent$path$2 = e.nativeEvent.path[3].children[index]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
5771
|
+
|
|
5772
|
+
if (_dom2) {
|
|
5773
|
+
_dom2.select();
|
|
5774
|
+
|
|
5775
|
+
_dom2.focus();
|
|
5776
|
+
|
|
5777
|
+
_dom2.scrollIntoView(false);
|
|
5778
|
+
}
|
|
5779
|
+
|
|
5780
|
+
_dom2 = null;
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5783
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
5784
|
+
var _e$nativeEvent$path$3;
|
|
5785
|
+
|
|
5786
|
+
// 右滑
|
|
5787
|
+
e.stopPropagation();
|
|
5788
|
+
e.preventDefault();
|
|
5789
|
+
|
|
5790
|
+
var _dom3 = (_e$nativeEvent$path$3 = e.nativeEvent.path[3].children[index]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
5791
|
+
|
|
5792
|
+
if (_dom3) {
|
|
5793
|
+
_dom3.select();
|
|
5794
|
+
|
|
5795
|
+
_dom3.focus();
|
|
5796
|
+
|
|
5797
|
+
_dom3.scrollIntoView(false);
|
|
5798
|
+
}
|
|
5799
|
+
|
|
5800
|
+
_dom3 = null;
|
|
5801
|
+
}
|
|
5802
|
+
|
|
5803
|
+
if (e.keyCode === 40) {
|
|
5804
|
+
var _e$nativeEvent$path$4;
|
|
5805
|
+
|
|
5806
|
+
// 向下
|
|
5807
|
+
e.stopPropagation();
|
|
5808
|
+
e.preventDefault();
|
|
5809
|
+
|
|
5810
|
+
var _dom4 = (_e$nativeEvent$path$4 = e.nativeEvent.path[3].children[index + 1]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
5811
|
+
|
|
5812
|
+
if (_dom4) {
|
|
5813
|
+
_dom4.select();
|
|
5814
|
+
|
|
5815
|
+
_dom4.focus();
|
|
5816
|
+
|
|
5817
|
+
_dom4.scrollIntoView(false);
|
|
5818
|
+
}
|
|
5819
|
+
|
|
5820
|
+
_dom4 = null;
|
|
5821
|
+
} else if (e.keyCode === 38) {
|
|
5822
|
+
var _e$nativeEvent$path$5;
|
|
5823
|
+
|
|
5824
|
+
e.stopPropagation();
|
|
5825
|
+
e.preventDefault();
|
|
5826
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[3].children[index - 1]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
5827
|
+
|
|
5828
|
+
if (dom1) {
|
|
5829
|
+
// dom1.value=""
|
|
5830
|
+
// dom1.setSelectionRange(100, 0);
|
|
5831
|
+
dom1.select();
|
|
5832
|
+
dom1.focus();
|
|
5833
|
+
dom1.scrollIntoViewIfNeeded(false); // dom1.value=record['count']
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
dom1 = null;
|
|
5837
|
+
} else if (e.keyCode === 9 && currentIndex === inputLength - 1 && index === data.length - 1) {
|
|
5838
|
+
setData([].concat(_toConsumableArray(data), [{}]));
|
|
5839
|
+
}
|
|
5840
|
+
}
|
|
5841
|
+
}) : /*#__PURE__*/React.createElement(InputNumber // onBlur={() => {updateHoverVisibled(false)}}
|
|
5842
|
+
, {
|
|
5843
|
+
// onBlur={() => {updateHoverVisibled(false)}}
|
|
5844
|
+
defaultValue: text || 0,
|
|
5845
|
+
min: 0,
|
|
5846
|
+
keyboard: false,
|
|
5847
|
+
onChange: function onChange(value) {
|
|
5848
|
+
record[item.dataIndex] = value;
|
|
5849
|
+
},
|
|
5850
|
+
onKeyDown: function onKeyDown(e) {
|
|
5851
|
+
// if (e.keyCode === 13 && e.ctrlKey) {
|
|
5852
|
+
// handleOk(true)
|
|
5853
|
+
// document.getElementById("first-query")?.focus()
|
|
5854
|
+
// }
|
|
5855
|
+
if (e.keyCode === 8 && e.ctrlKey && index) {
|
|
5856
|
+
var _e$nativeEvent$path$6;
|
|
5857
|
+
|
|
5858
|
+
message.success('删除当前行');
|
|
5859
|
+
e.stopPropagation();
|
|
5860
|
+
e.preventDefault();
|
|
5861
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index - 1]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
5862
|
+
|
|
5863
|
+
if (dom) {
|
|
5864
|
+
dom.select();
|
|
5865
|
+
dom.focus();
|
|
5866
|
+
dom.scrollIntoView(false);
|
|
5867
|
+
}
|
|
5868
|
+
|
|
5869
|
+
dom = null;
|
|
5870
|
+
setData(data.filter(function (item, innerIndex) {
|
|
5871
|
+
return innerIndex !== index;
|
|
5872
|
+
}));
|
|
5873
|
+
}
|
|
5874
|
+
|
|
5875
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
5876
|
+
var _e$nativeEvent$path$7;
|
|
5877
|
+
|
|
5878
|
+
// 左滑动
|
|
5879
|
+
e.stopPropagation();
|
|
5880
|
+
e.preventDefault();
|
|
5881
|
+
|
|
5882
|
+
var _dom5 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
5883
|
+
|
|
5884
|
+
if (_dom5) {
|
|
5885
|
+
_dom5.select();
|
|
5886
|
+
|
|
5887
|
+
_dom5.focus();
|
|
5888
|
+
|
|
5889
|
+
_dom5.scrollIntoView(false);
|
|
5890
|
+
}
|
|
5891
|
+
|
|
5892
|
+
_dom5 = null;
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5895
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
5896
|
+
var _e$nativeEvent$path$8;
|
|
5897
|
+
|
|
5898
|
+
// 右滑
|
|
5899
|
+
e.stopPropagation();
|
|
5900
|
+
e.preventDefault();
|
|
5901
|
+
|
|
5902
|
+
var _dom6 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
5903
|
+
|
|
5904
|
+
if (_dom6) {
|
|
5905
|
+
_dom6.select();
|
|
5906
|
+
|
|
5907
|
+
_dom6.focus();
|
|
5908
|
+
|
|
5909
|
+
_dom6.scrollIntoView(false);
|
|
5910
|
+
}
|
|
5911
|
+
|
|
5912
|
+
_dom6 = null;
|
|
5913
|
+
}
|
|
5914
|
+
|
|
5915
|
+
if (e.keyCode === 40) {
|
|
5916
|
+
var _e$nativeEvent$path$9;
|
|
5917
|
+
|
|
5918
|
+
// 向下
|
|
5919
|
+
e.stopPropagation();
|
|
5920
|
+
e.preventDefault();
|
|
5921
|
+
|
|
5922
|
+
var _dom7 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
5923
|
+
|
|
5924
|
+
if (_dom7) {
|
|
5925
|
+
_dom7.select();
|
|
5926
|
+
|
|
5927
|
+
_dom7.focus();
|
|
5928
|
+
|
|
5929
|
+
_dom7.scrollIntoView(false);
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
_dom7 = null;
|
|
5933
|
+
} else if (e.keyCode === 38) {
|
|
5934
|
+
var _e$nativeEvent$path$10;
|
|
5935
|
+
|
|
5936
|
+
e.stopPropagation();
|
|
5937
|
+
e.preventDefault();
|
|
5938
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index - 1]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
5939
|
+
|
|
5940
|
+
if (dom1) {
|
|
5941
|
+
// dom1.value=""
|
|
5942
|
+
// dom1.setSelectionRange(100, 0);
|
|
5943
|
+
dom1.select();
|
|
5944
|
+
dom1.focus();
|
|
5945
|
+
dom1.scrollIntoViewIfNeeded(false); // dom1.value=record['count']
|
|
5946
|
+
}
|
|
5947
|
+
|
|
5948
|
+
dom1 = null;
|
|
5949
|
+
} else if (e.keyCode === 9 && currentIndex === inputLength - 1 && index === data.length - 1) {
|
|
5950
|
+
e.stopPropagation();
|
|
5951
|
+
e.preventDefault();
|
|
5952
|
+
} else if (e.keyCode === 13 && currentIndex === inputLength - 1 && index === data.length - 1 && record['skuCode']) {
|
|
5953
|
+
setData([].concat(_toConsumableArray(data), [{
|
|
5954
|
+
autoFocus: true
|
|
5955
|
+
}]));
|
|
5956
|
+
}
|
|
5957
|
+
}
|
|
5958
|
+
}));
|
|
5959
|
+
};
|
|
5960
|
+
|
|
5961
|
+
var BillEntry = function BillEntry(_ref3) {
|
|
5962
|
+
var onSaveCallback = _ref3.onSaveCallback;
|
|
5963
|
+
var columns = [{
|
|
5964
|
+
title: 'SKU编码',
|
|
5965
|
+
width: 150,
|
|
5966
|
+
dataIndex: 'skuCode',
|
|
5967
|
+
isInputItem: true,
|
|
5968
|
+
isPrimaryInput: true
|
|
5969
|
+
}, {
|
|
5970
|
+
title: 'SKU名称',
|
|
5971
|
+
width: 200,
|
|
5972
|
+
ellipsis: {
|
|
5973
|
+
showTitle: false
|
|
5974
|
+
},
|
|
5975
|
+
render: function render(text) {
|
|
5976
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
5977
|
+
placement: "topLeft",
|
|
5978
|
+
title: text
|
|
5979
|
+
}, text);
|
|
5980
|
+
},
|
|
5981
|
+
dataIndex: 'name'
|
|
5982
|
+
}, {
|
|
5983
|
+
title: '单位',
|
|
5984
|
+
dataIndex: 'selectUnitCode',
|
|
5985
|
+
width: 100,
|
|
5986
|
+
isSelectItem: true,
|
|
5987
|
+
render: function render(text, record) {
|
|
5988
|
+
var baseUnitCode = '';
|
|
5989
|
+
|
|
5990
|
+
if (record === null || record === void 0 ? void 0 : record.packingUnitList) {
|
|
5991
|
+
var base = record.packingUnitList.filter(function (item) {
|
|
5992
|
+
return item.unitCode;
|
|
5993
|
+
});
|
|
5994
|
+
|
|
5995
|
+
if (base.length) {
|
|
5996
|
+
baseUnitCode = base[0].unitCode;
|
|
5997
|
+
record.selectUnitCode = base[0].unitCode;
|
|
5998
|
+
}
|
|
5999
|
+
}
|
|
6000
|
+
|
|
6001
|
+
record.packingUnitList = record.packingUnitList || [];
|
|
6002
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Select, {
|
|
6003
|
+
value: record.selectUnitCode,
|
|
6004
|
+
onChange: function onChange(value) {
|
|
6005
|
+
record.selectUnitCode = value;
|
|
6006
|
+
},
|
|
6007
|
+
style: {
|
|
6008
|
+
width: '60px',
|
|
6009
|
+
height: '22px',
|
|
6010
|
+
lineHight: '22px'
|
|
6011
|
+
}
|
|
6012
|
+
}, record.packingUnitList && record.packingUnitList.map(function (item) {
|
|
6013
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
6014
|
+
value: item.unitCode
|
|
6015
|
+
}, item.name);
|
|
6016
|
+
})));
|
|
6017
|
+
}
|
|
6018
|
+
}, {
|
|
6019
|
+
title: '数量',
|
|
6020
|
+
width: 100,
|
|
6021
|
+
isInputItem: true,
|
|
6022
|
+
dataIndex: 'count'
|
|
6023
|
+
}, {
|
|
6024
|
+
title: '所属SPU编码',
|
|
6025
|
+
width: 100,
|
|
6026
|
+
ellipsis: {
|
|
6027
|
+
showTitle: false
|
|
6028
|
+
},
|
|
6029
|
+
dataIndex: 'itemCode',
|
|
6030
|
+
render: function render(text) {
|
|
6031
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
6032
|
+
placement: "topLeft",
|
|
6033
|
+
title: text
|
|
6034
|
+
}, text);
|
|
6035
|
+
}
|
|
6036
|
+
}, {
|
|
6037
|
+
title: '规格',
|
|
6038
|
+
width: 200,
|
|
6039
|
+
ellipsis: {
|
|
6040
|
+
showTitle: false
|
|
6041
|
+
},
|
|
6042
|
+
render: function render(text) {
|
|
6043
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
6044
|
+
placement: "topLeft",
|
|
6045
|
+
title: text
|
|
6046
|
+
}, text);
|
|
6047
|
+
},
|
|
6048
|
+
dataIndex: 'propertyNameAndValue'
|
|
6049
|
+
}];
|
|
6050
|
+
|
|
6051
|
+
var _useState9 = useState(false),
|
|
6052
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
6053
|
+
isModalVisible = _useState10[0],
|
|
6054
|
+
setIsModalVisible = _useState10[1];
|
|
6055
|
+
|
|
6056
|
+
var _useState11 = useState([{
|
|
6057
|
+
hovered: false
|
|
6058
|
+
}]),
|
|
6059
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
6060
|
+
data = _useState12[0],
|
|
6061
|
+
setData = _useState12[1];
|
|
6062
|
+
|
|
6063
|
+
var tableRef = useRef(null);
|
|
6064
|
+
|
|
6065
|
+
var callSelectItem = function callSelectItem(index, item) {
|
|
6066
|
+
var _tableRef$current2;
|
|
6067
|
+
|
|
6068
|
+
if (item) {
|
|
6069
|
+
var newData = [].concat(data);
|
|
6070
|
+
newData[index] = _objectSpread2(_objectSpread2({}, data[index]), item);
|
|
6071
|
+
setData(newData);
|
|
6072
|
+
}
|
|
6073
|
+
|
|
6074
|
+
var dom = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : _tableRef$current2.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[index + 1];
|
|
6075
|
+
|
|
6076
|
+
if (dom) {
|
|
6077
|
+
setTimeout(function () {
|
|
6078
|
+
var _dom$getElementsByTag, _dom$getElementsByTag2;
|
|
6079
|
+
|
|
6080
|
+
(_dom$getElementsByTag = dom.getElementsByTagName('input')[item ? 1 : 0]) === null || _dom$getElementsByTag === void 0 ? void 0 : _dom$getElementsByTag.select();
|
|
6081
|
+
(_dom$getElementsByTag2 = dom.getElementsByTagName('input')[item ? 1 : 0]) === null || _dom$getElementsByTag2 === void 0 ? void 0 : _dom$getElementsByTag2.focus();
|
|
6082
|
+
}, 200);
|
|
6083
|
+
}
|
|
6084
|
+
};
|
|
6085
|
+
|
|
6086
|
+
var deleteRecord = function deleteRecord(record) {
|
|
6087
|
+
setData(data.filter(function (item) {
|
|
6088
|
+
return item.skuCode !== record.skuCode;
|
|
6089
|
+
}));
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
var inputIndex = 0;
|
|
6093
|
+
var selectColumns = [].concat(_toConsumableArray(columns.map(function (item) {
|
|
6094
|
+
var inputLength = columns.filter(function (item) {
|
|
6095
|
+
return item.isInputItem || item.isSelectItem;
|
|
6096
|
+
}).length;
|
|
6097
|
+
var currentIndex = inputIndex;
|
|
6098
|
+
|
|
6099
|
+
if (item.isInputItem) {
|
|
6100
|
+
inputIndex++;
|
|
6101
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
6102
|
+
render: function render(text, record, index) {
|
|
6103
|
+
return /*#__PURE__*/React.createElement(InputElement, {
|
|
6104
|
+
setData: setData,
|
|
6105
|
+
callSelectItem: callSelectItem.bind(_this, index),
|
|
6106
|
+
item: item,
|
|
6107
|
+
isPrimaryInput: item.isPrimaryInput,
|
|
6108
|
+
record: record,
|
|
6109
|
+
text: text,
|
|
6110
|
+
data: data,
|
|
6111
|
+
index: index,
|
|
6112
|
+
inputLength: inputLength,
|
|
6113
|
+
currentIndex: currentIndex
|
|
6114
|
+
});
|
|
6115
|
+
}
|
|
6116
|
+
});
|
|
6117
|
+
} else if (item.isSelectItem) {
|
|
6118
|
+
inputIndex++;
|
|
6119
|
+
}
|
|
6120
|
+
|
|
6121
|
+
return item;
|
|
6122
|
+
})), [{
|
|
6123
|
+
title: '操作',
|
|
6124
|
+
width: 50,
|
|
6125
|
+
fixed: 'right',
|
|
6126
|
+
render: function render(text, record, index) {
|
|
6127
|
+
if (index !== 0) {
|
|
6128
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
6129
|
+
style: {
|
|
6130
|
+
cursor: 'pointer',
|
|
6131
|
+
color: '#005CFF'
|
|
6132
|
+
},
|
|
6133
|
+
onClick: function onClick() {
|
|
6134
|
+
deleteRecord(record);
|
|
6135
|
+
}
|
|
6136
|
+
}, "\u5220\u9664");
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
}]);
|
|
6140
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
6141
|
+
className: 'add_select'
|
|
6142
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6143
|
+
className: 'add_select_quick_header'
|
|
6144
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6145
|
+
className: 'add_select_quick_header_title'
|
|
6146
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u5FEB\u901F\u5F55\u5165"), /*#__PURE__*/React.createElement(Button, {
|
|
6147
|
+
type: "primary",
|
|
6148
|
+
onClick: function onClick() {
|
|
6149
|
+
onSaveCallback(data);
|
|
6150
|
+
}
|
|
6151
|
+
}, "\u63D0\u4EA4")), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null, "*"), " \xA0\u5FEB\u6377\u952E\uFF1A\u3010Tab\u3011-\u8DF3\u683C\u5207\u6362\uFF1B\u3010Shift+\u2190\u3001\u2192\u3011-\u5F53\u524D\u884C\u5DE6\u3001\u53F3\u79FB\u52A8\uFF1B\u3010 \u2191\u3001\u2193\u3011-\u5F53\u524D\u5217\u4E0A\u3001\u4E0B\u79FB\u52A8\uFF1B\u3010ctrl+Delete\u3011-\u5220\u9664\u5F53\u524D\u884C\uFF1B")), /*#__PURE__*/React.createElement("div", {
|
|
6152
|
+
className: 'add_select_wrapper_select add_select_wrapper_select_quick'
|
|
6153
|
+
}, /*#__PURE__*/React.createElement(Table, _defineProperty({
|
|
6154
|
+
size: 'small',
|
|
6155
|
+
scroll: {
|
|
6156
|
+
y: 240
|
|
6157
|
+
},
|
|
6158
|
+
ref: tableRef,
|
|
6159
|
+
dataSource: data,
|
|
6160
|
+
columns: selectColumns,
|
|
6161
|
+
pagination: false,
|
|
6162
|
+
rowClassName: 'row-class'
|
|
6163
|
+
}, "rowClassName", function rowClassName(record, index) {
|
|
6164
|
+
return index % 2 === 0 ? 'table_base row-class' : 'table_odd row-class';
|
|
6165
|
+
}))));
|
|
6166
|
+
};
|
|
6167
|
+
|
|
5416
6168
|
var shopFileType = [{
|
|
5417
6169
|
text: "线上",
|
|
5418
6170
|
value: 'online'
|
|
@@ -5830,6 +6582,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
5830
6582
|
mappingValueField: 'skuCode',
|
|
5831
6583
|
mappingTextShowTextField: ['name', 'propertyNameAndValue'],
|
|
5832
6584
|
otherParams: {
|
|
6585
|
+
'qp-combination-eq': false,
|
|
5833
6586
|
'qp-approveStatus-eq': 1,
|
|
5834
6587
|
// 'qp-type-eq': 10, // 查唯一国际条码【有些项目不需要必须要有国际条码,故注释,需要的项目自己定义otherParams补充上这个条件】
|
|
5835
6588
|
sorter: 'desc-id'
|
|
@@ -7211,7 +7964,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
7211
7964
|
requestConfig: {
|
|
7212
7965
|
url: "/items/sku/pager/v2",
|
|
7213
7966
|
filter: 'qp-name-like',
|
|
7214
|
-
otherParams: {
|
|
7967
|
+
otherParams: {
|
|
7968
|
+
'qp-combination-eq': false
|
|
7969
|
+
},
|
|
7215
7970
|
mappingTextField: 'name',
|
|
7216
7971
|
mappingValueField: 'skuCode'
|
|
7217
7972
|
},
|
|
@@ -7220,6 +7975,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
7220
7975
|
console.log(value);
|
|
7221
7976
|
setValue(value);
|
|
7222
7977
|
},
|
|
7978
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
7223
7979
|
onSaveCallback: parProps.onSaveCallback // onSaveCallback: (rows) => {
|
|
7224
7980
|
// console.log('save call', rows);
|
|
7225
7981
|
// // return Promise.resolve(true);
|
|
@@ -7441,8 +8197,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
7441
8197
|
});
|
|
7442
8198
|
|
|
7443
8199
|
if (base.length) {
|
|
8200
|
+
var _base$;
|
|
8201
|
+
|
|
7444
8202
|
baseUnitCode = base[0].unitCode;
|
|
7445
8203
|
record.selectUnitCode = base[0].unitCode;
|
|
8204
|
+
record.selectedScale = ((_base$ = base[0]) === null || _base$ === void 0 ? void 0 : _base$.baseUnitScale) || 1;
|
|
7446
8205
|
}
|
|
7447
8206
|
}
|
|
7448
8207
|
|
|
@@ -7450,7 +8209,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
7450
8209
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Select, {
|
|
7451
8210
|
defaultValue: baseUnitCode,
|
|
7452
8211
|
onChange: function onChange(value) {
|
|
8212
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
8213
|
+
|
|
7453
8214
|
record.selectUnitCode = value;
|
|
8215
|
+
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) {
|
|
8216
|
+
return item.unitCode === value;
|
|
8217
|
+
})) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.baseUnitScale) || 1;
|
|
7454
8218
|
},
|
|
7455
8219
|
style: {
|
|
7456
8220
|
width: '60px'
|
|
@@ -7958,7 +8722,6 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
7958
8722
|
* @LastEditTime: 2022-01-14 16:10:27
|
|
7959
8723
|
* @LastEditors: rodchen
|
|
7960
8724
|
*/
|
|
7961
|
-
|
|
7962
8725
|
var resposne = JSON.parse(localStorage.getItem('userInfo') || '{}');
|
|
7963
8726
|
axios.defaults.headers.common['sso-sessionid'] = (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
7964
8727
|
axios.defaults.headers.common['x-tenant-id'] = (resposne === null || resposne === void 0 ? void 0 : resposne.tenantId) || '1';
|
|
@@ -7968,4 +8731,4 @@ if (localStorage.getItem('x-user-auth-context')) {
|
|
|
7968
8731
|
axios.defaults.headers.common['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
7969
8732
|
}
|
|
7970
8733
|
|
|
7971
|
-
export { AddSelect, AddSkuSelect, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };
|
|
8734
|
+
export { AddSelect, AddSkuSelect, BillEntry, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };
|