|
|
@ -44,6 +44,24 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划类型', |
|
|
|
field: 'planType', |
|
|
|
dictType: DICT_TYPE.PLAN_PRODUCTION_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
value: 'predictSparePart', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
@ -61,7 +79,6 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// disabled: true
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
isForm:false, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -78,7 +95,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '机台', |
|
|
|
label: '车间', |
|
|
|
field: 'workshop', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -131,8 +148,8 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '班次', |
|
|
|
field: 'shift', |
|
|
|
label: '班组', |
|
|
|
field: 'team', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -141,11 +158,11 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择班次', |
|
|
|
searchListPlaceholder: '请选择班组', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '班次信息', |
|
|
|
searchAllSchemas: Shift.allSchemas, |
|
|
|
searchPage: ShiftApi.getShiftPage, |
|
|
|
searchTitle: '班组信息', |
|
|
|
searchAllSchemas: Team.allSchemas, |
|
|
|
searchPage: TeamApi.getTeamPage, |
|
|
|
searchCondition:[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
@ -155,8 +172,8 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '班组', |
|
|
|
field: 'team', |
|
|
|
label: '班次', |
|
|
|
field: 'shift', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -165,11 +182,11 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择班组', |
|
|
|
searchListPlaceholder: '请选择班次', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '班组信息', |
|
|
|
searchAllSchemas: Team.allSchemas, |
|
|
|
searchPage: TeamApi.getTeamPage, |
|
|
|
searchTitle: '班次信息', |
|
|
|
searchAllSchemas: Shift.allSchemas, |
|
|
|
searchPage: ShiftApi.getShiftPage, |
|
|
|
searchCondition:[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
@ -178,6 +195,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'detailItemCode', |
|
|
@ -186,6 +204,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
@ -195,6 +214,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
@ -208,6 +228,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
sortTableDefault:1000, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -229,6 +250,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
sortTableDefault:1000, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -250,6 +272,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
sortTableDefault:1000, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -267,6 +290,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
value: 'ProductReceipt', |
|
|
|
componentProps: { |
|
|
@ -275,24 +299,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划类型', |
|
|
|
field: 'planType', |
|
|
|
dictType: DICT_TYPE.PLAN_PRODUCTION_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
value: 'predictSparePart', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
@ -307,7 +314,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -326,7 +333,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'autoCommit', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -347,7 +354,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'autoAgree', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -368,7 +375,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'autoExecute', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -478,6 +485,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -491,6 +499,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -509,6 +518,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -522,6 +532,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -634,6 +645,14 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'Bom版本', |
|
|
|
field: 'bomVersion', |
|
|
@ -682,8 +701,8 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '合格数量', |
|
|
|
field: 'goodQty', |
|
|
|
label: '计划数量', |
|
|
|
field: 'planQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -691,25 +710,39 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '不合格数量', |
|
|
|
field: 'notGoodQty', |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '合格数量', |
|
|
|
field: 'goodQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
@ -726,27 +759,40 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
label: '不合格数量', |
|
|
|
field: 'notGoodQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
@ -758,6 +804,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -771,49 +818,55 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
hiddenInMain: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
default: 'TRUE' |
|
|
|
}, |
|
|
|
// isTableForm: false,
|
|
|
|
// isForm: false
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划数量', |
|
|
|
field: 'planQty', |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isTableForm: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -826,6 +879,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -845,35 +899,10 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
default: 'TRUE' |
|
|
|
}, |
|
|
|
// isTableForm: false,
|
|
|
|
// isForm: false
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
hiddenInMain:true, |
|
|
|