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,97 @@
|
|
1
|
+
var _excluded = ["onChange", "onChangeData", "accountId", "carrierId"];
|
2
|
+
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); }
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
|
+
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."); }
|
5
|
+
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); }
|
6
|
+
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; }
|
7
|
+
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; } }
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
|
+
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; }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
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; }
|
13
|
+
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; }
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
15
|
+
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); }
|
16
|
+
import React, { forwardRef, useEffect, useState } from 'react';
|
17
|
+
import { BiuASelect, BiuASelectOption } from "../../..";
|
18
|
+
import { GATEWAY_ROUTE_MDM } from "../../../../constant";
|
19
|
+
import { request } from "../../../../package";
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
21
|
+
var getAddressList = function getAddressList(data) {
|
22
|
+
return request({
|
23
|
+
apiName: 'wms.mdm.selecBranchInfo',
|
24
|
+
data: _objectSpread({
|
25
|
+
invalid: 0
|
26
|
+
}, data),
|
27
|
+
requestConfig: {
|
28
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
29
|
+
}
|
30
|
+
});
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* 电子面单-网点
|
34
|
+
* @param param0
|
35
|
+
* @returns
|
36
|
+
*/
|
37
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
38
|
+
var _onChange = props.onChange,
|
39
|
+
onChangeData = props.onChangeData,
|
40
|
+
accountId = props.accountId,
|
41
|
+
carrierId = props.carrierId,
|
42
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
43
|
+
var _useState = useState(false),
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
45
|
+
loading = _useState2[0],
|
46
|
+
setLoading = _useState2[1];
|
47
|
+
var _useState3 = useState([]),
|
48
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
49
|
+
addressList = _useState4[0],
|
50
|
+
setAddressList = _useState4[1];
|
51
|
+
var _useState5 = useState('请选择'),
|
52
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
53
|
+
content = _useState6[0],
|
54
|
+
setContent = _useState6[1];
|
55
|
+
useEffect(function () {
|
56
|
+
if (!accountId || !carrierId) {
|
57
|
+
setContent('请先选择授权账号和承运商');
|
58
|
+
return;
|
59
|
+
}
|
60
|
+
setLoading(true);
|
61
|
+
getAddressList({
|
62
|
+
authorityAccountId: accountId,
|
63
|
+
carrierId: carrierId
|
64
|
+
}).then(function (data) {
|
65
|
+
if (data) {
|
66
|
+
setAddressList(data);
|
67
|
+
} else {
|
68
|
+
setAddressList([]);
|
69
|
+
}
|
70
|
+
}).finally(function () {
|
71
|
+
setLoading(false);
|
72
|
+
});
|
73
|
+
}, [accountId, carrierId]);
|
74
|
+
return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
|
75
|
+
ref: ref,
|
76
|
+
showSearch: true,
|
77
|
+
loading: loading,
|
78
|
+
notFoundContent: content,
|
79
|
+
optionFilterProp: "label"
|
80
|
+
}, restProps), {}, {
|
81
|
+
onChange: function onChange(value, option) {
|
82
|
+
if (_onChange) _onChange(value, option);
|
83
|
+
if (onChangeData) {
|
84
|
+
onChangeData(value, addressList.filter(function (item) {
|
85
|
+
return "".concat(item.total) === "".concat(value);
|
86
|
+
})[0]);
|
87
|
+
}
|
88
|
+
},
|
89
|
+
children: addressList.map(function (d, index) {
|
90
|
+
return /*#__PURE__*/_jsx(BiuASelectOption, {
|
91
|
+
value: index,
|
92
|
+
label: "".concat(d.total) || ' ',
|
93
|
+
children: "".concat(d.total) || ' '
|
94
|
+
}, "".concat(index + 1));
|
95
|
+
})
|
96
|
+
}), "addressSelect");
|
97
|
+
}));
|
@@ -0,0 +1,7 @@
|
|
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
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
var _excluded = ["onChange", "onChangeData"];
|
2
|
+
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); }
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
|
+
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."); }
|
5
|
+
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); }
|
6
|
+
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; }
|
7
|
+
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; } }
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
|
+
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; }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
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; }
|
13
|
+
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; }
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
15
|
+
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); }
|
16
|
+
import React, { forwardRef, useEffect, useState } from 'react';
|
17
|
+
import { BiuASelectOption, BiuASelect } from "../../..";
|
18
|
+
import { GATEWAY_ROUTE_MDM } from "../../../../constant";
|
19
|
+
import { request } from "../../../../package";
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
21
|
+
var getPlatformList = function getPlatformList(data) {
|
22
|
+
return request({
|
23
|
+
apiName: 'wms.mdm.getAllExpressPlatform',
|
24
|
+
data: _objectSpread({
|
25
|
+
invalid: 0
|
26
|
+
}, data),
|
27
|
+
requestConfig: {
|
28
|
+
GatewayRoute: GATEWAY_ROUTE_MDM
|
29
|
+
}
|
30
|
+
});
|
31
|
+
};
|
32
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
33
|
+
var _onChange = _ref.onChange,
|
34
|
+
onChangeData = _ref.onChangeData,
|
35
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
36
|
+
var _useState = useState(false),
|
37
|
+
_useState2 = _slicedToArray(_useState, 2),
|
38
|
+
loading = _useState2[0],
|
39
|
+
setLoading = _useState2[1];
|
40
|
+
var _useState3 = useState([]),
|
41
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
42
|
+
platFormList = _useState4[0],
|
43
|
+
setPlatformList = _useState4[1];
|
44
|
+
useEffect(function () {
|
45
|
+
setLoading(true);
|
46
|
+
getPlatformList({}).then(function (res) {
|
47
|
+
setPlatformList(res);
|
48
|
+
setLoading(false);
|
49
|
+
});
|
50
|
+
}, []);
|
51
|
+
return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
|
52
|
+
showSearch: true,
|
53
|
+
ref: ref,
|
54
|
+
loading: loading
|
55
|
+
}, restProps), {}, {
|
56
|
+
allowClear: true,
|
57
|
+
optionFilterProp: "children",
|
58
|
+
onChange: function onChange(value, option) {
|
59
|
+
if (_onChange) _onChange(value, option);
|
60
|
+
if (onChangeData) {
|
61
|
+
onChangeData(value, platFormList.filter(function (item) {
|
62
|
+
return "".concat(item.id) === "".concat(value);
|
63
|
+
})[0]);
|
64
|
+
}
|
65
|
+
},
|
66
|
+
children: platFormList.map(function (d) {
|
67
|
+
return /*#__PURE__*/_jsx(BiuASelectOption, {
|
68
|
+
value: d.id,
|
69
|
+
children: d.platformName || ' '
|
70
|
+
}, d.id);
|
71
|
+
})
|
72
|
+
}), "platformSelect");
|
73
|
+
}));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
id?: string | undefined;
|
5
|
+
ownerId?: string | undefined;
|
6
|
+
value?: string | number | string[] | number[] | undefined;
|
7
|
+
noOwnerContent?: string | undefined;
|
8
|
+
isFirstLoad?: boolean | undefined;
|
9
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
10
|
+
export default _default;
|
@@ -0,0 +1,92 @@
|
|
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", "noOwnerContent", "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, 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
|
+
notFoundContent = _useState2[0],
|
32
|
+
setNotFoundContent = _useState2[1];
|
33
|
+
|
34
|
+
/**
|
35
|
+
* 解构出来所有需要用到的参数并赋予默认值
|
36
|
+
*/
|
37
|
+
var ownerId = props.ownerId,
|
38
|
+
_props$noOwnerContent = props.noOwnerContent,
|
39
|
+
noOwnerContent = _props$noOwnerContent === void 0 ? '请先选择货主' : _props$noOwnerContent,
|
40
|
+
_props$isFirstLoad = props.isFirstLoad,
|
41
|
+
isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
|
42
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
43
|
+
var _useState3 = useState(isFirstLoad),
|
44
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
45
|
+
isFirstLoadSearch = _useState4[0],
|
46
|
+
setIsFirstLoadSearch = _useState4[1];
|
47
|
+
|
48
|
+
/**
|
49
|
+
* 加载原始数据源,根据传入值查询
|
50
|
+
* ps。依赖传入参数
|
51
|
+
*/
|
52
|
+
useEffect(function () {
|
53
|
+
if (!ownerId) {
|
54
|
+
setNotFoundContent(noOwnerContent);
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
setNotFoundContent('');
|
58
|
+
}, [noOwnerContent, ownerId]);
|
59
|
+
var requestParams = useMemo(function () {
|
60
|
+
return {
|
61
|
+
ownerId: ownerId,
|
62
|
+
isFirstLoadSearch: isFirstLoadSearch
|
63
|
+
};
|
64
|
+
}, [isFirstLoadSearch, ownerId]);
|
65
|
+
var onFetchData = useCallback(function (res) {
|
66
|
+
return res.filter(function (d) {
|
67
|
+
return d.fatherTypeId !== null && d.fatherTypeId !== '';
|
68
|
+
}).map(function (item) {
|
69
|
+
return {
|
70
|
+
label: item.typeName ? item.typeName : item.typeCode,
|
71
|
+
value: item.id
|
72
|
+
};
|
73
|
+
});
|
74
|
+
}, []);
|
75
|
+
var isOnSearch = useCallback(function () {
|
76
|
+
setIsFirstLoadSearch(true);
|
77
|
+
}, []);
|
78
|
+
var isOnReady = useCallback(function (params) {
|
79
|
+
if (!params.ownerId || !params.isFirstLoadSearch) return false;
|
80
|
+
return true;
|
81
|
+
}, []);
|
82
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
83
|
+
ref: ref,
|
84
|
+
requestName: "wms.basedata.queryGoodsTypeSimple",
|
85
|
+
requestParams: requestParams,
|
86
|
+
requestConfig: requestConfig,
|
87
|
+
onSearch: isOnSearch,
|
88
|
+
onReady: isOnReady,
|
89
|
+
notFoundContent: notFoundContent,
|
90
|
+
onFetchData: onFetchData
|
91
|
+
}, restProps), "goodsTypeSelect");
|
92
|
+
}));
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export { default as AddressTableSelect } from './AddressTableSelect';
|
2
|
+
export { default as CityAreaSelect } from './OMSSystem/cityAreaSelect';
|
3
|
+
export { default as OmsWarehouseSel } from './OMSSystem/warehouseSel';
|
4
|
+
export { default as SNInput } from './SNInput';
|
5
|
+
export { default as TableSelectLocal } from './TableSelectLocal';
|
6
|
+
export { default as AppliedgoodsTypeSelect } from './appliedgoodsTypeSelect';
|
7
|
+
export { default as AutoCompleteSelect } from './autoComplete';
|
8
|
+
export { default as BoxTypeSelect } from './boxTypeSelect';
|
9
|
+
export { default as CarrierInfoSelect } from './carrierInfoSelect';
|
10
|
+
export { default as ChannelSelect } from './channelSelect';
|
11
|
+
export { default as CityAreaCascader } from './cityAreaCascader';
|
12
|
+
export { default as ClientInfoTableSelect } from './clientInfoTableSelect';
|
13
|
+
export { default as CustomMenu } from './customMenu';
|
14
|
+
export { default as DatabaseSelect } from './databaseSelect';
|
15
|
+
export { default as DepartOrgSelect } from './DepartOrgSelect/index';
|
16
|
+
export { default as DepartmentTreeSelect } from './departmentTreeSelect';
|
17
|
+
export { default as DicNameSelect } from './dicNameSelect';
|
18
|
+
export { default as DicTypeSelect } from './dicTypeSelect';
|
19
|
+
export { default as DockingPartySelect } from './dockingPartySelect';
|
20
|
+
export { default as EditLocationSelect } from './editLocationSelect';
|
21
|
+
export { default as AccountSelect } from './electronicFaceSheet/accountSelect';
|
22
|
+
export { default as AddressSelect } from './electronicFaceSheet/addresSelect';
|
23
|
+
export { default as PlatformSelect } from './electronicFaceSheet/platformSelect';
|
24
|
+
export { default as GoodsTypeSelect } from './goodsTypeSelect';
|
25
|
+
export { default as InterfaceNameSelect } from './interfaceNameSelect';
|
26
|
+
export { default as LpnSelect } from './lpnSelect';
|
27
|
+
export { default as OrderTypeSelect } from './orderTypeSelect';
|
28
|
+
export { default as OrderTypeTableSelect } from './orderTypeTableSelect';
|
29
|
+
export { default as DistributionCentreSelect } from './parkSelect';
|
30
|
+
export { default as PersonnelInfoSelect } from './personnelinfoselect';
|
31
|
+
export { default as BusinessDistrictSelect } from './businessdistrictselect';
|
32
|
+
export { default as PropertNameSelect } from './propertNameSelect';
|
33
|
+
export { default as ShipperTableSelect } from './shipperTableSelect';
|
34
|
+
export { default as UserSelect } from './userSelect';
|
35
|
+
export { default as WarehouseAreaSelect } from './warehouseAreaSelect';
|
36
|
+
export { default as WarehouseSelect } from './warehouseInfoSelect';
|
37
|
+
export { default as WarehouseLoctionSelect } from './warehouseLoctionSelect';
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export { default as AddressTableSelect } from "./AddressTableSelect";
|
2
|
+
export { default as CityAreaSelect } from "./OMSSystem/cityAreaSelect";
|
3
|
+
export { default as OmsWarehouseSel } from "./OMSSystem/warehouseSel";
|
4
|
+
export { default as SNInput } from "./SNInput";
|
5
|
+
export { default as TableSelectLocal } from "./TableSelectLocal";
|
6
|
+
export { default as AppliedgoodsTypeSelect } from "./appliedgoodsTypeSelect";
|
7
|
+
export { default as AutoCompleteSelect } from "./autoComplete";
|
8
|
+
export { default as BoxTypeSelect } from "./boxTypeSelect";
|
9
|
+
export { default as CarrierInfoSelect } from "./carrierInfoSelect";
|
10
|
+
export { default as ChannelSelect } from "./channelSelect";
|
11
|
+
export { default as CityAreaCascader } from "./cityAreaCascader";
|
12
|
+
export { default as ClientInfoTableSelect } from "./clientInfoTableSelect";
|
13
|
+
export { default as CustomMenu } from "./customMenu";
|
14
|
+
export { default as DatabaseSelect } from "./databaseSelect";
|
15
|
+
export { default as DepartOrgSelect } from "./DepartOrgSelect/index";
|
16
|
+
export { default as DepartmentTreeSelect } from "./departmentTreeSelect";
|
17
|
+
export { default as DicNameSelect } from "./dicNameSelect";
|
18
|
+
export { default as DicTypeSelect } from "./dicTypeSelect";
|
19
|
+
export { default as DockingPartySelect } from "./dockingPartySelect";
|
20
|
+
export { default as EditLocationSelect } from "./editLocationSelect";
|
21
|
+
export { default as AccountSelect } from "./electronicFaceSheet/accountSelect";
|
22
|
+
export { default as AddressSelect } from "./electronicFaceSheet/addresSelect";
|
23
|
+
export { default as PlatformSelect } from "./electronicFaceSheet/platformSelect";
|
24
|
+
export { default as GoodsTypeSelect } from "./goodsTypeSelect";
|
25
|
+
export { default as InterfaceNameSelect } from "./interfaceNameSelect";
|
26
|
+
export { default as LpnSelect } from "./lpnSelect";
|
27
|
+
export { default as OrderTypeSelect } from "./orderTypeSelect";
|
28
|
+
export { default as OrderTypeTableSelect } from "./orderTypeTableSelect";
|
29
|
+
export { default as DistributionCentreSelect } from "./parkSelect";
|
30
|
+
export { default as PersonnelInfoSelect } from "./personnelinfoselect";
|
31
|
+
export { default as BusinessDistrictSelect } from "./businessdistrictselect";
|
32
|
+
export { default as PropertNameSelect } from "./propertNameSelect";
|
33
|
+
export { default as ShipperTableSelect } from "./shipperTableSelect";
|
34
|
+
export { default as UserSelect } from "./userSelect";
|
35
|
+
export { default as WarehouseAreaSelect } from "./warehouseAreaSelect";
|
36
|
+
export { default as WarehouseSelect } from "./warehouseInfoSelect";
|
37
|
+
export { default as WarehouseLoctionSelect } from "./warehouseLoctionSelect";
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
dockingCode?: string | undefined;
|
5
|
+
value?: string | number | string[] | number[] | undefined;
|
6
|
+
onChangeData?: ((value: any, record: any) => void) | undefined;
|
7
|
+
type?: string | undefined;
|
8
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
9
|
+
export default _default;
|
@@ -0,0 +1,65 @@
|
|
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 = ["dockingCode", "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 _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, 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 dockingCode = props.dockingCode,
|
25
|
+
type = props.type,
|
26
|
+
onChange = props.onChange,
|
27
|
+
onChangeData = props.onChangeData,
|
28
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
29
|
+
var _useState = useState([]),
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
31
|
+
InterfaceNameList = _useState2[0],
|
32
|
+
setInterfaceNameList = _useState2[1];
|
33
|
+
var requestParams = useMemo(function () {
|
34
|
+
return {
|
35
|
+
dockingCode: dockingCode,
|
36
|
+
type: type
|
37
|
+
};
|
38
|
+
}, [dockingCode, type]);
|
39
|
+
var onFetchData = useCallback(function (res) {
|
40
|
+
setInterfaceNameList(res);
|
41
|
+
if (!dockingCode) return [];
|
42
|
+
return res.map(function (item) {
|
43
|
+
return {
|
44
|
+
label: item.interfaceName,
|
45
|
+
value: item.iD
|
46
|
+
};
|
47
|
+
});
|
48
|
+
}, [dockingCode]);
|
49
|
+
var isOnChange = useCallback(function (value, option) {
|
50
|
+
if (onChange) onChange(value, option);
|
51
|
+
if (onChangeData) {
|
52
|
+
onChangeData(value, InterfaceNameList.filter(function (item) {
|
53
|
+
return "".concat(item.iD) === "".concat(value);
|
54
|
+
})[0]);
|
55
|
+
}
|
56
|
+
}, [InterfaceNameList, onChange, onChangeData]);
|
57
|
+
return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
|
58
|
+
ref: ref,
|
59
|
+
requestName: dockingCode ? 'wms.mdm.queryDockingList' : '',
|
60
|
+
requestParams: requestParams,
|
61
|
+
requestConfig: requestConfig,
|
62
|
+
onChange: isOnChange,
|
63
|
+
onFetchData: onFetchData
|
64
|
+
}, restProps), "interfaceNameSelect");
|
65
|
+
}));
|
@@ -0,0 +1,88 @@
|
|
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 _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 { BiuASelect, BiuASelectOption } from "../../BiuASelect";
|
18
|
+
import { GATEWAY_ROUTE_WMS } from "../../../constant";
|
19
|
+
import { request } from "../../../package";
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
21
|
+
var getLpnPager = function getLpnPager(queryData) {
|
22
|
+
return request({
|
23
|
+
apiName: 'wms.wmsbase.getPager',
|
24
|
+
data: queryData,
|
25
|
+
requestConfig: {
|
26
|
+
GatewayRoute: GATEWAY_ROUTE_WMS
|
27
|
+
}
|
28
|
+
});
|
29
|
+
};
|
30
|
+
export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
31
|
+
var warehouseId = props.warehouseId,
|
32
|
+
_onChange = props.onChange,
|
33
|
+
onChangeData = props.onChangeData,
|
34
|
+
_props$isFirstLoad = props.isFirstLoad,
|
35
|
+
isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
|
36
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
37
|
+
var _useState = useState([]),
|
38
|
+
_useState2 = _slicedToArray(_useState, 2),
|
39
|
+
lpnData = _useState2[0],
|
40
|
+
SetLpnData = _useState2[1];
|
41
|
+
var _useState3 = useState(false),
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
43
|
+
loading = _useState4[0],
|
44
|
+
setLoading = _useState4[1];
|
45
|
+
useEffect(function () {
|
46
|
+
if (!isFirstLoad) {
|
47
|
+
setLoading(true);
|
48
|
+
getLpnPager({
|
49
|
+
page: 1,
|
50
|
+
size: 20
|
51
|
+
}).then(function (data) {
|
52
|
+
SetLpnData(data === null || data === void 0 ? void 0 : data.rows);
|
53
|
+
setLoading(false);
|
54
|
+
});
|
55
|
+
}
|
56
|
+
}, [warehouseId, isFirstLoad]);
|
57
|
+
var onSearch = useCallback(function (value) {
|
58
|
+
setLoading(true);
|
59
|
+
getLpnPager({
|
60
|
+
lpn: value
|
61
|
+
}).then(function (data) {
|
62
|
+
SetLpnData(data === null || data === void 0 ? void 0 : data.rows);
|
63
|
+
setLoading(false);
|
64
|
+
});
|
65
|
+
}, []);
|
66
|
+
return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
|
67
|
+
ref: ref,
|
68
|
+
showSearch: true,
|
69
|
+
optionFilterProp: "children",
|
70
|
+
loading: loading
|
71
|
+
}, restProps), {}, {
|
72
|
+
onChange: function onChange(value, option) {
|
73
|
+
if (_onChange) _onChange(value, option);
|
74
|
+
if (onChangeData) {
|
75
|
+
onChangeData(value, lpnData.filter(function (item) {
|
76
|
+
return "".concat(item.id) === "".concat(value);
|
77
|
+
})[0]);
|
78
|
+
}
|
79
|
+
},
|
80
|
+
onSearch: onSearch,
|
81
|
+
children: lpnData.map(function (e) {
|
82
|
+
return /*#__PURE__*/_jsx(BiuASelectOption, {
|
83
|
+
value: e.lpn,
|
84
|
+
children: e.lpn || ''
|
85
|
+
}, e.id);
|
86
|
+
})
|
87
|
+
}), "lpnSelect");
|
88
|
+
}));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
4
|
+
/**
|
5
|
+
* 货主id
|
6
|
+
*/
|
7
|
+
ownerId?: string | undefined;
|
8
|
+
noOwnerContent?: string | undefined;
|
9
|
+
/**
|
10
|
+
* 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
|
11
|
+
*/
|
12
|
+
orderType: 0 | 1 | 2 | 4 | 3 | 5;
|
13
|
+
isFirstLoad: boolean;
|
14
|
+
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
15
|
+
export default _default;
|