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,94 @@
|
|
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 = ["warehouseId", "onChange", "onChangeData", "isFirstLoad"];
|
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, useEffect, useState } from 'react';
|
17
|
+
import { BiuASelect, BiuASelectOption } from "../..";
|
18
|
+
import { GATEWAY_ROUTE_WMS } from "../../../constant";
|
19
|
+
import { request } from "../../../package";
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
21
|
+
var getWareChannel = function getWareChannel(data) {
|
22
|
+
return request({
|
23
|
+
apiName: 'wms.basedata.getWareChannelSimple',
|
24
|
+
data: data,
|
25
|
+
requestConfig: {
|
26
|
+
GatewayRoute: GATEWAY_ROUTE_WMS
|
27
|
+
}
|
28
|
+
});
|
29
|
+
};
|
30
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
31
|
+
var _useState = useState([]),
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
33
|
+
warehouseChannelList = _useState2[0],
|
34
|
+
setWarehouseChannelList = _useState2[1];
|
35
|
+
var _useState3 = useState(false),
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
37
|
+
loading = _useState4[0],
|
38
|
+
setLoading = _useState4[1];
|
39
|
+
var warehouseId = props.warehouseId,
|
40
|
+
_onChange = props.onChange,
|
41
|
+
onChangeData = props.onChangeData,
|
42
|
+
_props$isFirstLoad = props.isFirstLoad,
|
43
|
+
isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
|
44
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
45
|
+
useEffect(function () {
|
46
|
+
if (!warehouseId || !isFirstLoad) {
|
47
|
+
setWarehouseChannelList([]);
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
setLoading(true);
|
51
|
+
getWareChannel({
|
52
|
+
warehouseId: warehouseId
|
53
|
+
}).then(function (res) {
|
54
|
+
setWarehouseChannelList(res);
|
55
|
+
setLoading(false);
|
56
|
+
});
|
57
|
+
}, [isFirstLoad, warehouseId]);
|
58
|
+
var onSearch = useCallback(function (value) {
|
59
|
+
if (!warehouseId) {
|
60
|
+
setWarehouseChannelList([]);
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
setLoading(true);
|
64
|
+
getWareChannel({
|
65
|
+
warehouseId: warehouseId,
|
66
|
+
warehouseChannelName: value
|
67
|
+
}).then(function (res) {
|
68
|
+
setWarehouseChannelList(res);
|
69
|
+
setLoading(false);
|
70
|
+
});
|
71
|
+
}, [warehouseId]);
|
72
|
+
return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
|
73
|
+
ref: ref,
|
74
|
+
showSearch: true,
|
75
|
+
optionFilterProp: "children",
|
76
|
+
loading: loading
|
77
|
+
}, restProps), {}, {
|
78
|
+
onChange: function onChange(value, option) {
|
79
|
+
if (_onChange) _onChange(value, option);
|
80
|
+
if (onChangeData) {
|
81
|
+
onChangeData(value, warehouseChannelList.filter(function (item) {
|
82
|
+
return "".concat(item.id) === "".concat(value);
|
83
|
+
})[0]);
|
84
|
+
}
|
85
|
+
},
|
86
|
+
onSearch: onSearch,
|
87
|
+
children: warehouseChannelList.map(function (d) {
|
88
|
+
return /*#__PURE__*/_jsx(BiuASelectOption, {
|
89
|
+
value: d.id,
|
90
|
+
children: d.warehouseChannelName || ' '
|
91
|
+
}, d.id);
|
92
|
+
})
|
93
|
+
}), "channelSelect");
|
94
|
+
}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
type CityAreaPropsType = {
|
3
|
+
level?: number;
|
4
|
+
page?: number;
|
5
|
+
pageSize?: number;
|
6
|
+
value?: string[];
|
7
|
+
invalid?: number;
|
8
|
+
cityAreaList?: any[];
|
9
|
+
};
|
10
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CityAreaPropsType & React.RefAttributes<unknown>>>;
|
11
|
+
export default _default;
|
@@ -0,0 +1,86 @@
|
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
8
|
+
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."); }
|
9
|
+
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); }
|
10
|
+
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; }
|
11
|
+
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; } }
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
13
|
+
import React, { forwardRef, useCallback, useLayoutEffect, useState } from 'react';
|
14
|
+
import { BiuACascader } from "../..";
|
15
|
+
import { GATEWAY_ROUTE_MDM } from "../../../constant";
|
16
|
+
import { request } from "../../../package";
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
18
|
+
var getCityAreaSimpleTree = function getCityAreaSimpleTree() {
|
19
|
+
return request({
|
20
|
+
apiName: 'wms.mdm.queryCityAreaSimple',
|
21
|
+
requestConfig: {
|
22
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
23
|
+
},
|
24
|
+
cache: true
|
25
|
+
});
|
26
|
+
};
|
27
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
28
|
+
var _useState = useState([]),
|
29
|
+
_useState2 = _slicedToArray(_useState, 2),
|
30
|
+
cityAreaList = _useState2[0],
|
31
|
+
setCityAreaList = _useState2[1];
|
32
|
+
var level = props.level;
|
33
|
+
var transformData = useCallback(function (data, type, levelN) {
|
34
|
+
var res = [];
|
35
|
+
for (var i = 0; i < data.length; i++) {
|
36
|
+
var item = data[i];
|
37
|
+
var newItem = _objectSpread(_objectSpread({}, item), {}, {
|
38
|
+
children: []
|
39
|
+
});
|
40
|
+
if (item.children && type < levelN) {
|
41
|
+
newItem.children = transformData(item.children, type + 1, levelN);
|
42
|
+
}
|
43
|
+
res.push(newItem);
|
44
|
+
}
|
45
|
+
return res;
|
46
|
+
}, []);
|
47
|
+
useLayoutEffect(function () {
|
48
|
+
if (level || level === 0) {
|
49
|
+
getCityAreaSimpleTree().then(function (responese) {
|
50
|
+
var data = transformData(responese, 1, level === 0 ? 4 : level);
|
51
|
+
setCityAreaList(data);
|
52
|
+
});
|
53
|
+
return;
|
54
|
+
} else {
|
55
|
+
request({
|
56
|
+
apiName: 'mdm.logicalConfig.query',
|
57
|
+
data: {
|
58
|
+
system: 'PUB',
|
59
|
+
// 系统类型 PUB、WMS、TMS、MDM、OMS
|
60
|
+
logicName: 'PCDRestrictionLevel' // 英文编码
|
61
|
+
},
|
62
|
+
requestConfig: {
|
63
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
64
|
+
}
|
65
|
+
}).then(function (res) {
|
66
|
+
if (res) {
|
67
|
+
getCityAreaSimpleTree().then(function (responese) {
|
68
|
+
var data = transformData(responese, 1, Number(res[0].logicValue));
|
69
|
+
setCityAreaList(data);
|
70
|
+
});
|
71
|
+
}
|
72
|
+
});
|
73
|
+
}
|
74
|
+
}, [level, transformData]);
|
75
|
+
return /*#__PURE__*/_jsx(BiuACascader, _objectSpread({
|
76
|
+
ref: ref,
|
77
|
+
showSearch: true,
|
78
|
+
fieldNames: {
|
79
|
+
label: 'value',
|
80
|
+
value: 'value',
|
81
|
+
children: 'children'
|
82
|
+
},
|
83
|
+
expandTrigger: "hover",
|
84
|
+
options: cityAreaList
|
85
|
+
}, props), "cityAreaCascader");
|
86
|
+
}));
|
@@ -0,0 +1,175 @@
|
|
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 = ["onChangeData", "attributeType", "showType", "clientType", "queryext", "warehouseFilter", "clientsettype", "businesstype", "isFirstLoad", "connection", "useType", "queryParams"];
|
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 { useThrottleFn } from 'ahooks';
|
17
|
+
import React, { forwardRef, useCallback, useState } from 'react';
|
18
|
+
import { BiuTableSelect } from "../..";
|
19
|
+
import { GATEWAY_ROUTE_MDM, GATEWAY_ROUTE_WMS } from "../../../constant";
|
20
|
+
import { request } from "../../../package";
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
22
|
+
var getClientInfoExtendAttributeList = function getClientInfoExtendAttributeList(data) {
|
23
|
+
return request({
|
24
|
+
apiName: 'wms.basedata.selectNumberByOwnerId',
|
25
|
+
data: data,
|
26
|
+
requestConfig: {
|
27
|
+
GatewayRoute: GATEWAY_ROUTE_WMS
|
28
|
+
}
|
29
|
+
});
|
30
|
+
};
|
31
|
+
|
32
|
+
/**
|
33
|
+
* 真实货主列
|
34
|
+
*/
|
35
|
+
var baseColumns = [{
|
36
|
+
title: '货主编码',
|
37
|
+
dataIndex: 'clientcode',
|
38
|
+
ellipsis: true,
|
39
|
+
width: 200
|
40
|
+
}, {
|
41
|
+
title: '货主名称',
|
42
|
+
dataIndex: 'clientname',
|
43
|
+
ellipsis: true,
|
44
|
+
width: 200
|
45
|
+
}];
|
46
|
+
|
47
|
+
/**
|
48
|
+
* 分仓货主列
|
49
|
+
*/
|
50
|
+
var subColumns = [{
|
51
|
+
title: '货主编码',
|
52
|
+
dataIndex: 'clientcode',
|
53
|
+
ellipsis: true,
|
54
|
+
width: 200
|
55
|
+
}, {
|
56
|
+
title: '分仓货主',
|
57
|
+
dataIndex: 'clientname',
|
58
|
+
ellipsis: true,
|
59
|
+
width: 200
|
60
|
+
}, {
|
61
|
+
title: '货主名称',
|
62
|
+
dataIndex: 'clientNameReal',
|
63
|
+
ellipsis: true,
|
64
|
+
width: 200
|
65
|
+
}];
|
66
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
67
|
+
var onChangeData = props.onChangeData,
|
68
|
+
_props$attributeType = props.attributeType,
|
69
|
+
attributeType = _props$attributeType === void 0 ? -1 : _props$attributeType,
|
70
|
+
showType = props.showType,
|
71
|
+
_props$clientType = props.clientType,
|
72
|
+
clientType = _props$clientType === void 0 ? 0 : _props$clientType,
|
73
|
+
_props$queryext = props.queryext,
|
74
|
+
queryext = _props$queryext === void 0 ? true : _props$queryext,
|
75
|
+
_props$warehouseFilte = props.warehouseFilter,
|
76
|
+
warehouseFilter = _props$warehouseFilte === void 0 ? false : _props$warehouseFilte,
|
77
|
+
clientsettype = props.clientsettype,
|
78
|
+
businesstype = props.businesstype,
|
79
|
+
_props$isFirstLoad = props.isFirstLoad,
|
80
|
+
isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
|
81
|
+
connection = props.connection,
|
82
|
+
_props$useType = props.useType,
|
83
|
+
useType = _props$useType === void 0 ? 1 : _props$useType,
|
84
|
+
_props$queryParams = props.queryParams,
|
85
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams,
|
86
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
87
|
+
var _useState = useState(_objectSpread({
|
88
|
+
warehouseFilter: warehouseFilter,
|
89
|
+
clientsettype: clientsettype,
|
90
|
+
isFirstLoad: isFirstLoad,
|
91
|
+
useType: useType
|
92
|
+
}, queryParams)),
|
93
|
+
_useState2 = _slicedToArray(_useState, 2),
|
94
|
+
queryData = _useState2[0],
|
95
|
+
setQueryData = _useState2[1];
|
96
|
+
var _useThrottleFn = useThrottleFn(function (params) {
|
97
|
+
setQueryData({
|
98
|
+
warehouseFilter: warehouseFilter,
|
99
|
+
clientsettype: clientsettype,
|
100
|
+
businesstype: businesstype,
|
101
|
+
connection: connection,
|
102
|
+
useType: useType,
|
103
|
+
remoteSearchCValue: params
|
104
|
+
});
|
105
|
+
}, {
|
106
|
+
wait: 500
|
107
|
+
}),
|
108
|
+
run = _useThrottleFn.run;
|
109
|
+
|
110
|
+
/**
|
111
|
+
* clientType:0 分仓货主查询,货主下分仓
|
112
|
+
* clientType:1 真实货主查询,分仓界面需要
|
113
|
+
*/
|
114
|
+
var InterfaceName = clientType === 0 ? 'wms.mdm.queryOwnerByWarehouse' : 'wms.mdm.clientSimpleQueryListBase';
|
115
|
+
var baseChangeData = useCallback(function (params, record) {
|
116
|
+
if (queryext && params !== undefined && clientType === 0 && onChangeData) {
|
117
|
+
getClientInfoExtendAttributeList({
|
118
|
+
ownerId: record === null || record === void 0 ? void 0 : record.clientid,
|
119
|
+
attributeType: attributeType,
|
120
|
+
showType: showType,
|
121
|
+
isActive: '1',
|
122
|
+
isDelete: '1'
|
123
|
+
}).then(function (res) {
|
124
|
+
onChangeData({
|
125
|
+
value: params,
|
126
|
+
extendAttributeList: res,
|
127
|
+
companyId: record.companyid
|
128
|
+
}, _objectSpread(_objectSpread({}, record), {}, {
|
129
|
+
extendAttributeList: res
|
130
|
+
}));
|
131
|
+
}).catch(function () {
|
132
|
+
onChangeData({
|
133
|
+
value: params,
|
134
|
+
extendAttributeList: [],
|
135
|
+
companyId: record.companyid
|
136
|
+
}, _objectSpread(_objectSpread({}, record), {}, {
|
137
|
+
extendAttributeList: []
|
138
|
+
}));
|
139
|
+
});
|
140
|
+
} else if ((clientType === 1 || queryext === false) && onChangeData) {
|
141
|
+
onChangeData({
|
142
|
+
value: params,
|
143
|
+
companyId: record === null || record === void 0 ? void 0 : record.companyid
|
144
|
+
}, _objectSpread({}, record || {}));
|
145
|
+
}
|
146
|
+
}, [attributeType, clientType, onChangeData, queryext, showType]);
|
147
|
+
var dataOption = useCallback(function (result) {
|
148
|
+
return result.reduce(function (arr, current) {
|
149
|
+
arr.push(_objectSpread(_objectSpread({}, current), {}, {
|
150
|
+
id: "".concat(current.id)
|
151
|
+
}));
|
152
|
+
return arr;
|
153
|
+
}, []);
|
154
|
+
}, []);
|
155
|
+
var onSearch = useCallback(function (params) {
|
156
|
+
return run(params);
|
157
|
+
}, [run]);
|
158
|
+
return /*#__PURE__*/_jsx(BiuTableSelect, _objectSpread({
|
159
|
+
ref: ref,
|
160
|
+
showSearch: true,
|
161
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
162
|
+
columns: clientType === 0 ? subColumns : baseColumns,
|
163
|
+
bindField: {
|
164
|
+
rowLabel: 'clientname'
|
165
|
+
},
|
166
|
+
interfaceName: InterfaceName,
|
167
|
+
requestConfig: {
|
168
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
169
|
+
},
|
170
|
+
queryData: queryData,
|
171
|
+
onSearch: onSearch,
|
172
|
+
onChangeData: baseChangeData,
|
173
|
+
dataOption: dataOption
|
174
|
+
}, restProps), "clientInfoTableSelect");
|
175
|
+
}));
|
@@ -0,0 +1,110 @@
|
|
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", "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_REPORT } from "../../../constant";
|
19
|
+
import { request } from "../../../package";
|
20
|
+
|
21
|
+
/**
|
22
|
+
* 获取菜单树
|
23
|
+
*/
|
24
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
25
|
+
var customMenuQuerySelectList = function customMenuQuerySelectList(payload) {
|
26
|
+
return request({
|
27
|
+
apiName: 'report.menu.getList',
|
28
|
+
data: payload,
|
29
|
+
requestConfig: {
|
30
|
+
GatewayRoute: GATEWAY_ROUTE_REPORT
|
31
|
+
}
|
32
|
+
});
|
33
|
+
};
|
34
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
35
|
+
var value = props.value,
|
36
|
+
_onChange = props.onChange,
|
37
|
+
_props$treeDefaultExp = props.treeDefaultExpandAll,
|
38
|
+
treeDefaultExpandAll = _props$treeDefaultExp === void 0 ? true : _props$treeDefaultExp,
|
39
|
+
_props$showArrow = props.showArrow,
|
40
|
+
showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
|
41
|
+
_props$showSearch = props.showSearch,
|
42
|
+
showSearch = _props$showSearch === void 0 ? true : _props$showSearch,
|
43
|
+
_props$style = props.style,
|
44
|
+
style = _props$style === void 0 ? {} : _props$style,
|
45
|
+
_props$placeholder = props.placeholder,
|
46
|
+
placeholder = _props$placeholder === void 0 ? '请选择' : _props$placeholder,
|
47
|
+
_props$treeNodeFilter = props.treeNodeFilterProp,
|
48
|
+
treeNodeFilterProp = _props$treeNodeFilter === void 0 ? 'title' : _props$treeNodeFilter,
|
49
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
50
|
+
var _useState = useState(),
|
51
|
+
_useState2 = _slicedToArray(_useState, 2),
|
52
|
+
treeData = _useState2[0],
|
53
|
+
setTreeData = _useState2[1];
|
54
|
+
var tree = useCallback(function (list) {
|
55
|
+
// 将普通列表转换为树结构的列表
|
56
|
+
if (!list || !list.length) {
|
57
|
+
return [];
|
58
|
+
}
|
59
|
+
var newList = list.map(function (data) {
|
60
|
+
return {
|
61
|
+
value: data.id,
|
62
|
+
title: data.name,
|
63
|
+
id: data.id,
|
64
|
+
parentId: data.parentId
|
65
|
+
};
|
66
|
+
});
|
67
|
+
var treeListMap = {};
|
68
|
+
newList.forEach(function (element) {
|
69
|
+
treeListMap[element.id] = element;
|
70
|
+
});
|
71
|
+
for (var i = 0; i < newList.length; i += 1) {
|
72
|
+
if (newList[i].parentId && treeListMap[newList[i].parentId]) {
|
73
|
+
if (!treeListMap[newList[i].parentId].children) {
|
74
|
+
treeListMap[newList[i].parentId].children = [];
|
75
|
+
}
|
76
|
+
treeListMap[newList[i].parentId].children.push(newList[i]);
|
77
|
+
newList.splice(i, 1);
|
78
|
+
i -= 1;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
return newList;
|
82
|
+
}, []);
|
83
|
+
useEffect(function () {
|
84
|
+
customMenuQuerySelectList({}).then(function (data) {
|
85
|
+
setTreeData(tree(data));
|
86
|
+
});
|
87
|
+
}, [tree]);
|
88
|
+
return /*#__PURE__*/_jsx(BiuATreeSelect, _objectSpread({
|
89
|
+
ref: ref,
|
90
|
+
showArrow: showArrow,
|
91
|
+
showSearch: showSearch,
|
92
|
+
style: style,
|
93
|
+
value: value,
|
94
|
+
defaultValue: value,
|
95
|
+
dropdownStyle: {
|
96
|
+
maxHeight: 400,
|
97
|
+
overflow: 'auto',
|
98
|
+
minWidth: '200px'
|
99
|
+
},
|
100
|
+
treeData: treeData,
|
101
|
+
placeholder: placeholder,
|
102
|
+
treeNodeFilterProp: treeNodeFilterProp,
|
103
|
+
treeDefaultExpandAll: treeDefaultExpandAll,
|
104
|
+
onChange: function onChange(newVal) {
|
105
|
+
if (_onChange) {
|
106
|
+
_onChange(newVal);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}, restProps), "customMenu");
|
110
|
+
}));
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
onSearch?: ((value: any) => void) | undefined;
|
5
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
6
|
+
export default _default;
|
@@ -0,0 +1,42 @@
|
|
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 = ["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 } from 'react';
|
11
|
+
import { BiuCustomSelect } from "../..";
|
12
|
+
import { GATEWAY_ROUTE_MDM } from "../../../constant";
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
+
var requestParams = {
|
15
|
+
type: 'WMS'
|
16
|
+
};
|
17
|
+
var requestConfig = {
|
18
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
19
|
+
};
|
20
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
21
|
+
var onSearch = props.onSearch,
|
22
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
23
|
+
var onSearchValue = useCallback(function (input) {
|
24
|
+
if (input && onSearch) onSearch(input);
|
25
|
+
}, [onSearch]);
|
26
|
+
var onFetchData = useCallback(function (res) {
|
27
|
+
return res.map(function (item) {
|
28
|
+
return {
|
29
|
+
label: item.database,
|
30
|
+
value: item.dbguid
|
31
|
+
};
|
32
|
+
});
|
33
|
+
}, []);
|
34
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
35
|
+
ref: ref,
|
36
|
+
requestName: "wms.mdm.queryTenantDbList",
|
37
|
+
requestParams: requestParams,
|
38
|
+
requestConfig: requestConfig,
|
39
|
+
onSearch: onSearchValue,
|
40
|
+
onFetchData: onFetchData
|
41
|
+
}, restProps), "DatabaseSelect");
|
42
|
+
}));
|