logwire-wms-pda-ui
Version:
运匠科技wms-PDA基础组件库
62 lines (57 loc) • 2.11 kB
JavaScript
/*
* 导出公共方法的统一入口
* @author 张文
* @date 2022-01-26
* */
import {DateTime} from "./DateTime"
import {ScanRule} from "./ScanRule"
import {AppPower} from './AppPower'
import {lwShowLoading, lwCloseLoading} from "../components/ui/Loading"
import {lwShowErrorMsg, lwCloseErrorMsg} from "../components/ui/ErrorMsg"
import lwAxios from './Axios'
import {GetImgSrc} from "./GetImgSrc";
import {lwToast} from "./Toast";
import {Print} from "./Print";
import {DeepCopy} from "./DeepCopy";
import {LocalStorage} from "./LocalStorage";
import {SetColor} from "./SetColor";
import {Tip} from "./Tip";
import {Language} from "./Language";
import {Init} from "./Init";
import {lwMenu} from "../router/menu";
import {Dict} from "./Dict"
import {ApiUtils} from "./ApiUtils"
import {Warehouse} from "./Warehouse";
import {Permissions} from "./Permissions";
import {TabBar} from "./TabBar";
import {RouteInit} from "./RouteInit";
import {UUID} from "./UUID";
import {AppBack} from "./AppBack";
export const utils = (Vue) => {
Vue.prototype.$lwDate = DateTime
Vue.prototype.$lwScanRule = ScanRule
Vue.prototype.$lwAppPower = AppPower
Vue.prototype.$lwShowLoading = lwShowLoading
Vue.prototype.$lwCloseLoading = lwCloseLoading
Vue.prototype.$lwShowErrorMsg = lwShowErrorMsg
Vue.prototype.$lwCloseErrorMsg = lwCloseErrorMsg
Vue.prototype.$lwAxios = lwAxios
Vue.prototype.$lwGetImgSrc = GetImgSrc
Vue.prototype.$lwToast = lwToast
Vue.prototype.$lwPrint = Print
Vue.prototype.$lwDeepCopy = DeepCopy
Vue.prototype.$lwLocalStorag = LocalStorage
Vue.prototype.$lwSetColor = SetColor
Vue.prototype.$lwTip = Tip
Vue.prototype.$lwLanguage = Language
Vue.prototype.$lwInit = Init
Vue.prototype.$lwMenu = lwMenu
Vue.prototype.$lwDict = Dict
Vue.prototype.$lwApiUtils = ApiUtils
Vue.prototype.$lwWarehouse = Warehouse
Vue.prototype.$lwPermissions = Permissions
Vue.prototype.$lwTabBar = TabBar
Vue.prototype.$lwRouteInit = RouteInit
Vue.prototype.$lwUUID = UUID
Vue.prototype.$lwAppBack = AppBack
}