From e3d71cf5a4200b0daccd1232e965dc443cfa0bec Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:33:39 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=BD=AC=E7=A7=BB?= =?UTF-8?q?=E6=8C=89=E6=89=B9=E6=AC=A1=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymove/inventorymoveRequestMainMOVE/index.vue | 7 ++++--- .../supplierdeliver/supplierdeliverRequestMain/index.vue | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue index 0309cf776..66c9118a3 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue @@ -339,6 +339,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => locationCode: val[0][searchField] }).then((res) => { toManagementPrecision.value = res[0].ManagementPrecision + row.toManagementPrecision = toManagementPrecision.value }) if (toManagementPrecision.value == 'BY_BATCH') { if(row['fromBatch']==''){ @@ -704,10 +705,10 @@ const submitForm = async (formType, submitData) => { message.warning('从库位和到库位不能相同') return } - let batchList = tableData.value.filter(item=>item.toBatchFormItemType&&item.toBatchFormItemType == 'FormDate') - let noBatch = batchList.some(item => !item.toBatch) + let batchList = tableData.value.filter(item=>item.fromBatchFormItemType&&item.fromBatchFormItemType == 'FormDate' && item.toManagementPrecision == 'BY_BATCH') + let noBatch = batchList.find(item => !item.fromBatch) if(noBatch){ - message.warning('请选择到批次') + message.warning(`${noBatch.itemCode}没有填写批次,请填写`) return } data.subList = tableData.value // 拼接子表数据参数 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 963d0b55f..968e7311b 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -1079,15 +1079,15 @@ const genRecords = async (id: number) => { }) // 发起处理 SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) - .then((res) => { + .then(async (res) => { console.log('res',res) message.success(t('ts.处理成功!')) // 刷新列表 - getList() + await getList() getLoading?.close() // 单据打印 - handleDocumentPrint(res,id) + await handleDocumentPrint(res,id) }) .catch((err) => { getLoading?.close() @@ -1243,7 +1243,8 @@ const print = async () => { const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + getAccessToken()) // 物料状态是号试显示生准订单的发货单模版 const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken()) -const handleDocumentPrint = async (id,stausId) => { +const handleDocumentPrint = async (id, stausId) => { + debugger await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => { if (res) { //号试(生准订单)模板 From 421d6890c456428ed01074cb800405f117741793 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:37:58 +0800 Subject: [PATCH 02/12] =?UTF-8?q?YT-1411=E9=A1=BA=E5=BC=95=E5=93=81?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E8=AE=B0=E5=BD=95=EF=BC=8C=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E4=BD=8F=E6=98=8E=E7=BB=86=E4=B8=AD=E5=8E=BB=E6=8E=89=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=A6=82=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliverRecordMain/deliverRecordMain.data.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts index 7cb520ca5..ed303f706 100644 --- a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts @@ -110,6 +110,7 @@ export const DeliverRecordMain = useCrudSchemas( }, isTable: false, isForm: false, + isDetail: false, }, { label: '承运商', @@ -120,6 +121,7 @@ export const DeliverRecordMain = useCrudSchemas( }, isTable: false, isForm: false, + isDetail: false, }, { label: '运输方式', @@ -131,6 +133,7 @@ export const DeliverRecordMain = useCrudSchemas( }, isTable: false, isForm: false, + isDetail: false, }, { label: '车牌号', @@ -141,6 +144,7 @@ export const DeliverRecordMain = useCrudSchemas( }, isTable: false, isForm: false, + isDetail: false, }, { label: '申请时间', From 7a99e48b679eb915d04c7378016a604e76c95a0d Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:40:18 +0800 Subject: [PATCH 03/12] =?UTF-8?q?YT-1409WMS=20=E8=AE=A1=E5=88=92=E5=A4=96?= =?UTF-8?q?=E5=85=A5=E5=BA=93=20=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=B8=A6=E5=87=BA=E7=9A=84=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E6=AD=A3=E7=A1=AE=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=98=AF=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unplannedreceiptRequestMain.data.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts index c553107f7..e82223e60 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts @@ -1561,9 +1561,11 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive Date: Sat, 30 Nov 2024 09:48:11 +0800 Subject: [PATCH 04/12] =?UTF-8?q?YT-1395=E5=BA=93=E5=AD=98=E8=BD=AC?= =?UTF-8?q?=E7=A7=BB=EF=BC=8C=E7=BC=96=E8=BE=91=EF=BC=8C=E4=BB=8E=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E4=BB=A3=E7=A0=81=E5=BA=94=E4=B8=8D=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRequestMainMOVE/index.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue index 66c9118a3..4691a4d5f 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue @@ -569,7 +569,24 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const formRef = ref() -const openForm =async (type: string, row?: number) => { +const openForm = async (type: string, row?: number) => { + if (type == 'create') { + InventorymoveRequestMain.allSchemas.formSchema.forEach(item=>{ + if(item.field == 'fromWarehouseCode'){ + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + item.componentProps.disabled = false + } + }) + } else { + InventorymoveRequestMain.allSchemas.formSchema.forEach(item=>{ + if(item.field == 'fromWarehouseCode'){ + item.componentProps.enterSearch = false + item.componentProps.isSearchList = false + item.componentProps.disabled = true + } + }) + } tableData.value = [] // 重置明细数据 formRef.value.open(type, row) } From 124af19f4c9eea87d70dd2151cdef5b848e3d684 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:51:16 +0800 Subject: [PATCH 05/12] =?UTF-8?q?YT-1394=E5=BA=93=E5=AD=98=E8=BD=AC?= =?UTF-8?q?=E7=A7=BB=E7=94=B3=E8=AF=B7=EF=BC=8C=E6=98=8E=E7=BB=86=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E3=80=81=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=BA=94=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymove/inventorymoveRequestMainMOVE/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue index 4691a4d5f..8e13ddb3c 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue @@ -74,6 +74,9 @@ :apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail" @searchTableSuccessDetail="searchTableSuccessDetail" @detailOpenForm="detailOpenForm" + :detailButtonIsShowAdd="false" + :detailButtonIsShowEdit="false" + :detailButtonIsShowDelete="false" /> From 55c478452d78b150667ff348eae7c784853e9df8 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:53:03 +0800 Subject: [PATCH 06/12] =?UTF-8?q?YT-1393=E5=8F=91=E6=96=99=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=98=8E=E7=BB=86=E4=B8=AD=E4=B8=8D=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=9C=89=E6=96=B0=E5=A2=9E=EF=BC=8C=E7=BC=96=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/issueManage/issue/issueRequestMain/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index 068e4172b..ce8435fea 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -86,6 +86,9 @@ :apiDelete="IssueRequestDetailApi.deleteIssueRequestDetail" @searchTableSuccessDetail="searchTableSuccessDetail" :detailValidate="detailValidate" + :detailButtonIsShowAdd="false" + :detailButtonIsShowEdit="false" + :detailButtonIsShowDelete="false" /> From ae713a597057d60da86860ac487687357a379b4b Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:55:35 +0800 Subject: [PATCH 07/12] =?UTF-8?q?YT-1392=E5=8F=91=E6=96=99=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=BA=BF=E4=BB=A3=E7=A0=81=E5=92=8C=E5=B7=A5=E4=BD=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=8D=E5=BA=94=E8=AF=A5=E5=8F=AF=E4=BB=A5=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../issueManage/issue/issueRequestMain/index.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index ce8435fea..3d7d13528 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -429,6 +429,14 @@ const openForm =async (type: string, row?: number) => { itemColumns.componentProps.isSearchList = false itemColumns.componentProps.disabled = true } + if(itemColumns.field == 'productionLineCode') { + itemColumns.componentProps.isSearchList = false + itemColumns.componentProps.disabled = true + } + if(itemColumns.field == 'workStationCode') { + itemColumns.componentProps.isSearchList = false + itemColumns.componentProps.disabled = true + } }) } else { // 修改 tableform 属性 @@ -437,6 +445,14 @@ const openForm =async (type: string, row?: number) => { itemColumns.componentProps.isSearchList = true itemColumns.componentProps.disabled = false } + if(itemColumns.field == 'productionLineCode') { + itemColumns.componentProps.isSearchList = true + itemColumns.componentProps.disabled = false + } + if(itemColumns.field == 'workStationCode') { + itemColumns.componentProps.isSearchList = true + itemColumns.componentProps.disabled = false + } }) } formRef.value.open(type, row) From 611dcea0d4145296b97c4efe9fc090d7a8ac7b05 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:57:58 +0800 Subject: [PATCH 08/12] =?UTF-8?q?YT-1385=E7=94=9F=E4=BA=A7=E9=80=80?= =?UTF-8?q?=E6=96=99=E7=94=B3=E8=AF=B7=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E4=B8=AD=E6=A0=87=E7=AD=BE=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=92=8C=E6=A0=87=E7=AD=BE=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=AD=97=E6=AE=B5=E5=BA=94=E8=AF=A5=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=BF=85=E5=A1=AB=E9=A1=B9=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMain.data.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts index fed75d689..ebd29e5b7 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts @@ -1667,12 +1667,12 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive Date: Sat, 30 Nov 2024 10:36:14 +0800 Subject: [PATCH 09/12] =?UTF-8?q?YT-1415=E8=AE=A1=E5=88=92=E5=A4=96?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E7=94=B3=E8=AF=B7=EF=BC=8C=E6=B2=A1=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=A0=87=E7=AD=BE=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E4=B8=8D=E5=85=81=E8=AE=B8=E6=8F=90=E4=BA=A4=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=EF=BC=8C=E7=82=B9=E5=87=BB=E6=8F=90=E4=BA=A4=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E5=BA=94=E8=AF=A5=E7=BB=99=E5=87=BA=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=EF=BC=8C=E7=9B=AE=E5=89=8D=E6=B2=A1=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=A0=87=E7=AD=BE=E5=8F=AF=E4=BB=A5=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=88=90=E5=8A=9F=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=95=B0=E6=8D=AE=E6=B2=A1=E6=9C=89=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unplannedreceiptRequestMain/index.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index 18c4a5a4c..6437a5922 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -453,7 +453,7 @@ const buttonTableClick = async (val, row) => { handleReAdd(row.masterId) } else if (val == 'mainSubmit') { // 提交审批 console.log('列表-操作按钮事件-提交审批') - handleSubmit(row.masterId) + handleSubmit(row) } else if (val == 'mainTurnDown') { // 驳回 console.log('列表-操作按钮事件-驳回') handleRefused(row.masterId) @@ -588,11 +588,24 @@ const handleReAdd = async (id: number) => { } /** 提交按钮操作 */ -const handleSubmit = async (id: number) => { +const handleSubmit = async (row:any) => { + // 判断 是否已创建标签 + let isCreateLabel = false + await PackageApi.getPackagePage({ + requestNumber: row.number + }).then(res => { + if (res) { + if (res.list.length > 0) isCreateLabel = true + } + }) + if (!isCreateLabel) { + message.warning('还没有创建标签!!!') + return + } await message.confirm(t('common.confirmSubmit')) tableObject.loading = true try{ - await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(id) + await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(row.masterId) message.success(t('common.submitSuccess')) tableObject.loading = false buttonBaseClick('refresh',null) From dcac54dbc8c3065ce910293d7885810e97faf067 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 10:55:58 +0800 Subject: [PATCH 10/12] =?UTF-8?q?YT-1391WMS=20=E6=8A=A5=E5=BA=9F=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E7=9B=AE=E5=89=8D=E6=B2=A1=E6=9C=89=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B=E7=AD=9B=E9=80=89=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=8C=E5=BA=94=E8=AF=A5=E8=B5=B0=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scrap/scrapRequestMain/scrapRequestMain.data.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts index df71709a2..8002b9d5d 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts @@ -27,6 +27,9 @@ import * as QadProjectApi from '@/api/wms/qadProject' import * as SubjectAccountApi from '@/api/wms/subjectAccount' import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' +import * as BusinesstypeApi from '@/api/wms/businesstype' + + const { t } = useI18n() // 国际化 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 @@ -41,6 +44,10 @@ const requestsettingData = data?.list[0] || {} // 获取当前操作人的部门 import { useUserStore } from '@/store/modules/user' import { TableColumn } from '@/types/table' + +const Scrap = await BusinesstypeApi.getBusinesstypeCode("Scrap") +console.log(8787,Scrap) + const userStore = useUserStore() const userDept = userStore.userSelfInfo.dept // id 转str 否则form回显匹配不到 @@ -637,7 +644,7 @@ export const ScrapRequestMain = useCrudSchemas( }, { key: 'type', - value: 'SCRAP', + value: Scrap.outAreaTypes, isMainValue: false } ], @@ -670,7 +677,7 @@ export const ScrapRequestMain = useCrudSchemas( }, { key: 'type', - value: 'SCRAP', + value: Scrap.outAreaTypes, isMainValue: false } ], From df4bdec579121c5f4b5143ebf0f5658f93039736 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Sat, 30 Nov 2024 11:17:37 +0800 Subject: [PATCH 11/12] =?UTF-8?q?YT-1407:=20bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliver/deliverRecordMain/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue index e687b739a..a5ae5a1bc 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue @@ -185,7 +185,8 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 loadStart() - const excelTitle = ref(route.meta.title) + // const excelTitle = ref(route.meta.title) + const excelTitle = ref('非丰田补给品发货记录') const data = await DeliverRecordMainApi.exportDeliverRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { From 4ecf2612e4b61cbfbd0690b434752662ebc4a025 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 13:30:59 +0800 Subject: [PATCH 12/12] =?UTF-8?q?YT-1422WMS=20=E5=BA=93=E5=AD=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=AE=B0=E5=BD=95=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=88=A0?= =?UTF-8?q?=E6=8E=89=E5=A4=9A=E4=BA=8E=E7=9A=84=E5=8D=95=E6=8D=AE=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorychangeRecordMain.data.ts | 22 +++++++-------- .../inventorychangeRequestMain.data.ts | 28 +++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts index bb57a9d99..4e4544489 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts @@ -314,14 +314,14 @@ export const InventorychangeRecordMainRules = reactive({ * @returns {Array} 库存修改记录子表 */ export const InventorychangeRecordDetail = useCrudSchemas(reactive([ - { - label: '单据号', - field: 'number', - sort: 'custom', - table: { - width: 180 - }, - }, + // { + // label: '单据号', + // field: 'number', + // sort: 'custom', + // table: { + // width: 180 + // }, + // }, { label: '物料代码', field: 'itemCode', @@ -760,9 +760,9 @@ export const InventorychangeRecordDetailRules = reactive({ areaCode: [ { required: true, message: '请选择库区代码', trigger: 'change' } ], - number: [ - { required: true, message: '请输入单据号', trigger: 'blur' } - ], + // number: [ + // { required: true, message: '请输入单据号', trigger: 'blur' } + // ], itemCode: [ { required: true, message: '请选择物料代码', trigger: 'change' } ], diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index a13e66361..183985577 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -370,20 +370,20 @@ export const InventorychangeRequestMainRules = reactive({ * @returns {Array} 库存修改申请子表 */ export const InventorychangeRequestDetail = useCrudSchemas(reactive([ - { - label: '单据号', - field: 'number', - sort: 'custom', - table: { - width: 180 - }, - isTableForm: false, - form: { - componentProps: { - disabled: true - } - } - }, + // { + // label: '单据号', + // field: 'number', + // sort: 'custom', + // table: { + // width: 180 + // }, + // isTableForm: false, + // form: { + // componentProps: { + // disabled: true + // } + // } + // }, { label: '从包装号', field: 'fromPackingNumber',