From ade7016114f5371e5cc2484734ec3e2b381f52ac Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Mon, 19 Aug 2024 13:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=AE=B0=E5=BD=95=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8:=E5=89=8D=E7=AB=AF=E9=A6=96=E6=AC=A1=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=BB=98=E8=AE=A4=E5=BD=93=E5=A4=A9=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=EF=BC=8C=E5=90=8E=E7=AB=AFsql=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/dao/mapper/MaterialDataMapper.xml | 127 +++++++++++------- lms/nladmin-ui/src/main.js | 23 ++++ .../src/views/wms/sch/data/index.vue | 22 ++- 3 files changed, 110 insertions(+), 62 deletions(-) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/data/service/dao/mapper/MaterialDataMapper.xml b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/data/service/dao/mapper/MaterialDataMapper.xml index e4e71d2..9b2fa44 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/data/service/dao/mapper/MaterialDataMapper.xml +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/data/service/dao/mapper/MaterialDataMapper.xml @@ -8,56 +8,83 @@ diff --git a/lms/nladmin-ui/src/main.js b/lms/nladmin-ui/src/main.js index 8a80f47..a647417 100644 --- a/lms/nladmin-ui/src/main.js +++ b/lms/nladmin-ui/src/main.js @@ -85,3 +85,26 @@ new Vue({ store, render: h => h(App) }) + +// var time1 = new Date().format("yyyy-MM-dd hh:mm:ss"); +// eslint-disable-next-line no-extend-native +Date.prototype.format = function(fmt) { + var o = { + 'M+': this.getMonth() + 1, // 月份 + 'd+': this.getDate(), // 日 + 'h+': this.getHours(), // 小时 + 'm+': this.getMinutes(), // 分 + 's+': this.getSeconds(), // 秒 + 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度 + 'S': this.getMilliseconds() // 毫秒 + } + if (/(y+)/.test(fmt)) { + fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length)) + } + for (var k in o) { + if (new RegExp('(' + k + ')').test(fmt)) { + fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length))) + } + } + return fmt +} diff --git a/lms/nladmin-ui/src/views/wms/sch/data/index.vue b/lms/nladmin-ui/src/views/wms/sch/data/index.vue index d4b9979..99e338c 100644 --- a/lms/nladmin-ui/src/views/wms/sch/data/index.vue +++ b/lms/nladmin-ui/src/views/wms/sch/data/index.vue @@ -27,14 +27,13 @@ - - - - - - - - + + + + + + + @@ -43,7 +42,7 @@ - + @@ -63,12 +62,11 @@ import CRUD, { crud, header, presenter } from '@crud/crud' import rrOperation from '@crud/RR.operation' import crudOperation from '@crud/CRUD.operation' -import udOperation from '@crud/UD.operation' import pagination from '@crud/Pagination' export default { name: 'Data', - components: { pagination, crudOperation, rrOperation, udOperation }, + components: { pagination, crudOperation, rrOperation }, mixins: [presenter(), header(), crud()], cruds() { return CRUD({ @@ -84,7 +82,7 @@ export default { reset: false }, query: { - // start_time: new Date().format('yyyy-MM-dd') + start_time: new Date().format('yyyy-MM-dd') } }) },