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') } }) },