Browse Source

2025-06-06

材料信息中的油墨需要待入到印刷模版中的颜色中
      1、材料信息中单位是kg的
      2、将物料编码放到颜色中
master
fengyuan_yang 8 months ago
parent
commit
7fd73f9da1
  1. 3
      src/api/sampleManagement/technicalSpecificationList.js
  2. 25
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  3. 55
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue
  4. 63
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue
  5. 63
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue
  6. 34
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

3
src/api/sampleManagement/technicalSpecificationList.js

@ -108,6 +108,9 @@ export const deleteBMprintFlexoColor= data => createAPI(`/technicalSpecification
export const searchBMprintIndigoColor= data => createAPI(`/technicalSpecification/searchBMprintIndigoColor`,'post',data)
export const saveBMprintIndigoColor= data => createAPI(`/technicalSpecification/saveBMprintIndigoColor`,'post',data)
export const deleteBMprintIndigoColor= data => createAPI(`/technicalSpecification/deleteBMprintIndigoColor`,'post',data)
export const saveBMPrintIndigoColorBatch= data => createAPI(`/technicalSpecification/saveBMPrintIndigoColorBatch`,'post',data)
export const saveBMPrintFlexoColorBatch= data => createAPI(`/technicalSpecification/saveBMPrintFlexoColorBatch`,'post',data)
export const saveBMPrintingColorBatch= data => createAPI(`/technicalSpecification/saveBMPrintingColorBatch`,'post',data)
/**
* 下达
* @param data

25
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -445,7 +445,6 @@
}
},
choosePart(row){
this.dataForm.erpPartNo=row.erpPartNo
this.dataForm.familyId=row.familyId
@ -454,20 +453,21 @@
this.dataForm.spec=row.spec
this.partModelFlag=false;
},
//
init (inData) {
if (this.searchData.codeNo != null && this.searchData.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.searchTable()
},
searchTable (type) {
getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName
@ -475,15 +475,15 @@
})
searchBMBom(this.searchData).then(({data}) => {
if (data&& data.code === 0) {
this.bomList = data.rows;
this.bomData = data.row;
this.bomList = data.rows
this.bomData = data.row
if (type) {
this.$message.success( '操作成功')
}
} else {
this.$message.error(data.msg)
}
});
})
tsdBasicInformationSearch(this.searchData).then(({data}) => {
this.baseForm=data.row;
this.bomData.site=data.row.site
@ -491,20 +491,23 @@
this.getNodeAuthority(data.row)
})
},
searchDetailTable () {
searchBMBomDetail(this.bomData).then(({data}) => {
this.bomDetailList=data.rows;
});
this.bomDetailList = data.rows
})
},
changeBomRev () {
this.searchDetailTable()
this.currentRow = null
this.modalFlag=true;
this.modalFlag = true
},
getRow (row) {
this.currentRow = row
},
updateBMBomRev () {
if (this.currentRow == null) {
this.$alert('请点击选择BOM版本!', '错误', {

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

@ -6,6 +6,7 @@
<el-form-item >
<el-button type="primary" @click="colorSearch(true)" >刷新</el-button>
<el-button type="primary" @click="newColor()" v-if="!ifDisableFlag">新增</el-button>
<el-button type="primary" @click="colorSaveBatch()" v-if="!ifDisableFlag">一键导入</el-button>
</el-form-item>
<el-table
height="400"
@ -121,9 +122,6 @@
</div>
</el-form>
<el-dialog append-to-body title="颜色信息" :close-on-click-modal="false" v-drag :visible.sync="colorFlag" width="600px">
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'色序'">
@ -183,6 +181,7 @@
searchBMPrintingColor,
saveBMPrintingColor,
deleteBMPrintingColor,
saveBMPrintingColorBatch, //
} from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
@ -246,35 +245,35 @@
}
}
},
//
init (inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
if (this.searchData.codeNo != null && this.searchData.codeNo !== '') {
return false;
}
debugger
//
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()
//
this.searchData.type='printing'
this.$refs.printing.init(JSON.parse(JSON.stringify(this.searchData)))
},
searchTable () {
},
newColor () {
if(this.searchData.codeNo==''){
if (this.searchData.codeNo === '') {
this.$message.success('数据错误,请关闭页面重试!')
return false;
}
let number=1;
let number = 1
for (let i = 0; i < this.colorTable.length; i++) {
if (number <= this.colorTable[i].order) {
number = Number(this.colorTable[i].order) + 1
@ -298,11 +297,12 @@
updateBy: '',
updateDate: '',
}
this.colorFlag=true;
this.colorFlag = true
},
updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag=true;
this.colorFlag = true
},
colorSearch (type) {
@ -311,8 +311,9 @@
this.$message.success( '操作成功')
}
this.colorTable = data.rows
});
})
},
colorSave () {
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
@ -320,17 +321,37 @@
}).then(() => {
saveBMPrintingColor(this.colorData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorSearch()
this.colorFlag = false
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {
})
},
//
colorSaveBatch () {
this.$confirm("此操作将清空已填写的数据,是否继续?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
let tempData = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
}
saveBMPrintingColorBatch(tempData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch()
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
})
},
deleteColor(row){
this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定',
@ -352,11 +373,9 @@
})
}
})
}).catch(() => {
})
},
},
}
</script>

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

@ -6,6 +6,7 @@
<el-form-item >
<el-button type="primary" @click="colorSearch(true)" >刷新</el-button>
<el-button type="primary" @click="newColor()" v-if="!ifDisableFlag">新增</el-button>
<el-button type="primary" @click="colorSaveBatch()" v-if="!ifDisableFlag">一键导入</el-button>
</el-form-item>
<el-table
height="400"
@ -148,15 +149,12 @@
</div>
</el-form>
<el-dialog append-to-body title="颜色信息" :close-on-click-modal="false" v-drag :visible.sync="colorFlag" width="600px">
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'印刷面'">
<el-select v-model="colorData.printSide" style="width: 130px">
<el-option label="front" value="front"></el-option>
<el-option label="back" value="back"></el-option>
<el-option label="Front" value="front"></el-option>
<el-option label="Back" value="back"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="'色序'">
@ -225,6 +223,7 @@
searchBMprintFlexoColor,
saveBMprintFlexoColor,
deleteBMprintFlexoColor,
saveBMPrintFlexoColorBatch, //
} from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
@ -291,35 +290,35 @@
}
}
},
//
init (inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
if (this.searchData.codeNo != null && this.searchData.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()
//
console.log(this.searchData)
this.searchData.type = 'printFlexo'
this.$refs.printFlexo.init(JSON.parse(JSON.stringify(this.searchData)))
},
searchTable(){
},
newColor () {
if(this.searchData.codeNo==''){
if (this.searchData.codeNo === '') {
this.$message.success('数据错误,请关闭页面重试!')
return false;
}
let number=1;
let number = 1
for (let i = 0; i <this.colorTable.length ; i++) {
if (number <= this.colorTable[i].order) {
number = Number(this.colorTable[i].order) + 1
@ -346,11 +345,12 @@
updateBy: '',
updateDate: '',
}
this.colorFlag=true;
this.colorFlag = true
},
updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag=true;
this.colorFlag = true
},
colorSearch (type) {
@ -359,9 +359,9 @@
if (type) {
this.$message.success( '操作成功')
}
});
})
},
colorSave () {
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
@ -369,17 +369,38 @@
}).then(() => {
saveBMprintFlexoColor(this.colorData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorSearch()
this.colorFlag = false
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {
})
},
//
colorSaveBatch () {
this.$confirm("此操作将清空已填写的数据,是否继续?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
let tempData = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
printSide: 'front',
}
saveBMPrintFlexoColorBatch(tempData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch()
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
})
},
deleteColor (row) {
this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定',
@ -388,7 +409,7 @@
}).then(() => {
deleteBMprintFlexoColor(row).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorSearch()
this.$message({
message: '操作成功',
type: 'success',
@ -401,11 +422,9 @@
})
}
})
}).catch(() => {
})
},
},
}
</script>

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

@ -6,6 +6,7 @@
<el-form-item>
<el-button type="primary" @click="colorSearch(true)" >刷新</el-button>
<el-button type="primary" @click="newColor()" v-if="!ifDisableFlag">新增</el-button>
<el-button type="primary" @click="colorSaveBatch()" v-if="!ifDisableFlag">一键导入</el-button>
</el-form-item>
<el-table
height="400"
@ -147,15 +148,12 @@
</div>
</el-form>
<el-dialog append-to-body title="颜色信息" :close-on-click-modal="false" v-drag :visible.sync="colorFlag" width="600px">
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'印刷面'">
<el-select v-model="colorData.printSide" style="width: 130px">
<el-option label="front" value="front"></el-option>
<el-option label="back" value="back"></el-option>
<el-option label="Front" value="front"></el-option>
<el-option label="Back" value="back"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="'色序'">
@ -201,7 +199,6 @@
<el-form-item :label="'Remark'">
<!-- <el-input v-model="colorData.remark" style="width: 530px" ></el-input>-->
<el-input
type="textarea"
v-model="colorData.remark"
:rows="3"
@ -229,6 +226,7 @@
searchBMprintIndigoColor,
saveBMprintIndigoColor,
deleteBMprintIndigoColor,
saveBMPrintIndigoColorBatch, //
} from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
@ -294,35 +292,35 @@
}
}
},
//
init (inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
if (this.searchData.codeNo != null && this.searchData.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()
//
console.log(this.searchData)
this.searchData.type = 'printIndigo'
this.$refs.printIndigo.init(JSON.parse(JSON.stringify(this.searchData)))
},
searchTable () {
},
newColor () {
if(this.searchData.codeNo==''){
if (this.searchData.codeNo === '') {
this.$message.success('数据错误,请关闭页面重试!')
return false;
}
let number=1;
let number = 1
for (let i = 0; i < this.colorTable.length; i++) {
if (number <= this.colorTable[i].order) {
number = Number(this.colorTable[i].order) + 1
@ -348,11 +346,12 @@
updateBy: '',
updateDate: '',
}
this.colorFlag=true;
this.colorFlag = true
},
updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag=true;
this.colorFlag = true
},
colorSearch (type) {
@ -361,8 +360,9 @@
if (type) {
this.$message.success( '操作成功')
}
});
})
},
colorSave () {
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
@ -370,17 +370,38 @@
}).then(() => {
saveBMprintIndigoColor(this.colorData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorSearch()
this.colorFlag = false
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {
})
},
//
colorSaveBatch () {
this.$confirm("此操作将清空已填写的数据,是否继续?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
let tempData = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
printSide: 'front',
}
saveBMPrintIndigoColorBatch(tempData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch()
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
})
},
deleteColor (row) {
this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定',
@ -389,7 +410,7 @@
}).then(() => {
deleteBMprintIndigoColor(row).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorSearch()
this.$message({
message: '操作成功',
type: 'success',
@ -402,11 +423,9 @@
})
}
})
}).catch(() => {
})
},
},
}
</script>

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

@ -33,7 +33,6 @@
</div>
</el-col>
</el-row>
</el-form>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo=='RDC'">
<el-row :gutter="20" >
@ -298,14 +297,7 @@
</span>
</el-dialog>
<el-dialog
append-to-body
width="900px"
title="工序记录"
top="10vh"
@close="closeItemModel"
:close-on-click-modal="false"
:visible.sync="routeModelFlag">
<el-dialog append-to-body width="900px" title="工序记录" top="10vh" @close="closeItemModel" :close-on-click-modal="false" :visible.sync="routeModelFlag">
<el-form label-position="top" style="margin-top: -5px; margin-left: 0px;" >
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">
@ -1053,12 +1045,14 @@
});
}
},
closeModel () {
this.routeModelFlag=false;
this.routeModelFlag = false
},
// itemType
bmModel (row) {
this.currentRow=row;
this.currentRow = row
this.routeModelFlag = true
setTimeout(() => {
switch (this.currentRow.itemType) {
@ -1116,91 +1110,109 @@
}
}, 500);
},
getPrepress(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='prepress'
this.$refs.prepress.init(inData)
},
getPrinting () {
let inData = JSON.parse(JSON.stringify(this.searchData))
inData.type = 'printing'
this.$refs.printing.init(inData)
},
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'
this.$refs.overprinting.init(inData)
},
getSlitting(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='slitting'
this.$refs.slitting.init(inData)
},
getLamTemperature(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='lamTemperature'
this.$refs.lamTemperature.init(inData)
},
getCutting(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='cutting'
this.$refs.cutting.init(inData)
},
getInkMixing(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='InkMixing'
this.$refs.InkMixing.init(inData)
},
getInkFormulation(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='InkFormulation'
this.$refs.InkFormulation.init(inData)
},
getLamination(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='lamination'
this.$refs.lamination.init(inData)
},
getCNC(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='CNC'
this.$refs.CNC.init(inData)
},
getCut(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='Cut'
this.$refs.Cut.init(inData)
},
getPackagePage(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='packagePage'
this.$refs.packagePage.init(inData)
},
getFqc(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='fqc'
this.$refs.fqc.init(inData)
},
getCqc(){
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='cqc'
this.$refs.cqc.init(inData)
},
getPrintFlexo () {
let inData = JSON.parse(JSON.stringify(this.searchData))
inData.type = 'printFlexo'
this.$refs.printFlexo.init(inData)
},
getPrintIndigo () {
let inData = JSON.parse(JSON.stringify(this.searchData))
inData.type = 'printIndigo'
this.$refs.printIndigo.init(inData)
},
reviewEngineerChooseModal(){
if(this.ifDisableFlag){
return false

Loading…
Cancel
Save