From d7547aeabd5e729ef49cfd9252b6b8bae0f85f52 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 10 Jul 2025 17:25:39 +0800 Subject: [PATCH] =?UTF-8?q?2025-07-10=201=E3=80=81=E5=8D=B0=E5=89=8D?= =?UTF-8?q?=E5=B7=A5=E5=BA=8F=E6=A8=A1=E7=89=88=E8=B0=83=E6=95=B4=20=20=20?= =?UTF-8?q?=20=20=201=E3=80=81=E5=8F=96=E6=B6=88=E7=8E=B0=E6=9C=89?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BD=BF=E7=94=A8=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=96=B9=E5=BC=8F=20=20=20=20=20=20=20=20=20=201.1=20?= =?UTF-8?q?=20=20=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5=EF=BC=9A=E7=9C=8B?= =?UTF-8?q?=E5=9B=BE=EF=BC=88=E9=9C=80=E8=A6=81=E4=B8=AD=E8=8B=B1=E6=96=87?= =?UTF-8?q?=EF=BC=89=20=20=20=20=20=202=E3=80=81=E5=B8=A6=E5=87=BA?= =?UTF-8?q?=E8=AF=A5=E7=89=A9=E6=96=99=E5=AF=B9=E5=BA=94=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E3=80=81=E6=9B=BF=E4=BB=A3=E7=9A=84=E5=88=80=E5=85=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20=20=20=20=20=20=20=20=20=202.1=20=20=20=E6=A0=B9?= =?UTF-8?q?=E6=8D=AERouting=E4=B8=AD=E7=9A=84=E5=B7=A5=E8=89=BA=E6=8C=87?= =?UTF-8?q?=E5=AF=BC=E7=9A=84=E7=B1=BB=E5=9E=8B=E6=98=AFPlate=20No.?= =?UTF-8?q?=E5=B8=A6=E5=88=B0=E5=8D=B0=E7=89=88=E7=BC=96=E5=8F=B7/PlateNo?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=202.2=20=20=20=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E7=89=88=E6=9C=AC+=E6=9B=BF=E4=BB=A3=E5=B8=A6=E5=87=BARouting?= =?UTF-8?q?=20Tools=E7=9A=84=E5=B7=A5=E5=85=B7=E7=BC=96=E7=A0=81=E3=80=81?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=90=8D=E7=A7=B0=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=202.3=20=20=20=E6=A0=B9=E6=8D=AE=E8=AF=A5=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=BC=96=E7=A0=81=E4=B8=BA"Number=20across?= =?UTF-8?q?=E3=80=81Number=20down"=E7=9A=84=E5=B1=9E=E6=80=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../technicalSpecificationList.js | 12 + .../demoComponents/orderProperties.vue | 2 +- .../com_bm_prepress.vue | 466 +++++++++++++----- .../com_bm_printing.vue | 11 +- .../com_bm_routing.vue | 75 +-- 5 files changed, 398 insertions(+), 168 deletions(-) diff --git a/src/api/sampleManagement/technicalSpecificationList.js b/src/api/sampleManagement/technicalSpecificationList.js index 4f68bbb..0c15b20 100644 --- a/src/api/sampleManagement/technicalSpecificationList.js +++ b/src/api/sampleManagement/technicalSpecificationList.js @@ -147,3 +147,15 @@ export const getNodeList = data => createAPI("/technicalSpecification/node/list" export const queryUrlFileList = data => createAPI("/technicalSpecification/urlFile/search",'post',data) +export const saveBMPrepressTool= data => createAPI(`/technicalSpecification/saveBMPrepressTool`,'post',data) + +export const getBMToolSeqNo= data => createAPI(`/technicalSpecification/getBMToolSeqNo`,'post',data) + +export const updateBMPrepressTool= data => createAPI(`/technicalSpecification/updateBMPrepressTool`,'post',data) + +export const deleteBMPrepressTool= data => createAPI(`/technicalSpecification/deleteBMPrepressTool`,'post',data) + +export const saveBMToolBatch= data => createAPI(`/technicalSpecification/saveBMToolBatch`,'post',data) + + + diff --git a/src/views/modules/demoComponents/orderProperties.vue b/src/views/modules/demoComponents/orderProperties.vue index e62aaeb..c6bdfc5 100644 --- a/src/views/modules/demoComponents/orderProperties.vue +++ b/src/views/modules/demoComponents/orderProperties.vue @@ -143,7 +143,7 @@ export default { }, data () { return { - height: 320, + height: 270, loading: false, attributeDialog: true, copyAttributeList: [], diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue index 10425de..119c679 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue @@ -2,9 +2,9 @@
- +
- +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +
- - + + - - -
-
- -
- - - + style="height: 60px">
- +
- - - - + + 刷新 + 新增 + 一键导入 + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -251,6 +322,32 @@ + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + +
@@ -261,6 +358,11 @@ searchBMPrepressColor, saveBMPrepressColor, deleteBMPrepressColor, + saveBMPrepressTool, + getBMToolSeqNo, + updateBMPrepressTool, + deleteBMPrepressTool, + saveBMToolBatch } from "@/api/sampleManagement/technicalSpecificationList.js" import Chooselist from '@/views/modules/common/Chooselist' export default { @@ -276,35 +378,51 @@ buNo:'', ifDisableFlag:'', }, - ifDisableFlag:false, - dataForm:{ + ifDisableFlag: false, + dataForm: { site: '', - codeNo:'', - plateNo:'', - cutterNumber:'', - cutterLayout:'', - action:'', - feedback:'', - remark:'', - + codeNo: '', + plateNo: '', + cutterNumber: '', + cutterLayout: '', + action: '', + feedback: '', + remark: '', + toolList: [] }, - colorTable:[], - colorData:{ - id:'', + colorTable: [], + colorData: { + id: '', site: '', - codeNo:'', - order:'', - color:'', - meshModel:'', - meshSize:'', - angle:'', - coatingType:'', - filmNo:'', - stencilNo:'', - updateBy:'', - updateDate:'', + codeNo: '', + order: '', + color: '', + meshModel: '', + meshSize: '', + angle: '', + coatingType: '', + filmNo: '', + stencilNo: '', + updateBy: '', + updateDate: '', }, - colorFlag:false, + colorFlag: false, + toolData: { + flag: '', + site: '', + codeNo: '', + itemNo: '', + seqNo: '', + toolId: '', + toolDesc: '', + numberAcross: '', + numberDown: '', + createBy: '', + createDate: '', + updateBy: '', + updateDate: '', + }, + toolFlag: false, } }, methods: { @@ -331,48 +449,147 @@ } } }, + //初始化组件的参数 - init(inData) { - if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ + init (inData) { + if(this.dataForm.codeNo) { return false; } //初始化参数 - this.searchData = JSON.parse(JSON.stringify(inData)); + this.searchData = JSON.parse(JSON.stringify(inData)) // if(this.searchData.ifDisableFlag){ // this.ifDisableFlag=true // } //刷新表格 - this.searchTable(); - this.colorSearch(); - + this.searchTable() + this.colorSearch() }, - searchTable(){ + + searchTable () { searchBMPrepressDetail(this.searchData).then(({data}) => { - if(data.rows.length>0){ - this.dataForm = data.rows[0]; - }else { - this.dataForm.site=this.searchData.site - this.dataForm.codeNo=this.searchData.codeNo + if (data && data.code === 0) { + this.dataForm = data.rows + } else { + this.dataForm.site = this.searchData.site + this.dataForm.codeNo = this.searchData.codeNo + this.dataForm.toolList = [] + } + }) + }, + + // 新增工具 + newTool () { + if (this.searchData.codeNo === '') { + this.$message.success('数据错误,请关闭页面重试!') + return false; + } + this.toolData = { + flag: '1', + site: this.searchData.site, + codeNo: this.searchData.codeNo, + itemNo: '', + seqNo: '', + toolId: '', + toolDesc: '', + numberAcross: '', + numberDown: '', + createBy: this.$store.state.user.name, + createDate: '', + updateBy: '', + updateDate: '', + } + // 获取子料的序号 + getBMToolSeqNo(this.toolData).then(({data}) => { + if (data && data.code === 0) { + this.toolData.seqNo = data.seqNo + } + }) + this.toolFlag = true + }, + + // 修改工具 + updateTool (row) { + this.toolData = { + ...row, + flag: '2', + updateBy: this.$store.state.user.name, + } + this.toolFlag = true + }, + + // 保存 + toolSave () { + if (this.toolData.flag === '1') { + saveBMPrepressTool(this.toolData).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.toolFlag = false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } + }) + } else { + updateBMPrepressTool(this.toolData).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.toolFlag = false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } + }) + } + }, + + // 删除工具 + deleteTool (row) { + this.$confirm(`是否删除这条信息?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + deleteBMPrepressTool(row).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, + + // 一键导入 + toolSaveBatch () { + this.$confirm("此操作将清空已填写的数据,是否继续?", '保存提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + }).then(() => { + let tempData = { + site: this.searchData.site, + codeNo: this.searchData.codeNo, + createBy: this.$store.state.user.name, } - }); + saveBMToolBatch(tempData).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } + }) + }) }, - saveData(){ - // this.$confirm("是否保存信息?", '保存提示', { - // confirmButtonText: '确定', - // cancelButtonText: '取消', - // }).then(() => { - // updateBMPrepressDetail(this.dataForm).then(({data}) => { - // if (data && data.code === 0) { - // this.$clearHighLight() - // this.$message.success( '操作成功') - // this.$emit("closeModel") - // } else { - // this.$message.error(data.msg) - // } - // }) - // }).catch(() => { - // return - // }) + + saveData () { updateBMPrepressDetail(this.dataForm).then(({data}) => { if (data && data.code === 0) { this.$clearHighLight() @@ -384,49 +601,51 @@ }) }, - newColor(){ - if(this.searchData.codeNo==''){ + newColor () { + if (this.searchData.codeNo === '') { this.$message.success('数据错误,请关闭页面重试!') return false; } - let number=1; + let number = 1; for (let i = 0; i { this.$clearHighLight() this.colorTable = data.rows - if(type){ + if (type) { this.$message.success( '操作成功') } - }); + }) }, - colorSave(){ + + colorSave () { this.$confirm("是否保存信息?", '保存提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -439,11 +658,10 @@ this.$message.error(data.msg) } }) - }).catch(() => { - }) }, - deleteColor(row){ + + deleteColor (row) { this.$confirm(`是否删除这条信息?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -464,11 +682,9 @@ }) } }) - }).catch(() => { }) }, - }, } diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue index fb1347f..6618a67 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue @@ -3,11 +3,11 @@ - - 刷新 - 新增 - 一键导入 - + + 刷新 + 新增 + 一键导入 + { if (data && data.code === 0) { diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue index 4a99e4c..a7b6261 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue @@ -1367,9 +1367,9 @@ }, 500); }, - getPrepress(){ - let inData=JSON.parse(JSON.stringify(this.searchData)) - inData.type='prepress' + getPrepress () { + let inData = JSON.parse(JSON.stringify(this.searchData)) + inData.type = 'prepress' this.$refs.prepress.init(inData) }, @@ -1379,15 +1379,15 @@ this.$refs.printing.init(inData) }, - getPrintOther(){ - let inData=JSON.parse(JSON.stringify(this.searchData)) - inData.type='printOther' + getPrintOther () { + let inData = JSON.parse(JSON.stringify(this.searchData)) + inData.type = 'printOther' this.$refs.printOther.init(inData) }, - getOverprinting(){ - let inData=JSON.parse(JSON.stringify(this.searchData)) - inData.type='overprinting' + getOverprinting () { + let inData = JSON.parse(JSON.stringify(this.searchData)) + inData.type = 'overprinting' this.$refs.overprinting.init(inData) }, @@ -1565,56 +1565,57 @@ return }) }, - chooseRoute(row){ - this.nowRoute=JSON.parse(JSON.stringify(row)); + + chooseRoute (row) { + this.nowRoute = JSON.parse(JSON.stringify(row)) switch (row.itemType) { case 'prepress': - this.selectedComponent='prepress'; - let prepressData=JSON.parse(JSON.stringify(this.searchData)) + this.selectedComponent = 'prepress' + let prepressData = JSON.parse(JSON.stringify(this.searchData)) prepressData.type='prepress' - prepressData.ifDisableFlag=true - this.$nextTick (()=>{this.$refs.routeRef.init(prepressData)}); + prepressData.ifDisableFlag = true + this.$nextTick (()=>{this.$refs.routeRef.init(prepressData)}) break; case 'printing': - this.selectedComponent='printing'; - let printing=JSON.parse(JSON.stringify(this.searchData)) - printing.type='printing' - printing.ifDisableFlag=true + this.selectedComponent = 'printing'; + let printing = JSON.parse(JSON.stringify(this.searchData)) + printing.type = 'printing' + printing.ifDisableFlag = true this.$nextTick (()=>{this.$refs.routeRef.init(printing)}); break; case 'printOther': - this.selectedComponent='printOther'; - let printOther=JSON.parse(JSON.stringify(this.searchData)) - printOther.type='printOther' - printOther.ifDisableFlag=true + this.selectedComponent = 'printOther'; + let printOther = JSON.parse(JSON.stringify(this.searchData)) + printOther.type = 'printOther' + printOther.ifDisableFlag = true this.$nextTick (()=>{this.$refs.routeRef.init(printOther)}); break; case 'overprinting': this.selectedComponent='overprinting'; - let overprinting=JSON.parse(JSON.stringify(this.searchData)) - overprinting.type='overprinting' - overprinting.ifDisableFlag=true + let overprinting = JSON.parse(JSON.stringify(this.searchData)) + overprinting.type = 'overprinting' + overprinting.ifDisableFlag = true this.$nextTick (()=>{this.$refs.routeRef.init(overprinting)}); break; case 'slitting': - this.selectedComponent='slitting'; + this.selectedComponent = 'slitting'; let slitting=JSON.parse(JSON.stringify(this.searchData)) - slitting.type='slitting' - slitting.ifDisableFlag=true + slitting.type = 'slitting' + slitting.ifDisableFlag = true this.$nextTick (()=>{this.$refs.routeRef.init(slitting)}); break; case 'lamTemperature': - this.selectedComponent='lamTemperature'; - let lamTemperature=JSON.parse(JSON.stringify(this.searchData)) - lamTemperature.type='lamTemperature' - lamTemperature.ifDisableFlag=true + this.selectedComponent = 'lamTemperature'; + let lamTemperature = JSON.parse(JSON.stringify(this.searchData)) + lamTemperature.type = 'lamTemperature' + lamTemperature.ifDisableFlag = true this.$nextTick (()=>{this.$refs.routeRef.init(lamTemperature)}); break; case 'cutting': - this.selectedComponent='cutting'; - let cutting=JSON.parse(JSON.stringify(this.searchData)) - cutting.type='cutting' - cutting.ifDisableFlag=true + this.selectedComponent = 'cutting'; + let cutting = JSON.parse(JSON.stringify(this.searchData)) + cutting.type = 'cutting' + cutting.ifDisableFlag = true this.$nextTick (()=>{this.$refs.routeRef.init(cutting)}); break; case 'InkMixing':