Browse Source

2025-07-18

BM的 是否保存信息 去掉
master
fengyuan_yang 9 months ago
parent
commit
0fa113e3fd
  1. 41
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cnc.vue
  2. 40
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue
  3. 38
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkFormulation.vue
  4. 25
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkMixing.vue
  5. 19
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
  6. 21
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue
  7. 21
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue
  8. 21
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue

41
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cnc.vue

@ -454,37 +454,33 @@
updateBy:'', updateBy:'',
updateDate:'', 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}) => { searchBMCncCut(this.searchData).then(({data}) => {
this.cutTable = data.rows 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(`是否删除这条信息?`, '提示', { this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -505,11 +501,8 @@
}) })
} }
}) })
}).catch(() => {
}) })
}, },
}, },
} }
</script> </script>

40
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('数据错误,请关闭页面重试!') this.$message.success('数据错误,请关闭页面重试!')
return false; return false;
} }
@ -565,37 +565,33 @@
} }
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(type){
cutSearch (type) {
searchBMCutCut(this.searchData).then(({data}) => { searchBMCutCut(this.searchData).then(({data}) => {
if(type){
if (type) {
this.$message.success( '操作成功') this.$message.success( '操作成功')
} }
this.cutTable = data.rows 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){ deleteCut(row){
this.$confirm(`是否删除这条信息?`, '提示', { this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

38
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_inkFormulation.vue

@ -485,12 +485,13 @@
} }
this.colorFlag=true; 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}) => { searchBMInkFormulationColor(this.searchData).then(({data}) => {
if(type){ if(type){
this.$message.success( '操作成功') this.$message.success( '操作成功')
@ -498,25 +499,20 @@
this.colorTable = data.rows 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(`是否删除这条信息?`, '提示', { this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -537,11 +533,9 @@
}) })
} }
}) })
}).catch(() => {
}) })
}, },
}, },
} }
</script> </script>

25
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){ deleteColor(row){
this.$confirm(`是否删除这条信息?`, '提示', { this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

19
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue

@ -728,18 +728,13 @@
}, },
colorSave () { 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)
}
}) })
}, },

21
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue

@ -424,19 +424,14 @@
}, },
colorSave () { 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)
}
}) })
}, },

21
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue

@ -594,19 +594,14 @@
}, },
colorSave () { 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)
}
}) })
}, },

21
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue

@ -515,19 +515,14 @@
}, },
colorSave () { 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)
}
}) })
}, },

Loading…
Cancel
Save