提交
This commit is contained in:
1 parent
a79aee2614
commit
427bcb1551
274 files changed
+59416
-38342
No files matched your search
@@ -158,6 +158,7 @@ export type ProductionMaterialUsage = {
|
||||
purpose?: string
|
||||
useTime?: string
|
||||
sourceType: string
|
||||
requisitionStatus?: string
|
||||
remark: string
|
||||
createBy: string
|
||||
createByName?: string
|
||||
@@ -202,6 +203,8 @@ export type ProductionMaterialStockCheckBatchLine = {
|
||||
|
||||
export type ProductionMaterialStockCheckUnusedLine = {
|
||||
id?: string
|
||||
usageId?: string
|
||||
batchId?: string
|
||||
materialCode?: string
|
||||
materialName: string
|
||||
materialType?: string
|
||||
@@ -222,6 +225,33 @@ export type ProductionMaterialStockCheckUnusedLine = {
|
||||
fromBatch?: boolean
|
||||
}
|
||||
|
||||
export type ProductionMaterialStockCheckRequisition = {
|
||||
id: string
|
||||
materialId: string
|
||||
materialType: string
|
||||
materialCode: string
|
||||
materialName: string
|
||||
specModel: string
|
||||
batchId: string
|
||||
stockInNo: string
|
||||
stockInDate: string
|
||||
expireDate: string
|
||||
catalogNo: string
|
||||
batchNo: string
|
||||
manufacturer: string
|
||||
storageLocation?: string
|
||||
unitPrice: number
|
||||
unit: string
|
||||
requisitionQty: number
|
||||
taskConsumedQty: number
|
||||
receiver: string
|
||||
receiverName: string
|
||||
purpose: string
|
||||
useTime: string
|
||||
requisitionStatus: string
|
||||
createByName: string
|
||||
}
|
||||
|
||||
export type ProductionMaterialStockCheckDetail = ProductionMaterialStockCheck & {
|
||||
batchLines: ProductionMaterialStockCheckBatchLine[]
|
||||
unusedLines: ProductionMaterialStockCheckUnusedLine[]
|
||||
@@ -366,6 +396,12 @@ export function fetchProductionMaterialUsageList(params?: {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchMarkProductionMaterialUsageFullyUsed(usageId: string) {
|
||||
return request.post<void>({
|
||||
url: `/web/admin/production-material-usages/${usageId}/mark-fully-used`
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProductionMaterialRequisitionOptions(params?: {
|
||||
materialType?: string
|
||||
keyword?: string
|
||||
@@ -454,6 +490,17 @@ export function fetchCancelProductionMaterialStockCheck(id: string) {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProductionMaterialStockCheckRequisitions(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get<PageList<ProductionMaterialStockCheckRequisition>>({
|
||||
url: '/web/admin/production-material-stock-check-requisitions',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export type ProductionMaterialFormulaLine = {
|
||||
id?: string
|
||||
configuredMaterialId?: string
|
||||
|
||||
Reference in new issue
Block a user