|
@ -4,7 +4,8 @@ import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 发料记录主表 |
|
|
* @returns {Array} 发料记录主表 |
|
|
*/ |
|
|
*/ |
|
|
export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const IssueRecordMain = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -26,7 +27,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:1, |
|
|
sortTableDefault: 1 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请单号', |
|
|
label: '申请单号', |
|
@ -35,7 +36,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '任务单号', |
|
|
label: '任务单号', |
|
@ -44,7 +45,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '供应商代码', |
|
|
label: '供应商代码', |
|
@ -53,7 +54,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '车间代码', |
|
|
label: '车间代码', |
|
@ -62,7 +63,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '出库事务类型', |
|
|
label: '出库事务类型', |
|
@ -71,7 +72,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '入库事务类型', |
|
|
label: '入库事务类型', |
|
@ -80,7 +81,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '执行时间', |
|
|
label: '执行时间', |
|
@ -99,9 +100,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生效日期', |
|
|
label: '生效日期', |
|
@ -121,9 +122,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'date', |
|
|
type: 'date', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请时间', |
|
|
label: '申请时间', |
|
@ -142,9 +143,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '截止时间', |
|
|
label: '截止时间', |
|
@ -163,9 +164,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '部门', |
|
@ -174,7 +175,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '接口类型', |
|
|
label: '接口类型', |
|
@ -185,7 +186,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
@ -194,7 +195,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
@ -203,38 +204,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建时间', |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建者', |
|
|
|
|
|
field: 'creator', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|
field: 'updateTime', |
|
|
field: 'updateTime', |
|
@ -255,7 +227,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -284,7 +256,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区类型范围', |
|
|
label: '从库区类型范围', |
|
@ -295,7 +267,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区代码范围', |
|
|
label: '从库区代码范围', |
|
@ -306,7 +278,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到仓库代码', |
|
|
label: '到仓库代码', |
|
@ -315,7 +287,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区类型范围', |
|
|
label: '到库区类型范围', |
|
@ -326,7 +298,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区代码范围', |
|
|
label: '到库区代码范围', |
|
@ -335,7 +307,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
|
// label: '使用在途库',
|
|
|
// label: '使用在途库',
|
|
@ -382,7 +354,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:6, |
|
|
sortTableDefault: 6 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', // 子表数据 只是为了展示
|
|
|
label: '批次', // 子表数据 只是为了展示
|
|
@ -391,103 +363,64 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:5, |
|
|
sortTableDefault: 5 |
|
|
}, |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const IssueRecordMainRules = reactive({ |
|
|
export const IssueRecordMainRules = reactive({ |
|
|
requestNumber: [ |
|
|
requestNumber: [{ required: true, message: '请选择申请单号', trigger: 'change' }], |
|
|
{ required: true, message: '请选择申请单号', trigger: 'change' } |
|
|
fromWarehouseCode: [{ required: true, message: '请选择从仓库代码', trigger: 'change' }], |
|
|
], |
|
|
fromAreaTypes: [{ required: true, message: '请选择从库区类型范围', trigger: 'change' }], |
|
|
fromWarehouseCode: [ |
|
|
toWarehouseCode: [{ required: true, message: '请选择到仓库代码', trigger: 'change' }], |
|
|
{ required: true, message: '请选择从仓库代码', trigger: 'change' } |
|
|
toAreaTypes: [{ required: true, message: '请选择库位类型范围', trigger: 'change' }], |
|
|
], |
|
|
outTransaction: [{ required: true, message: '请输入出库事务类型', trigger: 'blur' }], |
|
|
fromAreaTypes: [ |
|
|
inTransaction: [{ required: true, message: '请输入入库事务类型', trigger: 'blur' }], |
|
|
{ required: true, message: '请选择从库区类型范围', trigger: 'change' } |
|
|
executeTime: [{ required: true, message: '请输入执行时间', trigger: 'change' }], |
|
|
], |
|
|
activeDate: [{ required: true, message: '请输入生效日期', trigger: 'change' }], |
|
|
toWarehouseCode: [ |
|
|
available: [{ required: true, message: '请输入是否可用', trigger: 'blur' }], |
|
|
{ required: true, message: '请选择到仓库代码', trigger: 'change' } |
|
|
departmentCode: [{ required: true, message: '请输入部门', trigger: 'blur' }], |
|
|
], |
|
|
interfaceType: [{ required: true, message: '请选择接口类型', trigger: 'change' }], |
|
|
toAreaTypes: [ |
|
|
number: [{ required: true, message: '请输入单据号', trigger: 'blur' }], |
|
|
{ required: true, message: '请选择库位类型范围', trigger: 'change' } |
|
|
businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }], |
|
|
], |
|
|
createTime: [{ required: true, message: '请输入创建时间', trigger: 'blur' }], |
|
|
outTransaction: [ |
|
|
creator: [{ required: true, message: '请输入创建者', trigger: 'blur' }] |
|
|
{ required: true, message: '请输入出库事务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
inTransaction: [ |
|
|
|
|
|
{ required: true, message: '请输入入库事务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
executeTime: [ |
|
|
|
|
|
{ required: true, message: '请输入执行时间', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
activeDate: [ |
|
|
|
|
|
{ required: true, message: '请输入生效日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
available: [ |
|
|
|
|
|
{ required: true, message: '请输入是否可用', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
departmentCode: [ |
|
|
|
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
interfaceType: [ |
|
|
|
|
|
{ required: true, message: '请选择接口类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
number: [ |
|
|
|
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
businessType: [ |
|
|
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
createTime: [ |
|
|
|
|
|
{ required: true, message: '请输入创建时间', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
creator: [ |
|
|
|
|
|
{ required: true, message: '请输入创建者', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 发料记录子表 |
|
|
* @returns {Array} 发料记录子表 |
|
|
*/ |
|
|
*/ |
|
|
export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const IssueRecordDetail = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '从包装号', |
|
|
label: '物料代码', |
|
|
field: 'fromPackingNumber', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
hiddenInMain: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '到包装号', |
|
|
|
|
|
field: 'toPackingNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
hiddenInMain: true |
|
|
sortSearchDefault: 2, |
|
|
|
|
|
sortTableDefault: 4 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装规格', |
|
|
label: '物料名称', |
|
|
field: 'packUnit', |
|
|
field: 'itemName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:8, |
|
|
sortTableDefault: 4 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装数量', |
|
|
label: '数量', |
|
|
field: 'packQty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:8, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
@ -499,98 +432,155 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:9, |
|
|
sortTableDefault: 9 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从批次', |
|
|
label: '物料描述1', |
|
|
field: 'fromBatch', |
|
|
field: 'itemDesc1', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortSearchDefault:3, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
hiddenInMain: true |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到批次', |
|
|
label: '物料描述2', |
|
|
field: 'toBatch', |
|
|
field: 'itemDesc2', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortSearchDefault:4, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
hiddenInMain: true |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库存状态', |
|
|
label: '从包装号', |
|
|
field: 'inventoryStatus', |
|
|
field: 'fromPackingNumber', |
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采购订单号', |
|
|
label: '到包装号', |
|
|
field: 'poNumber', |
|
|
field: 'toPackingNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
isSearch: true, |
|
|
sortTableDefault:2, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '订单行', |
|
|
label: '包装规格', |
|
|
field: 'poLine', |
|
|
field: 'packUnit', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
sortTableDefault: 8 |
|
|
sortTableDefault:3, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生产线代码', |
|
|
label: '包装数量', |
|
|
field: 'productionLineCode', |
|
|
field: 'packQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false |
|
|
sortTableDefault: 8 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '工位代码', |
|
|
label: '从批次', |
|
|
field: 'workStationCode', |
|
|
field: 'fromBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false |
|
|
sortSearchDefault: 3, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '在途库库位', |
|
|
label: '到批次', |
|
|
field: 'onTheWayLocationCode', |
|
|
field: 'toBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false |
|
|
sortSearchDefault: 4, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '供应商代码', |
|
|
label: '库存状态', |
|
|
field: 'supplierCode', |
|
|
field: 'inventoryStatus', |
|
|
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
// {
|
|
|
}, |
|
|
// label: '采购订单号',
|
|
|
|
|
|
// field: 'poNumber',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true,
|
|
|
|
|
|
// sortTableDefault: 2
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '订单行',
|
|
|
|
|
|
// field: 'poLine',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true,
|
|
|
|
|
|
// sortTableDefault: 3
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '生产线代码',
|
|
|
|
|
|
// field: 'productionLineCode',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// isTable: false
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '工位代码',
|
|
|
|
|
|
// field: 'workStationCode',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// isTable: false
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '在途库库位',
|
|
|
|
|
|
// field: 'onTheWayLocationCode',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// isTable: false
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '供应商代码',
|
|
|
|
|
|
// field: 'supplierCode',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// isTable: false
|
|
|
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '从货主代码', |
|
|
label: '从货主代码', |
|
|
field: 'fromOwnerCode', |
|
|
field: 'fromOwnerCode', |
|
@ -598,7 +588,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库位代码', |
|
|
label: '从库位代码', |
|
@ -607,7 +597,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库位组代码', |
|
|
label: '从库位组代码', |
|
@ -616,7 +606,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区代码', |
|
|
label: '从库区代码', |
|
@ -625,7 +615,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货主代码', |
|
|
label: '到货主代码', |
|
@ -634,7 +624,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库位代码', |
|
|
label: '到库位代码', |
|
@ -643,71 +633,23 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '到库位组代码', |
|
|
|
|
|
field: 'toLocationGroupCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '到库区代码', |
|
|
|
|
|
field: 'toAreaCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '单据号', |
|
|
|
|
|
field: 'number', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物料代码', |
|
|
|
|
|
field: 'itemCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
sortSearchDefault:2, |
|
|
|
|
|
sortTableDefault:4, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物料名称', |
|
|
|
|
|
field: 'itemName', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
sortTableDefault:4, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '创建者', |
|
|
field: 'remark', |
|
|
field: 'creator', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
isTable: true, |
|
|
|
|
|
isDetail: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
isDetail: false, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
@ -715,92 +657,125 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
isTable: true, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建者', |
|
|
|
|
|
field: 'creator', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物料描述1', |
|
|
|
|
|
field: 'itemDesc1', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物料描述2', |
|
|
|
|
|
field: 'itemDesc2', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '到库位组代码', |
|
|
field: 'projectCode', |
|
|
field: 'toLocationGroupCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '数量', |
|
|
|
|
|
field: 'qty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '接口类型', |
|
|
|
|
|
field: 'interfaceType', |
|
|
|
|
|
dictType: DICT_TYPE.INTERFACE_TYPE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '从器具号', |
|
|
|
|
|
field: 'fromContainerNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain:true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '到器具号', |
|
|
label: '到库区代码', |
|
|
field: 'toContainerNumber', |
|
|
field: 'toAreaCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '单据号',
|
|
|
|
|
|
// field: 'number',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 180
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '备注',
|
|
|
|
|
|
// field: 'remark',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '创建时间',
|
|
|
|
|
|
// field: 'createTime',
|
|
|
|
|
|
// formatter: dateFormatter,
|
|
|
|
|
|
// detail: {
|
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
|
|
// },
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 180
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true,
|
|
|
|
|
|
// form: {
|
|
|
|
|
|
// component: 'DatePicker',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// type: 'datetime',
|
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
|
// valueFormat: 'x'
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '创建者',
|
|
|
|
|
|
// field: 'creator',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '项目代码',
|
|
|
|
|
|
// field: 'projectCode',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '接口类型',
|
|
|
|
|
|
// field: 'interfaceType',
|
|
|
|
|
|
// dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
|
|
|
|
// dictClass: 'string',
|
|
|
|
|
|
// isTable: true,
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '从器具号',
|
|
|
|
|
|
// field: 'fromContainerNumber',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '到器具号',
|
|
|
|
|
|
// field: 'toContainerNumber',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// hiddenInMain: true
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
// {
|
|
|
// {
|
|
|
// label: '代码',
|
|
|
// label: '代码',
|
|
@ -819,7 +794,8 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
// width: 150
|
|
|
// width: 150
|
|
|
// },
|
|
|
// },
|
|
|
// },
|
|
|
// },
|
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const IssueRecordDetailRules = reactive({ |
|
|
export const IssueRecordDetailRules = reactive({ |
|
|