This commit is contained in:
2025-09-08 15:41:33 +08:00
parent c41a17952b
commit d7667fac02
10 changed files with 628 additions and 718 deletions

View File

@@ -21,6 +21,136 @@ export const handLogin = (user, password) => request({
}
})
// 查询品质类型
export const queryGroupQuality = () => request({
url:'api/pdaGeneralPublic/queryGroupQuality',
data: {}
})
// 查询物料
export const queryMaterial = (code) => request({
url:'api/pdaGeneralPublic/queryMaterial',
data: {material_code: code}
})
// 查询供应商
export const querySupp = (code) => request({
url:'api/pdaGeneralPublic/querySupp',
data: {supp_code: code}
})
// 查询料箱类型
export const queryBoxType = (code) => request({
url:'api/pdaGeneralPublic/queryBoxType',
data: {supp_code: code}
})
// 查询组盘信息
export const queryGroupInfo = (code) => request({
url:'api/pdaGeneralPublic/queryGroupInfo',
data: {storagevehicle_code: code}
})
// 查询工单信息
export const queryBomInfo = (time, search) => request({
url:'api/pdaGeneralPublic/queryBomInfo',
data: {start_time: time, search: search}
})
// 查询载具类型
export const queryVehicleType = (time, search) => request({
url:'api/pdaGeneralPublic/queryVehicleType',
data: {start_time: time, search: search}
})
// 确认组箱(入库组箱)
export const confirmBox = (scode, id, mcode, mname, spcode, spname, pcsn, time, qty, quality, type, num) => request({
url:'api/pdaInGroupBox/confirmBox',
data: {
storagevehicle_code:scode,
material_id:id,
material_code:mcode,
material_name:mname,
supp_code:spcode,
supp_name:spname,
pcsn:pcsn,
produce_time:time,
qty:qty,
quality_type: quality,
box_type: type,
bake_num: num
}
})
// 确认组箱(组箱配送)
export const deliveryBox = (code, id, bcode, info, qty, rows) => request({
url:'api/pdaInGroupBox/deliveryBox',
data: {
device_code: code,
bom_id: id,
bom_code: bcode,
material_info: info,
qty: qty,
rows: rows
}
})
// 生成任务(点对点任务)
export const createTask = (code, code1, code2, type) => request({
url:'api/pdaPointAndPoint/createTask',
data: {
storagevehicle_code: code,
point_code1: code1,
point_code2: code2,
task_type: type
}
})
// 查询明细以及任务信息(确认取放货)
export const queryPointInfo = (search) => request({
url:'api/pdaPickUp/queryPointInfo',
data: {
search: search
}
})
// 确认取货
export const confirmGet = (code) => request({
url:'api/pdaPickUp/confirmGet',
data: {
point_code: code
}
})
// 确认放货
export const confirmPut = (code) => request({
url:'api/pdaPickUp/confirmPut',
data: {
point_code: code
}
})
// 查询点位物料信息(点位更新)
export const updatePointqueryPointInfo = (code, scode) => request({
url:'api/pdaUpdatePoint/queryPointInfo',
data: {
point_code: code,
storagevehicle_code: scode
}
})
// 绑定
export const bindVehicle = (code, scode) => request({
url:'api/pdaUpdatePoint/bindVehicle',
data: {
point_code: code,
storagevehicle_code: scode
}
})
// 清载具
export const clearVehicle = (code, scode) => request({
url:'api/pdaUpdatePoint/clearVehicle',
data: {
point_code: code,
storagevehicle_code: scode
}
})
// 清物料
export const clearMaterial = (code, scode) => request({
url:'api/pdaUpdatePoint/clearMaterial',
data: {
point_code: code,
storagevehicle_code: scode
}
})
/**
* 物料组盘入库
*/

View File

