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