|
@ -3281,10 +3281,10 @@ export const Owner = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const OwnerRules = reactive({ |
|
|
export const OwnerRules = reactive({ |
|
|
code: [ |
|
|
code: [ |
|
|
{ required: true, message: '请选择代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
shortName: [ |
|
|
shortName: [ |
|
|
{ required: true, message: '请选择简称', trigger: 'blur' } |
|
|
{ required: true, message: '请输入简称', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
available: [ |
|
|
available: [ |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
@ -3416,10 +3416,10 @@ export const Carrier = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const CarrierRules = reactive({ |
|
|
export const CarrierRules = reactive({ |
|
|
code: [ |
|
|
code: [ |
|
|
{ required: true, message: '请选择代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
shortName: [ |
|
|
shortName: [ |
|
|
{ required: true, message: '请选择简称', trigger: 'blur' } |
|
|
{ required: true, message: '请输入简称', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
available: [ |
|
|
available: [ |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
@ -3461,7 +3461,8 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'endAtNextDay', |
|
|
field: 'endAtNextDay', |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isTable: true |
|
|
isTable: true, |
|
|
|
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
@ -3520,13 +3521,13 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const ShiftRules = reactive({ |
|
|
export const ShiftRules = reactive({ |
|
|
code: [ |
|
|
code: [ |
|
|
{ required: true, message: '请选择代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
beginTime: [ |
|
|
beginTime: [ |
|
|
{ required: true, message: '请选择开始时间', trigger: 'blur' } |
|
|
{ required: true, message: '请输入开始时间', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
entTime: [ |
|
|
entTime: [ |
|
|
{ required: true, message: '请选择结束时间', trigger: 'blur' } |
|
|
{ required: true, message: '请输入结束时间', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
endAtNextDay: [ |
|
|
endAtNextDay: [ |
|
|
{ required: true, message: '请选择是否跨天', trigger: 'change' } |
|
|
{ required: true, message: '请选择是否跨天', trigger: 'change' } |
|
@ -3609,7 +3610,7 @@ export const Team = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const TeamRules = reactive({ |
|
|
export const TeamRules = reactive({ |
|
|
code: [ |
|
|
code: [ |
|
|
{ required: true, message: '请选择代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
available: [ |
|
|
available: [ |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
@ -3667,9 +3668,31 @@ export const Strategy = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
|
field: 'creator' |
|
|
field: 'creator' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const StrategyRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
priority: [ |
|
|
|
|
|
{ required: true, message: '请输入优先级', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
type: [ |
|
|
|
|
|
{ required: true, message: '请选择类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 规则 |
|
|
* @returns {Array} 规则 |
|
|
*/ |
|
|
*/ |
|
@ -3697,9 +3720,34 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '配置', |
|
|
label: '配置', |
|
|
field: 'configuration' |
|
|
field: 'configuration' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const RuleRules = reactive({ |
|
|
|
|
|
strategyCode: [ |
|
|
|
|
|
{ required: true, message: '请输入策略代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
priority: [ |
|
|
|
|
|
{ required: true, message: '请输入优先级', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
configuration: [ |
|
|
|
|
|
{ required: true, message: '请输入配置', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 条件 |
|
|
* @returns {Array} 条件 |
|
|
*/ |
|
|
*/ |
|
@ -3731,9 +3779,37 @@ export const Condition = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '条件分组', |
|
|
label: '条件分组', |
|
|
field: 'groupCode' |
|
|
field: 'groupCode' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const ConditionRules = reactive({ |
|
|
|
|
|
strategyCode: [ |
|
|
|
|
|
{ required: true, message: '请输入策略代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
ruleCode: [ |
|
|
|
|
|
{ required: true, message: '请输入规则代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
paramCode: [ |
|
|
|
|
|
{ required: true, message: '请输入参数', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
operator: [ |
|
|
|
|
|
{ required: true, message: '请选择操作符', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
value: [ |
|
|
|
|
|
{ required: true, message: '请输入值', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 配置 |
|
|
* @returns {Array} 配置 |
|
|
*/ |
|
|
*/ |
|
@ -3762,8 +3838,33 @@ export const Configuration = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '配置分组', |
|
|
label: '配置分组', |
|
|
field: 'groupCode' |
|
|
field: 'groupCode' |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const ConfigurationRules = reactive({ |
|
|
|
|
|
strategyCode: [ |
|
|
|
|
|
{ required: true, message: '请输入策略代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
ruleCode: [ |
|
|
|
|
|
{ required: true, message: '请输入规则代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
configurationCode: [ |
|
|
|
|
|
{ required: true, message: '请输入配置名称', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
configurationValue: [ |
|
|
|
|
|
{ required: true, message: '请输入配置值', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 配置设置 |
|
|
* @returns {Array} 配置设置 |
|
|
*/ |
|
|
*/ |
|
@ -3812,14 +3913,45 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isTable: true |
|
|
isTable: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const ConfigurationsettingRules = reactive({ |
|
|
|
|
|
strategyType: [ |
|
|
|
|
|
{ required: true, message: '请选择策略类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
configurationCode: [ |
|
|
|
|
|
{ required: true, message: '请输入配置代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
configurationName: [ |
|
|
|
|
|
{ required: true, message: '请输入配置名称', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
isRequired: [ |
|
|
|
|
|
{ required: true, message: '请选择必填', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
dataType: [ |
|
|
|
|
|
{ required: true, message: '请选择数据类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
valueScope: [ |
|
|
|
|
|
{ required: true, message: '请输入值范围', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 参数设置 |
|
|
* @returns {Array} 参数设置 |
|
|
*/ |
|
|
*/ |
|
|
export const Paramsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Paramsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '策略代码', |
|
|
label: '策略类型', |
|
|
field: 'strategyType', |
|
|
field: 'strategyType', |
|
|
dictType: DICT_TYPE.STRATEGY_TYPE, |
|
|
dictType: DICT_TYPE.STRATEGY_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
@ -3870,8 +4002,39 @@ export const Paramsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isTable: true |
|
|
isTable: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const ParamsettingRules = reactive({ |
|
|
|
|
|
strategyType: [ |
|
|
|
|
|
{ required: true, message: '请选择策略类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
paramCode: [ |
|
|
|
|
|
{ required: true, message: '请输入参数代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
usableOpeartors: [ |
|
|
|
|
|
{ required: true, message: '请选择可用操作符', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
isRequired: [ |
|
|
|
|
|
{ required: true, message: '请选择必填', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
dataType: [ |
|
|
|
|
|
{ required: true, message: '请选择数据类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
valueScope: [ |
|
|
|
|
|
{ required: true, message: '请输入值范围', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 事务类型 |
|
|
* @returns {Array} 事务类型 |
|
|
*/ |
|
|
*/ |
|
@ -3959,8 +4122,33 @@ export const Transactiontype = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const TransactiontypeRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
name: [ |
|
|
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
inventoryAction: [ |
|
|
|
|
|
{ required: true, message: '请选择库存动作', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowNegative: [ |
|
|
|
|
|
{ required: true, message: '请选择允许复数', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 业务类型 |
|
|
* @returns {Array} 业务类型 |
|
|
*/ |
|
|
*/ |
|
@ -4108,8 +4296,42 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isSearch: true |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const BusinesstypeRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
name: [ |
|
|
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
itemTypes: [ |
|
|
|
|
|
{ required: true, message: '请选择可用物品类型范围', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
itemStatuses: [ |
|
|
|
|
|
{ required: true, message: '请选择可用物品状态范围', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
outTransactionType: [ |
|
|
|
|
|
{ required: true, message: '请输入出库事务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
inTransactionType: [ |
|
|
|
|
|
{ required: true, message: '请输入入库事务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
useOnTheWay: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 单据设置 |
|
|
* @returns {Array} 单据设置 |
|
|
*/ |
|
|
*/ |
|
@ -4217,8 +4439,45 @@ export const Documentsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isSearch: true |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const DocumentsettingRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
name: [ |
|
|
|
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
type: [ |
|
|
|
|
|
{ required: true, message: '请选择单据类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
businessType: [ |
|
|
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
numberPrefix: [ |
|
|
|
|
|
{ required: true, message: '请输入号码前缀', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
dateFormat: [ |
|
|
|
|
|
{ required: true, message: '请输入号码时间格式', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
serialLength: [ |
|
|
|
|
|
{ required: true, message: '请输入号码流水长度', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
resetPeriod: [ |
|
|
|
|
|
{ required: true, message: '请选择流水重置周期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 申请设置 |
|
|
* @returns {Array} 申请设置 |
|
|
*/ |
|
|
*/ |
|
@ -4322,8 +4581,39 @@ export const Requestsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const RequestsettingRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
requestMode: [ |
|
|
|
|
|
{ required: true, message: '请选择申请模式', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
autoCommit: [ |
|
|
|
|
|
{ required: true, message: '请选择是否自动提交', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
autoAgree: [ |
|
|
|
|
|
{ required: true, message: '请选择是否自动通过', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
autoExecute: [ |
|
|
|
|
|
{ required: true, message: '请选择是否自动执行', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
directCreateRecord: [ |
|
|
|
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 任务设置 |
|
|
* @returns {Array} 任务设置 |
|
|
*/ |
|
|
*/ |
|
@ -4471,8 +4761,57 @@ export const Jobsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const JobsettingRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
validMinutes: [ |
|
|
|
|
|
{ required: true, message: '请输入有效分钟', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
autoComplete: [ |
|
|
|
|
|
{ required: true, message: '请选择是否自动完成', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowModifyLocation: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许修改库位', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowModifyQty: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许修改数量', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowBiggerQty: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许大于推荐数量', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowSmallerQty: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许小于推荐数量', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowModifyInventoryStatus: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许修改库存状态', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowContinuousScanning: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许连续扫描', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowPartialComplete: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许部分完成', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowModifyBach: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许修改批次', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
allowModifyPackingNumber: [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许修改包装号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 记录设置 |
|
|
* @returns {Array} 记录设置 |
|
|
*/ |
|
|
*/ |
|
@ -4544,8 +4883,27 @@ export const Recordsetting = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isSearch: true |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const RecordsettingRules = reactive({ |
|
|
|
|
|
code: [ |
|
|
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
interfaceType: [ |
|
|
|
|
|
{ required: true, message: '请选择接口类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 库位容量 |
|
|
* @returns {Array} 库位容量 |
|
|
*/ |
|
|
*/ |
|
@ -5898,10 +6256,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
|
field: 'batch', |
|
|
field: 'batch' |
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '替代批次', |
|
|
label: '替代批次', |
|
@ -5919,10 +6274,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
label: '原因', |
|
|
label: '原因', |
|
|
field: 'reason', |
|
|
field: 'reason', |
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string' |
|
|
tableForm:{ |
|
|
|
|
|
type:'Select', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单价', |
|
|
label: '单价', |
|
@ -5930,10 +6282,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '金额', |
|
|
label: '金额', |
|
|
field: 'amount', |
|
|
field: 'amount' |
|
|
tableForm:{ |
|
|
|
|
|
type:'number', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
@ -5974,7 +6323,6 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
isTableForm:false |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -5983,13 +6331,11 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
} |
|
|
isTableForm:false |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
isTableForm:false |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -5998,24 +6344,10 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
} |
|
|
isTableForm:false |
|
|
|
|
|
}, |
|
|
}, |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
export const PurchaseclaimRequestDetailRules = reactive({ |
|
|
|
|
|
batch: [ |
|
|
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
poNumber: [ |
|
|
|
|
|
{ required: true, message: '请输入订单号码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
amount: [ |
|
|
|
|
|
{ required: true, message: '请输入金额', trigger: 'blur' }, |
|
|
|
|
|
{ validator: validateTwoNum, trigger: "blur"} |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 采购索赔记录主表 |
|
|
* @returns {Array} 采购索赔记录主表 |
|
|
*/ |
|
|
*/ |
|
|