wt-enjoy-link-antd-repack 4.1.17
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +26 -0
- package/dist/esm/assets/location.png +0 -0
- package/dist/esm/component/BiuAButton/index.d.ts +18 -0
- package/dist/esm/component/BiuAButton/index.js +8 -0
- package/dist/esm/component/BiuACard/index.d.ts +2 -0
- package/dist/esm/component/BiuACard/index.js +9 -0
- package/dist/esm/component/BiuACascader/index.d.ts +10 -0
- package/dist/esm/component/BiuACascader/index.js +8 -0
- package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
- package/dist/esm/component/BiuADatePicker/index.js +18 -0
- package/dist/esm/component/BiuAForm/index.d.ts +7 -0
- package/dist/esm/component/BiuAForm/index.js +10 -0
- package/dist/esm/component/BiuAInput/index.d.ts +14 -0
- package/dist/esm/component/BiuAInput/index.js +32 -0
- package/dist/esm/component/BiuASelect/index.d.ts +6 -0
- package/dist/esm/component/BiuASelect/index.js +14 -0
- package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
- package/dist/esm/component/BiuASwitch/index.js +9 -0
- package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
- package/dist/esm/component/BiuATimePicker/index.js +8 -0
- package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
- package/dist/esm/component/BiuATreeSelect/index.js +8 -0
- package/dist/esm/component/BiuBar/index.d.ts +13 -0
- package/dist/esm/component/BiuBar/index.js +42 -0
- package/dist/esm/component/BiuComSelect/index.d.ts +24 -0
- package/dist/esm/component/BiuComSelect/index.js +104 -0
- package/dist/esm/component/BiuCue/index.d.ts +18 -0
- package/dist/esm/component/BiuCue/index.js +44 -0
- package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
- package/dist/esm/component/BiuCustomSelect/index.js +153 -0
- package/dist/esm/component/BiuCustomTable/index.d.ts +14 -0
- package/dist/esm/component/BiuCustomTable/index.js +76 -0
- package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +8 -0
- package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +264 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
- package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
- package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
- package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
- package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
- package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
- package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
- package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
- package/dist/esm/component/BiuDescriptions/index.js +39 -0
- package/dist/esm/component/BiuDetailDrawer/index.d.ts +15 -0
- package/dist/esm/component/BiuDetailDrawer/index.js +54 -0
- package/dist/esm/component/BiuDivider/index.d.ts +4 -0
- package/dist/esm/component/BiuDivider/index.js +29 -0
- package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +98 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +393 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +59 -0
- package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +130 -0
- package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
- package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
- package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
- package/dist/esm/component/BiuField/component/SNInput.js +622 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +23 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +187 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +153 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +238 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +66 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +24 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +164 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +149 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +145 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +113 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +100 -0
- package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
- package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
- package/dist/esm/component/BiuField/component/autoComplete.js +82 -0
- package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
- package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
- package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
- package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
- package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
- package/dist/esm/component/BiuField/component/carrierInfoSelect.js +145 -0
- package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/channelSelect.js +94 -0
- package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
- package/dist/esm/component/BiuField/component/cityAreaCascader.js +86 -0
- package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +175 -0
- package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
- package/dist/esm/component/BiuField/component/customMenu.js +110 -0
- package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
- package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
- package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/departmentTreeSelect.js +107 -0
- package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
- package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +41 -0
- package/dist/esm/component/BiuField/component/dicTypeSelect.js +84 -0
- package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
- package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +18 -0
- package/dist/esm/component/BiuField/component/editLocationSelect.js +119 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +97 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +73 -0
- package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
- package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
- package/dist/esm/component/BiuField/component/index.d.ts +37 -0
- package/dist/esm/component/BiuField/component/index.js +37 -0
- package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
- package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/lpnSelect.js +88 -0
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +15 -0
- package/dist/esm/component/BiuField/component/orderTypeSelect.js +79 -0
- package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
- package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
- package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
- package/dist/esm/component/BiuField/component/personnelinfoselect.js +431 -0
- package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
- package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
- package/dist/esm/component/BiuField/component/userSelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/userSelect.js +163 -0
- package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +103 -0
- package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +13 -0
- package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +92 -0
- package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +124 -0
- package/dist/esm/component/BiuField/index.d.ts +8 -0
- package/dist/esm/component/BiuField/index.js +607 -0
- package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
- package/dist/esm/component/BiuFileInput/index.js +53 -0
- package/dist/esm/component/BiuForm/index.d.ts +12 -0
- package/dist/esm/component/BiuForm/index.js +241 -0
- package/dist/esm/component/BiuForm/type.d.ts +45 -0
- package/dist/esm/component/BiuForm/type.js +1 -0
- package/dist/esm/component/BiuForm/utils.d.ts +2 -0
- package/dist/esm/component/BiuForm/utils.js +46 -0
- package/dist/esm/component/BiuIcon/index.d.ts +3 -0
- package/dist/esm/component/BiuIcon/index.js +15 -0
- package/dist/esm/component/BiuMapSelectSite/index.d.ts +48 -0
- package/dist/esm/component/BiuMapSelectSite/index.js +453 -0
- package/dist/esm/component/BiuModal/index.d.ts +24 -0
- package/dist/esm/component/BiuModal/index.js +239 -0
- package/dist/esm/component/BiuOperForm/index.d.ts +15 -0
- package/dist/esm/component/BiuOperForm/index.js +375 -0
- package/dist/esm/component/BiuOperForm/type.d.ts +23 -0
- package/dist/esm/component/BiuOperForm/type.js +1 -0
- package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
- package/dist/esm/component/BiuOperTable/index.js +349 -0
- package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
- package/dist/esm/component/BiuOperTable/type.js +1 -0
- package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
- package/dist/esm/component/BiuOperTable/utils.js +13 -0
- package/dist/esm/component/BiuPagination/index.d.ts +14 -0
- package/dist/esm/component/BiuPagination/index.js +34 -0
- package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
- package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +74 -0
- package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
- package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
- package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
- package/dist/esm/component/BiuResizeTable/index.js +71 -0
- package/dist/esm/component/BiuResizeTable/index.less +19 -0
- package/dist/esm/component/BiuSplit/index.d.ts +32 -0
- package/dist/esm/component/BiuSplit/index.js +57 -0
- package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
- package/dist/esm/component/BiuTable/component/index.js +3 -0
- package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
- package/dist/esm/component/BiuTable/component/tableActionBarRender.js +88 -0
- package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
- package/dist/esm/component/BiuTable/component/tableCellRender.js +108 -0
- package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
- package/dist/esm/component/BiuTable/component/tableSettingRender.js +345 -0
- package/dist/esm/component/BiuTable/context.d.ts +2 -0
- package/dist/esm/component/BiuTable/context.js +2 -0
- package/dist/esm/component/BiuTable/hooks/index.d.ts +1 -0
- package/dist/esm/component/BiuTable/hooks/index.js +1 -0
- package/dist/esm/component/BiuTable/hooks/useFetchData.d.ts +4 -0
- package/dist/esm/component/BiuTable/hooks/useFetchData.js +64 -0
- package/dist/esm/component/BiuTable/index.d.ts +42 -0
- package/dist/esm/component/BiuTable/index.js +484 -0
- package/dist/esm/component/BiuTable/type.d.ts +168 -0
- package/dist/esm/component/BiuTable/type.js +1 -0
- package/dist/esm/component/BiuTable/utils.d.ts +10 -0
- package/dist/esm/component/BiuTable/utils.js +117 -0
- package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
- package/dist/esm/component/BiuTableLink/index.js +54 -0
- package/dist/esm/component/BiuTableSelect/index.d.ts +49 -0
- package/dist/esm/component/BiuTableSelect/index.js +209 -0
- package/dist/esm/component/BiuTabs/index.d.ts +4 -0
- package/dist/esm/component/BiuTabs/index.js +18 -0
- package/dist/esm/component/BiuVirtualTable/index.d.ts +21 -0
- package/dist/esm/component/BiuVirtualTable/index.js +161 -0
- package/dist/esm/component/index.d.ts +35 -0
- package/dist/esm/component/index.js +35 -0
- package/dist/esm/constant/Cache_Key.d.ts +28 -0
- package/dist/esm/constant/Cache_Key.js +28 -0
- package/dist/esm/constant/DateTime.d.ts +12 -0
- package/dist/esm/constant/DateTime.js +15 -0
- package/dist/esm/constant/External.d.ts +64 -0
- package/dist/esm/constant/External.js +260 -0
- package/dist/esm/constant/Gateway_Path.d.ts +5 -0
- package/dist/esm/constant/Gateway_Path.js +5 -0
- package/dist/esm/constant/Layout.d.ts +210 -0
- package/dist/esm/constant/Layout.js +215 -0
- package/dist/esm/constant/Regexp.d.ts +109 -0
- package/dist/esm/constant/Regexp.js +130 -0
- package/dist/esm/constant/index.d.ts +6 -0
- package/dist/esm/constant/index.js +6 -0
- package/dist/esm/hooks/index.d.ts +6 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/useAuth.d.ts +4 -0
- package/dist/esm/hooks/useAuth.js +22 -0
- package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
- package/dist/esm/hooks/useCurrentSystem.js +15 -0
- package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
- package/dist/esm/hooks/useLayoutInfo.js +14 -0
- package/dist/esm/hooks/useReducerState.d.ts +16 -0
- package/dist/esm/hooks/useReducerState.js +43 -0
- package/dist/esm/hooks/useUserInfo.d.ts +4 -0
- package/dist/esm/hooks/useUserInfo.js +15 -0
- package/dist/esm/hooks/useWareInfo.d.ts +4 -0
- package/dist/esm/hooks/useWareInfo.js +15 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/package/index.d.ts +1 -0
- package/dist/esm/package/index.js +1 -0
- package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
- package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
- package/dist/esm/package/requestWrapper/index.d.ts +4 -0
- package/dist/esm/package/requestWrapper/index.js +402 -0
- package/dist/esm/package/requestWrapper/type.d.ts +36 -0
- package/dist/esm/package/requestWrapper/type.js +1 -0
- package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
- package/dist/esm/package/requestWrapper/utils.js +35 -0
- package/dist/esm/utils/authUtils.d.ts +18 -0
- package/dist/esm/utils/authUtils.js +36 -0
- package/dist/esm/utils/cacheUtils.d.ts +4 -0
- package/dist/esm/utils/cacheUtils.js +24 -0
- package/dist/esm/utils/chainUtils.d.ts +26 -0
- package/dist/esm/utils/chainUtils.js +54 -0
- package/dist/esm/utils/dateUtils.d.ts +23 -0
- package/dist/esm/utils/dateUtils.js +55 -0
- package/dist/esm/utils/decimalUtils.d.ts +5 -0
- package/dist/esm/utils/decimalUtils.js +7 -0
- package/dist/esm/utils/excelUtils.d.ts +22 -0
- package/dist/esm/utils/excelUtils.js +153 -0
- package/dist/esm/utils/index.d.ts +11 -0
- package/dist/esm/utils/index.js +11 -0
- package/dist/esm/utils/layoutUtils.d.ts +1 -0
- package/dist/esm/utils/layoutUtils.js +13 -0
- package/dist/esm/utils/objectUtils.d.ts +1 -0
- package/dist/esm/utils/objectUtils.js +3 -0
- package/dist/esm/utils/soundUtils.d.ts +5 -0
- package/dist/esm/utils/soundUtils.js +29 -0
- package/dist/esm/utils/stringUtils.d.ts +24 -0
- package/dist/esm/utils/stringUtils.js +39 -0
- package/dist/esm/utils/sysUtils.d.ts +4 -0
- package/dist/esm/utils/sysUtils.js +4 -0
- package/package.json +59 -0
@@ -0,0 +1,107 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["value", "multiple", "onChange", "treeDefaultExpandAll", "showArrow", "showSearch", "style", "placeholder", "treeNodeFilterProp"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
11
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
14
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
15
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
16
|
+
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
17
|
+
import { BiuATreeSelect } from "../..";
|
18
|
+
import { GATEWAY_ROUTE_MDM } from "../../../constant";
|
19
|
+
import { request } from "../../../package";
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
21
|
+
/**
|
22
|
+
* 获取部门树
|
23
|
+
*/
|
24
|
+
var departmenQuerySelectList = function departmenQuerySelectList(payload) {
|
25
|
+
return request({
|
26
|
+
apiName: 'mdm.departmen.querySelectList',
|
27
|
+
data: payload,
|
28
|
+
requestConfig: {
|
29
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
30
|
+
}
|
31
|
+
});
|
32
|
+
};
|
33
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
34
|
+
var value = props.value,
|
35
|
+
_props$multiple = props.multiple,
|
36
|
+
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
37
|
+
_onChange = props.onChange,
|
38
|
+
_props$treeDefaultExp = props.treeDefaultExpandAll,
|
39
|
+
treeDefaultExpandAll = _props$treeDefaultExp === void 0 ? true : _props$treeDefaultExp,
|
40
|
+
_props$showArrow = props.showArrow,
|
41
|
+
showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
|
42
|
+
_props$showSearch = props.showSearch,
|
43
|
+
showSearch = _props$showSearch === void 0 ? true : _props$showSearch,
|
44
|
+
_props$style = props.style,
|
45
|
+
style = _props$style === void 0 ? {} : _props$style,
|
46
|
+
_props$placeholder = props.placeholder,
|
47
|
+
placeholder = _props$placeholder === void 0 ? '请选择' : _props$placeholder,
|
48
|
+
_props$treeNodeFilter = props.treeNodeFilterProp,
|
49
|
+
treeNodeFilterProp = _props$treeNodeFilter === void 0 ? 'title' : _props$treeNodeFilter,
|
50
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
51
|
+
// 部门树的数据
|
52
|
+
var _useState = useState([]),
|
53
|
+
_useState2 = _slicedToArray(_useState, 2),
|
54
|
+
treeData = _useState2[0],
|
55
|
+
setTreeData = _useState2[1];
|
56
|
+
var Treeformat = useCallback(function (arr) {
|
57
|
+
return arr.map(function (item) {
|
58
|
+
var _item$children;
|
59
|
+
var itemCopy = item;
|
60
|
+
itemCopy.title = item.name;
|
61
|
+
itemCopy.value = "".concat(item.id);
|
62
|
+
if ((_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {
|
63
|
+
itemCopy.children = Treeformat(item.children);
|
64
|
+
}
|
65
|
+
return itemCopy;
|
66
|
+
});
|
67
|
+
}, []);
|
68
|
+
|
69
|
+
// 职位所属部门获取
|
70
|
+
useEffect(function () {
|
71
|
+
departmenQuerySelectList({
|
72
|
+
pubDepartmenQueryBean: {
|
73
|
+
returnTree: true,
|
74
|
+
page: 1,
|
75
|
+
size: 2000
|
76
|
+
}
|
77
|
+
}).then(function (res) {
|
78
|
+
setTreeData(Treeformat(res));
|
79
|
+
});
|
80
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
81
|
+
}, []);
|
82
|
+
return /*#__PURE__*/_jsx(BiuATreeSelect, _objectSpread({
|
83
|
+
ref: ref,
|
84
|
+
showArrow: showArrow,
|
85
|
+
showSearch: showSearch,
|
86
|
+
style: style,
|
87
|
+
value: value,
|
88
|
+
defaultValue: value,
|
89
|
+
dropdownStyle: {
|
90
|
+
maxHeight: 400,
|
91
|
+
overflow: 'auto',
|
92
|
+
minWidth: '200px'
|
93
|
+
},
|
94
|
+
treeData: treeData,
|
95
|
+
placeholder: placeholder,
|
96
|
+
treeNodeFilterProp: treeNodeFilterProp,
|
97
|
+
treeCheckStrictly: multiple ? true : undefined,
|
98
|
+
treeCheckable: multiple ? true : undefined,
|
99
|
+
multiple: multiple,
|
100
|
+
treeDefaultExpandAll: treeDefaultExpandAll,
|
101
|
+
onChange: function onChange(newVal) {
|
102
|
+
if (_onChange) {
|
103
|
+
_onChange(newVal);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}, restProps), "departmentTreeSelect");
|
107
|
+
}));
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
systype?: string | undefined;
|
5
|
+
typename?: string | undefined;
|
6
|
+
page?: number | undefined;
|
7
|
+
pageSize?: number | undefined;
|
8
|
+
values?: string | number | string[] | number[] | undefined;
|
9
|
+
invalid?: number | undefined;
|
10
|
+
queryType?: number | undefined;
|
11
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
12
|
+
export default _default;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["invalid", "queryType", "onSearch"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10
|
+
import React, { forwardRef, useCallback, useMemo } from 'react';
|
11
|
+
import { BiuCustomSelect } from "../..";
|
12
|
+
import { GATEWAY_ROUTE_MDM } from "../../../constant";
|
13
|
+
|
14
|
+
/**
|
15
|
+
* 字典传入类型定义
|
16
|
+
* 组件封装对所有字段去掉验证,组件验证对于开发来说不需要,组件参数错误,数据也就错了
|
17
|
+
*/
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
19
|
+
var requestConfig = {
|
20
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
21
|
+
};
|
22
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
23
|
+
var _props$invalid = props.invalid,
|
24
|
+
invalid = _props$invalid === void 0 ? 0 : _props$invalid,
|
25
|
+
queryType = props.queryType,
|
26
|
+
onSearch = props.onSearch,
|
27
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
28
|
+
var onSearchValue = useCallback(function (input) {
|
29
|
+
if (input && onSearch) onSearch(input);
|
30
|
+
}, [onSearch]);
|
31
|
+
var requestParams = useMemo(function () {
|
32
|
+
return {
|
33
|
+
invalid: invalid,
|
34
|
+
queryType: queryType
|
35
|
+
};
|
36
|
+
}, [invalid, queryType]);
|
37
|
+
var onFetchData = useCallback(function (res) {
|
38
|
+
return res.map(function (item) {
|
39
|
+
return {
|
40
|
+
label: item.typename,
|
41
|
+
value: item.typename
|
42
|
+
};
|
43
|
+
});
|
44
|
+
}, []);
|
45
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
46
|
+
ref: ref,
|
47
|
+
requestName: "wms.mdm.dicQueryName",
|
48
|
+
requestParams: requestParams,
|
49
|
+
requestConfig: requestConfig,
|
50
|
+
onSearch: onSearchValue,
|
51
|
+
onFetchData: onFetchData
|
52
|
+
}, restProps), "dicNameSelect");
|
53
|
+
}));
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
/**
|
5
|
+
* 系统类型 默认 PUB systype?: string
|
6
|
+
*/
|
7
|
+
systype?: string | undefined;
|
8
|
+
/**
|
9
|
+
* 字典类型 必传 typename: string
|
10
|
+
*/
|
11
|
+
typename?: string | undefined;
|
12
|
+
/**
|
13
|
+
* 分页 默认 1 page?: number
|
14
|
+
*/
|
15
|
+
page?: number | undefined;
|
16
|
+
/**
|
17
|
+
* 每次查询数量 pageSize?: number
|
18
|
+
*/
|
19
|
+
pageSize?: number | undefined;
|
20
|
+
/**
|
21
|
+
* 绑定值 value: string | string[] | number | number[];
|
22
|
+
*/
|
23
|
+
value?: string | number | string[] | number[] | undefined;
|
24
|
+
invalid?: number | undefined;
|
25
|
+
/**
|
26
|
+
* 数据状态 invalid: number;
|
27
|
+
*/
|
28
|
+
typeNameQueryType?: number | undefined;
|
29
|
+
/**
|
30
|
+
* 是否多选 modetype:?string 默认单选,多选传multiple
|
31
|
+
*/
|
32
|
+
queryType?: number | undefined;
|
33
|
+
modetype?: "multiple" | "tags" | undefined;
|
34
|
+
isFirstLoad?: boolean | undefined;
|
35
|
+
/**
|
36
|
+
* 是否去掉数据中 全部 这个选项 filterAllItem 0不去掉 1去掉
|
37
|
+
*/
|
38
|
+
filterAllItem?: number | undefined;
|
39
|
+
onFetchData?: ((res: any) => any) | undefined;
|
40
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
41
|
+
export default _default;
|
@@ -0,0 +1,84 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["systype", "typename", "page", "pageSize", "invalid", "typeNameQueryType", "queryType", "modetype", "value", "filterAllItem", "onFetchData"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10
|
+
import React, { forwardRef, useCallback, useMemo } from 'react';
|
11
|
+
import { BiuCustomSelect } from "../..";
|
12
|
+
import { GATEWAY_ROUTE_MDM } from "../../../constant";
|
13
|
+
|
14
|
+
/**
|
15
|
+
* 字典传入类型定义
|
16
|
+
*/
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
18
|
+
var requestConfig = {
|
19
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
20
|
+
};
|
21
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
22
|
+
var _props$systype = props.systype,
|
23
|
+
systype = _props$systype === void 0 ? 'WMS' : _props$systype,
|
24
|
+
_props$typename = props.typename,
|
25
|
+
typename = _props$typename === void 0 ? '' : _props$typename,
|
26
|
+
_props$page = props.page,
|
27
|
+
page = _props$page === void 0 ? 1 : _props$page,
|
28
|
+
_props$pageSize = props.pageSize,
|
29
|
+
size = _props$pageSize === void 0 ? 1000 : _props$pageSize,
|
30
|
+
_props$invalid = props.invalid,
|
31
|
+
invalid = _props$invalid === void 0 ? 0 : _props$invalid,
|
32
|
+
_props$typeNameQueryT = props.typeNameQueryType,
|
33
|
+
typeNameQueryType = _props$typeNameQueryT === void 0 ? 1 : _props$typeNameQueryT,
|
34
|
+
_props$queryType = props.queryType,
|
35
|
+
queryType = _props$queryType === void 0 ? 1 : _props$queryType,
|
36
|
+
_props$modetype = props.modetype,
|
37
|
+
modetype = _props$modetype === void 0 ? undefined : _props$modetype,
|
38
|
+
value = props.value,
|
39
|
+
_props$filterAllItem = props.filterAllItem,
|
40
|
+
filterAllItem = _props$filterAllItem === void 0 ? 0 : _props$filterAllItem,
|
41
|
+
onFetchData = props.onFetchData,
|
42
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
43
|
+
var requestParams = useMemo(function () {
|
44
|
+
return {
|
45
|
+
systype: systype,
|
46
|
+
typename: typename,
|
47
|
+
page: page,
|
48
|
+
size: size,
|
49
|
+
invalid: invalid,
|
50
|
+
typeNameQueryType: typeNameQueryType,
|
51
|
+
queryType: queryType,
|
52
|
+
filterAllItem: filterAllItem
|
53
|
+
};
|
54
|
+
}, [systype, typename, page, size, invalid, typeNameQueryType, queryType, filterAllItem]);
|
55
|
+
var bindValue = useMemo(function () {
|
56
|
+
return value ? modetype === 'multiple' ? value === null || value === void 0 ? void 0 : value.map(function (i) {
|
57
|
+
return i;
|
58
|
+
}) : value : value;
|
59
|
+
}, [modetype, value]);
|
60
|
+
var isOnFetchData = useCallback(function () {
|
61
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
62
|
+
_ref$rows = _ref.rows,
|
63
|
+
rows = _ref$rows === void 0 ? [] : _ref$rows;
|
64
|
+
var baseRows = rows.map(function (item) {
|
65
|
+
return {
|
66
|
+
label: item.itemname,
|
67
|
+
value: item.value
|
68
|
+
};
|
69
|
+
});
|
70
|
+
if (onFetchData) return onFetchData(baseRows);
|
71
|
+
return baseRows;
|
72
|
+
}, [onFetchData]);
|
73
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
74
|
+
ref: ref,
|
75
|
+
requestName: "wms.mdm.dicQuery",
|
76
|
+
requestParams: requestParams,
|
77
|
+
requestConfig: requestConfig,
|
78
|
+
mode: modetype,
|
79
|
+
maxTagCount: 0,
|
80
|
+
value: bindValue,
|
81
|
+
onFetchData: isOnFetchData,
|
82
|
+
showArrow: true
|
83
|
+
}, restProps), "dicTypeSelect");
|
84
|
+
}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
value?: string | number | string[] | number[] | undefined;
|
5
|
+
onChangeData?: ((value: any, record: any) => void) | undefined;
|
6
|
+
type?: string | undefined;
|
7
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
8
|
+
export default _default;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["id", "type", "onChange", "onChangeData"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
16
|
+
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
17
|
+
import { BiuCustomSelect } from "../..";
|
18
|
+
import { GATEWAY_ROUTE_MDM } from "../../../constant";
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
20
|
+
var requestConfig = {
|
21
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
22
|
+
};
|
23
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
24
|
+
var _useState = useState([]),
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
26
|
+
dockingPartyList = _useState2[0],
|
27
|
+
setDockingPartyList = _useState2[1];
|
28
|
+
var id = props.id,
|
29
|
+
type = props.type,
|
30
|
+
onChange = props.onChange,
|
31
|
+
onChangeData = props.onChangeData,
|
32
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
33
|
+
var requestParams = useMemo(function () {
|
34
|
+
return {
|
35
|
+
type: type
|
36
|
+
};
|
37
|
+
}, [type]);
|
38
|
+
var onFetchData = useCallback(function (res) {
|
39
|
+
setDockingPartyList(res);
|
40
|
+
return res.map(function (item) {
|
41
|
+
return {
|
42
|
+
label: item.dockName,
|
43
|
+
value: item.dockCode
|
44
|
+
};
|
45
|
+
});
|
46
|
+
}, []);
|
47
|
+
var isOnChange = useCallback(function (value, option) {
|
48
|
+
if (onChange) onChange(value, option);
|
49
|
+
if (onChangeData) {
|
50
|
+
onChangeData(value, dockingPartyList.filter(function (item) {
|
51
|
+
return "".concat(item.dockCode) === "".concat(value);
|
52
|
+
})[0]);
|
53
|
+
}
|
54
|
+
}, [dockingPartyList, onChange, onChangeData]);
|
55
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
56
|
+
ref: ref,
|
57
|
+
requestName: "wms.mdm.queryTenantEdiLogList",
|
58
|
+
requestParams: requestParams,
|
59
|
+
requestConfig: requestConfig,
|
60
|
+
onChange: isOnChange,
|
61
|
+
onFetchData: onFetchData
|
62
|
+
}, restProps), "dockingPartySelect");
|
63
|
+
}));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
type?: string | undefined;
|
5
|
+
ownerId?: string | undefined;
|
6
|
+
warehouseId?: number | undefined;
|
7
|
+
warehouseIds?: string | undefined;
|
8
|
+
locationCode?: string | undefined;
|
9
|
+
warehouseAreaId?: number | undefined;
|
10
|
+
value?: string | number | string[] | number[] | undefined;
|
11
|
+
onChangeData?: ((value: any, record: any) => any) | undefined;
|
12
|
+
areaType?: string | undefined;
|
13
|
+
interfaceType?: string | undefined;
|
14
|
+
temperateZone?: string | undefined;
|
15
|
+
isFirstLoad?: boolean | undefined;
|
16
|
+
isAutoGenerate?: string | undefined;
|
17
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,119 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["ownerId", "locationCode", "warehouseAreaId", "warehouseId", "warehouseIds", "onChange", "onChangeData", "type", "areaType", "interfaceType", "temperateZone", "isFirstLoad", "isAutoGenerate"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
16
|
+
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
17
|
+
import { BiuCustomSelect } from "../..";
|
18
|
+
import { GATEWAY_ROUTE_WMS } from "../../../constant";
|
19
|
+
|
20
|
+
/**
|
21
|
+
* 组件封装对所有字段去掉验证,组件验证对于开发来说不需要,组件参数错误,数据也就错了
|
22
|
+
*/
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
var requestConfig = {
|
25
|
+
GatewayRoute: GATEWAY_ROUTE_WMS
|
26
|
+
};
|
27
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
28
|
+
// Hooks 定义 State 不会重复执行
|
29
|
+
var _useState = useState([]),
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
31
|
+
warehouseLoctionList = _useState2[0],
|
32
|
+
setWarehouseLoctionList = _useState2[1];
|
33
|
+
// const [loading, setLoading] = useState(false);
|
34
|
+
var _useState3 = useState(),
|
35
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
36
|
+
remoteSearchCValue = _useState4[0],
|
37
|
+
setRemoteSearchCValue = _useState4[1];
|
38
|
+
|
39
|
+
/**
|
40
|
+
* 解构出来所有需要用到的参数并赋予默认值
|
41
|
+
*/
|
42
|
+
var ownerId = props.ownerId,
|
43
|
+
locationCode = props.locationCode,
|
44
|
+
warehouseAreaId = props.warehouseAreaId,
|
45
|
+
warehouseId = props.warehouseId,
|
46
|
+
warehouseIds = props.warehouseIds,
|
47
|
+
onChange = props.onChange,
|
48
|
+
onChangeData = props.onChangeData,
|
49
|
+
type = props.type,
|
50
|
+
areaType = props.areaType,
|
51
|
+
_props$interfaceType = props.interfaceType,
|
52
|
+
interfaceType = _props$interfaceType === void 0 ? '1' : _props$interfaceType,
|
53
|
+
temperateZone = props.temperateZone,
|
54
|
+
_props$isFirstLoad = props.isFirstLoad,
|
55
|
+
isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
|
56
|
+
_props$isAutoGenerate = props.isAutoGenerate,
|
57
|
+
isAutoGenerate = _props$isAutoGenerate === void 0 ? '2' : _props$isAutoGenerate,
|
58
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
59
|
+
var _useState5 = useState(isFirstLoad),
|
60
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
61
|
+
isFirstLoadSearch = _useState6[0],
|
62
|
+
setIsFirstLoadSearch = _useState6[1];
|
63
|
+
var onSearch = useCallback(function (value) {
|
64
|
+
setRemoteSearchCValue(value.trim());
|
65
|
+
setIsFirstLoadSearch(true);
|
66
|
+
}, []);
|
67
|
+
var requestName = useMemo(function () {
|
68
|
+
return interfaceType && interfaceType === '1' ? 'wms.basedata.querySimpleComponent' : 'wms.stock.queryByLocation';
|
69
|
+
}, [interfaceType]);
|
70
|
+
var requestParams = useMemo(function () {
|
71
|
+
var params = {
|
72
|
+
locationCode: locationCode,
|
73
|
+
warehouseAreaId: warehouseAreaId,
|
74
|
+
warehouseId: warehouseId,
|
75
|
+
warehouseIds: warehouseIds,
|
76
|
+
areaType: areaType,
|
77
|
+
interfaceType: interfaceType,
|
78
|
+
ownerId: ownerId,
|
79
|
+
temperateZone: temperateZone,
|
80
|
+
isFirstLoadSearch: isFirstLoadSearch,
|
81
|
+
remoteSearchCValue: remoteSearchCValue,
|
82
|
+
isAutoGenerate: isAutoGenerate
|
83
|
+
};
|
84
|
+
return interfaceType && interfaceType === '1' ? _objectSpread(_objectSpread({}, params), {}, {
|
85
|
+
warehouseAreaType: areaType,
|
86
|
+
page: 1,
|
87
|
+
size: 20
|
88
|
+
}) : _objectSpread(_objectSpread({}, params), {}, {
|
89
|
+
page: 1,
|
90
|
+
size: 20
|
91
|
+
});
|
92
|
+
}, [locationCode, warehouseAreaId, warehouseId, warehouseIds, areaType, interfaceType, ownerId, temperateZone, isFirstLoadSearch, remoteSearchCValue, isAutoGenerate]);
|
93
|
+
var handleOnChange = useCallback(function (value, option) {
|
94
|
+
if (onChange) onChange(value, option);
|
95
|
+
if (onChangeData) {
|
96
|
+
onChangeData(value, warehouseLoctionList.filter(function (item) {
|
97
|
+
return "".concat(item.id) === "".concat(value);
|
98
|
+
})[0]);
|
99
|
+
}
|
100
|
+
}, [onChange, onChangeData, warehouseLoctionList]);
|
101
|
+
var onFetchData = useCallback(function (res) {
|
102
|
+
setWarehouseLoctionList(res);
|
103
|
+
return res.map(function (item) {
|
104
|
+
return {
|
105
|
+
label: type ? item.locationCode : item.locationName,
|
106
|
+
value: interfaceType === '1' ? item.id : item.locationId
|
107
|
+
};
|
108
|
+
});
|
109
|
+
}, [interfaceType, type]);
|
110
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
111
|
+
ref: ref,
|
112
|
+
requestName: requestName,
|
113
|
+
requestParams: requestParams,
|
114
|
+
requestConfig: requestConfig,
|
115
|
+
onSearch: onSearch,
|
116
|
+
onChange: handleOnChange,
|
117
|
+
onFetchData: onFetchData
|
118
|
+
}, restProps), "editLocationSelect");
|
119
|
+
}));
|
@@ -0,0 +1,36 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
+
import React, { forwardRef } from 'react';
|
8
|
+
import { BiuTableSelect } from "../../..";
|
9
|
+
import { GATEWAY_ROUTE_MDM } from "../../../../constant";
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
+
var AccountSelectColumns = [{
|
12
|
+
title: '授权平台',
|
13
|
+
dataIndex: 'platformName',
|
14
|
+
ellipsis: true,
|
15
|
+
width: 200
|
16
|
+
}, {
|
17
|
+
title: '授权账号',
|
18
|
+
dataIndex: 'ownerName',
|
19
|
+
ellipsis: true,
|
20
|
+
width: 200
|
21
|
+
}];
|
22
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
23
|
+
return /*#__PURE__*/_jsx(BiuTableSelect, _objectSpread({
|
24
|
+
ref: ref,
|
25
|
+
showSearch: true,
|
26
|
+
columns: AccountSelectColumns,
|
27
|
+
isFirstfetch: true,
|
28
|
+
bindField: {
|
29
|
+
rowLabel: 'ownerName'
|
30
|
+
},
|
31
|
+
interfaceName: "wms.mdm.getAllOwnerAuthority",
|
32
|
+
requestConfig: {
|
33
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
34
|
+
}
|
35
|
+
}, props), "accountTableSelect");
|
36
|
+
}));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
/**
|
4
|
+
* 电子面单-网点
|
5
|
+
* @param param0
|
6
|
+
* @returns
|
7
|
+
*/
|
8
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
9
|
+
value?: string | number | string[] | number[] | undefined;
|
10
|
+
onChangeData?: ((value: any, record: any) => void) | undefined;
|
11
|
+
accountId: string | number;
|
12
|
+
carrierId: string | number;
|
13
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
14
|
+
export default _default;
|