添加dayjs插件,入库记录出库记录,毛坯仓库调整

This commit is contained in:
2024-06-28 15:22:03 +08:00
parent 655d1cce28
commit 14e5a8e85b
6 changed files with 219 additions and 23 deletions

View File

@@ -55,6 +55,12 @@ import dataV from '@jiaminghi/data-view';
//需要按需引入先引入vue并引入element-ui
import AFTableColumn from 'af-table-column'
// dayjs
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn' // 引入中文语言包
import relativeTime from 'dayjs/plugin/relativeTime'
dayjs.extend(relativeTime)
// 全局方法挂载
Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey
@@ -67,6 +73,7 @@ Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.prototype.handleDict = handleDict
Vue.prototype.downFile = downFile
Vue.prototype.$dayjs = dayjs
Vue.prototype.msgSuccess = function (msg) {
this.$message({ showClose: true, message: msg, type: "success" });