Browse Source

配置文件修改

master
陈薪名 1 year ago
parent
commit
80cc65f86f
  1. 414
      src/utils/disposition/tableColumns.ts

414
src/utils/disposition/tableColumns.ts

@ -3281,10 +3281,10 @@ export const Owner = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const OwnerRules = reactive({
code: [
{ required: true, message: '请选择代码', trigger: 'blur' }
{ required: true, message: '请输入代码', trigger: 'blur' }
],
shortName: [
{ required: true, message: '请选择简称', trigger: 'blur' }
{ required: true, message: '请输入简称', trigger: 'blur' }
],
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
@ -3416,10 +3416,10 @@ export const Carrier = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const CarrierRules = reactive({
code: [
{ required: true, message: '请选择代码', trigger: 'blur' }
{ required: true, message: '请输入代码', trigger: 'blur' }
],
shortName: [
{ required: true, message: '请选择简称', trigger: 'blur' }
{ required: true, message: '请输入简称', trigger: 'blur' }
],
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
@ -3461,7 +3461,8 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
field: 'endAtNextDay',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true
isTable: true,
isSearch: true
},
{
label: '是否可用',
@ -3520,13 +3521,13 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const ShiftRules = reactive({
code: [
{ required: true, message: '请选择代码', trigger: 'blur' }
{ required: true, message: '请输入代码', trigger: 'blur' }
],
beginTime: [
{ required: true, message: '请选择开始时间', trigger: 'blur' }
{ required: true, message: '请输入开始时间', trigger: 'blur' }
],
entTime: [
{ required: true, message: '请选择结束时间', trigger: 'blur' }
{ required: true, message: '请输入结束时间', trigger: 'blur' }
],
endAtNextDay: [
{ required: true, message: '请选择是否跨天', trigger: 'change' }
@ -3609,7 +3610,7 @@ export const Team = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const TeamRules = reactive({
code: [
{ required: true, message: '请选择代码', trigger: 'blur' }
{ required: true, message: '请输入代码', trigger: 'blur' }
],
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
@ -3667,9 +3668,31 @@ export const Strategy = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '创建者',
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}
*/
@ -3697,9 +3720,34 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '配置',
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}
*/
@ -3731,9 +3779,37 @@ export const Condition = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '条件分组',
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}
*/
@ -3762,8 +3838,33 @@ export const Configuration = useCrudSchemas(reactive<CrudSchema[]>([
label: '配置分组',
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}
*/
@ -3812,14 +3913,45 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: 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}
*/
export const Paramsetting = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '策略代码',
label: '策略类型',
field: 'strategyType',
dictType: DICT_TYPE.STRATEGY_TYPE,
dictClass: 'string',
@ -3870,8 +4002,39 @@ export const Paramsetting = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: 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}
*/
@ -3959,8 +4122,33 @@ export const Transactiontype = useCrudSchemas(reactive<CrudSchema[]>([
isTable: 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}
*/
@ -4108,8 +4296,42 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
isTable: 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}
*/
@ -4217,8 +4439,45 @@ export const Documentsetting = useCrudSchemas(reactive<CrudSchema[]>([
isTable: 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}
*/
@ -4322,8 +4581,39 @@ export const Requestsetting = useCrudSchemas(reactive<CrudSchema[]>([
isTable: 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}
*/
@ -4471,8 +4761,57 @@ export const Jobsetting = useCrudSchemas(reactive<CrudSchema[]>([
isTable: 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}
*/
@ -4544,8 +4883,27 @@ export const Recordsetting = useCrudSchemas(reactive<CrudSchema[]>([
isTable: 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}
*/
@ -5898,10 +6256,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '批次',
field: 'batch',
tableForm:{
isInpuFocusShow:true
}
field: 'batch'
},
{
label: '替代批次',
@ -5919,10 +6274,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '原因',
field: 'reason',
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string',
tableForm:{
type:'Select',
}
dictClass: 'string'
},
{
label: '单价',
@ -5930,10 +6282,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
},
{
label: '金额',
field: 'amount',
tableForm:{
type:'number',
}
field: 'amount'
},
{
label: '单据号',
@ -5974,7 +6323,6 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
{
label: '创建者',
field: 'creator',
isTableForm:false
},
{
label: '创建时间',
@ -5983,13 +6331,11 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isTableForm:false
}
},
{
label: '最后更新者',
field: 'updater',
isTableForm:false
},
{
label: '最后更新时间',
@ -5998,24 +6344,10 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
formatter: dateFormatter,
detail: {
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}
*/

Loading…
Cancel
Save