Files
hht-hdyy-uni/utils/getData3.js

580 lines
16 KiB
JavaScript
Raw Normal View History

2025-12-31 14:32:55 +08:00
import request from './request.js'
2026-04-03 10:44:35 +08:00
import { RSAencrypt } from '@/utils/jsencrypt.js'
2025-12-31 14:32:55 +08:00
// 项目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}
})
2026-01-12 11:25:07 +08:00
// 查询供应商
export const querySupp = (supcode) => request({
url:'api/pda/publicInterface/querySupp',
data: {supp_code: supcode}
})
2026-02-05 14:15:44 +08:00
// 手持配置
// 获取打印机ip下拉框
export const getPrint = () => request({
url:'api/print/getPrint',
data: {}
})
2025-12-31 14:32:55 +08:00
/**
* 外包材收货外包材管理
*/
// 根据点位编码查询区域下拉框
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}
})
/**
* 外包材转运外包材管理
*/
// 查询列表明细
2026-01-26 15:11:40 +08:00
export const queryTransferDtl = (opoint, mcode) => request({
2025-12-31 14:32:55 +08:00
url:'api/pda/packaging/queryTransferDtl',
2026-01-26 15:11:40 +08:00
data: {out_point: opoint, material_code: mcode}
2025-12-31 14:32:55 +08:00
})
// 确认转运
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: {}
})
// 送入
2026-04-03 10:44:35 +08:00
export const packInConfirm = (username, password, pcode, icode, qty, rows) => request({
2025-12-31 14:32:55 +08:00
url:'api/pda/packaging/packInConfirm',
2026-04-03 10:44:35 +08:00
data: {username: username, password: RSAencrypt(password), point_code: pcode, in_point_code: icode, total_qty: qty, rows: rows}
2025-12-31 14:32:55 +08:00
})
/**
* 外包材领用外包材管理
*/
// 查询点位明细
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}
})
/**
* 外包材还回外包材管理
*/
// 确认还回
2026-04-03 10:44:35 +08:00
export const packConfirmReturn = (username, password, pcode, mid, mcode, mname, pcsn, qty, remark) => request({
2025-12-31 14:32:55 +08:00
url:'api/pda/packaging/packConfirmReturn',
2026-04-03 10:44:35 +08:00
data: {username: username, password: RSAencrypt(password), point_code: pcode, material_id: mid, material_code: mcode, material_name: mname, pcsn: pcsn, qty: qty, remark: remark}
2025-12-31 14:32:55 +08:00
})
2026-01-07 16:15:05 +08:00
/**
* 空载具管理
*/
// 空载具入库
// 呼叫入库
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({
2026-01-08 10:57:11 +08:00
url:'api/pdaCommon/getSectList',
2026-01-07 16:15:05 +08:00
data: {code: code}
})
// 空载具出库
// 呼叫出库
2026-01-09 18:05:06 +08:00
export const callEmptyVehicle = (scode, pcode, vnum) => request({
2026-01-08 10:56:44 +08:00
url:'api/pdaCommon/callEmptyVehicle',
2026-01-09 18:05:06 +08:00
data: {sect_code: scode, point_code: pcode, vehicle_num: vnum}
2026-01-07 16:15:05 +08:00
})
2026-01-08 10:56:44 +08:00
// 空载具堆叠(空载具管理)共 (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}
})
2026-01-07 16:15:05 +08:00
/**
* 组盘管理
*/
2026-01-14 14:30:15 +08:00
// 物料组袋(组盘管理)共 (2) 个
// 查询证书编号
export const queryRecordNo = () => request({
url:'api/pdaCommon/queryRecordNo',
data: {}
})
// 获取袋码
export const byBagCodeInfo = (mid) => request({
url:'api/pdaCommon/byBagCodeInfo',
data: {material_id: mid}
})
2026-01-07 16:15:05 +08:00
// 物料组袋
2026-03-19 17:57:18 +08:00
export const confirmBagAssembly = (bagNo, mid, suppCode, qty, pcsn, vperiod) => request({
2026-01-07 16:15:05 +08:00
url:'api/pdaCommon/confirmBagAssembly',
2026-03-19 17:57:18 +08:00
data: {bagNo: bagNo, materialId: mid, suppCode: suppCode, qty: qty, pcsn: pcsn, validity_period: vperiod}
2026-01-07 16:15:05 +08:00
})
2026-02-05 14:15:44 +08:00
// 物料组袋-打印
export const printBag = (row, printId) => request({
url:'api/print/printBag',
data: {row: row, print_id: printId}
})
2026-03-19 14:53:44 +08:00
// 根据扫袋码查询组袋信息
export const queryBagInfo = (bagNo) => request({
url:'api/pdaCommon/queryBagInfo',
data: {bagNo: bagNo}
})
2026-01-14 14:30:15 +08:00
2026-01-07 16:15:05 +08:00
// 物料组盘
// 获取组盘信息
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}
})
2026-01-14 14:30:15 +08:00
// 物料组桶(组盘管理)共 (1) 个
// 查询证书编号
export const queryRecordNoBucked = () => request({
url:'api/pdaCommon/queryRecordNoBucked',
data: {}
})
2026-01-07 16:15:05 +08:00
// 物料组桶
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}
})
2026-02-05 14:15:44 +08:00
// 物料组桶-打印
export const printBucked = (row, printId) => request({
url:'api/print/printBucked',
data: {row: row, print_id: printId}
})
2026-03-19 14:53:44 +08:00
// 根据扫桶码获取组桶信息
export const queryBuckInfo = (bcode) => request({
url:'api/pdaCommon/queryBuckInfo',
data: {bucket_code: bcode}
})
2026-01-07 16:15:05 +08:00
/**
* 仓储管理
*/
// 直接入库
// 直接入库-扫码插入
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}
})
2026-01-08 10:56:44 +08:00
// 收货入库(仓储管理)共 (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}
})
2026-03-04 17:19:15 +08:00
// 损益管理 (仓储管理) 共(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}
})
2026-04-01 17:43:22 +08:00
// 虚拟入库(仓储管理)共 (1) 个
// 确认入库
export const hyConfirmIn = (rows) => request({
url:'api/pdaWarehouse/hyConfirmIn',
data: {rows: rows}
})
2026-04-01 19:00:34 +08:00
// 虚拟出库(仓储管理)共 (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}
})
2026-01-07 16:15:05 +08:00
/**
* 生产管理
*/
// 剩料回库
// 获取物料信息
export const getGroupInfo = (search) => request({
url:'api/pdaProduction/getGroupInfo',
data: {search: search}
})
// 剩料回库
2026-04-03 10:44:35 +08:00
export const leftoverMaterialBack = (username, password, search, rows) => request({
2026-01-08 10:57:11 +08:00
url:'api/pdaProduction/leftoverMaterialBack',
2026-04-03 10:44:35 +08:00
data: {username: username, password: password, search: search, rows: rows}
2026-01-07 16:15:05 +08:00
})
// 托盘叫料
// 获取库存组盘信息
export const getStockGroupInfo = (scode, mid, pcsn) => request({
url:'api/pdaProduction/getStockGroupInfo',
data: {sect_code: scode, material_id: mid, pcsn: pcsn}
})
// 确认叫料
2026-01-09 16:56:56 +08:00
export const confirmCallMaterial = (pcode, row) => request({
2026-01-07 16:15:05 +08:00
url:'api/pdaProduction/confirmCallMaterial',
2026-01-09 16:56:56 +08:00
data: {point_code: pcode, row: row}
2026-01-07 16:15:05 +08:00
})
// 点位取货
// 扫码插入
2026-01-16 18:18:07 +08:00
export const getPalletAssemblyOK = (bcode) => request({
2026-01-07 16:15:05 +08:00
url:'api/pdaProduction/getPalletAssemblyOK',
2026-01-16 18:18:07 +08:00
data: {bag_code: bcode}
2026-01-07 16:15:05 +08:00
})
// 取物料
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}
})
// 下料
2026-01-16 18:18:07 +08:00
export const productionLine = (vcode, pcode, iswait) => request({
2026-01-07 16:15:05 +08:00
url:'api/pdaProduction/productionLine',
2026-01-16 18:18:07 +08:00
data: {vehicle_code: vcode, point_code: pcode, is_wait: iswait}
2026-01-07 16:15:05 +08:00
})
2026-01-26 13:43:54 +08:00
// 料桶称重
// 获取物料库存信息
export const getTaskBucketGroupInfo = (vcode) => request({
url:'api/pdaProduction/getTaskBucketGroupInfo',
data: {vehicle_code: vcode}
})
// 入站
2026-01-26 14:38:46 +08:00
export const manualInbound = (row, cpoint, vcode, total, weight) => request({
2026-01-26 13:43:54 +08:00
url:'api/pdaProduction/manualInbound',
2026-01-26 14:38:46 +08:00
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight}
2026-01-26 13:43:54 +08:00
})
// 出站
2026-01-26 14:38:46 +08:00
export const manualOutbound = (row, cpoint, vcode, total, weight) => request({
2026-01-26 13:43:54 +08:00
url:'api/pdaProduction/manualOutbound',
2026-01-26 14:38:46 +08:00
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight}
2026-01-26 13:43:54 +08:00
})
2026-02-01 09:49:01 +08:00
// 码垛下料
// 下料
export const palletizingDown = (dcode, mcode, qty) => request({
url:'api/pdaProduction/palletizingDown',
data: {device_code: dcode, material_code: mcode, qty: qty}
})
2026-01-07 16:15:05 +08:00
// 收货入库
// 获取物料信息 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}
})
2026-01-08 10:57:11 +08:00
2026-01-09 18:05:06 +08:00
// 料桶叫料
// 获取料桶组盘信息
export const getBucketGroupInfo = (mid, pcsn) => request({
url:'api/pdaProduction/getBucketGroupInfo',
data: {material_id: mid, pcsn: pcsn}
})
// 确认叫料
export const confirmCallBucketMaterial = (pcode, rows) => request({
2026-01-12 11:25:07 +08:00
url:'api/pdaProduction/confirmCallBucketMaterial',
2026-01-09 18:05:06 +08:00
data: {point_code: pcode, rows: rows}
})
2026-01-08 10:57:11 +08:00
/**
* 通用功能
*/
// 点对点转运(通用功能)共 (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}
2026-01-09 10:19:19 +08:00
})
// 库存查询(通用功能)共 (2) 个
// 查询物料维护信息
export const queryMaterial = (search) => request({
2026-01-12 11:25:07 +08:00
url:'api/queryIvt/queryMaterial',
2026-01-09 10:19:19 +08:00
data: {search: search}
})
// 主页面库存查询
export const queryIvt = (scode, pcode, mcode, pcsn) => request({
2026-01-12 11:25:07 +08:00
url:'api/queryIvt/queryIvt',
2026-01-09 10:19:19 +08:00
data: {sect_code: scode, point_code: pcode, material_code: mcode, pcsn: pcsn}
})
2026-03-30 14:35:19 +08:00
// 取放货确认(通用功能)共 (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}
})
2026-01-09 10:19:19 +08:00
/**
* 无人车
*/
2026-03-11 09:34:01 +08:00
// 无人车卸货(无人车对接)共 (3) 个
// 查询无人车点位信息
export const queryNotCarPoint = () => request({
url:'api/notCar/queryNotCarPoint',
2026-01-09 10:19:19 +08:00
data: {}
})
2026-03-11 09:34:01 +08:00
2026-01-09 10:19:19 +08:00
// 卸货
2026-03-11 09:34:01 +08:00
export const unload = (rows) => request({
2026-01-09 10:19:19 +08:00
url:'api/notCar/unload',
2026-03-11 09:34:01 +08:00
data: {rows: rows}
2026-01-09 10:19:19 +08:00
})
// 回库
export const back = () => request({
url:'api/notCar/back',
data: {}
2026-01-12 11:25:07 +08:00
})
2026-03-11 11:00:58 +08:00
// 无人车装货(无人车对接)共 (4) 个
// 二级页面查询(物料维护)
export const queryZhPoint = (pcode) => request({
url:'api/notCar/queryZhPoint',
data: {point_code: pcode}
})
// 呼叫无人车
2026-03-11 15:52:22 +08:00
export const callCar = () => request({
2026-03-11 11:00:58 +08:00
url:'api/notCar/callCar',
data: {}
})
// 装货
2026-03-11 15:52:22 +08:00
export const install = (rows) => request({
2026-03-11 11:00:58 +08:00
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: {}
})
// 确认送料
2026-03-12 13:49:00 +08:00
export const sendTask = (rows) => request({
2026-03-11 11:00:58 +08:00
url:'api/notCar/sendTask',
data: {rows: rows}
})
2026-03-19 10:38:40 +08:00
// 卸货库存查询(无人车对接)共 (2) 个
// 查询区域下拉框
export const queryIvtRegion = () => request({
url:'api/notCar/queryIvtRegion',
data: {}
})
// 查询数据
export const notCarqueryIvt = (rcode) => request({
url:'api/notCar/queryIvt',
data: {region_code: rcode}
})