580 lines
16 KiB
JavaScript
580 lines
16 KiB
JavaScript
import request from './request.js'
|
||
import { RSAencrypt } from '@/utils/jsencrypt.js'
|
||
|
||
// 项目:hdyy
|
||
|
||
/**
|
||
* 公共分类
|
||
*/
|
||
// 物料信息查询
|
||
export const queryMaterInfo = (ccode, mcode) => request({
|
||
url:'api/pda/publicInterface/queryMaterInfo',
|
||
data: {class_code: ccode, material_code: mcode}
|
||
})
|
||
// 查询区域下拉框
|
||
export const queryRegionDropdown = (rcode) => request({
|
||
url:'api/pda/publicInterface/queryRegionDropdown',
|
||
data: {region_code: rcode}
|
||
})
|
||
// 查询供应商
|
||
export const querySupp = (supcode) => request({
|
||
url:'api/pda/publicInterface/querySupp',
|
||
data: {supp_code: supcode}
|
||
})
|
||
// 手持配置
|
||
// 获取打印机ip下拉框
|
||
export const getPrint = () => request({
|
||
url:'api/print/getPrint',
|
||
data: {}
|
||
})
|
||
|
||
/**
|
||
* 外包材收货(外包材管理)
|
||
*/
|
||
// 根据点位编码查询区域下拉框
|
||
export const queryPointRegion = (pcode) => request({
|
||
url:'api/pda/packaging/queryPointRegion',
|
||
data: {point_code: pcode}
|
||
})
|
||
|
||
// 确认收货
|
||
export const confirmStock = (pcode, rcode, mid, mcode, mname, pcsn, qty, unit, remark) => request({
|
||
url:'api/pda/packaging/confirmStock',
|
||
data: {point_code: pcode, region_code: rcode, material_id: mid, material_code: mcode, material_name: mname, pcsn: pcsn, qty: qty, qty_unit_name: unit, remark: remark}
|
||
})
|
||
|
||
/**
|
||
* 外包材转运(外包材管理)
|
||
*/
|
||
// 查询列表明细
|
||
export const queryTransferDtl = (opoint, mcode) => request({
|
||
url:'api/pda/packaging/queryTransferDtl',
|
||
data: {out_point: opoint, material_code: mcode}
|
||
})
|
||
|
||
// 确认转运
|
||
export const confirmTransfer = (opoint, ipoint, rows) => request({
|
||
url:'api/pda/packaging/confirmTransfer',
|
||
data: {out_point: opoint, in_point: ipoint, rows: rows}
|
||
})
|
||
|
||
/**
|
||
* 外包材送货(外包材管理)
|
||
*/
|
||
// 查询点位库存明细
|
||
export const queryPointInDtl = (pcode) => request({
|
||
url:'api/pda/packaging/queryPointInDtl',
|
||
data: {point_code: pcode}
|
||
})
|
||
|
||
// 查询目的点位下拉框
|
||
export const queryPointInDownload = () => request({
|
||
url:'api/pda/packaging/queryPointInDownload',
|
||
data: {}
|
||
})
|
||
|
||
// 送入
|
||
export const packInConfirm = (username, password, pcode, icode, qty, rows) => request({
|
||
url:'api/pda/packaging/packInConfirm',
|
||
data: {username: username, password: RSAencrypt(password), point_code: pcode, in_point_code: icode, total_qty: qty, rows: rows}
|
||
})
|
||
|
||
/**
|
||
* 外包材领用(外包材管理)
|
||
*/
|
||
// 查询点位明细
|
||
export const queryPointDrawDtl = (pcode) => request({
|
||
url:'api/pda/packaging/queryPointDrawDtl',
|
||
data: {point_code: pcode}
|
||
})
|
||
|
||
// 确认取货
|
||
export const queryDrawConfirm = (pcode, qty, rows) => request({
|
||
url:'api/pda/packaging/queryDrawConfirm',
|
||
data: {point_code: pcode, total_qty: qty, rows: rows}
|
||
})
|
||
|
||
/**
|
||
* 外包材还回(外包材管理)
|
||
*/
|
||
// 确认还回
|
||
export const packConfirmReturn = (username, password, pcode, mid, mcode, mname, pcsn, qty, remark) => request({
|
||
url:'api/pda/packaging/packConfirmReturn',
|
||
data: {username: username, password: RSAencrypt(password), point_code: pcode, material_id: mid, material_code: mcode, material_name: mname, pcsn: pcsn, qty: qty, remark: remark}
|
||
})
|
||
|
||
/**
|
||
* 空载具管理
|
||
*/
|
||
// 空载具入库
|
||
// 呼叫入库
|
||
export const inEmptyVehicle = (scode, stcode, pcode) => request({
|
||
url:'api/pdaCommon/inEmptyVehicle',
|
||
data: {sect_code: scode, storagevehicle_code: stcode, point_code: pcode}
|
||
})
|
||
// 库区下拉框
|
||
export const getSectList = (code) => request({
|
||
url:'api/pdaCommon/getSectList',
|
||
data: {code: code}
|
||
})
|
||
// 空载具出库
|
||
// 呼叫出库
|
||
export const callEmptyVehicle = (scode, pcode, vnum) => request({
|
||
url:'api/pdaCommon/callEmptyVehicle',
|
||
data: {sect_code: scode, point_code: pcode, vehicle_num: vnum}
|
||
})
|
||
// 空载具堆叠(空载具管理)共 (2) 个
|
||
// 查询明细列表
|
||
export const queryPointDtl = () => request({
|
||
url:'api/pdaCommon/queryPointDtl',
|
||
data: {}
|
||
})
|
||
// 呼叫堆叠
|
||
export const callStackPlates = (pcode, row) => request({
|
||
url:'api/pdaCommon/callStackPlates',
|
||
data: {point_code: pcode, row: row}
|
||
})
|
||
|
||
/**
|
||
* 组盘管理
|
||
*/
|
||
// 物料组袋(组盘管理)共 (2) 个
|
||
// 查询证书编号
|
||
export const queryRecordNo = () => request({
|
||
url:'api/pdaCommon/queryRecordNo',
|
||
data: {}
|
||
})
|
||
// 获取袋码
|
||
export const byBagCodeInfo = (mid) => request({
|
||
url:'api/pdaCommon/byBagCodeInfo',
|
||
data: {material_id: mid}
|
||
})
|
||
// 物料组袋
|
||
export const confirmBagAssembly = (bagNo, mid, suppCode, qty, pcsn, vperiod) => request({
|
||
url:'api/pdaCommon/confirmBagAssembly',
|
||
data: {bagNo: bagNo, materialId: mid, suppCode: suppCode, qty: qty, pcsn: pcsn, validity_period: vperiod}
|
||
})
|
||
// 物料组袋-打印
|
||
export const printBag = (row, printId) => request({
|
||
url:'api/print/printBag',
|
||
data: {row: row, print_id: printId}
|
||
})
|
||
// 根据扫袋码查询组袋信息
|
||
export const queryBagInfo = (bagNo) => request({
|
||
url:'api/pdaCommon/queryBagInfo',
|
||
data: {bagNo: bagNo}
|
||
})
|
||
|
||
// 物料组盘
|
||
// 获取组盘信息
|
||
export const getBagAssembly = (bno) => request({
|
||
url:'api/pdaCommon/getBagAssembly',
|
||
data: {bag_no: bno}
|
||
})
|
||
// 组盘
|
||
export const confirmPalletAssembly = (vcode, arr) => request({
|
||
url:'api/pdaCommon/confirmPalletAssembly',
|
||
data: {vehicle_code: vcode, group_plates: arr}
|
||
})
|
||
|
||
// 物料组桶(组盘管理)共 (1) 个
|
||
// 查询证书编号
|
||
export const queryRecordNoBucked = () => request({
|
||
url:'api/pdaCommon/queryRecordNoBucked',
|
||
data: {}
|
||
})
|
||
// 物料组桶
|
||
export const confirmBucketAssembly = (bcode, bweight, qty, pcsn, mid) => request({
|
||
url:'api/pdaCommon/confirmBucketAssembly',
|
||
data: {bucket_code: bcode, bucket_weight: bweight, qty: qty, pcsn: pcsn, material_id: mid}
|
||
})
|
||
// 物料组桶-打印
|
||
export const printBucked = (row, printId) => request({
|
||
url:'api/print/printBucked',
|
||
data: {row: row, print_id: printId}
|
||
})
|
||
// 根据扫桶码获取组桶信息
|
||
export const queryBuckInfo = (bcode) => request({
|
||
url:'api/pdaCommon/queryBuckInfo',
|
||
data: {bucket_code: bcode}
|
||
})
|
||
|
||
|
||
/**
|
||
* 仓储管理
|
||
*/
|
||
// 直接入库
|
||
// 直接入库-扫码插入
|
||
export const getPalletAssembly = (search) => request({
|
||
url:'api/pdaWarehouse/getPalletAssembly',
|
||
data: {search: search}
|
||
})
|
||
// 直接入库
|
||
export const confirmPalletAssemblyIn = (search, rows) => request({
|
||
url:'api/pdaWarehouse/confirmPalletAssemblyIn',
|
||
data: {search: search, rows: rows}
|
||
})
|
||
|
||
// 收货入库(仓储管理)共 (3) 个
|
||
// 查询库区下拉框
|
||
export const queryReceiveSect = () => request({
|
||
url:'api/pdaWarehouse/queryReceiveSect',
|
||
data: {}
|
||
})
|
||
// 查询列表明细
|
||
export const queryGroupDtl = (vcode) => request({
|
||
url:'api/pdaWarehouse/queryGroupDtl',
|
||
data: {vehicle_code: vcode}
|
||
})
|
||
// 确认入库
|
||
export const receiveConfirmIn = (scode, vcode, pcode, rows) => request({
|
||
url:'api/pdaWarehouse/receiveConfirmIn',
|
||
data: {sect_code: scode, vehicle_code: vcode, point_code: pcode, rows: rows}
|
||
})
|
||
|
||
// 直接出库(仓储管理)共 (2) 个
|
||
// 扫码插入
|
||
export const directlyOutCodeInsert = (bcode) => request({
|
||
url:'api/pdaWarehouse/directlyOutCodeInsert',
|
||
data: {bag_code: bcode}
|
||
})
|
||
// 确认出库
|
||
export const directlyOutConfirm = (qty, rows) => request({
|
||
url:'api/pdaWarehouse/directlyOutConfirm',
|
||
data: {total_qty: qty, rows: rows}
|
||
})
|
||
|
||
// 库内合盘(仓储管理)共 (3) 个
|
||
// 扫码插入
|
||
export const insideCodeInsert = (bcode) => request({
|
||
url:'api/pdaWarehouse/insideCodeInsert',
|
||
data: {bag_code: bcode}
|
||
})
|
||
// 查询载具/点位
|
||
export const queryPointVehicle = (scode, stcode) => request({
|
||
url:'api/pdaWarehouse/queryPointVehicle',
|
||
data: {storagevehicle_code: scode, struct_code: stcode}
|
||
})
|
||
// 确认合盘
|
||
export const confirmInside = (qty, scode, stcode, rows) => request({
|
||
url:'api/pdaWarehouse/confirmInside',
|
||
data: {total_qty: qty, storagevehicle_code: scode, struct_code: stcode, rows: rows}
|
||
})
|
||
|
||
// 损益管理 (仓储管理) 共(2) 个
|
||
// 查询库存信息
|
||
export const queryMoreIvt = (vcode) => request({
|
||
url:'api/pdaWarehouse/queryMoreIvt',
|
||
data: {vehicle_code: vcode}
|
||
})
|
||
// 确认损益
|
||
export const confirmMore = (rows) => request({
|
||
url:'api/pdaWarehouse/confirmMore',
|
||
data: {rows: rows}
|
||
})
|
||
|
||
// 虚拟入库(仓储管理)共 (1) 个
|
||
// 确认入库
|
||
export const hyConfirmIn = (rows) => request({
|
||
url:'api/pdaWarehouse/hyConfirmIn',
|
||
data: {rows: rows}
|
||
})
|
||
|
||
// 虚拟出库(仓储管理)共 (2) 个
|
||
// 查询库存信息
|
||
export const hyQueryIvt = (mcode, pcsn) => request({
|
||
url:'api/pdaWarehouse/hyQueryIvt',
|
||
data: {material_code: mcode, pcsn: pcsn}
|
||
})
|
||
// 确认出库
|
||
export const hyConfirmOut = (rows) => request({
|
||
url:'api/pdaWarehouse/hyConfirmOut',
|
||
data: {rows: rows}
|
||
})
|
||
|
||
/**
|
||
* 生产管理
|
||
*/
|
||
// 剩料回库
|
||
// 获取物料信息
|
||
export const getGroupInfo = (search) => request({
|
||
url:'api/pdaProduction/getGroupInfo',
|
||
data: {search: search}
|
||
})
|
||
// 剩料回库
|
||
export const leftoverMaterialBack = (username, password, search, rows) => request({
|
||
url:'api/pdaProduction/leftoverMaterialBack',
|
||
data: {username: username, password: password, search: search, rows: rows}
|
||
})
|
||
|
||
// 托盘叫料
|
||
// 获取库存组盘信息
|
||
export const getStockGroupInfo = (scode, mid, pcsn) => request({
|
||
url:'api/pdaProduction/getStockGroupInfo',
|
||
data: {sect_code: scode, material_id: mid, pcsn: pcsn}
|
||
})
|
||
// 确认叫料
|
||
export const confirmCallMaterial = (pcode, row) => request({
|
||
url:'api/pdaProduction/confirmCallMaterial',
|
||
data: {point_code: pcode, row: row}
|
||
})
|
||
|
||
// 点位取货
|
||
// 扫码插入
|
||
export const getPalletAssemblyOK = (bcode) => request({
|
||
url:'api/pdaProduction/getPalletAssemblyOK',
|
||
data: {bag_code: bcode}
|
||
})
|
||
// 取物料
|
||
export const takePalletMaterial = (search, rows) => request({
|
||
url:'api/pdaProduction/takePalletMaterial',
|
||
data: {search: search, rows: rows}
|
||
})
|
||
// 取载具
|
||
export const takeTheVehicle = (search) => request({
|
||
url:'api/pdaProduction/takeTheVehicle',
|
||
data: {search: search}
|
||
})
|
||
// 取货完成
|
||
export const takeFinish = () => request({
|
||
url:'api/pdaProduction/takeFinish',
|
||
data: {}
|
||
})
|
||
|
||
// 预加工出料
|
||
// 出料
|
||
export const preProcessingDown = (vcode, pcode, scode) => request({
|
||
url:'api/pdaProduction/preProcessingDown',
|
||
data: {vehicle_code: vcode, point_code: pcode, sect_code: scode}
|
||
})
|
||
// 生产下料
|
||
// 获取物料信息
|
||
export const getGroupBucketInfo = (vcode) => request({
|
||
url:'api/pdaProduction/getGroupBucketInfo',
|
||
data: {vehicle_code: vcode}
|
||
})
|
||
// 下料
|
||
export const productionLine = (vcode, pcode, iswait) => request({
|
||
url:'api/pdaProduction/productionLine',
|
||
data: {vehicle_code: vcode, point_code: pcode, is_wait: iswait}
|
||
})
|
||
// 料桶称重
|
||
// 获取物料库存信息
|
||
export const getTaskBucketGroupInfo = (vcode) => request({
|
||
url:'api/pdaProduction/getTaskBucketGroupInfo',
|
||
data: {vehicle_code: vcode}
|
||
})
|
||
// 入站
|
||
export const manualInbound = (row, cpoint, vcode, total, weight) => request({
|
||
url:'api/pdaProduction/manualInbound',
|
||
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight}
|
||
})
|
||
// 出站
|
||
export const manualOutbound = (row, cpoint, vcode, total, weight) => request({
|
||
url:'api/pdaProduction/manualOutbound',
|
||
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight}
|
||
})
|
||
// 码垛下料
|
||
// 下料
|
||
export const palletizingDown = (dcode, mcode, qty) => request({
|
||
url:'api/pdaProduction/palletizingDown',
|
||
data: {device_code: dcode, material_code: mcode, qty: qty}
|
||
})
|
||
|
||
// 收货入库
|
||
// 获取物料信息 Copy
|
||
export const getVehicleInfo = (vcode) => request({
|
||
url:'api/pdaProduction/getVehicleInfo',
|
||
data: {vehicle_code: vcode}
|
||
})
|
||
// 收货入库
|
||
export const receivedIn = (pcode, vcode, scode, rows) => request({
|
||
url:'api/pdaProduction/receivedIn',
|
||
data: {point_code: pcode, vehicle_code: vcode, sect_code: scode, rows: rows}
|
||
})
|
||
|
||
// 料桶叫料
|
||
// 获取料桶组盘信息
|
||
export const getBucketGroupInfo = (mid, pcsn) => request({
|
||
url:'api/pdaProduction/getBucketGroupInfo',
|
||
data: {material_id: mid, pcsn: pcsn}
|
||
})
|
||
// 确认叫料
|
||
export const confirmCallBucketMaterial = (pcode, rows) => request({
|
||
url:'api/pdaProduction/confirmCallBucketMaterial',
|
||
data: {point_code: pcode, rows: rows}
|
||
})
|
||
|
||
/**
|
||
* 通用功能
|
||
*/
|
||
// 点对点转运(通用功能)共 (1) 个
|
||
// 生成任务
|
||
export const createTask = (pcode1, pcode2, type) => request({
|
||
url:'api/pdaPointAndPoint/createTask',
|
||
data: {point_code1: pcode1, point_code2: pcode2, task_type: type}
|
||
})
|
||
// 点位更新(通用功能)共 (4) 个
|
||
// 查询明细
|
||
export const pdaPointAndPointqueryPointDtl = (pcode, vcode) => request({
|
||
url:'api/pdaPointAndPoint/queryPointDtl',
|
||
data: {point_code: pcode, vehicle_code: vcode}
|
||
})
|
||
// 绑定
|
||
export const bind = (pcode, vcode, rows) => request({
|
||
url:'api/pdaPointAndPoint/bind',
|
||
data: {point_code: pcode, vehicle_code: vcode, rows: rows}
|
||
})
|
||
// 清载具
|
||
export const clearVehicle = (pcode, vcode, rows) => request({
|
||
url:'api/pdaPointAndPoint/clearVehicle',
|
||
data: {point_code: pcode, vehicle_code: vcode, rows: rows}
|
||
})
|
||
// 清物料
|
||
export const clearMaterial = (pcode, vcode, rows) => request({
|
||
url:'api/pdaPointAndPoint/clearMaterial',
|
||
data: {point_code: pcode, vehicle_code: vcode, rows: rows}
|
||
})
|
||
|
||
// 作业管理(通用功能)共 (4) 个
|
||
// 查询任务
|
||
export const queryTask = (search) => request({
|
||
url:'api/pdaTask/queryTask',
|
||
data: {search: search}
|
||
})
|
||
// 查询历史任务
|
||
export const queryHistoryTask = (search, stime, etime) => request({
|
||
url:'api/pdaTask/queryHistoryTask',
|
||
data: {search: search, start_time: stime, end_time: etime}
|
||
})
|
||
// 重新下发
|
||
export const againSendTask = (obj) => request({
|
||
url:'api/pdaTask/againSendTask',
|
||
data: {obj}
|
||
})
|
||
// 强制完成
|
||
export const forceConfirmTask = (obj) => request({
|
||
url:'api/pdaTask/forceConfirmTask',
|
||
data: {obj}
|
||
})
|
||
|
||
// 库存查询(通用功能)共 (2) 个
|
||
// 查询物料维护信息
|
||
export const queryMaterial = (search) => request({
|
||
url:'api/queryIvt/queryMaterial',
|
||
data: {search: search}
|
||
})
|
||
// 主页面库存查询
|
||
export const queryIvt = (scode, pcode, mcode, pcsn) => request({
|
||
url:'api/queryIvt/queryIvt',
|
||
data: {sect_code: scode, point_code: pcode, material_code: mcode, pcsn: pcsn}
|
||
})
|
||
|
||
// 取放货确认(通用功能)共 (4) 个
|
||
// 扫码查询点位信息
|
||
export const queryPointInfo = (pcode) => request({
|
||
url:'api/pdaPointAndPoint/queryPointInfo',
|
||
data: {point_code: pcode}
|
||
})
|
||
// 放货完成
|
||
export const putConfirm = (rows) => request({
|
||
url:'api/pdaPointAndPoint/putConfirm',
|
||
data: {rows: rows}
|
||
})
|
||
// 取货完成
|
||
export const getConfirm = (rows) => request({
|
||
url:'api/pdaPointAndPoint/getConfirm',
|
||
data: {rows: rows}
|
||
})
|
||
// 复位
|
||
export const reduce = (rows) => request({
|
||
url:'api/pdaPointAndPoint/reduce',
|
||
data: {rows: rows}
|
||
})
|
||
|
||
|
||
|
||
/**
|
||
* 无人车
|
||
*/
|
||
// 无人车卸货(无人车对接)共 (3) 个
|
||
// 查询无人车点位信息
|
||
export const queryNotCarPoint = () => request({
|
||
url:'api/notCar/queryNotCarPoint',
|
||
data: {}
|
||
})
|
||
|
||
// 卸货
|
||
export const unload = (rows) => request({
|
||
url:'api/notCar/unload',
|
||
data: {rows: rows}
|
||
})
|
||
// 回库
|
||
export const back = () => request({
|
||
url:'api/notCar/back',
|
||
data: {}
|
||
})
|
||
|
||
// 无人车装货(无人车对接)共 (4) 个
|
||
// 二级页面查询(物料维护)
|
||
export const queryZhPoint = (pcode) => request({
|
||
url:'api/notCar/queryZhPoint',
|
||
data: {point_code: pcode}
|
||
})
|
||
|
||
// 呼叫无人车
|
||
export const callCar = () => request({
|
||
url:'api/notCar/callCar',
|
||
data: {}
|
||
})
|
||
// 装货
|
||
export const install = (rows) => request({
|
||
url:'api/notCar/install',
|
||
data: {rows: rows}
|
||
})
|
||
// 装货完成
|
||
export const installConfirm = () => request({
|
||
url:'api/notCar/installConfirm',
|
||
data: {}
|
||
})
|
||
|
||
// 仓库送料(无人车对接)共 (5) 个
|
||
// 查询无人车点位下拉框(二级页面)
|
||
export const queryCarPoint = () => request({
|
||
url:'api/notCar/queryCarPoint',
|
||
data: {}
|
||
})
|
||
|
||
// 查询物料类别下拉框(二级页面)
|
||
export const queryClassType = () => request({
|
||
url:'api/notCar/queryClassType',
|
||
data: {}
|
||
})
|
||
// 查询列表信息(二级页面)
|
||
export const queryMaterialInfo = (ccode, mcode) => request({
|
||
url:'api/notCar/queryMaterialInfo',
|
||
data: {class_code: ccode, material_code: mcode}
|
||
})
|
||
// 呼叫无人车
|
||
export const callCarIos = () => request({
|
||
url:'api/notCar/callCarIos',
|
||
data: {}
|
||
})
|
||
// 确认送料
|
||
export const sendTask = (rows) => request({
|
||
url:'api/notCar/sendTask',
|
||
data: {rows: rows}
|
||
})
|
||
|
||
// 卸货库存查询(无人车对接)共 (2) 个
|
||
// 查询区域下拉框
|
||
export const queryIvtRegion = () => request({
|
||
url:'api/notCar/queryIvtRegion',
|
||
data: {}
|
||
})
|
||
// 查询数据
|
||
export const notCarqueryIvt = (rcode) => request({
|
||
url:'api/notCar/queryIvt',
|
||
data: {region_code: rcode}
|
||
})
|