|
|
@ -1,5 +1,5 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const QadProductionPlanMainRules = reactive({ |
|
|
@ -9,35 +9,31 @@ export const QadProductionPlanMainRules = reactive({ |
|
|
|
}) |
|
|
|
|
|
|
|
export const QadProductionPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '顺序', |
|
|
|
field: 'displayOrder', |
|
|
|
sort: 'custom', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 350, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '车间', |
|
|
|
field: 'workshop', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '生产线', |
|
|
|
field: 'productionLine', |
|
|
|
label: '计划数量', |
|
|
|
field: 'planQty', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '班次', |
|
|
|
field: 'shift', |
|
|
|
label: '生产线', |
|
|
|
field: 'productionLine', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
@ -50,7 +46,7 @@ export const QadProductionPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '计划日期', |
|
|
|
field: 'planDate', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
formatter: dateFormatter2, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -59,11 +55,6 @@ export const QadProductionPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '明细列表', |
|
|
|
field: 'details', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划类型', |
|
|
|
field: 'planType', |
|
|
@ -80,33 +71,33 @@ export const QadProductionPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
component: 'SelectV2' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'woNumber', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单行', |
|
|
|
field: 'woLine', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '备注',
|
|
|
|
// field: 'remark',
|
|
|
|
// sort: 'custom',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '是否可用',
|
|
|
|
// field: 'available',
|
|
|
|
// sort: 'custom',
|
|
|
|
// isForm: false,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '状态',
|
|
|
|
// field: 'status',
|
|
|
|
// sort: 'custom',
|
|
|
|
// isForm: false,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '订单号',
|
|
|
|
// field: 'woNumber',
|
|
|
|
// sort: 'custom',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '订单行',
|
|
|
|
// field: 'woLine',
|
|
|
|
// sort: 'custom',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '操作',
|
|
|
|
// field: 'action',
|
|
|
|