Browse Source

2025-07-10

1、印前工序模版调整
     1、取消现有的字段,使用列表方式
         1.1   列表字段:看图(需要中英文)
     2、带出该物料对应版本、替代的刀具信息
         2.1   根据Routing中的工艺指导的类型是Plate No.带到印版编号/PlateNo
         2.2   根据版本+替代带出Routing Tools的工具编码、工具名称
         2.3   根据该工具属性编码为"Number across、Number down"的属性值
master
fengyuan_yang 6 months ago
parent
commit
d7547aeabd
  1. 12
      src/api/sampleManagement/technicalSpecificationList.js
  2. 2
      src/views/modules/demoComponents/orderProperties.vue
  3. 360
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
  4. 1
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue
  5. 7
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

12
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 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)

2
src/views/modules/demoComponents/orderProperties.vue

@ -143,7 +143,7 @@ export default {
}, },
data () { data () {
return { return {
height: 320,
height: 270,
loading: false, loading: false,
attributeDialog: true, attributeDialog: true,
copyAttributeList: [], copyAttributeList: [],

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

@ -2,9 +2,9 @@
<div class="mod-config" v-highlight-container> <div class="mod-config" v-highlight-container>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;height: 230px" v-if="searchData.buNo==='Flexo'"> <el-form label-position="top" style="margin-top: 1px; margin-left: 0px;height: 230px" v-if="searchData.buNo==='Flexo'">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24" style="height: 105px">
<el-col :span="24" style="height: 95px">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-form-item :label="'印版编号/PlateNo'">
<el-form-item label="印版编号/PlateNo">
<!-- <el-input v-model="dataForm.plateNo" :disabled="ifDisableFlag"></el-input>--> <!-- <el-input v-model="dataForm.plateNo" :disabled="ifDisableFlag"></el-input>-->
<el-input <el-input
type="textarea" type="textarea"
@ -12,65 +12,136 @@
:rows="3" :rows="3"
resize="none" resize="none"
maxlength="120" maxlength="120"
show-word-limit
:disabled="ifDisableFlag"> :disabled="ifDisableFlag">
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="12" style="height: 105px">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item :label="'刀模编号/CutterNumber'">-->
<!-- &lt;!&ndash; <el-input v-model="dataForm.cutterNumber" :disabled="ifDisableFlag"></el-input>&ndash;&gt;-->
<!-- <el-input-->
<!-- type="textarea"-->
<!-- v-model="dataForm.cutterNumber"-->
<!-- :rows="3"-->
<!-- resize="none"-->
<!-- maxlength="120"-->
<!-- show-word-limit-->
<!-- :disabled="ifDisableFlag"-->
<!-- >-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="12" style="height: 105px">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item :label="'刀模排位/CutterLayout'" >-->
<!-- &lt;!&ndash; <el-input v-model="dataForm.cutterLayout" :disabled="ifDisableFlag"></el-input>&ndash;&gt;-->
<!-- <el-input-->
<!-- type="textarea"-->
<!-- v-model="dataForm.cutterLayout"-->
<!-- :rows="3"-->
<!-- resize="none"-->
<!-- maxlength="120"-->
<!-- show-word-limit-->
<!-- :disabled="ifDisableFlag"-->
<!-- >-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12" style="height: 105px">
<div class="grid-content bg-purple">
<el-form-item :label="'刀模编号/CutterNumber'">
<!-- <el-input v-model="dataForm.cutterNumber" :disabled="ifDisableFlag"></el-input>-->
<el-input
type="textarea"
v-model="dataForm.cutterNumber"
:rows="3"
resize="none"
maxlength="120"
show-word-limit
:disabled="ifDisableFlag"
>
</el-input>
</el-form-item>
</div>
</el-col>
<el-col :span="12" style="height: 105px">
<el-col :span="24" style="height: 95px">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-form-item :label="'刀模排位/CutterLayout'" >
<!-- <el-input v-model="dataForm.cutterLayout" :disabled="ifDisableFlag"></el-input>-->
<el-form-item :label="'材料准备阶段/Action'">
<!-- <el-input type="textarea" v-model="dataForm.action" :rows="3" resize='none' show-word-limit :disabled="ifDisableFlag"></el-input>-->
<el-input <el-input
type="textarea" type="textarea"
v-model="dataForm.cutterLayout"
v-model="dataForm.action"
:rows="3" :rows="3"
resize="none" resize="none"
maxlength="120" maxlength="120"
show-word-limit
:disabled="ifDisableFlag" :disabled="ifDisableFlag"
>
style="height: 60px">
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24" style="height: 105px">
<el-col :span="24" style="height: 300px">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-form-item :label="'材料准备阶段/Action'">
<!-- <el-input type="textarea" v-model="dataForm.action" :rows="3" resize='none' show-word-limit :disabled="ifDisableFlag"></el-input>-->
<el-input
type="textarea"
v-model="dataForm.action"
:rows="3"
resize="none"
maxlength="120"
show-word-limit
:disabled="ifDisableFlag"
style="height: 60px">
</el-input>
<el-form-item>
<el-button type="primary" @click="searchTable()" >刷新</el-button>
<el-button type="primary" @click="newTool()" v-if="!ifDisableFlag">新增</el-button>
<el-button type="primary" @click="toolSaveBatch()" v-if="!ifDisableFlag">一键导入</el-button>
</el-form-item> </el-form-item>
<el-table
:data="dataForm.toolList"
height="255px"
border
style="width:100%">
<el-table-column label="序号" header-align="center">
<el-table-column
prop="seqNo"
header-align="center"
align="left"
min-width="60"
label="No.">
</el-table-column>
</el-table-column>
<el-table-column label="工具编码" header-align="center">
<el-table-column
prop="toolId"
header-align="center"
align="left"
min-width="120"
label="Tool No.">
</el-table-column>
</el-table-column>
<el-table-column label="工具描述" header-align="center">
<el-table-column
prop="toolDesc"
header-align="center"
align="left"
min-width="200"
label="Tool Desc.">
</el-table-column>
</el-table-column>
<el-table-column label="横排数" header-align="center">
<el-table-column
prop="numberAcross"
header-align="center"
align="left"
min-width="100"
label="Across">
</el-table-column>
</el-table-column>
<el-table-column label="竖排数" header-align="center">
<el-table-column
prop="numberDown"
header-align="center"
align="left"
min-width="100"
label="Down">
</el-table-column>
</el-table-column>
<el-table-column
fixed="left"
header-align="center"
align="center"
width="100"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" @click="updateTool(scope.row)">编辑</el-link>
<el-link style="cursor: pointer" @click="deleteTool(scope.row)">删除</el-link>
</template>
</el-table-column>
</el-table>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
@ -251,6 +322,32 @@
</el-dialog> </el-dialog>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<el-dialog append-to-body title="工具信息" :close-on-click-modal="false" v-drag :visible.sync="toolFlag" width="600px">
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'序号/NO.'">
<el-input v-model="toolData.seqNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'工具编码/Tool No.'">
<el-input v-model="toolData.toolId" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'工具描述/Tool Desc.'">
<el-input v-model="toolData.toolDesc" style="width: 290px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'横排数/Across'">
<el-input v-model="toolData.numberAcross" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'竖排数/Down'">
<el-input v-model="toolData.numberDown" style="width: 120px"></el-input>
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="toolSave">保存</el-button>
<el-button type="primary" @click="toolFlag = false">取消</el-button>
</el-footer>
</el-dialog>
</div> </div>
</template> </template>
@ -261,6 +358,11 @@
searchBMPrepressColor, searchBMPrepressColor,
saveBMPrepressColor, saveBMPrepressColor,
deleteBMPrepressColor, deleteBMPrepressColor,
saveBMPrepressTool,
getBMToolSeqNo,
updateBMPrepressTool,
deleteBMPrepressTool,
saveBMToolBatch
} from "@/api/sampleManagement/technicalSpecificationList.js" } from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
export default { export default {
@ -286,7 +388,7 @@
action: '', action: '',
feedback: '', feedback: '',
remark: '', remark: '',
toolList: []
}, },
colorTable: [], colorTable: [],
colorData: { colorData: {
@ -305,6 +407,22 @@
updateDate: '', updateDate: '',
}, },
colorFlag: false, colorFlag: false,
toolData: {
flag: '',
site: '',
codeNo: '',
itemNo: '',
seqNo: '',
toolId: '',
toolDesc: '',
numberAcross: '',
numberDown: '',
createBy: '',
createDate: '',
updateBy: '',
updateDate: '',
},
toolFlag: false,
} }
}, },
methods: { methods: {
@ -331,48 +449,147 @@
} }
} }
}, },
// //
init (inData) { init (inData) {
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){
if(this.dataForm.codeNo) {
return false; return false;
} }
// //
this.searchData = JSON.parse(JSON.stringify(inData));
this.searchData = JSON.parse(JSON.stringify(inData))
// if(this.searchData.ifDisableFlag){ // if(this.searchData.ifDisableFlag){
// this.ifDisableFlag=true // this.ifDisableFlag=true
// } // }
// //
this.searchTable();
this.colorSearch();
this.searchTable()
this.colorSearch()
}, },
searchTable () { searchTable () {
searchBMPrepressDetail(this.searchData).then(({data}) => { searchBMPrepressDetail(this.searchData).then(({data}) => {
if(data.rows.length>0){
this.dataForm = data.rows[0];
if (data && data.code === 0) {
this.dataForm = data.rows
} else { } else {
this.dataForm.site = this.searchData.site this.dataForm.site = this.searchData.site
this.dataForm.codeNo = this.searchData.codeNo 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 () { 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
// })
updateBMPrepressDetail(this.dataForm).then(({data}) => { updateBMPrepressDetail(this.dataForm).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$clearHighLight() this.$clearHighLight()
@ -385,7 +602,7 @@
}, },
newColor () { newColor () {
if(this.searchData.codeNo==''){
if (this.searchData.codeNo === '') {
this.$message.success('数据错误,请关闭页面重试!') this.$message.success('数据错误,请关闭页面重试!')
return false; return false;
} }
@ -410,11 +627,12 @@
updateBy: '', updateBy: '',
updateDate: '', updateDate: '',
} }
this.colorFlag=true;
this.colorFlag = true
}, },
updateColor (row) { updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row)) this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag=true;
this.colorFlag = true
}, },
colorSearch (type) { colorSearch (type) {
@ -424,8 +642,9 @@
if (type) { if (type) {
this.$message.success( '操作成功') this.$message.success( '操作成功')
} }
});
})
}, },
colorSave () { colorSave () {
this.$confirm("是否保存信息?", '保存提示', { this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -439,10 +658,9 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}).catch(() => {
}) })
}, },
deleteColor (row) { deleteColor (row) {
this.$confirm(`是否删除这条信息?`, '提示', { this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -464,11 +682,9 @@
}) })
} }
}) })
}).catch(() => {
}) })
}, },
}, },
} }
</script> </script>

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

