二级后端添加数据快照修正
This commit is contained in:
20
apps/hand-factory/api/business/dashboard.js
Normal file
20
apps/hand-factory/api/business/dashboard.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 获取当前生产中的计划信息
|
||||||
|
export function getCurrentPlan() {
|
||||||
|
return request({
|
||||||
|
url: '/api/business/dashboard/currentPlan',
|
||||||
|
method: 'get',
|
||||||
|
baseUrl: 'http://140.143.206.120:10082/prod-api'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取当前生产卷的关键工艺参数
|
||||||
|
export function getCurrentProcess() {
|
||||||
|
return request({
|
||||||
|
url: '/api/business/dashboard/currentProcess',
|
||||||
|
method: 'get',
|
||||||
|
baseUrl: 'http://140.143.206.120:10082/prod-api'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
22
apps/hand-factory/api/business/report.js
Normal file
22
apps/hand-factory/api/business/report.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 生产实绩汇总
|
||||||
|
export function getReportSummary(params) {
|
||||||
|
return request({
|
||||||
|
url: '/api/report/summary',
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
baseUrl: 'http://140.143.206.120:10082/prod-api'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 生产实绩明细
|
||||||
|
export function getReportDetails(params) {
|
||||||
|
return request({
|
||||||
|
url: '/api/report/details',
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
baseUrl: 'http://140.143.206.120:10082/prod-api'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
12
apps/hand-factory/api/business/stoppage.js
Normal file
12
apps/hand-factory/api/business/stoppage.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 停机记录列表
|
||||||
|
export function listStoppage(data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/stoppage/list',
|
||||||
|
method: 'post',
|
||||||
|
data,
|
||||||
|
baseUrl: 'http://140.143.206.120:10082/prod-api'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user