From 880f97f1b00c8f07709320e74fe770bf044a9951 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 15 Aug 2024 21:18:53 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E7=BC=BA=E9=99=B7=EF=BC=9AHL-5048?= =?UTF-8?q?=EF=BC=8CHL-5049=20=E4=BC=98=E5=8C=96=EF=BC=9A=E5=B0=86?= =?UTF-8?q?=E8=A3=85=E9=85=8D=E6=94=B6=E8=B4=A7=E6=98=8E=E7=BB=86=E4=B8=AD?= =?UTF-8?q?mes=EF=BC=8Cbom=E5=8D=95=E7=8B=AC=E6=8F=90=E5=87=BA=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E8=8F=9C=E5=8D=95=E5=B1=95=E7=A4=BA=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E9=85=8D=E6=9C=89=E4=B8=BB=E8=A6=81=E5=AD=97=E6=AE=B5=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mesRawMaterialConsumptionInfo/index.ts | 46 ++++ .../wms/rawMaterialConsumptionInfo/index.ts | 46 ++++ .../mesRawMaterialConsumptionInfo/index.vue | 112 ++++++++ .../mesRawMaterialConsumptionInfo.data.ts | 173 ++++++++++++ .../rawMaterialConsumptionInfo/index.vue | 111 ++++++++ .../rawMaterialConsumptionInfo.data.ts | 260 ++++++++++++++++++ 6 files changed, 748 insertions(+) create mode 100644 src/api/wms/mesRawMaterialConsumptionInfo/index.ts create mode 100644 src/api/wms/rawMaterialConsumptionInfo/index.ts create mode 100644 src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/index.vue create mode 100644 src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/mesRawMaterialConsumptionInfo.data.ts create mode 100644 src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue create mode 100644 src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/rawMaterialConsumptionInfo.data.ts diff --git a/src/api/wms/mesRawMaterialConsumptionInfo/index.ts b/src/api/wms/mesRawMaterialConsumptionInfo/index.ts new file mode 100644 index 000000000..fbfaf7290 --- /dev/null +++ b/src/api/wms/mesRawMaterialConsumptionInfo/index.ts @@ -0,0 +1,46 @@ +import request from '@/config/axios' + + +export const AssemblyFinishedMaterialConsumptionMesRespVO = { + finishPackingNumber: '', + finishBatch: '', + finishItemCode: '', + finishCreateTime: new Date(), + id: 0, + processCode: '', + bomVersion: '', + packingNumber: '', + batch: '', + inventoryStatus: '', + fromLocationCode: '', + fromLocationGroupCode: '', + fromAreaCode: '', + itemName: '', + itemDesc1: '', + itemDesc2: '', + projectCode: '', + qty: '', + uom: '', + number: '', + itemCode: '', + remark: '', + createTime: new Date(), + creator: '', + code: '', + interfaceType: '', + jobDetailId: '' +}; + + +// 查询QAD项目信息列表 +export const getMesRawMaterialConsumptionInfoPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/productreceipt-detailb/getAssemblyMaterialUsageMesSenior', data }) + } else { + return await request.get({ url: `/wms/productreceipt-detailb/getAssemblyMaterialUsageMes`, params }) + } +} + + diff --git a/src/api/wms/rawMaterialConsumptionInfo/index.ts b/src/api/wms/rawMaterialConsumptionInfo/index.ts new file mode 100644 index 000000000..38b62d2a9 --- /dev/null +++ b/src/api/wms/rawMaterialConsumptionInfo/index.ts @@ -0,0 +1,46 @@ +import request from '@/config/axios' + + +export const AssemblyFinishedMaterialConsumptionRespVO = { + finishPackingNumber: '', + finishBatch: '', + finishItemCode: '', + finishCreateTime: new Date(), + id: 0, + processCode: '', + bomVersion: '', + packingNumber: '', + batch: '', + inventoryStatus: '', + fromLocationCode: '', + fromLocationGroupCode: '', + fromAreaCode: '', + itemName: '', + itemDesc1: '', + itemDesc2: '', + projectCode: '', + qty: '', + uom: '', + number: '', + itemCode: '', + remark: '', + createTime: new Date(), + creator: '', + code: '', + interfaceType: '', + jobDetailId: '' +}; + + +// 查询QAD项目信息列表 +export const getRawMaterialConsumptionInfoPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/backflush-record-detailb/getAssemblyMaterialUsageSenior', data }) + } else { + return await request.get({ url: `/wms/backflush-record-detailb/getAssemblyMaterialUsage`, params }) + } +} + + diff --git a/src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/index.vue b/src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/index.vue new file mode 100644 index 000000000..c0f82ff6a --- /dev/null +++ b/src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/index.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/mesRawMaterialConsumptionInfo.data.ts b/src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/mesRawMaterialConsumptionInfo.data.ts new file mode 100644 index 000000000..804384a66 --- /dev/null +++ b/src/views/wms/productionManage/productreceiptAssemble/mesRawMaterialConsumptionInfo/mesRawMaterialConsumptionInfo.data.ts @@ -0,0 +1,173 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' + + + +export const MesRawMaterialConsumptionInfo = useCrudSchemas(reactive([ + { + label: '成品包装号', + field: 'finishedPackingNumber', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '成品批次', + field: 'finishedBatch', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '成品物料代码', + field: 'finishedItemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '成品创建时间', + field: 'finishedCreateTime', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + }, + { + label: '成品创建人', + field: 'finishedCreator', + sort: 'custom', + isTable: true, + table: { + width: 150 + }, + }, + { + label: '唯一码', + field: 'remark', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '客户物料号', + field: 'customerItemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '原料包装号', + field: 'packingNumber', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '原料旧包装号', + field: 'oldPackingNumber', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '原料批次', + field: 'batch', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '原料主表ID', + field: 'masterId', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料单据号', + field: 'number', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料物品代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料物品名称', + field: 'itemName', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料外部零件号', + field: 'outsideItemCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料外部生产日期', + field: 'outsideProduceDate', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料外部流水号', + field: 'outsideSerialNumber', + sort: 'custom', + table: { + width: 150 + }, + }, +])) \ No newline at end of file diff --git a/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue b/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue new file mode 100644 index 000000000..ede928449 --- /dev/null +++ b/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/rawMaterialConsumptionInfo.data.ts b/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/rawMaterialConsumptionInfo.data.ts new file mode 100644 index 000000000..3fdd7de9d --- /dev/null +++ b/src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/rawMaterialConsumptionInfo.data.ts @@ -0,0 +1,260 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' + +/** + * @returns {Array} 制品收货记录子表 + */ +export const RawMaterialConsumptionInfo = useCrudSchemas(reactive([ + + { + label: '成品包装号', + field: 'finishedPackingNumber', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '成品批次', + field: 'finishedBatch', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '成品物料代码', + field: 'finishedItemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '成品创建时间', + field: 'finishedCreateTime', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + }, + { + label: '成品创建人', + field: 'finishedCreator', + sort: 'custom', + isTable: true, + table: { + width: 150 + }, + }, + { + label: '原料工序代码', + field: 'processCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料BOM版本', + field: 'bomVersion', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料包装号', + field: 'packingNumber', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料批次', + field: 'batch', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '原料库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料从库位代码', + field: 'fromLocationCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料从库位组代码', + field: 'fromLocationGroupCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料从库区代码', + field: 'fromAreaCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料单据号', + field: 'number', + sort: 'custom', + table: { + width: 180 + }, + }, + { + label: '原料物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '原料备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + }, + { + label: '原料创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料物料名称', + field: 'itemName', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料物料描述1', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料物料描述2', + field: 'itemDesc2', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料项目代码', + field: 'projectCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料数量', + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } + }, + { + label: '原料计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '原料接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, +])) \ No newline at end of file From f4d4b8d1d66214364f34db20e54f1380b21d85cc Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 16 Aug 2024 09:34:06 +0800 Subject: [PATCH 02/11] =?UTF-8?q?Q3=E9=80=9A=E7=9F=A5=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=BC=A0=E4=B8=8D=E8=BF=87=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ3/index.vue | 48 +++------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/src/views/qms/inspectionQ3/index.vue b/src/views/qms/inspectionQ3/index.vue index e414ef0b7..8fbbc3a33 100644 --- a/src/views/qms/inspectionQ3/index.vue +++ b/src/views/qms/inspectionQ3/index.vue @@ -71,13 +71,6 @@ @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" @inputNumberChange="inputNumberChange" - :sumFormDataByTableCustom=" - (formRef, formModel, tableData) => { - tableData.forEach((item) => { - item.qty = item.countQty * item.packQty - }) - } - " > - + - - + + - -