2024-04-25 14:29:54 +08:00
|
|
|
/**
|
|
|
|
|
* author:cll
|
|
|
|
|
* day:2024-04-18
|
|
|
|
|
* content: 二期接口
|
|
|
|
|
*/
|
|
|
|
|
import request from './request.js'
|
|
|
|
|
/**
|
|
|
|
|
* 二期空载具入库
|
|
|
|
|
*/
|
|
|
|
|
// 1.1空载具入库-【入库按钮】
|
|
|
|
|
export const twoPdaVehicleIn = (code, type, pcode) => request({
|
|
|
|
|
url:'api/twoPda/vehicle/vehicleIn',
|
|
|
|
|
data: {
|
|
|
|
|
vehicle_code: code,
|
|
|
|
|
vehicle_type: type,
|
|
|
|
|
point_code: pcode
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
/**
|
|
|
|
|
* 二期空木箱入库
|
|
|
|
|
*/
|
|
|
|
|
// 1.1空木箱入库-【入库按钮】
|
2024-05-15 09:28:07 +08:00
|
|
|
export const twoPdaBoxIn = (no, pcode, layer) => request({
|
2024-04-25 14:29:54 +08:00
|
|
|
url:'api/twoPda/vehicle/boxIn',
|
|
|
|
|
data: {
|
|
|
|
|
box_no: no,
|
2024-05-10 14:07:13 +08:00
|
|
|
point_code: pcode,
|
|
|
|
|
layer: layer
|
2024-04-25 14:29:54 +08:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
/**
|
|
|
|
|
* 二期发货区解绑
|
|
|
|
|
*/
|
|
|
|
|
// 1.1单据初始化查询
|
|
|
|
|
export const twoPdaIvtQuery = (no, code) => request({
|
|
|
|
|
url:'api/twoPda/st/ivtQuery',
|
|
|
|
|
data: {
|
|
|
|
|
box_no: no,
|
|
|
|
|
bill_code: code
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 1.2【确认】按钮(二级页面)
|
|
|
|
|
export const twoPdaIvtDtlQuery = (no, code) => request({
|
|
|
|
|
url:'api/twoPda/st/ivtDtlQuery',
|
|
|
|
|
data: {
|
|
|
|
|
box_no: no,
|
|
|
|
|
bill_code: code
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 1.3木箱明细(点木箱超链接跳转)
|
|
|
|
|
export const twoPdaIvtbBoxDtlQuery = (no) => request({
|
|
|
|
|
url:'api/twoPda/st/ivtbBoxDtlQuery',
|
|
|
|
|
data: {
|
|
|
|
|
box_no: no
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 1.4【出库确认】按钮(二级页面按钮)
|
|
|
|
|
export const twoPdaOutConfirm = (no) => request({
|
|
|
|
|
url:'api/twoPda/st/outConfirm',
|
|
|
|
|
data: {
|
|
|
|
|
box_no: no
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
/**
|
|
|
|
|
* 二期表处工序
|
|
|
|
|
*/
|
|
|
|
|
// 出入烘箱
|
|
|
|
|
export const surfaceOperate = (code, name, option) => request({
|
|
|
|
|
url:'api/pda/surface/operate',
|
|
|
|
|
data: {
|
|
|
|
|
point_code: code,
|
|
|
|
|
container_name: name,
|
|
|
|
|
option: option
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 允许进入
|
|
|
|
|
export const surfaceConfirm = (code) => request({
|
|
|
|
|
url:'api/pda/surface/confirm',
|
|
|
|
|
data: {
|
|
|
|
|
point_code: code
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
/**
|
|
|
|
|
* 生箔工序
|
|
|
|
|
*/
|
|
|
|
|
// 1.1呼叫
|
|
|
|
|
export const needEmptyAxisTest = (code, name) => request({
|
|
|
|
|
url: 'api/pda/raw/needEmptyAxisTest',
|
|
|
|
|
data: {
|
|
|
|
|
point_code: code,
|
2024-05-10 13:57:52 +08:00
|
|
|
container_name: name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 创建工单
|
|
|
|
|
export const createOrder = (code, name) => request({
|
|
|
|
|
url: 'api/pda/raw/createOrder',
|
|
|
|
|
data: {
|
|
|
|
|
point_code: code,
|
|
|
|
|
container_name: name
|
2024-04-25 14:29:54 +08:00
|
|
|
}
|
2024-05-20 14:50:26 +08:00
|
|
|
})
|
|
|
|
|
/**
|
|
|
|
|
* 二期退货入库
|
|
|
|
|
*/
|
|
|
|
|
export const twoPdaReturnIn = (no, pcode) => request({
|
|
|
|
|
url:'api/twoPda/vehicle/returnIn',
|
|
|
|
|
data: {
|
|
|
|
|
box_no: no,
|
|
|
|
|
point_code: pcode
|
|
|
|
|
}
|
2024-04-25 14:29:54 +08:00
|
|
|
})
|