Browse Source

检修工单

master
zhang_li 10 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) {
return request({
url: '/eam/device-maintenance-main/orderClick',
url: '/eam/device-inspection-main/onClick',
'method': 'GET',
params
})
}
// 添加维修工单子项维修内容
export function repairOrderDetailCreate(data) {
export function overhaulOrderDetailCreate(data) {
return request({
url: '/eam/device-maintenance-detail/create',
url: '/eam/device-inspection-detail/create',
'method': 'POST',
data
})
}
// 编辑维修工单子项维修内容
export function repairOrderDetailUpdate(data) {
export function overhaulOrderDetailUpdate(data) {
return request({
url: '/eam/device-maintenance-detail/update',
url: '/eam/device-inspection-detail/update',
'method': 'PUT',
data
})
}
// 获得维修工单子列表
export function repairOrderDetailList(params) {
export function overhaulOrderDetailList(params) {
return request({
url: '/eam/device-maintenance-detail/selectListByNumber',
url: '/eam/device-inspection-detail/selectListByNumber',
'method': 'GET',
params
})
}
// 删除维修工单子
export function repairOrderDetailDelete(id) {
export function overhaulOrderDetailDelete(id) {
return request({
url: '/eam/device-maintenance-detail/delete?id='+id,
url: '/eam/device-inspection-detail/delete?id='+id,
'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)
}
if(this.formatValue.indexOf('mm')>-1){
array2.push(e.month)
array2.push(e.minute)
}
if(this.formatValue.indexOf('ss')>-1){
array2.push(e.second)

16
pages.json

@ -84,7 +84,7 @@
},{
"path": "pages/repairOrder/addServiceRecord",
"style": {
"navigationBarTitleText": "添加维修记录",
"navigationBarTitleText": "添加维修内容",
"navigationBarBackgroundColor": "#409eff",
"navigationBarTextStyle": "white"
}
@ -115,6 +115,20 @@
"navigationBarBackgroundColor": "#409eff",
"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",
"style": {

2
plugins/time.js

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

Loading…
Cancel
Save