diff --git a/src/api/orderProcessPlan.ts b/src/api/orderProcessPlan.ts index 9c83f07..98cd2d8 100644 --- a/src/api/orderProcessPlan.ts +++ b/src/api/orderProcessPlan.ts @@ -146,6 +146,10 @@ export interface ProcessPlanItemVO { assignWorkList?: AssignWorkItem[] reportedQuantity?: number | null + + patchNum?: number | null + + refillNum?:number | null } diff --git a/src/views/NCcode/index.vue b/src/views/NCcode/index.vue index 261adf2..364a68c 100644 --- a/src/views/NCcode/index.vue +++ b/src/views/NCcode/index.vue @@ -965,7 +965,7 @@ const deviceDocumentConnection = reactive({}) const connectionLoading = ref(false) const connectionPagination = reactive({ page: 1, - pageSize: 2, + pageSize: 10, itemCount: 0, showSizePicker: true, pageSizes: [10, 20, 50] diff --git a/src/views/biz/orderProcessPlan/board.vue b/src/views/biz/orderProcessPlan/board.vue index ee39a70..249d1ae 100644 --- a/src/views/biz/orderProcessPlan/board.vue +++ b/src/views/biz/orderProcessPlan/board.vue @@ -398,11 +398,15 @@ {{dispatchform.quantity}} - + 已完成: {{dispatchform.completedQty ?? 0}} + + 补料数: + {{dispatchform.refillNum ?? 0}} + 已派工: {{dispatchform.assignedQty ?? 0}} @@ -414,7 +418,7 @@ {{dispatchform.remainQty}} - 待派 = 计划 − 已派工 + 待派 = (计划+补料) − 已派工 @@ -1402,12 +1406,13 @@ function disphand(process: ProcessPlanItemVO, order?: OrderProcessPlanVO) { const planQty = Number(entity.quantity) || 0 const completedQty = Number(process.completedQty) || 0 // 与后端 checkOverProcessNum 一致:可派 = 计划 + 补料 − 已派工数量 - const assignedQty = (process.assignWorkList ?? []).reduce( - (s, a) => s + (Number(a.quantity) || 0), - 0, - ) + // const assignedQty = (process.assignWorkList ?? []).reduce( + // (s, a) => s + (Number(a.quantity) || 0), + // 0, + // ) + const patchNum = Number(process.patchNum) || 0 const refillNum = Number(process.refillNum) || 0 - const remainQty = Math.max(0, planQty + refillNum - assignedQty) + const remainQty = Math.max(0, planQty + refillNum - patchNum) dispatchmodal.value = true dispatchformRef.value?.restoreValidation() dispatchform.id = entity.id @@ -1418,12 +1423,13 @@ function disphand(process: ProcessPlanItemVO, order?: OrderProcessPlanVO) { // quantity 保持工序计划总数,提交时不能改掉计划数量 dispatchform.quantity = entity.quantity dispatchform.completedQty = completedQty - dispatchform.assignedQty = assignedQty + dispatchform.assignedQty = patchNum dispatchform.remainQty = remainQty dispatchform.orderItemId = entity.orderItemId dispatchform.sort = entity.sort dispatchform.sectionId = entity.sectionId ?? process.sectionId ?? null dispatchform.workshopId = entity.workshopId ?? process.workshopId ?? order?.workshopId ?? null + dispatchform.refillNum = refillNum dispatchform.list = [{ sectionId: '', deviceId: '', quantity: remainQty > 0 ? String(remainQty) : '', ncId: '' }] } diff --git a/src/views/lllustrated/index.vue b/src/views/lllustrated/index.vue index 0327eed..44e4616 100644 --- a/src/views/lllustrated/index.vue +++ b/src/views/lllustrated/index.vue @@ -1039,7 +1039,7 @@ const deviceDocumentConnection = ref({}) const connectionLoading = ref(false) const connectionPagination = reactive({ page: 1, - pageSize: 2, + pageSize: 10, itemCount: 0, showSizePicker: true, pageSizes: [10, 20, 50] diff --git a/src/views/production/componets/AssingWorkTreeTable.vue b/src/views/production/componets/AssingWorkTreeTable.vue index bed356f..b93c88b 100644 --- a/src/views/production/componets/AssingWorkTreeTable.vue +++ b/src/views/production/componets/AssingWorkTreeTable.vue @@ -169,7 +169,8 @@ const defaultBaseInfo = ref({ processName:undefined, processCode:undefined, assingCode:undefined, - logOrQuality:undefined + logOrQuality:undefined, + workOrderCode:undefined }) const baseInfo = ref({...defaultBaseInfo}) @@ -186,7 +187,7 @@ const processName = ref() const assingCode = ref() const materialCode = ref() const materialName = ref() - +const workOrderCode = ref() //派工详情弹窗 const showAssingWorkDetail = ref(false) @@ -270,6 +271,37 @@ const AssingWorkColumns :DataTableColumns = [ }, { align: 'center', + align:'center', + title: '是否入库', + key: 'storageEntry', + width: 90, + render(row) { + var opt = row.storageEntry + if (opt == 0) { + return h(NTag, { type: 'error', size: 'small' }, { default: () => "否" }) + } + if (opt == 1) { + return h(NTag, { type: 'success', size: 'small' }, { default: () => "是" }) + } + } + }, + { + align:'center', + title: '返工任务', + key: 'rework', + width: 90, + render(row) { + var opt = row.rework + if (opt == 0) { + return h(NTag, { type: 'error', size: 'small' }, { default: () => "否" }) + } + if (opt == 1) { + return h(NTag, { type: 'success', size: 'small' }, { default: () => "是" }) + } + } + }, + { + align:'center', title: '派工状态', key: 'assingStatus', width: 96, diff --git a/src/views/production/componets/QualityInfoPage.vue b/src/views/production/componets/QualityInfoPage.vue index 6a55251..f0560de 100644 --- a/src/views/production/componets/QualityInfoPage.vue +++ b/src/views/production/componets/QualityInfoPage.vue @@ -141,9 +141,7 @@ const detailColumns: DataTableColumns = [ } }, { title: '判定数量', key: 'qty', align: 'center', width: 90, render: (row) => dash(row.qty) }, - { title: '批次号', key: 'traceCode', align: 'center', render: (row) => dash(row.traceCode) }, - { title: '不良代码', key: 'defectCode', align: 'center', render: (row) => dash(row.defectCode) }, - { title: '后续动作', key: 'handleAction', align: 'center', render: (row) => dash(row.handleAction) }, + { title: '批次号', key: 'traceCode', align: 'center',width:180, render: (row) => dash(row.traceCode) }, { title: '状态', key: 'actionStatus', diff --git a/src/views/production/componets/SubmitLogInfoPage.vue b/src/views/production/componets/SubmitLogInfoPage.vue index 4b01aa9..b2fcd3f 100644 --- a/src/views/production/componets/SubmitLogInfoPage.vue +++ b/src/views/production/componets/SubmitLogInfoPage.vue @@ -74,7 +74,7 @@ const pagination = reactive({ const reportRecordsColums: DataTableColumns = [ { title: '汇报数量', key: 'quantity', align: 'center', width: 90, render: (row) => dash(row.quantity) }, { title: '合格数量', key: 'qualifiedQty', align: 'center', width: 90, render: (row: any) => dash(row.qualifiedQty) }, - { title: '报废数量', key: 'scrapQty', align: 'center', width: 90, render: (row: any) => dash(row.scrapQty) }, + { title: '报废数量', key: 'scrapeQty', align: 'center', width: 90, render: (row: any) => dash(row.scrapeQty) }, { title: '暂停时间', key: 'pauseSeconds',