From d6697ae788cfb095fd917d5f8c2c13caa786e9de Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Sun, 28 Apr 2024 09:16:17 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=B4=A8=E6=A3=80?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=92=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/index.vue | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 1065befd7..64c7573dd 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -139,9 +139,9 @@ :formAllSchemas="SupplierdeliverInspectionDetail.allSchemas" :tableAllSchemas="SupplierdeliverInspectionDetail.allSchemas" :tableFormRules="SupplierdeliverInspectionDetailRules" - :tableData="ploadQualityReportTableData" - @handleAddTable="SupplierdeliverInspectionDetailApi.createSupplierdeliverInspectionDetail" - @handleDeleteTable="SupplierdeliverInspectionDetailApi.deleteSupplierdeliverInspectionDetail" + :tableData="uploadQualityReportTableData" + @handleAddTable="handleAddQualityReport" + @handleDeleteTable="handleDeleteQualityReport" @submitForm="submitFormUploadQualityReport" :isShowReduceButton="true" > @@ -617,7 +617,22 @@ const handleOpe = async (id: number) => { } } const ploadQualityReportRef = ref() -const ploadQualityReportTableData = ref([]) +const uploadQualityReportTableData = ref([]) + +const handleAddQualityReport = ()=>{ + const tableFormKeys = {} + SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => { + tableFormKeys[item.field] = item.default ? item.default : '' + }) + uploadQualityReportTableData.value.push(tableFormKeys) + console.log('handleAddQualityReport') +} +const handleDeleteQualityReport = (row,index)=>{ + uploadQualityReportTableData.value.splice(index,1) + console.log('handleDeleteQualityReport',row) + +} + /** 上传质量报告 */ const handleUploadQualityReport = async (row) => { console.log('SupplierdeliverInspectionDetail',SupplierdeliverInspectionDetail.allSchemas) @@ -630,12 +645,12 @@ const handleUploadQualityReport = async (row) => { SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => { tableFormKeys[item.field] = item.default ? item.default : '' }) - ploadQualityReportTableData.value = [tableFormKeys] + uploadQualityReportTableData.value = [tableFormKeys] } const submitFormUploadQualityReport = async (formType, data) => { delete data.number - data.subList = ploadQualityReportTableData.value // 拼接子表数据参数 + data.subList = uploadQualityReportTableData.value // 拼接子表数据参数 if (formType === 'create') { await SupplierdeliverInspectionDetailApi.createSupplierdeliverInspectionDetail(data) message.success(t('common.createSuccess')) From 4894c88d1f3c0f749a654721eaafc4ccd641a0d0 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Sun, 28 Apr 2024 09:59:42 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E8=A1=A5=E6=96=99=20=E5=8F=91=E6=96=99=20?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=94=B6=E6=96=99=20=E4=B8=8A=E6=9E=B6--?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=A1=BA=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../issue/issueJobMain/issueJobMain.data.ts | 2 - .../issueRecordMain/issueRecordMain.data.ts | 280 +++++++++++++----- .../issueRequestMain/issueRequestMain.data.ts | 11 +- .../productionreceiptJobMain.data.ts | 4 +- .../productionreceiptRecordMain.data.ts | 250 ++++++++++++---- .../repleinshRecordMain.data.ts | 196 +++++++++--- .../repleinshRequestMain.data.ts | 8 +- .../putawayRecordMain.data.ts | 16 +- 8 files changed, 578 insertions(+), 189 deletions(-) diff --git a/src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts b/src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts index 37126a53c..4358a6a89 100644 --- a/src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts +++ b/src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts @@ -140,7 +140,6 @@ export const IssueJobMain = useCrudSchemas(reactive([ label: '生产线代码', field: 'detailProductionLineCode', sort: 'custom', - isSearch: true, table: { width: 150 }, @@ -150,7 +149,6 @@ export const IssueJobMain = useCrudSchemas(reactive([ label: '工位代码', field: 'detailWorkStationCode', sort: 'custom', - isSearch: true, table: { width: 150 }, diff --git a/src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts b/src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts index 96b413cba..8b5e1d6ca 100644 --- a/src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts +++ b/src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts @@ -13,8 +13,21 @@ export const IssueRecordMain = useCrudSchemas(reactive([ width: 180, fixed: 'left' }, + sortSearchDefault:1, isSearch: true }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:1, + }, { label: '申请单号', field: 'requestNumber', @@ -22,7 +35,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true + isTable: false, }, { label: '任务单号', @@ -31,7 +44,16 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true + isTable: false, + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, }, { label: '车间代码', @@ -40,6 +62,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '出库事务类型', @@ -48,6 +71,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '入库事务类型', @@ -56,6 +80,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '执行时间', @@ -68,6 +93,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -84,6 +110,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ detail: { dateFormat: 'YYYY-MM-DD' }, + isTable: false, sort: 'custom', table: { width: 180 @@ -109,6 +136,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -129,6 +157,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -145,13 +174,14 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '接口类型', field: 'interfaceType', dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -164,6 +194,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '备注', @@ -172,6 +203,16 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, }, { label: '创建时间', @@ -184,6 +225,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -193,14 +235,6 @@ export const IssueRecordMain = useCrudSchemas(reactive([ } }, }, - { - label: '创建者', - field: 'creator', - sort: 'custom', - table: { - width: 150 - }, - }, // { // label: '代码', // field: 'code', @@ -216,13 +250,14 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '从库区类型范围', field: 'fromAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -231,6 +266,9 @@ export const IssueRecordMain = useCrudSchemas(reactive([ { label: '从库区代码范围', field: 'fromAreaCodes', + dictType: DICT_TYPE.AREA_TYPE, + dictClass: 'string', + isTable: false, sort: 'custom', table: { width: 150 @@ -243,13 +281,14 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '到库区类型范围', field: 'toAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -262,13 +301,14 @@ export const IssueRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '使用在途库', field: 'useOnTheWayLocation', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -287,8 +327,7 @@ export const IssueRecordMain = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -302,6 +341,24 @@ export const IssueRecordMain = useCrudSchemas(reactive([ } } }, + { + label: '包装号', // 子表数据 只是为了展示 + field: 'fromPackingNumber', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:6, + }, + { + label: '批次', // 子表数据 只是为了展示 + field: 'fromBatch', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:5, + }, ])) //表单校验 @@ -361,127 +418,160 @@ export const IssueRecordMainRules = reactive({ */ export const IssueRecordDetail = useCrudSchemas(reactive([ { - label: '生产线代码', - field: 'productionLineCode', + label: '从包装号', + field: 'fromPackingNumber', sort: 'custom', table: { width: 150 }, + isSearch: true, + hiddenInMain: true }, { - label: '工位代码', - field: 'workStationCode', + label: '到包装号', + field: 'toPackingNumber', sort: 'custom', table: { width: 150 }, + isSearch: true, + hiddenInMain: true }, { - label: '在途库库位', - field: 'onTheWayLocationCode', + label: '包装规格', + field: 'packUnit', sort: 'custom', table: { width: 150 }, + sortTableDefault:8, }, { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + label: '包装数量', + field: 'packQty', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:8, + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, dictClass: 'string', isTable: true, sort: 'custom', table: { width: 150 }, + sortTableDefault:9, }, { - label: '供应商代码', - field: 'supplierCode', + label: '从批次', + field: 'fromBatch', sort: 'custom', table: { width: 150 }, + sortSearchDefault:3, + isSearch: true, + hiddenInMain: true }, { - label: '从货主代码', - field: 'fromOwnerCode', + label: '到批次', + field: 'toBatch', sort: 'custom', table: { width: 150 }, + sortSearchDefault:4, + isSearch: true, + hiddenInMain: true }, { - label: '到货主代码', - field: 'toOwnerCode', + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isTable: true, sort: 'custom', table: { width: 150 }, }, { - label: '从包装号', - field: 'fromPackingNumber', + label: '采购订单号', + field: 'poNumber', sort: 'custom', table: { width: 150 }, + sortTableDefault:2, }, { - label: '到包装号', - field: 'toPackingNumber', + label: '订单行', + field: 'poLine', sort: 'custom', table: { width: 150 }, + sortTableDefault:3, }, { - label: '从器具号', - field: 'fromContainerNumber', + label: '生产线代码', + field: 'productionLineCode', sort: 'custom', table: { width: 150 }, + isTable:false }, { - label: '到器具号', - field: 'toContainerNumber', + label: '工位代码', + field: 'workStationCode', sort: 'custom', table: { width: 150 }, + isTable:false }, { - label: '从批次', - field: 'fromBatch', + label: '在途库库位', + field: 'onTheWayLocationCode', sort: 'custom', table: { width: 150 }, + isTable:false }, + { - label: '到批次', - field: 'toBatch', + label: '供应商代码', + field: 'supplierCode', sort: 'custom', table: { width: 150 }, + isTable:false, }, { - label: '从库位代码', - field: 'fromLocationCode', + label: '从货主代码', + field: 'fromOwnerCode', sort: 'custom', table: { width: 150 }, + hiddenInMain:true, }, { - label: '到库位代码', - field: 'toLocationCode', + label: '从库位代码', + field: 'fromLocationCode', sort: 'custom', table: { width: 150 }, + isSearch: true, }, { label: '从库位组代码', @@ -490,23 +580,45 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { - label: '到库位组代码', - field: 'toLocationGroupCode', + label: '从库区代码', + field: 'fromAreaCode', sort: 'custom', table: { width: 150 }, + hiddenInMain:true, }, { - label: '从库区代码', - field: 'fromAreaCode', + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + table: { + width: 150 + }, + hiddenInMain:true, + }, + { + label: '到库位代码', + field: 'toLocationCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '到库位组代码', + field: 'toLocationGroupCode', sort: 'custom', table: { width: 150 }, + hiddenInMain:true, }, + { label: '到库区代码', field: 'toAreaCode', @@ -514,6 +626,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '单据号', @@ -522,6 +635,8 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, + }, { label: '物料代码', @@ -530,22 +645,28 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, + sortSearchDefault:2, + sortTableDefault:4, }, { - label: '备注', - field: 'remark', + label: '物料名称', + field: 'itemName', sort: 'custom', table: { width: 150 }, + sortTableDefault:4, }, { - label: '创建者', - field: 'creator', + label: '备注', + field: 'remark', sort: 'custom', table: { width: 150 }, + hiddenInMain:true, + }, { label: '创建时间', @@ -558,6 +679,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, form: { component: 'DatePicker', componentProps: { @@ -568,12 +690,13 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ }, }, { - label: '物料名称', - field: 'itemName', + label: '创建者', + field: 'creator', sort: 'custom', table: { width: 150 }, + hiddenInMain:true, }, { label: '物料描述1', @@ -582,6 +705,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '物料描述2', @@ -590,6 +714,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '项目代码', @@ -598,6 +723,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '数量', @@ -606,18 +732,40 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, + }, { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', isTable: true, sort: 'custom', table: { width: 150 }, + hiddenInMain:true, + }, + { + label: '从器具号', + field: 'fromContainerNumber', + sort: 'custom', + table: { + width: 150 + }, + hiddenInMain:true, }, + { + label: '到器具号', + field: 'toContainerNumber', + sort: 'custom', + table: { + width: 150 + }, + hiddenInMain:true, + }, + // { // label: '代码', // field: 'code', @@ -626,17 +774,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive([ // width: 150 // }, // }, - { - label: '接口类型', - field: 'interfaceType', - dictType: DICT_TYPE.INTERFACE_TYPE, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - }, + // { // label: '任务明细ID', // field: 'jobDetailId', diff --git a/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts b/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts index 68a181041..0efea8921 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts +++ b/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts @@ -54,6 +54,7 @@ export const IssueRequestMain = useCrudSchemas(reactive([ }, isForm: false, isSearch: true, + sortSearchDefault:1, }, { label: '车间代码', @@ -85,7 +86,6 @@ export const IssueRequestMain = useCrudSchemas(reactive([ field: 'status', dictType: DICT_TYPE.REQUEST_STATUS, dictClass: 'string', - isSearch: true, isForm:false, isTable: true, sort: 'custom', @@ -149,7 +149,6 @@ export const IssueRequestMain = useCrudSchemas(reactive([ field: 'fromAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isSearch: true, isTable:false, sort: 'custom', table: { @@ -283,7 +282,6 @@ export const IssueRequestMain = useCrudSchemas(reactive([ field: 'useOnTheWayLocation', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, isTable:false, sort: 'custom', table: { @@ -600,6 +598,8 @@ export const IssueRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, + sortSearchDefault:4, sortTableDefault:6, isTableForm: false, isForm: false, @@ -624,6 +624,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, sortTableDefault:5, sortSearchDefault:3, isTableForm: false, @@ -649,7 +650,9 @@ export const IssueRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, hiddenInMain:true, + sortSearchDefault:6, }, { label: '到库位代码', @@ -658,6 +661,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, isTable:false, sortSearchDefault:6, sortTableDefault:1100, @@ -671,6 +675,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch:true, sortSearchDefault:2, sortTableDefault:3, tableForm:{ diff --git a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts index 7aa47aac0..590a3eeec 100644 --- a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts +++ b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts @@ -13,6 +13,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ width: 180, fixed: 'left' }, + sortSearchDefault:1, isSearch: true, }, { @@ -23,7 +24,6 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ width: 180 }, isTable: false, - isSearch: true, }, { label: '车间代码', @@ -99,7 +99,6 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'status', dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', - isSearch: true, isTable: true, sort: 'custom', table: { @@ -348,7 +347,6 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'useOnTheWayLocation', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, isTable: false, sort: 'custom', table: { diff --git a/src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts b/src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts index b1799c14d..5cdc61cf4 100644 --- a/src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts +++ b/src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts @@ -13,8 +13,21 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive width: 180, fixed: 'left' }, + sortSearchDefault:1, isSearch: true }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:1, + }, { label: '发料记录单号', field: 'issueRecordNumber', @@ -22,7 +35,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 180 }, - isSearch: true + isTable: false, }, { label: '任务单号', @@ -31,7 +44,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 180 }, - isSearch: true + isTable: false, }, { label: '车间代码', @@ -40,6 +53,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '出库事务类型', @@ -48,6 +62,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '入库事务类型', @@ -56,6 +71,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '执行时间', @@ -68,6 +84,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -84,6 +101,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive detai: { dateFormat: 'YYYY-MM-DD' }, + isTable: false, sort: 'custom', table: { width: 180 @@ -109,6 +127,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -129,6 +148,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -145,13 +165,14 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '接口类型', field: 'interfaceType', dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -164,6 +185,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '备注', @@ -172,6 +194,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '创建者', @@ -180,6 +203,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '创建时间', @@ -192,6 +216,7 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -208,26 +233,31 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { - label: '从库区类型范围', - field: 'fromAreaTypes', + label: '从库区代码范围', + field: 'fromAreaCodes', + sort: 'custom', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, - sort: 'custom', table: { width: 150 }, + isTable: false, }, { - label: '从库区代码范围', - field: 'fromAreaCodes', + label: '从库区类型范围', + field: 'fromAreaTypes', + dictType: DICT_TYPE.AREA_TYPE, + dictClass: 'string', + isTable: false, sort: 'custom', table: { width: 150 }, }, + { label: '到仓库代码', field: 'toWarehouseCode', @@ -235,13 +265,14 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { label: '到库区类型范围', field: 'toAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -254,13 +285,14 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive table: { width: 150 }, + isTable: false, }, { - label: '使用在途库', - field: 'useOnTheWayLocation', + label: '是否可用', + field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -275,12 +307,11 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive } }, { - label: '是否可用', - field: 'available', + label: '使用在途库', + field: 'useOnTheWayLocation', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -293,7 +324,25 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive activeValue: 'TRUE' } } - } + }, + { + label: '包装号', // 子表数据 只是为了展示 + field: 'fromPackingNumber', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:6, + }, + { + label: '批次', // 子表数据 只是为了展示 + field: 'fromBatch', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:5, + }, ])) //表单校验 @@ -353,44 +402,54 @@ export const ProductionreceiptRecordMainRules = reactive({ */ export const ProductionreceiptRecordDetail = useCrudSchemas(reactive([ { - label: '生产线代码', - field: 'productionLineCode', + label: '从包装号', + field: 'fromPackingNumber', sort: 'custom', table: { width: 150 }, + isSearch: true, + hiddenInMain: true }, { - label: '工位代码', - field: 'workStationCode', + label: '到包装号', + field: 'toPackingNumber', sort: 'custom', table: { width: 150 }, + isSearch: true, + hiddenInMain: true }, { - label: '在途库库位', - field: 'onTheWayLocationCode', + label: '包装规格', + field: 'packUnit', sort: 'custom', table: { width: 150 }, + sortTableDefault:8, }, { - label: '从包装号', - field: 'fromPackingNumber', + label: '包装数量', + field: 'packQty', sort: 'custom', table: { width: 150 }, + sortTableDefault:8, }, { - label: '到包装号', - field: 'toPackingNumber', + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, sort: 'custom', table: { width: 150 }, + sortTableDefault:9, }, { label: '从批次', @@ -399,6 +458,9 @@ export const ProductionreceiptRecordDetail = useCrudSchemas(reactive([ width: 180, fixed: 'left' }, + sortSearchDefault:1, isSearch: true }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:1, + }, { label: '申请单号', field: 'requestNumber', @@ -22,7 +35,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true + isTable: false, }, { label: '任务单号', @@ -31,7 +44,16 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true + isTable: false, + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, }, { label: '出库事务类型', @@ -40,6 +62,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '入库事务类型', @@ -48,6 +71,8 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, + }, { label: '执行时间', @@ -60,6 +85,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -76,6 +102,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ detail: { dateFormat: 'YYYY-MM-DD' }, + isTable: false, sort: 'custom', table: { width: 180 @@ -101,6 +128,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -121,6 +149,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -137,13 +166,14 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '接口类型', field: 'interfaceType', dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -156,6 +186,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '备注', @@ -164,6 +195,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '创建者', @@ -172,6 +204,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '创建时间', @@ -184,6 +217,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable: false, form: { component: 'DatePicker', componentProps: { @@ -208,6 +242,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '从库区代码范围', @@ -216,13 +251,14 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '从库区类型范围', field: 'fromAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -235,13 +271,14 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '到库区类型范围', field: 'toAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -254,14 +291,14 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, }, { label: '是否可用', field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -275,6 +312,24 @@ export const RepleinshRecordMain = useCrudSchemas(reactive([ } } }, + { + label: '包装号', // 子表数据 只是为了展示 + field: 'fromPackingNumber', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:6, + }, + { + label: '批次', // 子表数据 只是为了展示 + field: 'fromBatch', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:5, + }, ])) //表单校验 @@ -340,6 +395,8 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, + hiddenInMain: true }, { label: '到包装号', @@ -348,6 +405,38 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, + hiddenInMain: true + }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:8, + }, + { + label: '包装数量', + field: 'packQty', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:8, + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:9, }, { label: '从批次', @@ -356,6 +445,9 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortSearchDefault:3, + isSearch: true, + hiddenInMain: true }, { label: '到批次', @@ -364,6 +456,9 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortSearchDefault:4, + isSearch: true, + hiddenInMain: true }, { label: '库存状态', @@ -376,6 +471,24 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '采购订单号', + field: 'poNumber', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:2, + }, + { + label: '订单行', + field: 'poLine', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:3, + }, { label: '从货主代码', field: 'fromOwnerCode', @@ -383,6 +496,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '从库位代码', @@ -391,6 +505,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, }, { label: '从库位组代码', @@ -399,6 +514,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '从库区代码', @@ -407,6 +523,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '到货主代码', @@ -415,6 +532,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '到库位代码', @@ -423,6 +541,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, }, { label: '到库位组代码', @@ -431,6 +550,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '到库区代码', @@ -439,6 +559,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '单据号', @@ -447,6 +568,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, }, { label: '物料代码', @@ -455,6 +577,18 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, + sortSearchDefault:2, + sortTableDefault:4, + }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:4, }, { label: '备注', @@ -463,6 +597,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '创建时间', @@ -475,6 +610,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, form: { component: 'DatePicker', componentProps: { @@ -491,14 +627,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, - }, - { - label: '物料名称', - field: 'itemName', - sort: 'custom', - table: { - width: 150 - }, + hiddenInMain:true, }, { label: '物料描述1', @@ -507,6 +636,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '物料描述2', @@ -515,6 +645,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '项目代码', @@ -523,6 +654,7 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '数量', @@ -531,29 +663,19 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, form: { component: 'InputNumber', } }, - { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '代码', - field: 'code', - sort: 'custom', - table: { - width: 150 - }, - }, + // { + // label: '代码', + // field: 'code', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, { label: '接口类型', field: 'interfaceType', @@ -564,6 +686,8 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, + }, // { // label: '任务明细ID', @@ -580,6 +704,8 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, + }, { label: '到器具号', @@ -588,6 +714,8 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, + }, ])) diff --git a/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts b/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts index 55ec5f36c..b3ab53b53 100644 --- a/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts +++ b/src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts @@ -52,7 +52,6 @@ export const RepleinshRequestMain = useCrudSchemas(reactive([ field: 'status', dictType: DICT_TYPE.REQUEST_STATUS, dictClass: 'string', - isSearch: true, isForm:false, isTable: true, sort: 'custom', @@ -77,7 +76,6 @@ export const RepleinshRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, - isSearch: true, isForm: false, }, { @@ -475,7 +473,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive([ width: 150 }, hiddenInMain:true, - sortSearchDefault:6, + sortSearchDefault:1000, + isSearch: true, sortTableDefault:1100, form: { // labelMessage: '信息提示说明!!!', @@ -560,6 +559,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, }, { label: '单据号', @@ -583,6 +583,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch:true, + sortSearchDefault:2, sortTableDefault:3, form: { // labelMessage: '信息提示说明!!!', diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts index 39a2b2d4e..a98fc71f9 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts @@ -63,7 +63,6 @@ export const PutawayRecordMain = useCrudSchemas(reactive([ width: 150 }, isTable: false, - }, { label: '入库事务类型', @@ -249,6 +248,8 @@ export const PutawayRecordMain = useCrudSchemas(reactive([ label: '从库区代码范围', field: 'fromAreaCodes', sort: 'custom', + dictType: DICT_TYPE.AREA_TYPE, + dictClass: 'string', table: { width: 150 }, @@ -669,18 +670,7 @@ export const PutawayRecordDetail = useCrudSchemas(reactive([ component: 'InputNumber', } }, - { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - hiddenInMain:true, - }, + // { // label: '代码', // field: 'code', From 0e1f24ce9d0a78a41da3fdd22e9213df79ac685c Mon Sep 17 00:00:00 2001 From: zhousq Date: Sun, 28 Apr 2024 10:07:49 +0800 Subject: [PATCH 3/8] =?UTF-8?q?2024-04-28=20=E6=96=B0=E5=BB=BA=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=A4=84=E7=90=86=E7=9A=84searcheTable=E6=A8=A1?= =?UTF-8?q?=E7=89=88=EF=BC=8C=E5=B9=B6=E4=BF=AE=E6=AD=A3=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/productOffline/index.ts | 4 +- src/components/SearchTable/index.ts | 2 +- src/components/SearchTableV2/index.ts | 3 + .../SearchTableV2/src/SearchTableV2.vue | 187 ++++++++++++++++++ .../mes/orderDay/components/BasicFormV2.vue | 2 +- 5 files changed, 194 insertions(+), 4 deletions(-) create mode 100644 src/components/SearchTableV2/index.ts create mode 100644 src/components/SearchTableV2/src/SearchTableV2.vue diff --git a/src/api/mes/productOffline/index.ts b/src/api/mes/productOffline/index.ts index c5434f931..8d504ad7e 100644 --- a/src/api/mes/productOffline/index.ts +++ b/src/api/mes/productOffline/index.ts @@ -64,8 +64,8 @@ export const getworkSchedulingPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/mes/work-scheduling/senior', data }) + return await request.post({ url: '/mes/workScheduling/senior', data }) } else { - return await request.get({ url: `/mes/work-scheduling/page`, params }) + return await request.get({ url: `/mes/workScheduling/page`, params }) } } diff --git a/src/components/SearchTable/index.ts b/src/components/SearchTable/index.ts index 28289593f..4293a0555 100644 --- a/src/components/SearchTable/index.ts +++ b/src/components/SearchTable/index.ts @@ -1,3 +1,3 @@ import SearchTable from './src/SearchTable.vue' -export { SearchTable } +export { SearchTable} diff --git a/src/components/SearchTableV2/index.ts b/src/components/SearchTableV2/index.ts new file mode 100644 index 000000000..655979c12 --- /dev/null +++ b/src/components/SearchTableV2/index.ts @@ -0,0 +1,3 @@ +import SearchTable from './src/SearchTableV2.vue' + +export { SearchTable } diff --git a/src/components/SearchTableV2/src/SearchTableV2.vue b/src/components/SearchTableV2/src/SearchTableV2.vue new file mode 100644 index 000000000..cfee305e9 --- /dev/null +++ b/src/components/SearchTableV2/src/SearchTableV2.vue @@ -0,0 +1,187 @@ + + + \ No newline at end of file diff --git a/src/views/mes/orderDay/components/BasicFormV2.vue b/src/views/mes/orderDay/components/BasicFormV2.vue index 6c9c1b02c..8715c9abb 100644 --- a/src/views/mes/orderDay/components/BasicFormV2.vue +++ b/src/views/mes/orderDay/components/BasicFormV2.vue @@ -23,7 +23,7 @@