@ -353,6 +353,7 @@
let tempData = { let tempData = {
site: this.searchData.site, site: this.searchData.site,
codeNo: this.searchData.codeNo, codeNo: this.searchData.codeNo,
createBy: this.$store.state.user.name,
} }
saveBMPrintingColorBatch(tempData).then(({data}) => { saveBMPrintingColorBatch(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

7
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -1565,15 +1565,16 @@
return return
}) })
}, },
chooseRoute (row) { chooseRoute (row) {
this.nowRoute=JSON.parse(JSON.stringify(row));
this.nowRoute = JSON.parse(JSON.stringify(row))
switch (row.itemType) { switch (row.itemType) {
case 'prepress': case 'prepress':
this.selectedComponent='prepress';
this.selectedComponent = 'prepress'
let prepressData = JSON.parse(JSON.stringify(this.searchData)) let prepressData = JSON.parse(JSON.stringify(this.searchData))
prepressData.type='prepress' prepressData.type='prepress'
prepressData.ifDisableFlag = true prepressData.ifDisableFlag = true
this.$nextTick (()=>{this.$refs.routeRef.init(prepressData)});
this.$nextTick (()=>{this.$refs.routeRef.init(prepressData)})
break; break;
case 'printing': case 'printing':
this.selectedComponent = 'printing'; this.selectedComponent = 'printing';

Loading…
Cancel
Save