diff --git a/api/dept.js b/api/dept.js
new file mode 100644
index 0000000..04d8a54
--- /dev/null
+++ b/api/dept.js
@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 获取人员列表
+export function getSelecUser(params) {
+ return request({
+ url: '/system/dept/selecUserByType',
+ 'method': 'GET',
+ params
+ })
+}
diff --git a/api/overhaulOrder.js b/api/overhaulOrder.js
new file mode 100644
index 0000000..5374490
--- /dev/null
+++ b/api/overhaulOrder.js
@@ -0,0 +1,75 @@
+import request from '@/utils/request'
+
+
+// 添加工单
+export function overhaulOrderCreate(data) {
+ return request({
+ url: '/eam/device-inspection-main/create',
+ 'method': 'POST',
+ data
+ })
+}
+// 编辑工单
+export function overhaulOrderUpdate(data) {
+ return request({
+ url: '/eam/device-inspection-main/update',
+ 'method': 'PUT',
+ data
+ })
+}
+// 报修列表
+export function overhaulOrderPage(params) {
+ return request({
+ url: '/eam/device-inspection-main/getAppPage',
+ 'method': 'GET',
+ params
+ })
+}
+// 操作工单
+export function orderClick(params) {
+ return request({
+ url: '/eam/device-maintenance-main/orderClick',
+ 'method': 'GET',
+ params
+ })
+}
+// 添加维修工单子项维修内容
+export function repairOrderDetailCreate(data) {
+ return request({
+ url: '/eam/device-maintenance-detail/create',
+ 'method': 'POST',
+ data
+ })
+}
+// 编辑维修工单子项维修内容
+export function repairOrderDetailUpdate(data) {
+ return request({
+ url: '/eam/device-maintenance-detail/update',
+ 'method': 'PUT',
+ data
+ })
+}
+// 获得维修工单子列表
+export function repairOrderDetailList(params) {
+ return request({
+ url: '/eam/device-maintenance-detail/selectListByNumber',
+ 'method': 'GET',
+ params
+ })
+}
+// 删除维修工单子
+export function repairOrderDetailDelete(id) {
+ return request({
+ url: '/eam/device-maintenance-detail/delete?id='+id,
+ 'method': 'DELETE'
+ })
+}
+
+//转办
+export function transfer(params) {
+ return request({
+ url: '/eam/device-maintenance-main/turnTo',
+ 'method': 'GET',
+ params
+ })
+}
\ No newline at end of file
diff --git a/api/repairOrder.js b/api/repairOrder.js
index 9c926bc..5c16629 100644
--- a/api/repairOrder.js
+++ b/api/repairOrder.js
@@ -33,4 +33,52 @@ export function orderClick(params) {
params
})
}
+// 添加维修工单子项维修内容
+export function repairOrderDetailCreate(data) {
+ return request({
+ url: '/eam/device-maintenance-detail/create',
+ 'method': 'POST',
+ data
+ })
+}
+// 编辑维修工单子项维修内容
+export function repairOrderDetailUpdate(data) {
+ return request({
+ url: '/eam/device-maintenance-detail/update',
+ 'method': 'PUT',
+ data
+ })
+}
+// 获得维修工单子列表
+export function repairOrderDetailList(params) {
+ return request({
+ url: '/eam/device-maintenance-detail/selectListByNumber',
+ 'method': 'GET',
+ params
+ })
+}
+// 删除维修工单子
+export function repairOrderDetailDelete(id) {
+ return request({
+ url: '/eam/device-maintenance-detail/delete?id='+id,
+ 'method': 'DELETE'
+ })
+}
+
+//转办
+export function transfer(params) {
+ return request({
+ url: '/eam/device-maintenance-main/turnTo',
+ 'method': 'GET',
+ params
+ })
+}
+// 获取采取临时措施的维修工单
+export function repairOrderList(params) {
+ return request({
+ url: '/eam/device-maintenance-main/getList',
+ 'method': 'GET',
+ params
+ })
+}
\ No newline at end of file
diff --git a/api/spareParts.js b/api/spareParts.js
new file mode 100644
index 0000000..9baa334
--- /dev/null
+++ b/api/spareParts.js
@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 获取备件列表
+export function getSparePartsList(params) {
+ return request({
+ url: '/eam/item/getListByNumber',
+ 'method': 'GET',
+ params
+ })
+}
diff --git a/api/user.js b/api/user.js
new file mode 100644
index 0000000..c2f72a6
--- /dev/null
+++ b/api/user.js
@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+// 用户密码重置
+export function updateUserPassword(data){
+ return request({
+ url: '/system/user/profile/update-password',
+ 'method': 'PUT',
+ data
+ })
+}
diff --git a/config.js b/config.js
index 42a267a..1fdbab3 100644
--- a/config.js
+++ b/config.js
@@ -1,5 +1,6 @@
// 应用全局配置
module.exports = {
+ // http://192.168.0.165:1208
baseUrl: process.env.NODE_ENV === 'development' ? 'http://192.168.0.165:12080' : 'http://api-dashboard.yudao.iocoder.cn',
baseApi:process.env.NODE_ENV === 'development' ? '/admin-api' : '/api/admin-api',
// 应用信息
diff --git a/pages.json b/pages.json
index 2cc6c11..72a8b3b 100644
--- a/pages.json
+++ b/pages.json
@@ -69,25 +69,59 @@
"navigationBarTextStyle": "white"
}
},{
- "path": "pages/repairOrder/screen",
+ "path": "pages/repairOrder/detail",
"style": {
- "navigationBarTitleText": "筛选",
+ "navigationBarTitleText": "维修工单详情",
"navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white"
}
},{
- "path": "pages/repairOrder/detail",
+ "path": "pages/repairOrder/myRepairOrder",
"style": {
- "navigationBarTitleText": "维修工单详情",
+ "navigationBarTitleText": "维修工单",
+ "navigationStyle": "custom"
+ }
+ },{
+ "path": "pages/repairOrder/addServiceRecord",
+ "style": {
+ "navigationBarTitleText": "添加维修记录",
"navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white"
}
},{
- "path": "pages/repairOrder/myRepairOrder",
+ "path": "pages/repairOrder/transfer",
"style": {
- "navigationBarTitleText": "维修工单",
+ "navigationBarTitleText": "转办",
+ "navigationBarBackgroundColor": "#409eff",
+ "navigationBarTextStyle": "white"
+ }
+ },{
+ "path": "pages/overhaulOrder/index",
+ "style": {
+ "navigationBarTitleText": "检修工单",
"navigationStyle": "custom"
}
+ },{
+ "path": "pages/overhaulOrder/addForm",
+ "style": {
+ "navigationBarTitleText": "添加检修工单",
+ "navigationBarBackgroundColor": "#409eff",
+ "navigationBarTextStyle": "white"
+ }
+ },{
+ "path": "pages/overhaulOrder/detail",
+ "style": {
+ "navigationBarTitleText": "检修工单详情",
+ "navigationBarBackgroundColor": "#409eff",
+ "navigationBarTextStyle": "white"
+ }
+ },{
+ "path": "pages/mine/changePassword",
+ "style": {
+ "navigationBarTitleText": "修改密码",
+ "navigationBarBackgroundColor": "#409eff",
+ "navigationBarTextStyle": "white"
+ }
}],
"tabBar": {
"color": "#8f9bb3",
diff --git a/pages/index.vue b/pages/index.vue
index c3163c7..159673f 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -13,15 +13,15 @@
- 32
+ {{counts.allCount}}
设备总数
- 32
+ {{counts.breakDownCount}}
故障中设备
- 32
+ {{counts.repairCount}}
已报修设备
@@ -57,7 +57,7 @@
-
+
检修工单
@@ -90,7 +90,7 @@
-
+
检修工单
@@ -135,7 +135,7 @@
data() {
return {
bgOpacity: 0,
-
+ counts:''
}
},
@@ -156,6 +156,7 @@
getCounts() {
getCounts().then(res => {
console.log((res))
+ this.counts = res.data
})
},
},
diff --git a/pages/mine/changePassword.vue b/pages/mine/changePassword.vue
index c0f11bc..265789c 100644
--- a/pages/mine/changePassword.vue
+++ b/pages/mine/changePassword.vue
@@ -1,149 +1,158 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确认
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+
+ page {
+ background-color: #f8f9fb;
+ }
+
+ .box {
+ width: 94vw;
+ margin: 20rpx auto;
+ border-radius: 20rpx;
+ overflow: hidden;
+ }
+
+ .item {
+ background-color: #FFFFFF;
+ padding: 0rpx 30rpx;
+ display: flex;
+ align-items: center;
+
+ image {
+ width: 44rpx;
+ height: 44rpx;
+ margin-right: 30rpx;
+ }
+
+ .item2 {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex: 1;
+ border-bottom: 1rpx solid #efefef;
+ padding: 25rpx 0rpx;
+
+ input {
+ font-size: 28rpx;
+ }
+
+ view {
+ color: #1a4f9f;
+ border: 1rpx solid #1a4f9f;
+ font-size: 30rpx;
+ border-radius: 50rpx;
+ padding: 10rpx 18rpx;
+ }
+ }
+
+ }
+
+ .btn {
+ width: calc(100vw - 80rpx);
+ position: fixed;
+ bottom: 200rpx;
+ left: 40rpx;
+ background-color: rgb(64, 158, 255);
+ color: #FFFFFF;
+ height: 90rpx;
+ line-height: 90rpx;
+ text-align: center;
+ border-radius: 50rpx;
+ font-size: 32rpx;
+ }
+
+ .noborder {
+ border-bottom: none !important;
+ }
+
+ .padd35 {
+ padding: 35rpx 0 !important;
+ }
+
\ No newline at end of file
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index 9840be7..bfa046a 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -56,7 +56,7 @@