diff --git a/src/router/index.js b/src/router/index.js index 5fde2b6..32aa4c5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-15 08:20:28 * @LastEditors: zwq - * @LastEditTime: 2022-11-21 14:51:52 + * @LastEditTime: 2022-11-23 09:42:21 * @Description: */ /** @@ -62,7 +62,8 @@ const mainRoutes = { { path: '/report-kiln-alarm', component: _import('report/kiln-alarm'), name: 'report-kiln-alarm', meta: { title: '工业炉报警', isTab: true } }, { path: '/report-car-alarm', component: _import('report/car-alarm'), name: 'report-car-alarm', meta: { title: '车辆运行报警', isTab: true } }, { path: '/report-order-history', component: _import('report/order-history'), name: 'report-order-history', meta: { title: '订单历史列表', isTab: true } }, - { path: '/report-APMS-work', component: _import('report/APMS-table'), name: 'report-APMS-work', meta: { title: 'APMS报工', isTab: true } }, + { path: '/report-APMS-table', component: _import('report/APMS-table'), name: 'report-APMS-table', meta: { title: 'APMS报工', isTab: true } }, + { path: '/report-APMS-work', component: _import('report/APMS-work'), name: 'report-APMS-work', meta: { title: 'APMS未出单报工', isTab: true } }, { path: '/report-order-history-task', component: _import('report/components/order-history-task'), name: 'report-order-history-task', meta: { title: '订单历史任务详情', isTab: true } }, { path: '/report-task-history', component: _import('report/task-history'), name: 'report-task-history', meta: { title: '执行任务历史列表', isTab: true } }, { path: '/report-task-history-detail', component: _import('report/components/task-history-detail'), name: 'report-task-history-detail', meta: { title: '执行任务历史详情', isTab: true } }, diff --git a/src/utils/validate.js b/src/utils/validate.js index 331e8cb..a0adf5b 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -1,3 +1,10 @@ +/* + * @Author: zwq + * @Date: 2021-11-15 08:20:28 + * @LastEditors: zwq + * @LastEditTime: 2022-11-30 15:44:44 + * @Description: + */ /** * 邮箱 * @param {*} s @@ -29,3 +36,11 @@ export function isPhone (s) { export function isURL (s) { return /^http[s]?:\/\/.*/.test(s) } + +/** + * 配炉号 + * @param {*} s + */ +export function isStoveCode (s) { + return /^[A-Z]{3}\d{1}\W{1}\d{2}\W{1}\d{10}$/.test(s) +} diff --git a/src/views/main-sidebar.vue b/src/views/main-sidebar.vue index f75562d..cf22774 100644 --- a/src/views/main-sidebar.vue +++ b/src/views/main-sidebar.vue @@ -339,12 +339,19 @@ 执行任务历史列表 + + + APMS报工 + - APMS报工 + APMS未出单报工 diff --git a/src/views/report/APMS-table.vue b/src/views/report/APMS-table.vue index d03f4c5..ee1b237 100644 --- a/src/views/report/APMS-table.vue +++ b/src/views/report/APMS-table.vue @@ -58,7 +58,6 @@ export default { return { dataList: [], updataList: [], - kilnInfoArr: [], dataListLoading: false, tableEditVisible: false } @@ -70,20 +69,6 @@ export default { this.getDataList() }, created () { - this.$http({ - url: this.$http.adornUrl('/kilnInfo/list'), - method: 'post', - data: this.$http.adornData({ - current: 1, - size: 500 - }) - }).then(({ data }) => { - if (data && data.code === 0) { - this.kilnInfoArr = data.data - } else { - this.kilnInfoArr = [] - } - }) }, methods: { // 获取数据列表 diff --git a/src/views/report/APMS-work.vue b/src/views/report/APMS-work.vue index c9c4df6..38eae09 100644 --- a/src/views/report/APMS-work.vue +++ b/src/views/report/APMS-work.vue @@ -35,7 +35,13 @@ - + @@ -91,7 +97,7 @@ - + @@ -162,10 +168,18 @@