From 94c28bebd6b7fa936114acbee262671afed2a4d5 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Mon, 19 Jan 2026 20:41:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8A=A5=E8=A1=A8/=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=AE=A1=E7=90=86):=20=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E6=89=B9=E6=AC=A1=E5=8F=B7=E6=98=BE=E7=A4=BA=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=89=B9=E6=AC=A1=E5=8F=B7=E5=AD=97=E6=AE=B5=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在工单报表组件中添加批次号字段显示,并将物料管理中的批次号字段统一重命名为"原材料批次号" --- .../productionMaterial/MmInventory.vue | 36 +++++++++++-------- .../report/components/TheWorkOrderList.vue | 12 +++---- .../components/TheWorkOrderProcessRecord.vue | 12 +++---- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/src/views/materialManagement/productionMaterial/MmInventory.vue b/src/views/materialManagement/productionMaterial/MmInventory.vue index ac5c055..a272377 100644 --- a/src/views/materialManagement/productionMaterial/MmInventory.vue +++ b/src/views/materialManagement/productionMaterial/MmInventory.vue @@ -20,8 +20,8 @@ - - + + @@ -84,7 +84,7 @@ - + - + @@ -714,7 +720,7 @@ const columns = ref([ { visible: false, align: 'center', type: '', prop: 'warehouseName', label: '仓库名称', showOverflowTooltip: true }, { visible: true, align: 'center', type: '', prop: 'locationCode', label: '库位编码', showOverflowTooltip: true }, { visible: true, align: 'center', type: '', prop: 'locationName', label: '库位名称', showOverflowTooltip: true }, - { visible: true, align: 'center', type: '', prop: 'batchNo', label: '批次号', showOverflowTooltip: true }, + { visible: true, align: 'center', type: '', prop: 'batchNo', label: '原材料批次号', showOverflowTooltip: true }, { visible: true, align: 'center', type: '', prop: 'currentQty', label: '当前库存量' }, { visible: false, align: 'center', type: '', prop: 'unit', label: '计量单位', showOverflowTooltip: true }, { visible: false, align: 'center', type: '', prop: 'productionDate', label: '生产日期', showOverflowTooltip: true }, @@ -803,7 +809,7 @@ const state = reactive({ warehouseCode: [{ required: true, message: '仓库编码不能为空', trigger: 'blur' }], locationCode: [{ required: true, message: '库位编码不能为空', trigger: 'blur' }], // inboundNo: [{ required: true, message: '入库单号不能为空', trigger: 'blur' }], - batchNo: [{ required: true, message: '批次号不能为空', trigger: 'blur' }] + batchNo: [{ required: true, message: '原材料批次号不能为空', trigger: 'blur' }] }, rulesOut: { materialCode: [{ required: true, message: '物料编码不能为空', trigger: 'blur' }], @@ -812,13 +818,13 @@ const state = reactive({ warehouseCode: [{ required: true, message: '仓库编码不能为空', trigger: 'blur' }], locationCode: [{ required: true, message: '库位编码不能为空', trigger: 'blur' }], // outboundNo: [{ required: true, message: '出库单号不能为空', trigger: 'blur' }], - batchNo: [{ required: true, message: '批次号不能为空', trigger: 'blur' }] + batchNo: [{ required: true, message: '原材料批次号不能为空', trigger: 'blur' }] }, rulesUpdate: { materialCode: [{ required: true, message: '物料编码不能为空', trigger: 'blur' }], warehouseCode: [{ required: true, message: '仓库编码不能为空', trigger: 'blur' }], locationCode: [{ required: true, message: '库位编码不能为空', trigger: 'blur' }], - batchNo: [{ required: true, message: '批次号不能为空', trigger: 'blur' }], + batchNo: [{ required: true, message: '原材料批次号不能为空', trigger: 'blur' }], currentQty: [{ required: true, message: '库存数量不能为空', trigger: 'blur' }] }, options: {}, diff --git a/src/views/touchScreen/report/components/TheWorkOrderList.vue b/src/views/touchScreen/report/components/TheWorkOrderList.vue index bd585ea..94eddef 100644 --- a/src/views/touchScreen/report/components/TheWorkOrderList.vue +++ b/src/views/touchScreen/report/components/TheWorkOrderList.vue @@ -9,16 +9,14 @@ - - 查询 - + 查询 - + @@ -44,7 +42,7 @@ const props = defineProps({ processId: { type: [String, Number], default: '' - }, + } }) // watch([() => props.workorder, () => props.processId], () => { // getList(); @@ -58,7 +56,7 @@ const queryParams = reactive({ endDate: proxy.dayjs().endOf('day').toDate(), pageNum: 1, pageSize: 10, - processId: null, + processId: null }) import { GetWorkOrdersByDate } from '@/api/reportFlow/index' function getList() { @@ -67,7 +65,7 @@ function getList() { let params = queryParams params.workorder = props.workorder params.processId = props.processId - GetWorkOrdersByDate(params).then(res => { + GetWorkOrdersByDate(params).then((res) => { const { code, data } = res if (code == 200) { list.value = data diff --git a/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue b/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue index 3020d16..4bad3df 100644 --- a/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue +++ b/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue @@ -1,10 +1,10 @@