Files
hht-zzzw-uni/utils/mork2.js
2025-07-17 14:27:43 +08:00

399 lines
9.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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) => {
let res = {
totalElements: '2',
content: [
{
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
}
],
data: null,
code: '200',
msg: '查询成功'
}
return res
}
export const groupMaterList = () => {
let res = {
totalElements: '2',
content: [
{
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
}
],
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) => {
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": [
{
"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": "批次"
}
]
}
],
"data": {},
"code": "200",
"msg": ""
}
return res
}
export const outStorageOrderConfirm = (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": [
{
"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": "批次"
}
]
}
],
"data": {},
"code": "200",
"msg": ""
}
return res
}
export const deviceManageTransf = () => {
let res = [{value: '1109', text: '一楼楼入库点'}, {value: '2109', text: '二楼楼入库点'}]
return res
}
export const structattrPage = () => {
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": "100001",
"material_name": "垃圾了付定金",
"material_spec": "垃圾了付定金",
"prd_ppbom_no": "20202020",
"assign_qty": 6,
'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": [
{
"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
}
],
"data": null,
"code": "200",
"msg": "查询成功"
}
return res
}
export const getStructCount = (code) => {
let res = {
d: 100,
g: 200,
z: 300
}
return res
}