From 50aa4dcf6f8816e45e7fdabf6d763c39c5cff915 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 13:34:30 +0800 Subject: [PATCH 01/23] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/package/index.ts | 5 +- .../purchasereceiptRequestMain/index.vue | 41 ++++++++--- .../purchasereceiptRequestMain.data.ts | 69 +++++++++++++++++++ .../supplierdeliverRequestMain.data.ts | 24 +++---- 4 files changed, 118 insertions(+), 21 deletions(-) diff --git a/src/api/wms/package/index.ts b/src/api/wms/package/index.ts index 4de2d428a..a69fd81c7 100644 --- a/src/api/wms/package/index.ts +++ b/src/api/wms/package/index.ts @@ -100,7 +100,10 @@ export const createPackageLabel = async (data: PackageVO) => { export const batchPrintingLable = async (data: any) => { return await request.post({ url: `/wms/package/batchPrintingLable`, data }) } - +// 获取标签信息 +export const getPrintingLableId = async (data: any) => { + return await request.put({ url: `/wms/package/getLablesByPackingNumber`, data }) +} // 批量打印标签 export const batchPrintingLableGet = async (params: any) => { return await request.get({ url: `/wms/package/batchPrintingBalanceLable`, params }) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 3275b32c4..d03385eba 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -168,7 +168,8 @@ import { PurchasereceiptRequestDetail, PurchasereceiptRequestDetailRules, PurchasereceiptRequestDetailLabel, - PurchasereceiptRequestDetailPackingNumber + PurchasereceiptRequestDetailPackingNumber, + PurchasereceiptRequestPackage } from './purchasereceiptRequestMain.data' import { SupplierdeliverRequestPackage @@ -559,7 +560,7 @@ const labelPrint = async (row) => { const { getList:getListPrint } = tableMethods await getListPrint() tableObject.loading = false - const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns + const tableColumns = PurchasereceiptRequestPackage.allSchemas.tableFormColumns tableColumns.forEach((item) => { item.width = item.table?.width }) @@ -580,14 +581,38 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + let array = [] + let array1 = [] + let packingNumbers = [] + val.forEach(item => { + packingNumbers.push(item.number) + if (item.itemType == '可采购') { + array.push(item) + } else if(item.itemType == '可制造') { + array1.push(item) + } + }) + if (array.length>0) { + // window.open('http://www.baidu.com') + // window.open('https://docs.pingcode.com/baike/3720496') + await PackageApi.getPrintingLableId({packingNumbers:packingNumbers}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + if (array1.length > 0) { + await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { console.log(res) window.open(src.value + '&asn_number=' + res) - }).catch(err => { - console.log(err) - message.error('创建标签失败') - }) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + } const updateTableData = (tableList)=>{ diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts index 976764562..fe14ae1ab 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts @@ -2555,3 +2555,72 @@ export const PurchasereceiptRequestDetailLabel = useCrudSchemas(reactive([ + + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + table: { + }, + tableForm: { + disabled: true + } + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + tableForm: { + type: 'FormDate', + format: 'YYYYMMDD', + valueFormat: 'YYYYMMDD', + } + }, + { + label: '包装号', + field: 'number', + sort: 'custom', + isSearch: true, + table: { + }, + tableForm: { + disabled: true + } + }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + tableForm: { + disabled: true + } + }, + { + label: '标包数量', + field: 'packQty', + sort: 'custom', + tableForm: { + disabled: true + } + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'Select' + }, + table: { + }, + tableForm: { + type: 'Select', + disabled: true + } + }, + +])) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts index bfc4ff495..ad3c3c283 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts @@ -1824,18 +1824,18 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive Date: Thu, 28 Nov 2024 13:42:49 +0800 Subject: [PATCH 02/23] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=AF=E9=87=87=E8=B4=AD=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceipt/purchasereceiptRequestMain/index.vue | 6 ++---- .../purchasereceiptRequestMain.data.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index d03385eba..54185fccc 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -581,8 +581,8 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - let array = [] - let array1 = [] + let array = []//存储可采购数据 + let array1 = []//存储可制造数据 let packingNumbers = [] val.forEach(item => { packingNumbers.push(item.number) @@ -593,8 +593,6 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r } }) if (array.length>0) { - // window.open('http://www.baidu.com') - // window.open('https://docs.pingcode.com/baike/3720496') await PackageApi.getPrintingLableId({packingNumbers:packingNumbers}).then(res => { console.log(res) window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts index fe14ae1ab..d80ef2409 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts @@ -2622,5 +2622,12 @@ export const PurchasereceiptRequestPackage = useCrudSchemas(reactive Date: Thu, 28 Nov 2024 14:14:14 +0800 Subject: [PATCH 03/23] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceipt/purchasereceiptRequestMain/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 54185fccc..75a56ea0c 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -584,8 +584,9 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r let array = []//存储可采购数据 let array1 = []//存储可制造数据 let packingNumbers = [] - val.forEach(item => { + val.forEach((item,index) => { packingNumbers.push(item.number) + if (item.itemType == '可采购') { array.push(item) } else if(item.itemType == '可制造') { @@ -610,7 +611,6 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r message.error('创建标签失败') }) } - } const updateTableData = (tableList)=>{ From c0bb52fd5a72a1b196229b8065950bf59fb609bb Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 14:24:15 +0800 Subject: [PATCH 04/23] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceipt/purchasereceiptRequestMain/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 75a56ea0c..b8829a5e9 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -589,12 +589,13 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r if (item.itemType == '可采购') { array.push(item) - } else if(item.itemType == '可制造') { + } + if (item.itemType == '可制造') { array1.push(item) } }) if (array.length>0) { - await PackageApi.getPrintingLableId({packingNumbers:packingNumbers}).then(res => { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { console.log(res) window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) }).catch(err => { @@ -603,7 +604,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r }) } if (array1.length > 0) { - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { console.log(res) window.open(src.value + '&asn_number=' + res) }).catch(err => { From 67c9100e2f4d14d90bd4cfa5e69ba5876acda146 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 14:56:30 +0800 Subject: [PATCH 05/23] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E7=94=B3=E8=AF=B7=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/unplannedreceiptRequestDetail/index.ts | 6 ++++++ .../unplannedreceiptRequestMain/index.vue | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/api/wms/unplannedreceiptRequestDetail/index.ts b/src/api/wms/unplannedreceiptRequestDetail/index.ts index f9268afab..99ab181a3 100644 --- a/src/api/wms/unplannedreceiptRequestDetail/index.ts +++ b/src/api/wms/unplannedreceiptRequestDetail/index.ts @@ -118,3 +118,9 @@ export const importTemplate = () => { export const updateDetailPackingNumber = async (id: number, number) => { return await request.put({ url: '/wms/unplannedreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number }) } + +// 创建包装信息后更新子表数据packingNumber +export const getDetailList = async (masterId: number) => { + return await request.get({ url: '/wms/unplannedreceipt-request-detail/listForLables?masterId=' + masterId }) +} + diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index d16b26a6e..bf9aa2d13 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -926,7 +926,19 @@ const tableFormSelectOnBlur = (field, val, row, index) => { const BASE_URL = getJmreportBaseUrl() const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken()) const labelPrint = async (row) => { - window.open(src.value + '&request_number=' + row.number) + await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then((res) => { + if (res.length > 0) { + const itemType = res.some(item=>item.itemType == '可采购') + const itemType1 = res.some(item => item.itemType == '可制造') + if (itemType) { + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + row.masterId) + } + if (itemType1) { + window.open(src.value + '&request_number=' + row.number) + } + } + }) + // window.open(src.value + '&request_number=' + row.number) } /** 初始化 **/ From 599aee28257fca5acb52fc5b56bea63c4bd5f97f Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 15:11:11 +0800 Subject: [PATCH 06/23] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unplannedreceipt/unplannedreceiptRequestMain/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index bf9aa2d13..18c4a5a4c 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -931,7 +931,7 @@ const labelPrint = async (row) => { const itemType = res.some(item=>item.itemType == '可采购') const itemType1 = res.some(item => item.itemType == '可制造') if (itemType) { - window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + row.masterId) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&request_number=' + row.number) } if (itemType1) { window.open(src.value + '&request_number=' + row.number) From 13fbf5a1fc824a33984f175017678649f89a9db7 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Thu, 28 Nov 2024 15:18:19 +0800 Subject: [PATCH 07/23] =?UTF-8?q?YT-1338:=E5=88=9B=E5=BB=BA=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8=E7=94=B3=E8=AF=B7=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9A=84=E4=BE=9B=E5=BA=94=E5=95=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=B8=A6=E4=B8=8D=E5=87=BA=E5=85=B3=E8=81=94=E7=9A=84?= =?UTF-8?q?=E7=B4=A2=E8=B5=94=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoice/supplierinvoiceRequestMain/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 3a1a6cade..8f967cdf1 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -934,6 +934,8 @@ const openForm = async (type: string, row?: any) => { item.value = defaultSupplierCode.value item.componentProps.isSearchList = true item.componentProps.disabled = false + claimDetailsList.value = []; + claimDetails(item.value); } // 订单类型 if (item.field == 'orderType') { From ed399ad4b744dd29530b34163fd7d7a89337a2a6 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Thu, 28 Nov 2024 15:38:42 +0800 Subject: [PATCH 08/23] =?UTF-8?q?YT-1343:=E8=A1=A5=E7=BB=99=E5=93=81?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=AE=A1=E5=88=92=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=94=9F=E4=BA=A7=E7=B1=BB=E5=9E=8B=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E5=8F=AA=E6=9C=89=E8=A1=A5=E7=BB=99=E5=93=81=EF=BC=9B?= =?UTF-8?q?=E5=8F=B7=E5=8F=A3=E7=94=9F=E4=BA=A7=E8=AE=A1=E5=88=92=E5=90=8C?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 1 - .../productionplan/productionMain/productionMain.data.ts | 4 ++++ .../productionMainAssemble/productionMainAssemble.data.ts | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index e0aeebd07..0c71124df 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -622,7 +622,6 @@ const opensearchTable = ( const _searchTableTitle = searchTitle const _searchTableAllSchemas = searchAllSchemas const _searchTablePage = searchPage - debugger searchTableRef.value.open( _searchTableTitle, _searchTableAllSchemas, diff --git a/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts b/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts index 76e26ea30..e6408c0b3 100644 --- a/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts +++ b/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts @@ -149,6 +149,10 @@ export const ProductionMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false + },{ + key: 'type', + value: 'predict', + isMainValue: false },{ key: 'workshopCode', value: 'workshop', diff --git a/src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts b/src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts index 7b43f9b8d..303c4db48 100644 --- a/src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts +++ b/src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts @@ -148,6 +148,10 @@ export const ProductionMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false + },{ + key: 'type', + value: 'assemble', + isMainValue: false },{ key: 'workshopCode', value: 'workshop', From b57a400ec555a4db4d0e412fbb15db731de45f13 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 15:40:25 +0800 Subject: [PATCH 09/23] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=80=80=E6=96=99?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMain/index.vue | 57 ++++++++++++++----- .../productionreturnRequestMain.data.ts | 9 ++- 2 files changed, 52 insertions(+), 14 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index 1549da33a..56db1ed92 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -704,20 +704,51 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { - console.log(res) - if (labelType.value == 'cg') { - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res) - } else { - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res) - } - }).catch(err => { - console.log(err) - message.error('创建标签失败') + let array = []//存储可采购数据 + let array1 = []//存储可制造数据 + let packingNumbers = [] + val.forEach((item,index) => { + packingNumbers.push(item.number) + + if (item.itemType == '可采购') { + array.push(item) + } + if (item.itemType == '可制造') { + array1.push(item) + } }) + if (array.length>0) { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + if (array1.length > 0) { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { + console.log(res) + const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + window.open(src.value + '&asn_number=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + // await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + // console.log(res) + // if (labelType.value == 'cg') { + // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+res) + // } else { + // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+res) + // } + // }).catch(err => { + // console.log(err) + // message.error('创建标签失败') + // }) } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts index 3e2a1d128..89ce5ec80 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts @@ -1724,6 +1724,13 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive Date: Thu, 28 Nov 2024 15:46:48 +0800 Subject: [PATCH 10/23] =?UTF-8?q?YT-1341=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E8=BF=9B=E5=AE=A2=E6=88=B7=E5=AF=B9=E8=B4=A6=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BBKHDZD20241128-0000000008=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E5=8F=B7=EF=BC=8C=E7=9C=8B=E6=98=8E=E7=BB=86=EF=BC=8C=E5=9C=88?= =?UTF-8?q?=E7=9A=84=E4=BF=A1=E6=81=AF=E6=98=AF=E7=A9=BA=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E8=BF=9B=E9=A1=B5=E9=9D=A2=E7=9C=8B=E5=B0=B1=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moldAllocation/customerStatement/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue index fb2dde87c..4f4f26c84 100644 --- a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue +++ b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue @@ -175,7 +175,7 @@ routeName.value = route.name const tableColumns = ref(CustomerStatementMain.allSchemas.tableColumns) const apiPage = ref(CustomerStatementDetailApi.getCustomerStatementDetailPage) -const DetailAllSchemas = ref(CustomerStatementShareReconciliation.allSchemas) +const DetailAllSchemas = ref(CustomerStatementDetail.allSchemas) const tabsExtend = ref(false) const tableObjectExtend = ref() From f5acd86afa39ec2a1dec5e07903cf63da0089467 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 15:55:28 +0800 Subject: [PATCH 11/23] =?UTF-8?q?=E5=8F=B7=E8=AF=95=E5=93=81=E5=8D=8F?= =?UTF-8?q?=E5=AE=9A=E5=93=81=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.vue | 54 ++++++++++++++----- .../toolPurchasereceiptRequestMain/index.vue | 51 ++++++++++++++---- 2 files changed, 83 insertions(+), 22 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue index 79e315e6a..adb90a59b 100644 --- a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue @@ -168,11 +168,11 @@ import { PurchasereceiptRequestDetail, PurchasereceiptRequestDetailRules, PurchasereceiptRequestDetailLabel, - PurchasereceiptRequestDetailPackingNumber - } from './purchasereceiptRequestMain.data' - import { - SupplierdeliverRequestPackage -} from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' + PurchasereceiptRequestDetailPackingNumber, +} from './purchasereceiptRequestMain.data' + import { + PurchasereceiptRequestPackage + } from '@/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data' import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data' import * as PackageApi from '@/api/wms/package' import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain' @@ -559,7 +559,7 @@ const labelPrint = async (row) => { const { getList:getListPrint } = tableMethods await getListPrint() tableObject.loading = false - const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns + const tableColumns = PurchasereceiptRequestPackage.allSchemas.tableFormColumns tableColumns.forEach((item) => { item.width = item.table?.width }) @@ -580,14 +580,44 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { +let array = []//存储可采购数据 + let array1 = []//存储可制造数据 + let packingNumbers = [] + val.forEach((item,index) => { + packingNumbers.push(item.number) + + if (item.itemType == '可采购') { + array.push(item) + } + if (item.itemType == '可制造') { + array1.push(item) + } + }) + if (array.length>0) { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + if (array1.length > 0) { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { console.log(res) window.open(src.value + '&asn_number=' + res) - }).catch(err => { - console.log(err) - message.error('创建标签失败') - }) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + // await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + // console.log(res) + // window.open(src.value + '&asn_number=' + res) + // }).catch(err => { + // console.log(err) + // message.error('创建标签失败') + // }) } const updateTableData = (tableList)=>{ diff --git a/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue index e7c898f97..f45d42b02 100644 --- a/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue @@ -170,9 +170,9 @@ import { PurchasereceiptRequestDetailLabel, PurchasereceiptRequestDetailPackingNumber } from './purchasereceiptRequestMain.data' - import { - SupplierdeliverRequestPackage -} from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' + import { + PurchasereceiptRequestPackage + } from '@/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data' import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data' import * as PackageApi from '@/api/wms/package' import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain' @@ -188,6 +188,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam' import { getReportUrl } from '@/utils/systemParam' import { dateFormatter2 } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' + const { loadStart, loadDone } = usePageLoading() // 协定品收货申请 defineOptions({ name: 'ToolPurchasereceiptRequestMain' }) @@ -559,7 +560,7 @@ const labelPrint = async (row) => { const { getList:getListPrint } = tableMethods await getListPrint() tableObject.loading = false - const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns + const tableColumns = PurchasereceiptRequestPackage.allSchemas.tableFormColumns tableColumns.forEach((item) => { item.width = item.table?.width }) @@ -580,14 +581,44 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { +let array = []//存储可采购数据 + let array1 = []//存储可制造数据 + let packingNumbers = [] + val.forEach((item,index) => { + packingNumbers.push(item.number) + + if (item.itemType == '可采购') { + array.push(item) + } + if (item.itemType == '可制造') { + array1.push(item) + } + }) + if (array.length>0) { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + if (array1.length > 0) { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { console.log(res) window.open(src.value + '&asn_number=' + res) - }).catch(err => { - console.log(err) - message.error('创建标签失败') - }) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + // await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + // console.log(res) + // window.open(src.value + '&asn_number=' + res) + // }).catch(err => { + // console.log(err) + // message.error('创建标签失败') + // }) } const updateTableData = (tableList)=>{ From 3e3472a0dd94a29224a3d2bf689767b5748fdcc0 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 16:01:10 +0800 Subject: [PATCH 12/23] =?UTF-8?q?=E8=A1=A5=E7=BB=99=E5=93=81=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptRequestMain/index.vue | 52 +++++++++++++++---- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index 038f9da7e..c5065f5ff 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -959,22 +959,52 @@ const searchTableSuccessLabel = async (formField, searchField, val, formRef, typ return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - - await PackageApi.batchPrintingLable(val.map((item1) => item1.number).join(',')) - .then((res) => { +let array = []//存储可采购数据 + let array1 = []//存储可制造数据 + let packingNumbers = [] + val.forEach((item,index) => { + packingNumbers.push(item.number) + + if (item.itemType == '可采购') { + array.push(item) + } + if (item.itemType == '可制造') { + array1.push(item) + } + }) + if (array.length>0) { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { console.log(res) - if (labelType.value == 'cg') { - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - window.open(src.value + '&asn_number=' + res) - } else { - const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) - window.open(src.value + '&asn_number=' + res) - } + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') }) - .catch((err) => { + } + if (array1.length > 0) { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { + const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + window.open(src.value + '&asn_number=' + res) + }).catch(err => { console.log(err) message.error('创建标签失败') }) + } + // await PackageApi.batchPrintingLable(val.map((item1) => item1.number).join(',')) + // .then((res) => { + // console.log(res) + // if (labelType.value == 'cg') { + // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + // window.open(src.value + '&asn_number=' + res) + // } else { + // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + // window.open(src.value + '&asn_number=' + res) + // } + // }) + // .catch((err) => { + // console.log(err) + // message.error('创建标签失败') + // }) } const getDefaultWorkshopCode = async () => { const data = await ConfigApi.getConfigPage({ From 8eb942ce266b526852e6d6d4bd8845c2bce3f671 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Thu, 28 Nov 2024 16:03:25 +0800 Subject: [PATCH 13/23] =?UTF-8?q?YT-1337=E6=96=B0=E5=A2=9E=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=85=88=E7=82=B9=E5=87=BB=E6=B7=BB=E5=8A=A0=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=97=B6=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=B7=E5=85=88=E9=80=89=E6=8B=A9=E4=BB=8E=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRequestMain.data.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts index 4845b1325..1ce815ca7 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts @@ -527,6 +527,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( searchTitle: '库存余额信息', searchAllSchemas: BalancePopWindow.allSchemas, searchPage: BalanceApi.selectLocationTypeToBalance, + searchCondition: [{ + key:'fromWarehouseCode', + value:'fromWarehouseCode', + message: '请填写生产线代码!', + isMainValue: true + },{ + key: 'available', + value: 'TRUE', + isMainValue: false + }], }, form: { // labelMessage: '信息提示说明!!!', @@ -537,6 +547,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( searchTitle: '库存余额信息', searchAllSchemas: BalancePopWindow.allSchemas, searchPage: BalanceApi.selectLocationTypeToBalance, + searchCondition: [{ + key:'fromWarehouseCode', + value:'fromWarehouseCode', + message: '请填写生产线代码!', + isMainValue: true + },{ + key: 'available', + value: 'TRUE', + isMainValue: false + }], } } }, From 6a589e1ad33525a1964a674f2972367211febdeb Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 28 Nov 2024 16:17:26 +0800 Subject: [PATCH 14/23] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E6=8A=A5?= =?UTF-8?q?=E5=BA=9F=E7=94=B3=E8=AF=B7=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymove/inventorymoveRequestMain/index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index 64e2c27e4..92c53e3cb 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -254,6 +254,12 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { if(item.field == 'itemCode') { if (fromInventoryStatus.value) { item.tableForm.searchCondition = [ + { + key:'fromWarehouseCode', + value:'fromWarehouseCode', + message: '请填写生产线代码!', + isMainValue: true + }, { key: 'businessType', value: businessType.value , @@ -268,6 +274,12 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { ] } else if (fromInventoryStatus.value == null) { item.tableForm.searchCondition = [ + { + key:'fromWarehouseCode', + value:'fromWarehouseCode', + message: '请填写生产线代码!', + isMainValue: true + }, { key: 'businessType', value: businessType.value , From 898b42ba51affe8f392bbbc7dcb36556ba8b82b9 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 16:17:56 +0800 Subject: [PATCH 15/23] =?UTF-8?q?=E5=8F=B7=E5=8F=A3=E5=93=81=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptRequestMain/index.vue | 15 +++++ .../productreceiptRequestMain.data.ts | 12 +++- .../index.vue | 56 ++++++++++++++----- 3 files changed, 67 insertions(+), 16 deletions(-) diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index c5065f5ff..b298c5ab3 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -195,6 +195,7 @@ import * as ConfigApi from '@/api/infra/config' import { usePageLoading } from '@/hooks/web/usePageLoading' import {exportProductreceiptRequestMainPredict} from "@/api/wms/productreceiptRequestMain"; import * as ItemPackageApi from "@/api/wms/itempackage"; +import * as ruleApi from '@/api/wms/rule/index' const { loadStart, loadDone } = usePageLoading() // 制品收货申请 // 预生产收货申请 @@ -481,6 +482,7 @@ const butttondata = (row, $index) => { ] } +let toManagementPrecision = ref('') // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { if (val == 'mainClose') { @@ -622,6 +624,19 @@ const buttonTableClick = async (val, row) => { return } }) + ruleApi.getManagementPrecision({ + itemCodes: [item['itemCode']], + locationCode: item.toLocationCode + }).then((res) => { + toManagementPrecision.value = res[0].ManagementPrecision + }) + if ( toManagementPrecision.value == 'BY_BATCH') { + // row['fromBatchFormItemType'] = 'FormDate' + row['disabled_batch'] = false + } else { + // row['fromBatchFormItemType'] = '' + row['disabled_batch'] = true + } }) } else if (val == 'mainHandle') { // 处理 diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts index d55e555f8..f9eb22309 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts @@ -1727,8 +1727,11 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive( width: 150 }, tableForm: { - disabled: true - } + disabled: true, + placeholder: '请选择从批次', + valueFormat: 'YYYYMMDD', + format: 'YYYYMMDD', + }, }, { label: '数量', @@ -2131,6 +2134,9 @@ export const ProductreceiptRequestLabelRules = reactive({ ], productionLineCodePackage: [ { required: true, message: '请选择生产线', trigger: 'change' } - ] + ], + batch: [ + { required: true, message: '请选择生产线', trigger: ['change','blur'] } + ], }) diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue index 14b85858c..986198d9c 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue @@ -818,20 +818,50 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r return } // window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(',')) - - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { - console.log(res) - if (labelType.value == 'cg') { - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res) - } else { - const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res) - } - }).catch(err => { - console.log(err) - message.error('创建标签失败') +let array = []//存储可采购数据 + let array1 = []//存储可制造数据 + let packingNumbers = [] + val.forEach((item,index) => { + packingNumbers.push(item.number) + + if (item.itemType == '可采购') { + array.push(item) + } + if (item.itemType == '可制造') { + array1.push(item) + } }) + if (array.length>0) { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + if (array1.length > 0) { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { + const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + window.open(src.value + '&asn_number=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + } + // await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + // console.log(res) + // if (labelType.value == 'cg') { + // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+res) + // } else { + // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+res) + // } + // }).catch(err => { + // console.log(err) + // message.error('创建标签失败') + // }) } const getDefaultWorkshopCode = async () => { const data = await ConfigApi.getConfigPage({ From e49a7265dff29d68cd7fc4964e3243001ab70fd8 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Thu, 28 Nov 2024 16:24:16 +0800 Subject: [PATCH 16/23] =?UTF-8?q?YT-1337=E6=96=B0=E5=A2=9E=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=85=88=E7=82=B9=E5=87=BB=E6=B7=BB=E5=8A=A0=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=97=B6=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=B7=E5=85=88=E9=80=89=E6=8B=A9=E4=BB=8E=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymove/inventorymoveRequestMain/index.vue | 6 +++--- .../inventorymoveRequestMain.data.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index 92c53e3cb..cc6f1027c 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -257,10 +257,10 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { { key:'fromWarehouseCode', value:'fromWarehouseCode', - message: '请填写生产线代码!', + message: '请选择从仓库代码!', isMainValue: true }, - { + { key: 'businessType', value: businessType.value , isMainValue: false @@ -277,7 +277,7 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { { key:'fromWarehouseCode', value:'fromWarehouseCode', - message: '请填写生产线代码!', + message: '请选择从仓库代码!', isMainValue: true }, { diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts index 1ce815ca7..ec54143ec 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts @@ -530,7 +530,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( searchCondition: [{ key:'fromWarehouseCode', value:'fromWarehouseCode', - message: '请填写生产线代码!', + message: '请选择从仓库代码!', isMainValue: true },{ key: 'available', @@ -550,7 +550,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( searchCondition: [{ key:'fromWarehouseCode', value:'fromWarehouseCode', - message: '请填写生产线代码!', + message: '请选择从仓库代码!', isMainValue: true },{ key: 'available', From fb70b898d14b044d7f4583b412854a29180ccd34 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 16:37:11 +0800 Subject: [PATCH 17/23] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=89=B9=E6=AC=A1=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptRequestMain/index.vue | 12 ++++++------ .../productreceiptRequestMain.data.ts | 3 ++- .../productreceiptAssembleRequestMain/index.vue | 15 +++++++++++++++ .../productreceiptAssembleRequestMain.data.ts | 13 ++++++++++--- 4 files changed, 33 insertions(+), 10 deletions(-) diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index b298c5ab3..483e8fb4f 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -624,19 +624,19 @@ const buttonTableClick = async (val, row) => { return } }) - ruleApi.getManagementPrecision({ + ruleApi.getManagementPrecision({ itemCodes: [item['itemCode']], locationCode: item.toLocationCode }).then((res) => { toManagementPrecision.value = res[0].ManagementPrecision - }) - if ( toManagementPrecision.value == 'BY_BATCH') { + if ( toManagementPrecision.value == 'BY_BATCH') { // row['fromBatchFormItemType'] = 'FormDate' - row['disabled_batch'] = false - } else { + item['disabled_batch'] = true + } else if(toManagementPrecision.value == 'BY_QUANTITY') { // row['fromBatchFormItemType'] = '' - row['disabled_batch'] = true + item['disabled_batch'] = false } + }) }) } else if (val == 'mainHandle') { // 处理 diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts index f9eb22309..4c5369f59 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts @@ -1728,6 +1728,7 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive( }, tableForm: { disabled: true, + type: 'FormDate', placeholder: '请选择从批次', valueFormat: 'YYYYMMDD', format: 'YYYYMMDD', @@ -2136,7 +2137,7 @@ export const ProductreceiptRequestLabelRules = reactive({ { required: true, message: '请选择生产线', trigger: 'change' } ], batch: [ - { required: true, message: '请选择生产线', trigger: ['change','blur'] } + { required: true, message: '请选择批次', trigger: ['change','blur'] } ], }) diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue index 986198d9c..76245e6a2 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue @@ -155,6 +155,7 @@ import { formatDate } from '@/utils/formatTime' import * as WorkshopApi from '@/api/wms/workshop' import * as ConfigApi from '@/api/infra/config' import { usePageLoading } from '@/hooks/web/usePageLoading' +import * as ruleApi from '@/api/wms/rule/index' const { loadStart, loadDone } = usePageLoading() // 装配收货申请 // 号口品收货申请 @@ -381,6 +382,7 @@ const butttondata = (row,$index) => { // 列表-操作按钮事件 +const toManagementPrecision = ref('') const buttonTableClick = async (val, row) => { if (val == 'mainClose') { // 关闭 await message.confirm('确认要关闭吗?') @@ -505,6 +507,19 @@ const buttonTableClick = async (val, row) => { return } }) + ruleApi.getManagementPrecision({ + itemCodes: [item['itemCode']], + locationCode: item.toLocationCode + }).then((res) => { + toManagementPrecision.value = res[0].ManagementPrecision + if ( toManagementPrecision.value == 'BY_BATCH') { + // row['fromBatchFormItemType'] = 'FormDate' + item['disabled_batch'] = true + } else if(toManagementPrecision.value == 'BY_QUANTITY') { + // row['fromBatchFormItemType'] = '' + item['disabled_batch'] = false + } + }) }) } else if (val == 'mainHandle') { // 处理 diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts index 71beecd5b..9a7df4d64 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts @@ -1732,8 +1732,12 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive( width: 150 }, tableForm: { - disabled:true - } + disabled: true, + type:'FormDate', + placeholder: '请选择从批次', + valueFormat: 'YYYYMMDD', + format: 'YYYYMMDD', + }, }, { label: '数量', @@ -2090,6 +2094,9 @@ export const ProductreceiptRequestLabelRules = reactive({ ], productionLineCodePackage: [ { required: true, message: '请选择生产线', trigger: 'change' } - ] + ], + batch: [ + { required: true, message: '请选择批次', trigger: ['change', 'blur'] } + ], }) From bc8e1dedc56e3879c764c87d8bd9dcf8defdaa95 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Thu, 28 Nov 2024 16:44:03 +0800 Subject: [PATCH 18/23] =?UTF-8?q?YT-1342=E5=BA=93=E5=AD=98=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E5=88=97=E8=A1=A8=E9=9A=90=E8=97=8F=E2=80=9C=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E6=89=B9=E6=AC=A1=E2=80=9D=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/inventoryManage/balance/balance.data.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index c8586bf85..0966dc3d6 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -74,6 +74,7 @@ export const Balance = useCrudSchemas( label: '供应商批次', field: 'altBatch', sort: 'custom', + isTable: false, table: { width: 150 }, From 84a3a81aa6465dbdacfc8ad6a05a9e627681212c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 16:53:55 +0800 Subject: [PATCH 19/23] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/inventoryManage/package/index.vue | 11 +++++++++-- .../productreceiptRequestMain/index.vue | 12 ++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/views/wms/inventoryManage/package/index.vue b/src/views/wms/inventoryManage/package/index.vue index d0bc30b50..43f32ad4a 100644 --- a/src/views/wms/inventoryManage/package/index.vue +++ b/src/views/wms/inventoryManage/package/index.vue @@ -364,8 +364,15 @@ const handlePoint = async (row) => { console.log('批量打印res',res); if(res.zzLabel){ //制造标签 - const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res.zzLabel) + PackageApi.getPrintingLableId({packingNumbers:[row.number]}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) + // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+res.zzLabel) } if (res.cgLabel) { //采购标签 diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index 483e8fb4f..b298c5ab3 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -624,19 +624,19 @@ const buttonTableClick = async (val, row) => { return } }) - ruleApi.getManagementPrecision({ + ruleApi.getManagementPrecision({ itemCodes: [item['itemCode']], locationCode: item.toLocationCode }).then((res) => { toManagementPrecision.value = res[0].ManagementPrecision - if ( toManagementPrecision.value == 'BY_BATCH') { + }) + if ( toManagementPrecision.value == 'BY_BATCH') { // row['fromBatchFormItemType'] = 'FormDate' - item['disabled_batch'] = true - } else if(toManagementPrecision.value == 'BY_QUANTITY') { + row['disabled_batch'] = false + } else { // row['fromBatchFormItemType'] = '' - item['disabled_batch'] = false + row['disabled_batch'] = true } - }) }) } else if (val == 'mainHandle') { // 处理 From e6fc6c10324fb23bfc0f6a4445f7b13f7ca69a15 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 16:57:42 +0800 Subject: [PATCH 20/23] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/inventoryManage/package/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/wms/inventoryManage/package/index.vue b/src/views/wms/inventoryManage/package/index.vue index 43f32ad4a..4499c4263 100644 --- a/src/views/wms/inventoryManage/package/index.vue +++ b/src/views/wms/inventoryManage/package/index.vue @@ -364,6 +364,13 @@ const handlePoint = async (row) => { console.log('批量打印res',res); if(res.zzLabel){ //制造标签 + const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) + window.open(src.value+'&asn_number='+res.zzLabel) + } + if (res.cgLabel) { + //采购标签 + // const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + // window.open(src.value+'&asn_number='+res.cgLabel) PackageApi.getPrintingLableId({packingNumbers:[row.number]}).then(res => { console.log(res) window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) @@ -371,13 +378,6 @@ const handlePoint = async (row) => { console.log(err) message.error('创建标签失败') }) - // const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) - // window.open(src.value+'&asn_number='+res.zzLabel) - } - if (res.cgLabel) { - //采购标签 - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res.cgLabel) } if(!res.cgLabel&&!res.zzLabel){ message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!') From 15f18da91449a861e76fe9fa7af1857e1a6a1e5e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 17:28:15 +0800 Subject: [PATCH 21/23] =?UTF-8?q?YT-1318=E7=B3=BB=E7=BB=9F=E4=B8=AD?= =?UTF-8?q?=E6=89=80=E6=9C=89=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E6=96=B9=EF=BC=8C=E6=89=B9=E6=AC=A1=E5=92=8C=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E9=83=BD=E6=98=AF=E5=BF=85=E5=A1=AB=E9=A1=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMain/index.vue | 2 +- .../productionreturnRequestMain.data.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index 56db1ed92..7ab6a4c2d 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -135,7 +135,7 @@ const tableColumns = ref([...ProductionreturnRequestMain.allSchemas.tableColumns //创建标签 const detailListTableColumns =cloneDeep(ProductionreturnRequestDetailLabel.allSchemas) -const detailListTableColumnsRules =cloneDeep(ProductionreturnRequestDetailLabel) +const detailListTableColumnsRules =cloneDeep(ProductionreturnRequestDetailLabelRules) const isCreateLabel = ref(false) const formLabelRef = ref() const labelType = ref('') // 标签类别 采购还是制造等 diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts index 89ce5ec80..fed75d689 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts @@ -1478,6 +1478,8 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive Date: Thu, 28 Nov 2024 17:35:07 +0800 Subject: [PATCH 22/23] =?UTF-8?q?YT-1346=EF=BC=9A=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E5=8F=91=E7=A5=A8=E8=AE=B0=E5=BD=95=E4=B8=BB=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E4=B9=9F=E9=9C=80=E8=A6=81=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E2=80=9C=E7=B4=A2=E8=B5=94=E6=80=BB=E9=A2=9D=E2=80=9D=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRecordMain.data.ts | 45 ++++++++++++++++--- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index f45712f5e..13675b376 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts @@ -736,7 +736,28 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([ // width: 150 // }, // }, + { + label: '索赔总额', + field: 'claimAmount', + sort: 'custom', + table: { + width: 180 + }, + isTable:true, + isDetail: true, + isTableForm: false, + isForm: true, + isSearch:false, + sortTableDefault: 12, + form: { + component: 'InputNumber', + componentProps: { + precision: 5, + disabled: true, + } + }, + }, { label: '采购审批时间', field: 'procurementCreateTime', @@ -1297,12 +1318,26 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive Date: Thu, 28 Nov 2024 17:37:21 +0800 Subject: [PATCH 23/23] =?UTF-8?q?=E6=89=93=E6=A0=87=E7=AD=BE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/defaultButtons.ts | 13 +++++++++++++ src/views/wms/inventoryManage/balance/index.vue | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 64fa7a581..5cdbd0bf8 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -1103,6 +1103,19 @@ export function mainListPointBtn(option: any) { hasPermi: '' }) } + +// 主列表-创建标签 +export function mainListCreatePointBtn(option: any) { + return __defaultBtnOption(option, { + label: t(`ts.创建标签`).replace('ts.', ''), + name: 'createPoint', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} export function mainListPrintInspectionBtn(option: any) { return __defaultBtnOption(option, { label: t(`ts.打印检验指引单`).replace('ts.', ''), diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue index b5e377e42..6b4fb2ca1 100644 --- a/src/views/wms/inventoryManage/balance/index.vue +++ b/src/views/wms/inventoryManage/balance/index.vue @@ -298,7 +298,7 @@ const butttondata = (row) => { // float: 'right', // hasPermi: '' // }, - defaultButtons.mainListPointBtn({hide: isShowPointBtn(row)} ) // 标签打印 + defaultButtons.mainListCreatePointBtn({hide: isShowPointBtn(row)} ) // 标签打印 // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // 删除   ] @@ -319,7 +319,7 @@ const buttonTableClick = async (val, row) => { ';U' + row.uom alert(aaa) - } else if (val == 'point') { + } else if (val == 'createPoint') { // 标签打印 handlePoint(row) }