Files
hht-hengsen-uni/utils/mork2.js

213 lines
4.4 KiB
JavaScript
Raw Normal View History

2024-08-02 17:26:50 +08:00
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) => {
2024-07-18 10:13:18 +08:00
let res = {
2024-08-02 17:26:50 +08:00
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: '查询成功'
}
2024-07-18 10:13:18 +08:00
return res
2024-08-15 16:34:30 +08:00
}
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: null,
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
}
],
data: null,
code: '200',
msg: '查询成功'
}
return res
2024-12-03 18:36:55 +08:00
}
export const outStorageOrder = () => {
let res = [{value: '1', text: 'a'}]
return res
}
export const outStorageOrderList = (page, size, type) => {
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,
"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_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
2024-07-18 10:13:18 +08:00
}