Browse Source

2025-06-06

材料信息中的油墨需要待入到印刷模版中的颜色中
      1、材料信息中单位是kg的
      2、将物料编码放到颜色中
master
fengyuan_yang 7 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 searchBMprintIndigoColor= data => createAPI(`/technicalSpecification/searchBMprintIndigoColor`,'post',data)
export const saveBMprintIndigoColor= data => createAPI(`/technicalSpecification/saveBMprintIndigoColor`,'post',data) export const saveBMprintIndigoColor= data => createAPI(`/technicalSpecification/saveBMprintIndigoColor`,'post',data)
export const deleteBMprintIndigoColor= data => createAPI(`/technicalSpecification/deleteBMprintIndigoColor`,'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 * @param data

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save