Files
hht-hengsen-uni/utils/mork2.js
2024-08-15 16:34:30 +08:00

98 lines
1.8 KiB
JavaScript

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: 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
}