diff --git a/src/api/sampleManagement/technicalSpecificationList.js b/src/api/sampleManagement/technicalSpecificationList.js index 7601e7e..2121b8e 100644 --- a/src/api/sampleManagement/technicalSpecificationList.js +++ b/src/api/sampleManagement/technicalSpecificationList.js @@ -35,3 +35,16 @@ export const deleteBMTPInfoColor= data => createAPI(`/technicalSpecification/del export const searchBMTPInfoCut= data => createAPI(`/technicalSpecification/searchBMTPInfoCut`,'post',data) export const saveBMTPInfoCut= data => createAPI(`/technicalSpecification/saveBMTPInfoCut`,'post',data) export const deleteBMTPInfoCut= data => createAPI(`/technicalSpecification/deleteBMTPInfoCut`,'post',data) + + +export const searchBMPrepressDetail= data => createAPI(`/technicalSpecification/searchBMPrepressDetail`,'post',data) +export const updateBMPrepressDetail= data => createAPI(`/technicalSpecification/updateBMPrepressDetail`,'post',data) +export const searchBMPrepressColor= data => createAPI(`/technicalSpecification/searchBMPrepressColor`,'post',data) +export const saveBMPrepressColor= data => createAPI(`/technicalSpecification/saveBMPrepressColor`,'post',data) +export const deleteBMPrepressColor= data => createAPI(`/technicalSpecification/deleteBMPrepressColor`,'post',data) + +export const searchBMPrintOtherDetail= data => createAPI(`/technicalSpecification/searchBMPrintOtherDetail`,'post',data) +export const updateBMPrintOtherDetail= data => createAPI(`/technicalSpecification/updateBMPrintOtherDetail`,'post',data) +export const searchBMPrintOtherColor= data => createAPI(`/technicalSpecification/searchBMPrintOtherColor`,'post',data) +export const saveBMPrintOtherColor= data => createAPI(`/technicalSpecification/saveBMPrintOtherColor`,'post',data) +export const deleteBMPrintOtherColor= data => createAPI(`/technicalSpecification/deleteBMPrintOtherColor`,'post',data) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue new file mode 100644 index 0000000..26be8a0 --- /dev/null +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue @@ -0,0 +1,415 @@ + + + + + diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printOther.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printOther.vue new file mode 100644 index 0000000..e85f592 --- /dev/null +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printOther.vue @@ -0,0 +1,330 @@ + + + + + diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_tpInfo.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_tpInfo.vue index 7650c11..de9687a 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_tpInfo.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_tpInfo.vue @@ -23,7 +23,7 @@ - + 刷新 新增 @@ -132,12 +132,99 @@ + + + 刷新 + 新增 + + + + + + + + + + + + + + + + + + + + + + + + +
取消 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + +
@@ -251,6 +376,23 @@ }, colorFlag:false, cutTable:[], + cutData:{ + id:'', + site: '', + codeNo:'', + order:'', + cuttingMachine:'', + cuttingType:'', + cutterTooling:'', + cutterLayout:'', + cutterCost:'', + p2c:'', + c2c:'', + cutterNo:'', + updateBy:'', + updateDate:'', + }, + cutFlag:false, } }, methods: { @@ -287,7 +429,7 @@ //刷新表格 this.searchTable(); this.colorSearch(); - + this.cutSearch(); }, searchTable(){ searchBMTPInfoDetail(this.searchData).then(({data}) => { @@ -396,6 +538,89 @@ }).catch(() => { }) }, + + + newCut(){ + if(this.searchData.codeNo==''){ + this.$message.success('数据错误,请关闭页面重试!') + return false; + } + let number=1; + for (let i = 0; i { + this.cutTable = data.rows + }); + }, + cutSave(){ + this.$confirm("是否保存信息?", '保存提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + }).then(() => { + saveBMTPInfoCut(this.cutData).then(({data}) => { + if (data && data.code === 0) { + this.cutSearch(); + this.cutFlag=false + this.$message.success( '操作成功') + } else { + this.$message.error(data.msg) + } + }) + }).catch(() => { + + }) + }, + deleteCut(row){ + this.$confirm(`是否删除这条信息?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + deleteBMTPInfoCut(row).then(({data}) => { + if (data && data.code === 0) { + this.cutSearch(); + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }).catch(() => { + }) + }, }, } diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue index 3cf2072..1ae5427 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue @@ -7,16 +7,16 @@ - + - + - + @@ -28,9 +28,12 @@ - - - + + + + + + @@ -83,24 +86,25 @@ import packageInfo from "./com_bm_packageInfo";/*包装信息*/ import bom from "./com_bm_bom";/*BOM*/ import routing from "./com_bm_routing";/*工艺*/ - import prepress from "./com_bm_demoSlot";/*印前*/ - import technicalRequirement from "./com_bm_demoSlot";/*印前*/ - import drawing from "./com_bm_demoSlot";/*印前*/ - import PEConfirm from "./com_bm_demoSlot";/*印前*/ - import overprinting from "./com_bm_demoSlot";/*印前*/ - import slitting from "./com_bm_demoSlot";/*印前*/ - import lamTemperature from "./com_bm_demoSlot";/*印前*/ - import cutting from "./com_bm_demoSlot";/*印前*/ - import packagePage from "./com_bm_demoSlot";/*印前*/ - import fqc from "./com_bm_demoSlot";/*印前*/ - import cqc from "./com_bm_demoSlot";/*印前*/ - import qualityDocument from "./com_bm_demoSlot";/*印前*/ - import documentControl from "./com_bm_demoSlot";/*印前*/ - import peReviewed from "./com_bm_demoSlot";/*印前*/ - import queteConfirm from "./com_bm_demoSlot";/*印前*/ - import fai from "./com_bm_demoSlot";/*印前*/ - import cqeComfirm from "./com_bm_demoSlot";/*印前*/ - import tpInfo from "./com_bm_tpInfo";/*印前*/ + import prepress from "./com_bm_prepress";/*组件*/ + import technicalRequirement from "./com_bm_demoSlot";/*组件*/ + import drawing from "./com_bm_demoSlot";/*组件*/ + import PEConfirm from "./com_bm_demoSlot";/*组件*/ + import overprinting from "./com_bm_demoSlot";/*组件*/ + import slitting from "./com_bm_demoSlot";/*组件*/ + import lamTemperature from "./com_bm_demoSlot";/*组件*/ + import cutting from "./com_bm_demoSlot";/*组件*/ + import packagePage from "./com_bm_demoSlot";/*组件*/ + import fqc from "./com_bm_demoSlot";/*组件*/ + import cqc from "./com_bm_demoSlot";/*组件*/ + import qualityDocument from "./com_bm_demoSlot";/*组件*/ + import documentControl from "./com_bm_demoSlot";/*组件*/ + import peReviewed from "./com_bm_demoSlot";/*组件*/ + import queteConfirm from "./com_bm_demoSlot";/*组件*/ + import fai from "./com_bm_demoSlot";/*组件*/ + import cqeComfirm from "./com_bm_demoSlot";/*组件*/ + import tpInfo from "./com_bm_tpInfo";/*组件*/ + import printOther from "./com_bm_printOther";/*组件*/ export default { name: "technicalSpecificationDetail", components: { @@ -127,6 +131,7 @@ fai, cqeComfirm, tpInfo, + printOther, }, data() { return { @@ -206,7 +211,13 @@ this.getCqeComfirm(); }else if(this.activeName == 'tpInfo'){ this.getTpInfo(); + }else if(this.activeName == 'printOther'){ + this.getPrintOther(); } + + }, + getPrintOther(){ + this.$refs.printOther.init(JSON.parse(JSON.stringify(this.dataForm))) }, getBaseInfoData(){ this.$refs.basicInformation.init(JSON.parse(JSON.stringify(this.dataForm)))