diff --git a/.gitignore b/.gitignore index ae237de..3cb65b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ .DS_Store node_modules /dist -dist +/dist.zip /tests/e2e/videos/ /tests/e2e/screenshots/ diff --git a/src/api/desk/message.js b/src/api/desk/message.js new file mode 100644 index 0000000..e3e0a89 --- /dev/null +++ b/src/api/desk/message.js @@ -0,0 +1,33 @@ +import request from '@/router/axios'; + +export const messTotal = (query) =>{ + return request({ + url:'/api/messeage/total', + method:'get', + params:query + }) +} + +export const getList = (query) =>{ + return request({ + url:'/api/messeage/list', + method:'get', + params:query + }) +} + +export const messOver = (data) =>{ + return request({ + url:'/api/messeage/updateStatus', + method:'post', + data + }) +} + +export const overAll = (data) =>{ + return request({ + url:'/api/messeage/updateStatusAll', + method:'post', + data + }) +} \ No newline at end of file diff --git a/src/api/device/device.js b/src/api/device/device.js index e187c77..76972af 100644 --- a/src/api/device/device.js +++ b/src/api/device/device.js @@ -53,4 +53,14 @@ export const qrcode = (data) =>{ method:"post", data }) +} + +// 模板下载 +export const importFile = (params) =>{ + return request({ + url:'/api/device/export-template', + method:'get', + query:params, + responseType: 'blob' + }) } \ No newline at end of file diff --git a/src/api/goodsManagement/warehouse.js b/src/api/goodsManagement/warehouse.js new file mode 100644 index 0000000..2fd55af --- /dev/null +++ b/src/api/goodsManagement/warehouse.js @@ -0,0 +1,45 @@ +import request from '@/router/axios'; + +export const getList = (query) =>{ + return request({ + url:"/api/wareHouse/list", + method:"get", + params:query + }) +} + +// 新增 +export const addWare = (data) =>{ + return request({ + url:'/api/wareHouse/save', + method:'post', + data + }) +} + +// 详情 +export const getDetail = (query) =>{ + return request({ + url:'/api/wareHouse/detail', + method:'get', + params:query + }) +} + +// 修改 +export const editWare = (data) =>{ + return request({ + url:'/api/wareHouse/update', + method:'post', + data + }) +} + +// 删除 +export const deleteWare = (query) =>{ + return request({ + url:'/api/wareHouse/remove', + method:'post', + params:query + }) +} \ No newline at end of file diff --git a/src/api/labManagement/inspectionManagement.js b/src/api/labManagement/inspectionManagement.js index 1f45fec..d268add 100644 --- a/src/api/labManagement/inspectionManagement.js +++ b/src/api/labManagement/inspectionManagement.js @@ -69,4 +69,13 @@ export const editPlan = (data) =>{ method:'post', data }) +} + +// 获取设备 +export const getDeviceLists = (query) =>{ + return request({ + url:"/api/device/limsList", + method:'get', + params:query + }) } \ No newline at end of file diff --git a/src/api/user.js b/src/api/user.js index 15da3a6..fa6a61a 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -158,18 +158,8 @@ export const sendSms = (tenantId, phone) => request({ }, }); -export const resetPwd = (refresh_token, tenantId, deptId, roleId) => request({ +export const resetPwd = (data) => request({ url: '/api/blade-system/user/register/reset-pwd', method: 'post', - headers: { - 'Tenant-Id': tenantId, - 'Dept-Id': (website.switchMode ? deptId : ''), - 'Role-Id': (website.switchMode ? roleId : '') - }, - params: { - tenantId, - refresh_token, - grant_type: "refresh_token", - scope: "all", - } + data }); diff --git a/src/assets/json/status.json b/src/assets/json/status.json index ac1b11f..bb13b4e 100644 --- a/src/assets/json/status.json +++ b/src/assets/json/status.json @@ -66,6 +66,110 @@ "status": 9, "color": "#909399", "type": "info" + }, + { + "name": "待维修", + "status": 100, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 101, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + } + ], + "1123598816738675201": [ + { + "name": "待提报", + "status": -1, + "color": "#409eff", + "type": "" + }, + { + "name": "待接单", + "status": 0, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待维修", + "status": 1, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 3, + "color": "#409eff", + "type": "" + }, + { + "name": "确认方案", + "status": 4, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 5, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 7, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 9, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 100, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" } ], "1839536982874193922": [ @@ -128,6 +232,24 @@ "status": 9, "color": "#909399", "type": "info" + }, + { + "name": "已驳回", + "status": 100, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" } ], "1839537055389515777": [ @@ -178,7 +300,26 @@ "status": 9, "color": "#909399", "type": "info" + }, + { + "name": "已驳回", + "status": 100, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" } + ], "1839552581620793346": [ { @@ -240,6 +381,24 @@ "status": 9, "color": "#909399", "type": "info" + }, + { + "name": "已驳回", + "status": 100, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" } ] }, @@ -276,6 +435,38 @@ "type": "info" } ], + "1123598816738675201":[ + { + "name": "待巡检", + "status": 0, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待巡检", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "巡检中", + "status": 2, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待确认", + "status": 3, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 4, + "color": "#909399", + "type": "info" + } + ], "1839537055389515777": [ { "name": "待派单", @@ -392,6 +583,56 @@ "type": "info" } ], + "1123598816738675201":[ + { + "name": "待提交", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待审批", + "status": 3, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 4, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 5, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 7, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + } + ], "1839536982874193922": [ { "name": "待提交", diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 269f7b1..a3993fb 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -50,15 +50,16 @@
- -