|
|
@ -5,6 +5,12 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
|
|
|
|
import { QadCostcentre } from '@/views/wms/basicDataManage/subject/qadCostcentre/qadCostcentre.data' |
|
|
|
import * as QadCostcentreApi from '@/api/wms/qadCostcentre/index' |
|
|
|
|
|
|
|
import { QadProject } from '@/views/wms/basicDataManage/subject/qadProject/qadProject.data' |
|
|
|
import * as QadProjectApi from '@/api/wms/qadProject' |
|
|
|
|
|
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
@ -69,6 +75,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
}, |
|
|
@ -76,6 +83,9 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '领用描述', |
|
|
|
field: 'usageDescription', |
|
|
|
sort: 'custom', |
|
|
|
isTableForm:false, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -99,6 +109,9 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return cellValue |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -112,6 +125,138 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
filterable: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心代码', |
|
|
|
field: 'costCenterCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', |
|
|
|
searchField: 'costcentreCode', |
|
|
|
searchTitle: '成本中心代码', |
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, |
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '成本中心代码', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心类型', |
|
|
|
field: 'costCenterType', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '领用原因代码', |
|
|
|
field: 'reasonCodeRequisition', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成领用原因代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '领用原因代码', |
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'costcentreType', |
|
|
|
value: 'costCenterType', |
|
|
|
message: '成本中心类型不能为空!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '领用原因代码', // 查询弹窗标题
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'costcentreType', |
|
|
|
value: 'costCenterType', |
|
|
|
message: '成本中心类型不能为空!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目代码', |
|
|
|
field: 'projectCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择QAD项目信息', |
|
|
|
searchField: 'projectCode', |
|
|
|
searchTitle: '领用原因代码', |
|
|
|
searchAllSchemas: QadProject.allSchemas, |
|
|
|
searchPage: QadProjectApi.getQadProjectPage |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本
|
|
|
|
searchField: 'projectCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '领用原因代码', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadProject.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadProjectApi.getQadProjectPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '工作中心', |
|
|
|
field: 'workCenter', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '申请时间', |
|
|
|
field: 'requestTime', |
|
|
@ -119,6 +264,9 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
@ -140,6 +288,9 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
@ -173,7 +324,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -183,7 +334,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -290,12 +441,21 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '直接生成记录', |
|
|
|
field: 'directCreateRecord', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: false, |
|
|
|
isForm: true, |
|
|
|
isTable: false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -306,20 +466,10 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
value: requestsettingData.directCreateRecord, |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE', |
|
|
|
disabled: true |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
@ -427,6 +577,15 @@ export const UnplannedissueRequestMainRules = reactive({ |
|
|
|
usageDescription:[ |
|
|
|
{ required: true, message: '请选择领用描述', trigger: 'blur' } |
|
|
|
], |
|
|
|
costCenterCode: [ |
|
|
|
{ required: true, message: '请输入成本中心代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
costCenterType: [ |
|
|
|
{ required: true, message: '请输入成本中心类型', trigger: 'blur' } |
|
|
|
], |
|
|
|
reasonCodeRequisition: [ |
|
|
|
{ required: true, message: '请输入领用原因代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
@ -456,12 +615,32 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
multiple:true,//多选
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请输入包装号', |
|
|
|
searchField: 'packingNumber', |
|
|
|
searchTitle: '库存余额信息', |
|
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
|
searchPage: BalanceApi.getBalanceItemPage |
|
|
|
searchPage: BalanceApi.getBalanceItemPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'businessType', |
|
|
|
value: 'UnplannedDeliver', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'inOrOut', |
|
|
|
value: 'out', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
@ -471,7 +650,26 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
searchField: 'packingNumber', |
|
|
|
searchTitle: '库存余额信息', |
|
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
|
searchPage: BalanceApi.getBalanceItemPage |
|
|
|
searchPage: BalanceApi.getBalanceItemPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'businessType', |
|
|
|
value: 'UnplannedDeliver', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'inOrOut', |
|
|
|
value: 'out', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -512,6 +710,14 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
@ -520,6 +726,14 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '器具号', |
|
|
@ -563,7 +777,13 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
type: 'Select', |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -577,7 +797,13 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -587,6 +813,14 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心代码', |
|
|
@ -595,6 +829,9 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isDetail:false, |
|
|
|
isTableForm:false, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '选择成本中心', |
|
|
@ -634,6 +871,9 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isDetail:false, |
|
|
|
isTableForm:false, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '选择科目代码', |
|
|
@ -792,14 +1032,14 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const UnplannedissueRequestDetailRules = reactive({ |
|
|
|
packingNumber: [ |
|
|
|
{ required: true, message: '请输入包装号', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
// packingNumber: [
|
|
|
|
// { required: true, message: '请输入包装号', trigger: 'change' },
|
|
|
|
// { max: 50, message: '不得超过50个字符', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
// batch: [
|
|
|
|
// { required: true, message: '请输入批次', trigger: 'blur' },
|
|
|
|
// { max: 50, message: '不得超过50个字符', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
containerNumber: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
@ -823,4 +1063,4 @@ export const UnplannedissueRequestDetailRules = reactive({ |
|
|
|
qadProjectCode:[ |
|
|
|
{ required: true, message: '请选择科目代码', trigger: 'change' } |
|
|
|
] |
|
|
|
}) |
|
|
|
}) |
|
|
|