From 652a8831986c86037dc51304f14f18786d2cc1bd Mon Sep 17 00:00:00 2001 From: jinna Date: Thu, 12 Dec 2024 13:48:22 +0800 Subject: [PATCH] =?UTF-8?q?PC=E7=AB=AF=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83=EF=BC=8C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/api/desk/message.js | 33 + src/api/device/device.js | 10 + src/api/goodsManagement/warehouse.js | 45 ++ src/api/labManagement/inspectionManagement.js | 9 + src/api/user.js | 14 +- src/assets/json/status.json | 241 ++++++ src/page/index/top/index.vue | 9 +- src/page/index/top/top-notice.vue | 72 +- src/page/login/forgetPassword.vue | 1 + src/page/login/userlogin.vue | 4 +- src/styles/top.scss | 1 + src/util/func.js | 17 + .../businessManagement/inspection/repair.vue | 223 ++++- .../businessManagement/inspection/task.vue | 3 + src/views/businessManagement/ordinary.vue | 285 ++----- src/views/desk/message.vue | 297 +++++++ src/views/device/deviceSystem.vue | 764 +++++++++--------- src/views/goodsManagement/goodsList.vue | 73 +- src/views/goodsManagement/warehouseList.vue | 289 +++++++ .../labManagement/components/addDialog.vue | 269 ++++-- .../labManagement/inspectionManagement.vue | 16 +- src/views/operation/hand.vue | 4 +- src/views/system/check.vue | 2 + 24 files changed, 1899 insertions(+), 784 deletions(-) create mode 100644 src/api/desk/message.js create mode 100644 src/api/goodsManagement/warehouse.js create mode 100644 src/views/desk/message.vue create mode 100644 src/views/goodsManagement/warehouseList.vue 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 @@
- - --> + + placement="bottom" + style="cursor: pointer;">
-
diff --git a/src/page/index/top/top-notice.vue b/src/page/index/top/top-notice.vue index 5953924..b5fbbf5 100644 --- a/src/page/index/top/top-notice.vue +++ b/src/page/index/top/top-notice.vue @@ -1,55 +1,13 @@ diff --git a/src/page/login/forgetPassword.vue b/src/page/login/forgetPassword.vue index 9489331..aa95a15 100644 --- a/src/page/login/forgetPassword.vue +++ b/src/page/login/forgetPassword.vue @@ -34,6 +34,7 @@ + + + \ No newline at end of file diff --git a/src/views/device/deviceSystem.vue b/src/views/device/deviceSystem.vue index c7b937f..9c9f5a6 100644 --- a/src/views/device/deviceSystem.vue +++ b/src/views/device/deviceSystem.vue @@ -1,79 +1,52 @@ @@ -249,12 +260,18 @@ import {getGoodsList, saveGoods, batchStore, getDetail, editGoods,applyGoods,inO import {getChildList} from '@/api/system/dictbiz' import {addPurchase} from '@/api/purchaseManagement/purchase' import { nextTick } from 'vue'; +import { downloadXls } from "@/util/util"; +import {exportBlob} from "@/api/common"; +import {dateNow} from "@/util/date"; +import NProgress from 'nprogress'; +import 'nprogress/nprogress.css'; export default { components:{ SelectTree }, data(){ return { + importVisible:false, purchaseForm:{}, purchaseRules:{}, addTitle:'', @@ -473,7 +490,33 @@ export default { goodsSize:100, goodsTotal:0, goodsName:'', - isSelected:false + isSelected:false, + excelForm: {}, + excelOption: { + submitBtn: false, + emptyBtn: false, + column: [ + { + label: '模板上传', + prop: 'excelFile', + type: 'upload', + drag: true, + loadText: '模板上传中,请稍等', + span: 24, + propsHttp: { + res: 'data' + }, + tip: '请上传 .xls,.xlsx 标准格式文件', + action: "/api/goods/import-goods?isCovered=0" + }, + { + label: '模板下载', + prop: 'excelTemplate', + formslot: true, + span: 24, + } + ] + } } }, computed:{ @@ -751,9 +794,29 @@ export default { this.$refs.childTree.resetNode() this.dialogAdd = false }, + handleImport() { + this.importVisible = true + }, + handleTemplate() { + exportBlob(`/api/goods/export-template`).then(res => { + downloadXls(res.data, "物资数据模板.xlsx"); + }) + }, + handleExport() { + this.$confirm("是否导出物资数据?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(() => { + NProgress.start(); + exportBlob(`/api/goods/export-goods`).then(res => { + downloadXls(res.data, `物资数据表${dateNow()}.xlsx`); + NProgress.done(); + }) + }); + }, // 申领按钮 - handleImport(row){ - console.log('row-------->',row) + handleApply(row){ this.isShowTips = false this.receiveForm = row this.receiveForm.tableData = [] diff --git a/src/views/goodsManagement/warehouseList.vue b/src/views/goodsManagement/warehouseList.vue new file mode 100644 index 0000000..625f7fa --- /dev/null +++ b/src/views/goodsManagement/warehouseList.vue @@ -0,0 +1,289 @@ + + + + + \ No newline at end of file diff --git a/src/views/labManagement/components/addDialog.vue b/src/views/labManagement/components/addDialog.vue index 5693eb9..ca3a4f4 100644 --- a/src/views/labManagement/components/addDialog.vue +++ b/src/views/labManagement/components/addDialog.vue @@ -39,8 +39,8 @@
- - + +