diff --git a/src/api/order.js b/src/api/order.js new file mode 100644 index 0000000..3c7ac06 --- /dev/null +++ b/src/api/order.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' +export function fetchList(params) { + return request({ + url:'/order/list', + method:'get', + params:params + }) +} diff --git a/src/utils/date.js b/src/utils/date.js new file mode 100644 index 0000000..64d8c0c --- /dev/null +++ b/src/utils/date.js @@ -0,0 +1,24 @@ +// date.js +export function formatDate (date, fmt) { + if (/(y+)/.test(fmt)) { + fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)); + } + let o = { + 'M+': date.getMonth() + 1, + 'd+': date.getDate(), + 'h+': date.getHours(), + 'm+': date.getMinutes(), + 's+': date.getSeconds() + }; + for (let k in o) { + if (new RegExp(`(${k})`).test(fmt)) { + let str = o[k] + ''; + fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str)); + } + } + return fmt; +} + +function padLeftZero (str) { + return ('00' + str).substr(str.length); +} diff --git a/src/views/oms/order/index.vue b/src/views/oms/order/index.vue index 43422d1..170cb9f 100644 --- a/src/views/oms/order/index.vue +++ b/src/views/oms/order/index.vue @@ -7,11 +7,13 @@ 查询搜索 重置 @@ -27,23 +29,137 @@ + + + + + + + + + + + + + + + + + + - + + 数据列表 -
-
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + 确定 + +
+
+ + +