From 14e5a8e85b1913b59dd41a79739626b1355c5f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Fri, 28 Jun 2024 15:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0dayjs=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=EF=BC=8C=E6=AF=9B=E5=9D=AF=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/main.js | 7 + src/views/wmsManagement/WmBlankInventory.vue | 16 +- .../wmsManagement/WmGoodsNowProduction.vue | 34 +++- .../wmsManagement/WmGoodsOutProduction.vue | 34 ++-- .../TheWmBlankInventoryRenew.vue | 150 ++++++++++++++++++ 6 files changed, 219 insertions(+), 23 deletions(-) create mode 100644 src/views/wmsManagement/components/TheWmBlankInventoryRenew/TheWmBlankInventoryRenew.vue 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