|
@ -5,6 +5,15 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
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' |
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
@ -89,13 +98,145 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '领用原因', |
|
|
label: '成本中心代码', |
|
|
field: 'reason', |
|
|
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: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:1001 |
|
|
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: 'reason',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// sortTableDefault:1001
|
|
|
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '从仓库代码', |
|
|
label: '从仓库代码', |
|
|
field: 'fromWarehouseCode', |
|
|
field: 'fromWarehouseCode', |
|
@ -366,6 +507,18 @@ export const UnplannedissueRequestMainRules = reactive({ |
|
|
remark: [ |
|
|
remark: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
usageDescription:[ |
|
|
|
|
|
{ required: true, message: '请选择领用描述', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
costCenterCode: [ |
|
|
|
|
|
{ required: true, message: '请输入成本中心代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
costCenterType: [ |
|
|
|
|
|
{ required: true, message: '请输入成本中心类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
reasonCodeRequisition: [ |
|
|
|
|
|
{ required: true, message: '请输入领用原因代码', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -400,7 +553,26 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
searchField: 'packingNumber', |
|
|
searchField: 'packingNumber', |
|
|
searchTitle: '库存余额信息', |
|
|
searchTitle: '库存余额信息', |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchPage: BalanceApi.getBalancePageSpare |
|
|
searchPage: BalanceApi.getBalancePageSpare, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'businessType', |
|
|
|
|
|
value: 'UnplannedDeliverSpare', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'inOrOut', |
|
|
|
|
|
value: 'out', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -410,7 +582,26 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
searchField: 'packingNumber', |
|
|
searchField: 'packingNumber', |
|
|
searchTitle: '库存余额信息', |
|
|
searchTitle: '库存余额信息', |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchPage: BalanceApi.getBalancePageSpare |
|
|
searchPage: BalanceApi.getBalancePageSpare, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'businessType', |
|
|
|
|
|
value: 'UnplannedDeliverSpare', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'inOrOut', |
|
|
|
|
|
value: 'out', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -474,6 +665,7 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
@ -508,6 +700,11 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select', |
|
|
type: 'Select', |
|
|
disabled: true |
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
form:{ |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -521,9 +718,15 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select', |
|
|
|
|
|
disabled: true |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
form:{ |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: true, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -533,6 +736,14 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
form:{ |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '项目代码', |
|
@ -543,12 +754,14 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
|
|
|
isTable:false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从货主代码', |
|
|
label: '从货主代码', |
|
|
field: 'fromOwnerCode', |
|
|
field: 'fromOwnerCode', |
|
|
hiddenInMain:true, |
|
|
hiddenInMain:true, |
|
|
|
|
|
isTable:false, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -621,7 +834,8 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false |
|
|
isForm: false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
@ -632,7 +846,8 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false |
|
|
isForm: false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|