diff --git a/src/api/eam/spotcheck.js b/src/api/eam/spotcheck.js new file mode 100644 index 0000000..6c280cc --- /dev/null +++ b/src/api/eam/spotcheck.js @@ -0,0 +1,52 @@ +import http from '../http' +// 获取点检工单 +export function spotcheckOrderPage(params) { + return http.get('/eam/equipment-spot-check-main/page',{params}) +} + +// 获取点检工单 +export function spotcheckOrder(number) { + return http.get('/eam/equipment-spot-check-main/get?id=' + number) +} + +//接单 +export function spotcheckUpdateOrder(params) { + return http.post('/eam/equipment-spot-check-main/updateOrder',params) +} + +//完成 +export function spotcheckExecuteOrder(params) { + return http.post('/eam/equipment-spot-check-main/execute',params) +} + + +// 获取点检工单 +export function spotcheckOrderDetail(params) { + return http.get('/eam/equipment-spot-check-detail/getList',{params}) +} + +//更新点检项 +export function spotcheckOrderItemUpdate(params) { + return http.put('/eam/equipment-spot-check-detail/update',params) +} + +//新增非必选点检项 +export function spotcheckOrderItemCreate(params) { + return http.post('/eam/equipment-spot-check-detail/create',params) +} + +//获取非必选的点检项 +export function spotcheckPlanItemList(params) { + return http.post('/eam/relation-spot-check-plan-item/getList',params) +} + +//验证驳回 +export function spotcheckOrderRejected(params) { + return http.post('/eam/equipment-spot-check-main/fallback',params) +} + +//验证通过 +export function spotcheckOrderPassed(params) { + return http.put('/eam/equipment-spot-check-main/update',params) +} + diff --git a/src/pages.json b/src/pages.json index a02ba65..f3085c5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -2142,12 +2142,41 @@ "navigationBarTitleText": "巡检工单详情", "enablePullDownRefresh": true } - },{ + }, + { "path": "pages/eam/inspectionOrder/item", "style": { "navigationBarTitleText": "巡检项", "enablePullDownRefresh": true } + }, + { + "path": "pages/eam/spotcheckOrder/spotcheckRequest", + "style": { + "navigationBarTitleText": "点检", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/eam/spotcheckOrder/index", + "style": { + "navigationBarTitleText": "点检工单", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/eam/spotcheckOrder/detail", + "style": { + "navigationBarTitleText": "点检工单详情", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/eam/spotcheckOrder/item", + "style": { + "navigationBarTitleText": "点检项", + "enablePullDownRefresh": true + } } diff --git a/src/pages/eam/inspectionOrder/index.vue b/src/pages/eam/inspectionOrder/index.vue index 2fc3359..7fb0613 100644 --- a/src/pages/eam/inspectionOrder/index.vue +++ b/src/pages/eam/inspectionOrder/index.vue @@ -88,9 +88,6 @@ function itemClick(item, index) { proxy.$tab.navigateTo(`/pages/eam/inspectionOrder/detail?type=${params.value.type}&id=${encodeURIComponent(JSON.stringify(item.id))}`) } - // function addForm(item) { - // proxy.$tab.navigateTo(`/pages/spotCheckOrder/addForm?type=${params.value.type}&data=${encodeURIComponent(JSON.stringify(item))}`) - // } async function getList() { if (status.value == 'nomore') return; diff --git a/src/pages/eam/spotcheckOrder/detail.vue b/src/pages/eam/spotcheckOrder/detail.vue new file mode 100644 index 0000000..3daa650 --- /dev/null +++ b/src/pages/eam/spotcheckOrder/detail.vue @@ -0,0 +1,741 @@ + + + + + \ No newline at end of file diff --git a/src/pages/eam/spotcheckOrder/index.vue b/src/pages/eam/spotcheckOrder/index.vue index 60027fe..c1521c4 100644 --- a/src/pages/eam/spotcheckOrder/index.vue +++ b/src/pages/eam/spotcheckOrder/index.vue @@ -1,8 +1,8 @@