Browse Source

检修工单

master
zhang_li 9 months ago
parent
commit
400501d136
  1. 26
      api/overhaulOrder.js
  2. 2
      components/form/index.vue
  3. 16
      pages.json
  4. 2
      plugins/time.js

26
api/overhaulOrder.js

@ -28,48 +28,40 @@ export function overhaulOrderPage(params) {
// 操作工单 // 操作工单
export function orderClick(params) { export function orderClick(params) {
return request({ return request({
url: '/eam/device-maintenance-main/orderClick', url: '/eam/device-inspection-main/onClick',
'method': 'GET', 'method': 'GET',
params params
}) })
} }
// 添加维修工单子项维修内容 // 添加维修工单子项维修内容
export function repairOrderDetailCreate(data) { export function overhaulOrderDetailCreate(data) {
return request({ return request({
url: '/eam/device-maintenance-detail/create', url: '/eam/device-inspection-detail/create',
'method': 'POST', 'method': 'POST',
data data
}) })
} }
// 编辑维修工单子项维修内容 // 编辑维修工单子项维修内容
export function repairOrderDetailUpdate(data) { export function overhaulOrderDetailUpdate(data) {
return request({ return request({
url: '/eam/device-maintenance-detail/update', url: '/eam/device-inspection-detail/update',
'method': 'PUT', 'method': 'PUT',
data data
}) })
} }
// 获得维修工单子列表 // 获得维修工单子列表
export function repairOrderDetailList(params) { export function overhaulOrderDetailList(params) {
return request({ return request({
url: '/eam/device-maintenance-detail/selectListByNumber', url: '/eam/device-inspection-detail/selectListByNumber',
'method': 'GET', 'method': 'GET',
params params
}) })
} }
// 删除维修工单子 // 删除维修工单子
export function repairOrderDetailDelete(id) { export function overhaulOrderDetailDelete(id) {
return request({ return request({
url: '/eam/device-maintenance-detail/delete?id='+id, url: '/eam/device-inspection-detail/delete?id='+id,
'method': 'DELETE' 'method': 'DELETE'
}) })
} }
//转办
export function transfer(params) {
return request({
url: '/eam/device-maintenance-main/turnTo',
'method': 'GET',
params
})
}

2
components/form/index.vue

@ -369,7 +369,7 @@
array2.push(e.hour) array2.push(e.hour)
} }
if(this.formatValue.indexOf('mm')>-1){ if(this.formatValue.indexOf('mm')>-1){
array2.push(e.month) array2.push(e.minute)
} }
if(this.formatValue.indexOf('ss')>-1){ if(this.formatValue.indexOf('ss')>-1){
array2.push(e.second) array2.push(e.second)

16
pages.json

@ -84,7 +84,7 @@
},{ },{
"path": "pages/repairOrder/addServiceRecord", "path": "pages/repairOrder/addServiceRecord",
"style": { "style": {
"navigationBarTitleText": "添加维修记录", "navigationBarTitleText": "添加维修内容",
"navigationBarBackgroundColor": "#409eff", "navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
@ -115,6 +115,20 @@
"navigationBarBackgroundColor": "#409eff", "navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
},{
"path": "pages/overhaulOrder/addServiceRecord",
"style": {
"navigationBarTitleText": "添加检修内容",
"navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white"
}
},{
"path": "pages/overhaulOrder/transfer",
"style": {
"navigationBarTitleText": "转办",
"navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white"
}
},{ },{
"path": "pages/mine/changePassword", "path": "pages/mine/changePassword",
"style": { "style": {

2
plugins/time.js

@ -2,7 +2,7 @@ export default {
formatDate(timestamp){ formatDate(timestamp){
// 获取当前时间戳(单位:毫秒) // 获取当前时间戳(单位:毫秒)
// var timestamp = Date.now(); // 或者传入特定的时间戳值 // var timestamp = Date.now(); // 或者传入特定的时间戳值
timestamp = timestamp ? timestamp :Date.now()
// 创建Date对象并设置时间戳 // 创建Date对象并设置时间戳
var dateObj = new Date(timestamp); var dateObj = new Date(timestamp);

Loading…
Cancel
Save