diff --git a/package.json b/package.json index 8f06303..7ade74b 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "bootstrap": "^5.3.0-alpha1", "clipboard": "2.0.8", "core-js": "3.6.5", + "dayjs": "^1.11.11", "dhtmlx-gantt": "^8.0.6", "echarts": "^5.5.0", "echarts-gl": "^2.0.8", diff --git a/src/main.js b/src/main.js index 172e122..857f82f 100644 --- a/src/main.js +++ b/src/main.js @@ -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" }); diff --git a/src/views/wmsManagement/WmBlankInventory.vue b/src/views/wmsManagement/WmBlankInventory.vue index b0ac8a5..da51c64 100644 --- a/src/views/wmsManagement/WmBlankInventory.vue +++ b/src/views/wmsManagement/WmBlankInventory.vue @@ -44,7 +44,10 @@ 删除 - 清单数据同步 + 清单列表同步 + + + 毛坯库存更新 @@ -147,6 +150,7 @@ + + \ No newline at end of file