|
|
@ -11,12 +11,12 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'type', |
|
|
|
dictType: DICT_TYPE.COUNT_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '执行周期', |
|
|
@ -31,7 +31,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'dimension', |
|
|
|
dictType: DICT_TYPE.COUNT_DIMENSION, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -78,7 +77,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'isSnapshot', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -98,7 +96,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'isFreeze', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -118,7 +115,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'isCountEmptyLocation', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -138,7 +134,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'isCountZeroInventory', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -158,7 +153,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'isCountNegativeInventory', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -178,7 +172,6 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'isOpenCount', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -198,8 +191,11 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
@ -208,6 +204,12 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: 'Count', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
@ -216,6 +218,7 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -224,6 +227,7 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -244,6 +248,7 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '开始时间', |
|
|
@ -288,7 +293,7 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.COUNT_PLAN_STATUS, |
|
|
|
dictType: DICT_TYPE.PLAN_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
@ -296,6 +301,12 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: 'PLAN_NEW', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -316,6 +327,7 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
@ -324,6 +336,7 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
@ -341,6 +354,16 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 300, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
//表单校验
|
|
|
@ -372,15 +395,6 @@ export const CountPlanMainRules = reactive({ |
|
|
|
status: [ |
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' } |
|
|
|
], |
|
|
|
createTime: [ |
|
|
|
{ required: true, message: '请输入创建时间', trigger: 'blur' } |
|
|
|
], |
|
|
|
creator: [ |
|
|
|
{ required: true, message: '请输入创建者', trigger: 'blur' } |
|
|
|
], |
|
|
|
number: [ |
|
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' } |
|
|
|
], |
|
|
|
businessType: [ |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
], |
|
|
@ -395,7 +409,6 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
field: 'type', |
|
|
|
dictType: DICT_TYPE.COUNT_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -415,8 +428,14 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 150, |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品代码', |
|
|
@ -441,6 +460,8 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -461,6 +482,8 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -481,6 +504,8 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
@ -489,6 +514,8 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划数量', |
|
|
@ -506,7 +533,6 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -518,7 +544,6 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
@ -533,6 +558,17 @@ export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|
isForm: false , |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
//表单校验
|
|
|
@ -552,10 +588,4 @@ export const CountPlanDetailRules = reactive({ |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
|
], |
|
|
|
createTime: [ |
|
|
|
{ required: true, message: '请输入创建时间', trigger: 'blur' } |
|
|
|
], |
|
|
|
creator: [ |
|
|
|
{ required: true, message: '请输入创建者', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |