|
@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
@ -150,6 +150,35 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '领用代码', |
|
|
|
|
|
field: 'usageCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable:false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '领用描述', |
|
|
|
|
|
field: 'usageDescription', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请科目账户信息', |
|
|
|
|
|
searchField: 'usageDescription', |
|
|
|
|
|
searchTitle: '科目账户信息', |
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区类型范围', |
|
|
label: '到库区类型范围', |
|
|
field: 'toAreaTypes', |
|
|
field: 'toAreaTypes', |
|
@ -401,6 +430,9 @@ export const UnplannedreceiptRequestMainRules = reactive({ |
|
|
remark: [ |
|
|
remark: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
usageDescription:[ |
|
|
|
|
|
{ required: true, message: '请选择领用描述', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -749,6 +781,94 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '成本中心代码', |
|
|
|
|
|
field: 'costcentreCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '选择成本中心', |
|
|
|
|
|
searchField: 'costcentreCode', |
|
|
|
|
|
searchTitle: '成本中心信息', |
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'code', // 查询列表中字段
|
|
|
|
|
|
value: 'usageCode', // 指查询具体值
|
|
|
|
|
|
message: '请选择领用描述!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true // 表示查询条件不是主表的字段的值
|
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '选择成本中心', |
|
|
|
|
|
searchField: 'costcentreCode', |
|
|
|
|
|
searchTitle: '成本中心信息', |
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'code', // 查询列表中字段
|
|
|
|
|
|
value: 'usageCode', // 指查询具体值
|
|
|
|
|
|
message: '请选择领用描述!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true // 表示查询条件不是主表的字段的值
|
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '科目代码', |
|
|
|
|
|
field: 'qadProjectCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '选择科目代码', |
|
|
|
|
|
searchField: 'projectCode', |
|
|
|
|
|
searchTitle: '科目代码信息', |
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'code', // 查询列表中字段
|
|
|
|
|
|
value: 'usageCode', // 指查询具体值
|
|
|
|
|
|
message: '请选择领用描述!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true // 表示查询条件不是主表的字段的值
|
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'costcentreCode', // 查询列表中字段
|
|
|
|
|
|
value: 'costcentreCode', // 指查询具体值
|
|
|
|
|
|
message: '请成本中心代码!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true // 表示查询条件不是主表的字段的值
|
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '选择成本中心', |
|
|
|
|
|
searchField: 'projectCode', |
|
|
|
|
|
searchTitle: '成本中心信息', |
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'code', // 查询列表中字段
|
|
|
|
|
|
value: 'usageCode', // 指查询具体值
|
|
|
|
|
|
message: '请选择领用描述!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true // 表示查询条件不是主表的字段的值
|
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'costcentreCode', // 查询列表中字段
|
|
|
|
|
|
value: 'costecentreCode', // 指查询具体值
|
|
|
|
|
|
message: '请成本中心代码!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: false // 表示查询条件不是主表的字段的值
|
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '原因', |
|
|
label: '原因', |
|
|
field: 'reason', |
|
|
field: 'reason', |
|
@ -890,6 +1010,12 @@ export const UnplannedreceiptRequestDetailRules = reactive({ |
|
|
remark: [ |
|
|
remark: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
costcentreCode:[ |
|
|
|
|
|
{ required: true, message: '请选择成本中心代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
qadProjectCode:[ |
|
|
|
|
|
{ required: true, message: '请选择科目代码', trigger: 'change' } |
|
|
|
|
|
] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|