From 0fa113e3fd2631d1722f83d4bb29079672318347 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 18 Jul 2025 09:22:29 +0800 Subject: [PATCH] =?UTF-8?q?2025-07-18=20BM=E7=9A=84=20=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=BF=A1=E6=81=AF=20=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com_bm_cnc.vue | 41 ++++++++----------- .../com_bm_cut.vue | 40 ++++++++---------- .../com_bm_inkFormulation.vue | 38 ++++++++--------- .../com_bm_inkMixing.vue | 25 +++++------ .../com_bm_prepress.vue | 19 ++++----- .../com_bm_printing.vue | 21 ++++------ .../com_bm_printingFlexo.vue | 21 ++++------ .../com_bm_printingIndigo.vue | 21 ++++------ 8 files changed, 92 insertions(+), 134 deletions(-) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cnc.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cnc.vue index f8eef87..3988f61 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cnc.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cnc.vue @@ -454,37 +454,33 @@ updateBy:'', updateDate:'', } - this.cutFlag=true; + this.cutFlag = true }, - updateCut(row){ - this.cutData=JSON.parse(JSON.stringify(row)) - this.cutFlag=true; + + updateCut (row) { + this.cutData = JSON.parse(JSON.stringify(row)) + this.cutFlag = true; }, - cutSearch(){ + cutSearch () { searchBMCncCut(this.searchData).then(({data}) => { this.cutTable = data.rows }); }, - cutSave(){ - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMCncCut(this.cutData).then(({data}) => { - if (data && data.code === 0) { - this.cutSearch(); - this.cutFlag=false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) - }).catch(() => { + cutSave () { + saveBMCncCut(this.cutData).then(({data}) => { + if (data && data.code === 0) { + this.cutSearch(); + this.cutFlag=false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, - deleteCut(row){ + + deleteCut (row) { this.$confirm(`是否删除这条信息?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -505,11 +501,8 @@ }) } }) - }).catch(() => { }) }, - - }, } diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue index 09a24ba..5b4656d 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue @@ -534,8 +534,8 @@ }) }, - newCut(){ - if(this.searchData.codeNo==''){ + newCut () { + if (this.searchData.codeNo == '') { this.$message.success('数据错误,请关闭页面重试!') return false; } @@ -565,37 +565,33 @@ } this.cutFlag=true; }, - updateCut(row){ - this.cutData=JSON.parse(JSON.stringify(row)) - this.cutFlag=true; + + updateCut (row) { + this.cutData = JSON.parse(JSON.stringify(row)) + this.cutFlag = true; }, - cutSearch(type){ + cutSearch (type) { searchBMCutCut(this.searchData).then(({data}) => { - if(type){ + if (type) { this.$message.success( '操作成功') } this.cutTable = data.rows }); }, - cutSave(){ - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMCutCut(this.cutData).then(({data}) => { - if (data && data.code === 0) { - this.cutSearch(); - this.cutFlag=false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) - }).catch(() => { + cutSave () { + saveBMCutCut(this.cutData).then(({data}) => { + if (data && data.code === 0) { + this.cutSearch(); + this.cutFlag=false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, + deleteCut(row){ this.$confirm(`是否删除这条信息?`, '提示', { confirmButtonText: '确定', diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkFormulation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkFormulation.vue index d1f07ad..8c8bbec 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkFormulation.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkFormulation.vue @@ -485,12 +485,13 @@ } this.colorFlag=true; }, - updateColor(row){ - this.colorData=JSON.parse(JSON.stringify(row)) - this.colorFlag=true; + + updateColor (row) { + this.colorData = JSON.parse(JSON.stringify(row)) + this.colorFlag = true; }, - colorSearch(type){ + colorSearch (type) { searchBMInkFormulationColor(this.searchData).then(({data}) => { if(type){ this.$message.success( '操作成功') @@ -498,25 +499,20 @@ this.colorTable = data.rows }); }, - colorSave(){ - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMInkFormulationColor(this.colorData).then(({data}) => { - if (data && data.code === 0) { - this.colorSearch(); - this.colorFlag=false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) - }).catch(() => { + colorSave () { + saveBMInkFormulationColor(this.colorData).then(({data}) => { + if (data && data.code === 0) { + this.colorSearch(); + this.colorFlag=false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, - deleteColor(row){ + + deleteColor (row) { this.$confirm(`是否删除这条信息?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -537,11 +533,9 @@ }) } }) - }).catch(() => { }) }, - }, } diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkMixing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkMixing.vue index 721f9dd..0a4645e 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkMixing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkMixing.vue @@ -494,24 +494,19 @@ } }); }, - colorSave(){ - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMInkMixingColor(this.colorData).then(({data}) => { - if (data && data.code === 0) { - this.colorSearch(); - this.colorFlag=false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) - }).catch(() => { + colorSave(){ + saveBMInkMixingColor(this.colorData).then(({data}) => { + if (data && data.code === 0) { + this.colorSearch(); + this.colorFlag=false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, + deleteColor(row){ this.$confirm(`是否删除这条信息?`, '提示', { confirmButtonText: '确定', diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue index 193864a..4d32ea0 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue @@ -728,18 +728,13 @@ }, colorSave () { - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMPrepressColor(this.colorData).then(({data}) => { - if (data && data.code === 0) { - this.colorSearch(); - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) + saveBMPrepressColor(this.colorData).then(({data}) => { + if (data && data.code === 0) { + this.colorSearch(); + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue index e5e3949..ff50cd3 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue @@ -424,19 +424,14 @@ }, colorSave () { - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMPrintingColor(this.colorData).then(({data}) => { - if (data && data.code === 0) { - this.colorSearch() - this.colorFlag = false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) + saveBMPrintingColor(this.colorData).then(({data}) => { + if (data && data.code === 0) { + this.colorSearch() + this.colorFlag = false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue index 7f51c0e..c2c183c 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue @@ -594,19 +594,14 @@ }, colorSave () { - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMprintFlexoColor(this.colorData).then(({data}) => { - if (data && data.code === 0) { - this.colorSearch() - this.colorFlag = false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) + saveBMprintFlexoColor(this.colorData).then(({data}) => { + if (data && data.code === 0) { + this.colorSearch() + this.colorFlag = false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) }, diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue index 3142001..c2df336 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue @@ -515,19 +515,14 @@ }, colorSave () { - this.$confirm("是否保存信息?", '保存提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - }).then(() => { - saveBMprintIndigoColor(this.colorData).then(({data}) => { - if (data && data.code === 0) { - this.colorSearch() - this.colorFlag = false - this.$message.success( '操作成功') - } else { - this.$message.error(data.msg) - } - }) + saveBMprintIndigoColor(this.colorData).then(({data}) => { + if (data && data.code === 0) { + this.colorSearch() + this.colorFlag = false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } }) },