@@ -1,399 +1,123 @@
export const FormTypes = (code) => {
let res = [
{
lable: '收料通知单明细',
id: '1778673956455321600',
value: 'MRN_DTL'
},
{
lable: '收料通知单',
id: '1778676876466851840',
value: 'MRN_MST'
},
{
lable: '出入库单主表',
id: '1780517070820216832',
value: 'st_ivt_iostorinv'
}
]
return res
}
export const pmFormData = (code) => {
export const queryGroupQuality = (code) => {
let res = {
totalElements: '2',
content: [
message: 'ok',
data: [
{
id: '1813491860891635712',
code: 'MV20240717001',
proc_inst_id: '1813491872891539456',
source_form_id: '',
source_form_type: '',
source_form_date: '',
form_type: 'st_ivt_move',
status: '80',
remark: '',
create_time: '2024-07-17 16:32:07',
create_name: '管理员',
material_id: null,
material_name: null,
material_code: '100',
material_spec: null,
single_weight: null,
qty: '0.000',
assign_qty: '0.000',
unit_id: null,
pcsn: null,
vehicle_code: null,
vehicle_id: null,
form_data: {
stor_code: 'FStockPallet'
},
parent_id: null,
hasChildren: true
text: '品质1',
value: '1'
}
],
data: null,
code: '200',
msg: '查询成功'
]
}
return res
}
export const groupMaterList = () => {
export const queryBoxType = (code) => {
let res = {
totalElements: '2',
content: [
message: 'ok',
data: [
{
text: '类型1',
value: '1'
}
]
}
return res
}
export const queryVehicleType = (code) => {
let res = {
message: 'ok',
data: [
{
text: '小料箱',
value: '1'
}
]
}
return res
}
export const queryMaterial = (code) => {
let res = {
message: 'ok',
data: [
{
material_id: '1',
material_name: null,
material_code: '100',
material_spec: null,
single_weight: null,
qty: '0.000',
assign_qty: '0.000',
unit_id: null,
pcsn: null,
vehicle_code: '100',
vehicle_id: null
},
{
material_id: '2',
material_name: null,
material_code: '200',
material_spec: null,
single_weight: null,
qty: '0.000',
assign_qty: '0.000',
unit_id: null,
pcsn: null,
vehicle_code: null,
vehicle_id: null
},
{
material_id: '3',
"material_code": "02.03.05.01.00075",
"material_name": "密封球",
"material_spec": "D377-DQF-E-2150-01",
"single_weight": null,
"unit_name": null
material_code: 'mater1',
material_name: 'material_name',
material_spec: 'material_spec',
material_model: 'material_model',
execution_stand: 'execution_stand',
quality_time: 'quality_time'
}
],
data: null,
code: '200',
msg: '查询成功'
]
}
return res
}
export const outStorageOrder = () => {
let res = [{value: '1', text: 'a'},{"text": "直接调拨单", "value": "STK_TransferDirect"},{"text": "简单领料申请单","value": "ka7c19edf9d4b4b39b8cc4a06802163b0"},{"text": "其他出库单", "value": "STK_MisDelivery"}]
return res
}
export const outStorageOrderList = (page, size, type) => {
export const querySupp = (code) => {
let res = {
"totalElements": 10,
"content": [
{
"code": "PPBOM241102856",
"form_type": "ka7c19edf9d4b4b39b8cc4a06802163b0",
"remark": "备注",
"create_time": "2024-10-20 21:41:50",
"create_name": "创建人",
"material_code": "04.01.DY.00531",
"qty": 0.0,
"sto_qty": 8888,
"plan_qty": 0.0,
"assign_qty": 0.0,
"unit_name": "单位",
"pcsn": "批次",
"stor_code": "FStockPallet",
"product_area": "A4",
"children": [
message: 'ok',
data: [
{
"code": "bbb",
"material_name": "白色插座下线套 (模号587#)色号12081407乳白",
"material_code": "物料编码",
"material_spec": "物料类型",
"stor_code": "FStockPallet",
"product_area": "A4",
"qty": 1000.0,
"sto_qty": 99,
"plan_qty": 0.0,
"assign_qty": 0.0,
"unit_name": "单位",
"pcsn": "批次",
},
{
"code": "CCC",
"material_name": "物料名称",
"material_code": "物料编码",
"material_spec": "物料类型",
"stor_code": "FStockPallet",
"product_area": "A4",
"qty": 1000.0,
"sto_qty": 88,
"plan_qty": 0.0,
"assign_qty": 0.0,
"unit_name": "单位",
"pcsn": "批次"
supp_id: '1',
supp_code: 'supper1',
supp_name: 'supp_name',
remark: 'remark'
}
]
}
],
"data": {},
"code": "200",
"msg": ""
]
}
return res
}
export const outStorageOrderConfirm = (code) => {
export const queryGroupInfo = (code) => {
let res = {
"totalElements": 10,
"content": [
{
"code": "PPBOM241102856",
"form_type": "单据类型",
"remark": "备注",
"create_time": "2024-10-20 21:41:50",
"create_name": "创建人",
"material_code": "04.01.DY.00531",
"qty": 0.0,
"sto_qty": 8888,
"plan_qty": 0.0,
"assign_qty": 0.0,
"unit_name": "单位",
"pcsn": "批次",
"stor_code": "FStockPallet",
"product_area": "A4",
"children": [
message: 'ok',
data: [
{
"code": "bbb",
"material_name": "白色插座下线套 (模号587#)色号12081407乳白",
"material_code": "物料编码",
"material_spec": "物料类型",
"stor_code": "FStockPallet",
"product_area": "A4",
"qty": 10.0,
"sto_qty": 8888,
"plan_qty": 0.0,
"assign_qty": 0.0,
"unit_name": "单位",
"pcsn": "批次",
},
{
"code": "CCC",
"material_name": "物料名称",
"material_code": "物料编码",
"material_spec": "物料类型",
"stor_code": "FStockPallet",
"product_area": "A4",
"qty": 10.0,
"plan_qty": 0.0,
"assign_qty": 0.0,
"unit_id": "单位",
"pcsn": "批次"
group_id: '1',
storagevehicle_code: 'supper1',
material_code: 'material_code',
material_name: 'material_name'
}
]
}
],
"data": {},
"code": "200",
"msg": ""
]
}
return res
}
export const deviceManageTransf = () => {
let res = [{value: '1109', text: '一楼楼入库点'}, {value: '2109', text: '二楼楼入库点'}]
return res
}
export const structattrPage = () => {
export const queryBomInfo = (time, search) => {
let res = {
"totalElements": 10,
"content": [
{
"id": '1',
"code": "PPBOM241102856",
"struct_code": "struct_code",
"product_area": "A1",
"vehicle_code": "vehicle_code",
"material_code": "04.01.DY.00531",
"qty": 0.0,
"pcsn": "批次",
"stor_code": "FStockPallet"
}
],
"data": {},
"code": "200",
"msg": ""
}
return res
}
export const getCtuOrderList = () => {
let res = {
"code": "200",
data: 'JDSCLLSQ250500293',
content: [{material_name: '1', status: '1'}, {material_name: '2', status: '1'}, {material_name: '3', status: '1'}, {material_name: '4', status: '1'}, {material_name: '5', status: '1'}, {material_name: '6', status: '1'}, {material_name: '7', status: '1'}, {material_name: '8', status: '1'}, {material_name: '9', status: '0'}, {material_name: '10', status: '1'}]
}
return res
}
export const ctuOutConfirm = () => {
let res = {
"code": "200",
msg: 'ok'
}
return res
}
export const getPointStatus = () => {
let res = {code: 'a', name: 'ldjlfjl', lock_type: '00'}
return res
}
export const queryTargetPoint = () => {
let res = {
code: '200',
site_code: 'a102',
msg: '查询成功!'
}
return res
}
export const storList = () => {
let res = {
code: '200',
content: [{value: 'FicStockId', label: '虚拟库编码'}, {value: 'FStockId', label: '料箱编码'}, {value: 'FStockPallet', label: '托盘库编码'}]
}
return res
}
export const getBillNoInfo = (id) => {
let res = [
{
code: '订单号1',
material_code: '1',
material_name: 'material_name',
material_spec: 'material_spec',
unit_name: 'unit_name',
qty: '100',
stockOrgId: 'StockOrgId',
ownerId_id: 'OwnerId_Id',
single_weight: '500',
pcsn: 'pcsn',
vehicle_code: 'T001',
unit_id: 'unit_id'
},
{
code: '订单号2',
material_code: '2',
material_name: 'material_name',
material_spec: 'material_spec',
unit_name: 'unit_name',
qty: '100',
stockOrgId: 'StockOrgId',
ownerId_id: 'OwnerId_Id',
single_weight: '500',
pcsn: 'pcsn',
vehicle_code: '0001',
unit_id: 'unit_id'
}
]
return res
}
export const inStorageOrder = () => {
let res = [{value: '1', text: 'a'},{"text": "直接调拨单", "value": "STK_TransferDirect"},{"text": "简单领料申请单","value": "ka7c19edf9d4b4b39b8cc4a06802163b0"},{"text": "其他出库单", "value": "STK_MisDelivery"}]
return res
}
export const inStorageConfirm = () => {
let res = {code: '200'}
return res
}
export const queryPick = () => {
let res = {
'code': 'a00001',
'product_area': 'A2',
'stor_code': 'FStockId',
"point_code": "001",
"material_code": "04.05.04.01.01.00100S-07",
"material_name": "不锈钢棒SUS303F(化学成分Cu≤0.5%)",
"material_spec": "LQF-02-07",
"prd_ppbom_no": "PPBOM25060",
"assign_qty": 80,
'qty': 35
}
return res
}
export const savePickTask = (data) => {
let res = {
code: '200',
msg: 'ok'
}
return res
}
export const queryMaterByVehicleCode = (code) => {
let res = {
"totalElements": 1,
"content": [
message: 'ok',
data: [
{
"id": "1926551433252048896",
"group_id": "1926551433247854592",
"stor_code": "FStockPallet",
"vehicle_code": "T00000278",
"material_id": "985577",
"pcsn": "001",
"qty": 13.000,
"frozen_qty": 0.000,
"is_lock": false,
"is_delete": false,
"unit_id": "100438",
"is_check": "1",
"parent_vehicle_code": null,
"has_child": false,
"source_form_type": null,
"source_form_id": null,
"task_code": "132799",
"form_data": {},
"update_time": "2025-06-11 21:35:40",
"update_name": null,
"create_time": "2025-05-25 16:10:29",
"create_name": "管理员",
"remark": "",
"proc_inst_id": null,
"prd_ppbom_no": "PPBOM250600121",
"need_pick": true,
"material_code": "02.03.05.01.00075",
"material_name": "密封球(S∅155×116×12×∅100)",
"material_spec": "D377-DQF-E-2150-01",
"single_weight": null,
"unit_name": null
bom_id: '1',
device_code: 'device_code',
device_name: 'device_name',
bom_code: 'bom_code'
}
],
"data": null,
"code": "200",
"msg": "查询成功"
]
}
return res
}
export const getStructCount = (code) => {
export const queryPointInfo = (time, search) => {
let res = {
d: 100,
g: 200,
z: 300
message: 'ok',
data: {
point_cdoe: 'point_cdoe',
car_no: 'car_no',
point_cdoe1: 'point_cdoe1',
point_cdoe2: 'point_cdoe2',
rows: [{vehicle_code: 'vehicle_code', material_code: 'material_code', material_name: 'material_name'}]
}
}
return res
}
export const updatePointqueryPointInfo = (time, search) => {
let res = {
message: 'ok',
data: [
{
material_code: 'material_code',
material_name: 'material_name',
pcsn: 'pcsn',
qty: 'qty',
qty_unit_name: 'qty_unit_name'
}
]
}
return res
}