|
|
@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
|
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 * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
@ -12,14 +12,8 @@ import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/w |
|
|
|
import * as WarehouseApi from "@/api/wms/warehouse"; |
|
|
|
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data"; |
|
|
|
import * as LocationApi from "@/api/wms/location"; |
|
|
|
import { |
|
|
|
Productionlineitem |
|
|
|
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data"; |
|
|
|
import * as ProductionlineitemApi from "@/api/wms/productionlineitem"; |
|
|
|
import { |
|
|
|
Supplieritem |
|
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
|
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' |
|
|
|
import * as ItemPackageApi from '@/api/wms/itempackage/index' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
@ -150,6 +144,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: '到库区类型范围', |
|
|
|
field: 'toAreaTypes', |
|
|
@ -401,6 +424,9 @@ export const UnplannedreceiptRequestMainRules = reactive({ |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
usageDescription:[ |
|
|
|
{ required: true, message: '请选择领用描述', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
@ -749,6 +775,94 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
|
isTableForm: 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: '原因', |
|
|
|
field: 'reason', |
|
|
@ -890,6 +1004,12 @@ export const UnplannedreceiptRequestDetailRules = reactive({ |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
costcentreCode:[ |
|
|
|
{ required: true, message: '请选择成本中心代码', trigger: 'change' } |
|
|
|
], |
|
|
|
qadProjectCode:[ |
|
|
|
{ required: true, message: '请选择科目代码', trigger: 'change' } |
|
|
|
] |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -898,64 +1018,50 @@ export const UnplannedreceiptRequestDetailRules = reactive({ |
|
|
|
*/ |
|
|
|
export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '生产线代码', |
|
|
|
field: 'productionLineCodePackage', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
|
searchField: 'productionLineCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '生产线物料关系信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition:[{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请填写物料代码!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierItemCode', |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
|
|
searchField: 'supplierCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition:[{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请填写物料代码!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
label: '物料描述1', |
|
|
|
field: 'itemDesc1', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料描述2', |
|
|
|
field: 'itemDesc2', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
@ -1113,24 +1219,8 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源生产线代码', |
|
|
|
field: 'productionLineCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源生产线代码', |
|
|
|
field: 'productionLineCode', |
|
|
|
label: '到库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -1145,115 +1235,80 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源工位代码', |
|
|
|
field: 'workStationCode', |
|
|
|
label: '包装规格', |
|
|
|
field: 'packUnit', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
width: 150, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
disabled: true, |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
searchField: 'packUnit', |
|
|
|
searchTitle: '物品包装信息', |
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
searchPage: ItemPackageApi.getItempackagingPage, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请选择物料代码', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源库位代码', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
disabled: true, |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
searchField: 'packUnit', |
|
|
|
searchTitle: '物品包装信息', |
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
searchPage: ItemPackageApi.getItempackagingPage, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请选择物料代码', |
|
|
|
isTableRowValue: true, |
|
|
|
isMainValue:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料描述1', |
|
|
|
field: 'itemDesc1', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料描述2', |
|
|
|
field: 'itemDesc2', |
|
|
|
label: '包装数量', |
|
|
|
field: 'packQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目代码', |
|
|
|
field: 'projectCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
disabled: true, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
disabled: true, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
])) |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const UnplannedreceiptRequestDetailLabelRules = reactive({ |
|
|
|
supplierItemCode: [ |
|
|
|
{ required: true, message: '请选择供应商', trigger: 'change' } |
|
|
|
packUnit: [ |
|
|
|
{ required: true, message: '请选择包装规格', trigger: 'change' } |
|
|
|
], |
|
|
|
productionLineCodePackage: [ |
|
|
|
{ required: true, message: '请选择生产线', trigger: 'change' } |
|
|
|
] |
|
|
|
}) |
|
|
|