'init'
This commit is contained in:
40
src/api/orderManage/erpToMes.js
Normal file
40
src/api/orderManage/erpToMes.js
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2021-06-24 15:44:43
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2021-07-19 15:14:23
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function erpToMesMaterialList(data) { // 获取列表
|
||||
return request({
|
||||
url: '/order/erp-to-mes-materials-info/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function erpToMesMaterialBomList(data) { // 获取列表
|
||||
return request({
|
||||
url: '/order/erp-to-mes-materials-bom-info/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function erpToMesOrderList(data) { // 获取列表
|
||||
return request({
|
||||
url: '/order/erp-to-mes-order-info/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function mesToErpAdd(data) { // 新增mesToErp单条数据
|
||||
return request({
|
||||
url: '/order/mes-to-erp-order/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
72
src/api/orderManage/fee/fee.js
Normal file
72
src/api/orderManage/fee/fee.js
Normal file
@@ -0,0 +1,72 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function List(data) { // 获取分页订单及各项费用
|
||||
return request({
|
||||
url: 'order/order-cost/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function listForAdd() { // 用于新增费用,查询未统计过费用的订单列表
|
||||
return request({
|
||||
url: 'order/order-cost/listForAdd',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function orderAdd(data) { // 新增费用主记录
|
||||
return request({
|
||||
url: 'order/order-cost/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function feeDetailPage(data) { // 订单id获取订单某类费用下的详情分页
|
||||
return request({
|
||||
url: 'order/order-cost/pageDet',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function feeDetailAdd(data) { // 新增费用详情
|
||||
return request({
|
||||
url: 'order/order-cost/addDet',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function feeDetail(data) { // 查询费用详情根据id
|
||||
return request({
|
||||
url: 'order/order-cost/getDet',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function UpdateDetail(data) { // 更新费用详情
|
||||
return request({
|
||||
url: 'order/order-cost/updateDet',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteDetail(data) { // 删除费用详情
|
||||
return request({
|
||||
url: 'order/order-cost/deleteDet',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteFee(data) { // 删除费用主记录
|
||||
return request({
|
||||
url: 'order/order-cost/delete',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
54
src/api/orderManage/infoTrack/infoTrack.js
Normal file
54
src/api/orderManage/infoTrack/infoTrack.js
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2021-03-30 18:05:12
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function equipmentEventTrackList(data) { // 获取设备事件追溯列表
|
||||
return request({
|
||||
url: '/order/wo-equipment-event-param/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function equipmentParametersTrackList(data) { // 获取设备参数追溯列表
|
||||
return request({
|
||||
url: '/order/wo-equipment-event-param/page-equipment-param-review',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function processSubstrateDataTrackList(data) { // 获取加工基板数据追溯列表
|
||||
return request({
|
||||
url: '/order/wo-substrate/page-review',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function substrateParametersTrackList(data) { // 获取基板参数追溯表
|
||||
return request({
|
||||
url: '/order/wo-equipment-event-param/page-substrate-param',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateEquipmentList(data) { // 获取基板设备追溯列表
|
||||
return request({
|
||||
url: '/order/wo-equipment-event-param/substrate-equipment-exchanage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateEquipmentDetail(data) { // 获取基板设备追溯详情
|
||||
return request({
|
||||
url: '/order/wo-equipment-event-param/view-device-parameters',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
90
src/api/orderManage/order/order.js
Normal file
90
src/api/orderManage/order/order.js
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @LastEditTime: 2021-07-21 16:45:02
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function orderList(data) { // 获取订单列表
|
||||
return request({
|
||||
url: '/order/order/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function orderDetail(id) { // 获取订单单条数据
|
||||
const data = {
|
||||
'id': id
|
||||
}
|
||||
return request({
|
||||
url: '/order/order/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function orderUpdate(data) { // 更新订单单条数据
|
||||
return request({
|
||||
url: '/order/order/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function orderAdd(data) { // 新增订单单条数据
|
||||
return request({
|
||||
url: '/order/order/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function orderCode() { // 获取订单code
|
||||
return request({
|
||||
url: '/order/order/get-code',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function orderDelete(id) { // 删除订单单条数据
|
||||
return request({
|
||||
url: '/order/order/delete',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
|
||||
export function reportList(data) { // 获取订单报工信息
|
||||
return request({
|
||||
url: '/order/wo-completion-report/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getDict(data) { // 获取数据字典
|
||||
return request({
|
||||
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function toWorkOrder(data) { // 订单下发为工单
|
||||
return request({
|
||||
url: '/order/order/to-work-order',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function orderMonitor(data) { // 获取分页订单监控信息
|
||||
return request({
|
||||
url: '/order/order/monitor',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
66
src/api/orderManage/powerClassification.js
Normal file
66
src/api/orderManage/powerClassification.js
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2021-05-28 15:38:19
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function powerClassificationList(data) { // 获取powerClassification列表
|
||||
return request({
|
||||
url: '/order/power-classification/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function powerClassificationTree(data) { // 获取powerClassification列表
|
||||
return request({
|
||||
url: '/order/power-classification/tree',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function powerClassificationDetail(id) { // 获取powerClassification单条数据
|
||||
const data = {
|
||||
'id': id
|
||||
}
|
||||
return request({
|
||||
url: '/order/power-classification/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function powerClassificationUpdate(data) { // 更新powerClassification单条数据
|
||||
return request({
|
||||
url: '/order/power-classification/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function powerClassificationAdd(data) { // 新增powerClassification单条数据
|
||||
return request({
|
||||
url: '/order/power-classification/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function powerClassificationCode() { // 获取powerClassificationcode
|
||||
return request({
|
||||
url: '/order/power-classification/get-code',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function powerClassificationDelete(id) { // 删除powerClassification单条数据
|
||||
return request({
|
||||
url: '/order/power-classification/delete',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
58
src/api/orderManage/substrateBatch.js
Normal file
58
src/api/orderManage/substrateBatch.js
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2021-03-30 18:06:31
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function substrateBatchList(data) { // 获取基板批次列表
|
||||
return request({
|
||||
url: '/order/substrate-batch-info/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchDetail(id) { // 获取基板批次单条数据
|
||||
const data = {
|
||||
'id': id
|
||||
}
|
||||
return request({
|
||||
url: '/order/substrate-batch-info/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchUpdate(data) { // 更新基板批次单条数据
|
||||
return request({
|
||||
url: '/order/substrate-batch-info/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchAdd(data) { // 新增基板批次单条数据
|
||||
return request({
|
||||
url: '/order/substrate-batch-info/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchCode() { // 获取基板批次code
|
||||
return request({
|
||||
url: '/order/substrate-batch-info/get-code',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchDelete(id) { // 删除基板批次单条数据
|
||||
return request({
|
||||
url: '/order/substrate-batch-info/delete',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
58
src/api/orderManage/substrateBatchAttr.js
Normal file
58
src/api/orderManage/substrateBatchAttr.js
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2021-03-30 18:34:26
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function substrateBatchAttrList(data) { // 获取基板批次列表
|
||||
return request({
|
||||
url: '/order/sub-batch-info-attr/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchAttrDetail(id) { // 获取基板批次单条数据
|
||||
const data = {
|
||||
'id': id
|
||||
}
|
||||
return request({
|
||||
url: '/order/sub-batch-info-attr/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchAttrUpdate(data) { // 更新基板批次单条数据
|
||||
return request({
|
||||
url: '/order/sub-batch-info-attr/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchAttrAdd(data) { // 新增基板批次单条数据
|
||||
return request({
|
||||
url: '/order/sub-batch-info-attr/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchAttrCode() { // 获取基板批次code
|
||||
return request({
|
||||
url: '/order/sub-batch-info-attr/get-code',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function substrateBatchAttrDelete(id) { // 删除基板批次单条数据
|
||||
return request({
|
||||
url: '/order/sub-batch-info-attr/delete',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
237
src/api/orderManage/workOrder/workOrder.js
Normal file
237
src/api/orderManage/workOrder/workOrder.js
Normal file
@@ -0,0 +1,237 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:00:14
|
||||
* @LastEditors: gtz
|
||||
* @LastEditTime: 2022-04-20 11:25:25
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function workOrderList(data) { // 获取工单列表
|
||||
return request({
|
||||
url: '/order/work-order/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderDetail(id) { // 获取工单单条数据
|
||||
const data = {
|
||||
'id': id
|
||||
}
|
||||
return request({
|
||||
url: '/order/work-order/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderUpdate(data) { // 更新工单单条数据
|
||||
return request({
|
||||
url: '/order/work-order/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderAdd(data) { // 新增工单单条数据
|
||||
return request({
|
||||
url: '/order/work-order/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderCode() { // 获取工单code
|
||||
return request({
|
||||
url: '/order/work-order/get-code',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderDelete(id) { // 删除工单单条数据
|
||||
return request({
|
||||
url: '/order/work-order/delete',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderIssueList(data) { // 获取工单下发列表
|
||||
return request({
|
||||
url: '/order/wo-sync/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function packagingBoxList(data) { // 获取包装基板列表
|
||||
return request({
|
||||
url: '/order/wo-packaging-box-substrate/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function packagingList(data) { // 获取包装标签列表
|
||||
return request({
|
||||
url: '/order/wo-packaging-box/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function packagingDetail(id) { // 获取包装标签详情
|
||||
const data = {
|
||||
'id': id
|
||||
}
|
||||
return request({
|
||||
url: '/order/wo-packaging-box/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function syncAdd(data) { // 新增下发工单单条数据
|
||||
return request({
|
||||
url: '/order/wo-sync/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function packagingInventoryList(data) { // 获取包装清单列表
|
||||
return request({
|
||||
url: '/order/wo-packaging-box/page-for-inventory',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateForStatus(data) { // 激活
|
||||
return request({
|
||||
url: '/order/work-order/updateForStatus',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderStart(data) { // 开始
|
||||
return request({
|
||||
url: '/order/work-order/start',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderSuspend(data) { // 暂停
|
||||
return request({
|
||||
url: '/order/work-order/pause',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function workOrderComplete(data) { // 结束
|
||||
return request({
|
||||
url: '/order/work-order/complete',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getProductLineList(data) { // 获取产线列表
|
||||
return request({
|
||||
url: '/basic/production-line/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getWorkersList(data) { // 获取员工列表
|
||||
return request({
|
||||
url: '/basic/worker/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getMaterialPage(data) { // 获取工单物料批次
|
||||
return request({
|
||||
url: 'order/work-order-material-date/page',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getMaterialList(data) { // 获取工单物料批次列表
|
||||
return request({
|
||||
url: '/order/work-order-material-date/list',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function batchList(data) { // 获取工单物料批次列表
|
||||
return request({
|
||||
url: '/material/material-date/list',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getBatchById(data) { // 根据id获取工单物料批次
|
||||
return request({
|
||||
url: '/order/work-order-material-date/get',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function addBatch(data) { // 新增工单物料批次
|
||||
return request({
|
||||
url: '/order/work-order-material-date/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function delBatch(data) { // 删除工单物料批次
|
||||
return request({
|
||||
url: '/order/work-order-material-date/delete',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function editBatch(data) { // 编辑工单物料批次
|
||||
return request({
|
||||
url: 'order/work-order-material-date/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function listPld(data) { // 所有产线,和正在产线上生产的工单
|
||||
return request({
|
||||
url: 'order/work-order/list-pdl',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function startOrder(data) { // 开始工单,传参都为工单id,和产线id 列表
|
||||
return request({
|
||||
url: 'order/work-order/start-log',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function stopOrder(data) { // 结束工单,传参都为工单id,和产线id 列表
|
||||
return request({
|
||||
url: 'order/work-order/end-log',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user