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. 63
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  3. 115
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printing.vue
  4. 129
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingFlexo.vue
  5. 173
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_printingIndigo.vue
  6. 72
      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

63
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,36 +453,37 @@
this.dataForm.spec=row.spec
this.partModelFlag=false;
},
//
init(inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
init (inData) {
if (this.searchData.codeNo != null && this.searchData.codeNo != '') {
return false;
}
//
this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
//
this.searchData = JSON.parse(JSON.stringify(inData))
if (this.searchData.ifDisableFlag) {
this.ifDisableFlag = true
}
//
this.searchTable();
//
this.searchTable()
},
searchTable(type){
searchTable (type) {
getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName
this.spForm.sp = data.row.sp==null?'':data.row.sp
this.spForm.sp = data.row.sp == null ? '' : data.row.sp
})
searchBMBom(this.searchData).then(({data}) => {
if(data&& data.code===0){
this.bomList = data.rows;
this.bomData = data.row;
if(type){
if (data&& data.code === 0) {
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,34 +491,37 @@
this.getNodeAuthority(data.row)
})
},
searchDetailTable(){
searchDetailTable () {
searchBMBomDetail(this.bomData).then(({data}) => {
this.bomDetailList=data.rows;
});
this.bomDetailList = data.rows
})
},
changeBomRev(){
this.searchDetailTable()
this.currentRow=null
this.modalFlag=true;
changeBomRev () {
this.searchDetailTable()
this.currentRow = null
this.modalFlag = true
},
getRow(row){
this.currentRow=row
getRow (row) {
this.currentRow = row
},
updateBMBomRev(){
if(this.currentRow==null){
updateBMBomRev () {
if (this.currentRow == null) {
this.$alert('请点击选择BOM版本!', '错误', {
confirmButtonText: '确定'
})
return false;
}
if(this.currentRow.status!=='Buildable'){
if (this.currentRow.status!=='Buildable') {
this.$alert('只有Buildable状态的可以保存!', '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData={
let inData = {
site:this.bomData.site,
codeNo:this.searchData.codeNo,
bomType:this.currentRow.bomType,

115
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,91 +245,113 @@
}
}
},
//
init(inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
init (inData) {
if (this.searchData.codeNo != null && this.searchData.codeNo !== '') {
return false;
}
debugger
//
this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
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(){
},
searchTable () {
},
newColor(){
if(this.searchData.codeNo==''){
newColor () {
if (this.searchData.codeNo === '') {
this.$message.success('数据错误,请关闭页面重试!')
return false;
}
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
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
}
}
this.colorData={
id:0,
this.colorData = {
id: 0,
site: this.searchData.site,
codeNo:this.searchData.codeNo,
order:number,
inkType:'',
colorReference:'',
colorMatch:'',
bcm:'',
speed:'',
dry:'',
gallus:'',
markAndy:'',
lp:'',
hexiang:'',
updateBy:'',
updateDate:'',
codeNo: this.searchData.codeNo,
order: number,
inkType: '',
colorReference: '',
colorMatch: '',
bcm: '',
speed: '',
dry: '',
gallus: '',
markAndy: '',
lp: '',
hexiang: '',
updateBy: '',
updateDate: '',
}
this.colorFlag=true;
this.colorFlag = true
},
updateColor(row){
this.colorData=JSON.parse(JSON.stringify(row))
this.colorFlag=true;
updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag = true
},
colorSearch(type){
colorSearch (type) {
searchBMPrintingColor(this.searchData).then(({data}) => {
if(type){
if (type) {
this.$message.success( '操作成功')
}
this.colorTable = data.rows
});
})
},
colorSave(){
colorSave () {
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
saveBMPrintingColor(this.colorData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorFlag=false
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>

129
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,96 +290,118 @@
}
}
},
//
init(inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
init (inData) {
if (this.searchData.codeNo != null && this.searchData.codeNo !== '') {
return false;
}
//
this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
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.searchData.type = 'printFlexo'
this.$refs.printFlexo.init(JSON.parse(JSON.stringify(this.searchData)))
},
searchTable(){
},
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.colorTable.length ; i++) {
if(number<=this.colorTable[i].order){
number=Number(this.colorTable[i].order)+1
if (number <= this.colorTable[i].order) {
number = Number(this.colorTable[i].order) + 1
}
}
this.colorData={
id:0,
this.colorData = {
id: 0,
site: this.searchData.site,
codeNo:this.searchData.codeNo,
order:number,
printSide:'front',
colorReference:'',
inkCode:'',
colorMatch:'',
lpi:'',
bcm:'',
openFlag:'',
gallus:'',
markAndy:'',
hexiang:'',
temperature:'',
pressure:'',
remark:'',
updateBy:'',
updateDate:'',
codeNo: this.searchData.codeNo,
order: number,
printSide: 'front',
colorReference: '',
inkCode: '',
colorMatch: '',
lpi: '',
bcm: '',
openFlag: '',
gallus: '',
markAndy: '',
hexiang: '',
temperature: '',
pressure: '',
remark: '',
updateBy: '',
updateDate: '',
}
this.colorFlag=true;
this.colorFlag = true
},
updateColor(row){
this.colorData=JSON.parse(JSON.stringify(row))
this.colorFlag=true;
updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag = true
},
colorSearch(type){
colorSearch (type) {
searchBMprintFlexoColor(this.searchData).then(({data}) => {
this.colorTable = data.rows
if(type){
if (type) {
this.$message.success( '操作成功')
}
});
})
},
colorSave(){
colorSave () {
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
saveBMprintFlexoColor(this.colorData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorFlag=false
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){
deleteColor (row) {
this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -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>

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

@ -2,11 +2,12 @@
<div class="mod-config">
<printIndigo ref="printIndigo"></printIndigo>
<el-form label-position="top" style="margin-top: 5px; margin-left: 0px;" >
<el-form-item >
<el-button type="primary" @click="colorSearch(true)" >刷新</el-button>
<el-button type="primary" @click="newColor()" v-if="!ifDisableFlag">新增</el-button>
</el-form-item>
<el-form label-position="top" style="margin-top: 5px; margin-left: 0px;">
<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"
:data="colorTable"
@ -142,66 +143,62 @@
</el-table-column>
</el-table-column>
</el-table>
<div class="rq-bmPic" >
<img style="max-width: 100%;max-height: 100%;vertical-align:middle;" :src="picUrl">
<div class="rq-bmPic">
<img style="max-width: 100%;max-height: 100%;vertical-align:middle;" :src="picUrl">
</div>
</el-form>
</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="'色序'">
<el-input v-model="colorData.order" :disabled="this.colorData.id!==0" type="number" style="width: 130px" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" ></el-input>
<el-input v-model="colorData.order" :disabled="this.colorData.id!==0" type="number" style="width: 130px" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" ></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(133,1)" ><a herf="#">油墨代号/颜色IFS No</a></span>
<el-input v-model="colorData.inkCode" style="width: 130px" ></el-input>
<span slot="label" style="" @click="getBaseList(133,1)"><a herf="#">油墨代号/颜色IFS No</a></span>
<el-input v-model="colorData.inkCode" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'颜色参考'">
<el-input v-model="colorData.colorReference" style="width: 130px" ></el-input>
<el-input v-model="colorData.colorReference" style="width: 130px"></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="'颜色匹配'">
<el-input v-model="colorData.colorMatch" style="width: 130px" ></el-input>
<el-input v-model="colorData.colorMatch" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'印刷档位'">
<el-input v-model="colorData.printMotion" style="width: 130px" ></el-input>
<el-input v-model="colorData.printMotion" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'实地密度'">
<el-input v-model="colorData.opticalDensity" style="width: 130px" ></el-input>
<el-input v-model="colorData.opticalDensity" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'扩张曲线'">
<el-input v-model="colorData.lut" style="width: 130px" ></el-input>
<el-input v-model="colorData.lut" style="width: 130px"></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="'加网线数'">
<el-input v-model="colorData.lpi" style="width: 130px" ></el-input>
<el-input v-model="colorData.lpi" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'加网角度'">
<el-input v-model="colorData.screenAngle" style="width: 130px" ></el-input>
<el-input v-model="colorData.screenAngle" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'印刷遍数'">
<el-input v-model="colorData.printHits" style="width: 130px" ></el-input>
<el-input v-model="colorData.printHits" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'橡皮布温度'">
<el-input v-model="colorData.blanketTemperture" style="width: 130px" ></el-input>
<el-input v-model="colorData.blanketTemperture" style="width: 130px"></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="'Remark'">
<!-- <el-input v-model="colorData.remark" style="width: 530px" ></el-input>-->
<el-input
type="textarea"
v-model="colorData.remark"
:rows="3"
@ -219,7 +216,7 @@
</el-footer>
</el-dialog>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
@ -229,6 +226,7 @@
searchBMprintIndigoColor,
saveBMprintIndigoColor,
deleteBMprintIndigoColor,
saveBMPrintIndigoColorBatch, //
} from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
@ -294,94 +292,117 @@
}
}
},
//
init(inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
init (inData) {
if (this.searchData.codeNo != null && this.searchData.codeNo !== '') {
return false;
}
//
this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
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.searchData.type = 'printIndigo'
this.$refs.printIndigo.init(JSON.parse(JSON.stringify(this.searchData)))
},
searchTable(){
},
searchTable () {
},
newColor(){
if(this.searchData.codeNo==''){
newColor () {
if (this.searchData.codeNo === '') {
this.$message.success('数据错误,请关闭页面重试!')
return false;
}
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
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
}
}
this.colorData={
id:0,
this.colorData = {
id: 0,
site: this.searchData.site,
codeNo:this.searchData.codeNo,
order:number,
printSide:'front',
colorReference:'',
inkCode:'',
colorMatch:'',
printMotion:'',
opticalDensity:'',
lut:'',
lpi:'',
screenAngle:'',
printHits:'',
blanketTemperture:'',
remark:'',
updateBy:'',
updateDate:'',
codeNo: this.searchData.codeNo,
order: number,
printSide: 'front',
colorReference: '',
inkCode: '',
colorMatch: '',
printMotion: '',
opticalDensity: '',
lut: '',
lpi: '',
screenAngle: '',
printHits: '',
blanketTemperture: '',
remark: '',
updateBy: '',
updateDate: '',
}
this.colorFlag=true;
this.colorFlag = true
},
updateColor(row){
this.colorData=JSON.parse(JSON.stringify(row))
this.colorFlag=true;
updateColor (row) {
this.colorData = JSON.parse(JSON.stringify(row))
this.colorFlag = true
},
colorSearch(type){
colorSearch (type) {
searchBMprintIndigoColor(this.searchData).then(({data}) => {
this.colorTable = data.rows
if(type){
if (type) {
this.$message.success( '操作成功')
}
});
})
},
colorSave(){
colorSave () {
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
saveBMprintIndigoColor(this.colorData).then(({data}) => {
if (data && data.code === 0) {
this.colorSearch();
this.colorFlag=false
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){
deleteColor (row) {
this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -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>

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

@ -14,7 +14,7 @@
<span slot="label" style="" @click="getBaseList(2)"><a herf="#">印刷人员</a></span>
<el-input v-model="sheetData.printOperatorName" ref="printOperatorName" placeholder="请选择人员" readonly style="width: 120px" ></el-input>
</el-form-item>
<el-form-item label=" ">
<el-form-item label=" ">
<el-button type="primary" @click="updateBMProcess()" v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && baseForm.status === 'spz') || baseForm.status === 'cg' || superAdmin">保存数据</el-button>
<el-button v-if="baseForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="baseForm.status === 'spz' && ((baseForm.isReject === 'Y' && !ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="submitDataModal">驳回</el-button>
@ -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" >
@ -210,7 +209,7 @@
width="60"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="bmModel(scope.row)" v-if="!ifDisableFlag&&isAuth('103002:bmRoute')">填写</a>
<a type="text" size="small" @click="bmModel(scope.row)" v-if="!ifDisableFlag && isAuth('103002:bmRoute')">填写</a>
</template>
</el-table-column>
<el-table-column
@ -298,33 +297,26 @@
</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">
<el-form-item :label="'工序编码'">
<el-input v-model="currentRow.operationNo" disabled ></el-input>
<el-input v-model="currentRow.operationNo" disabled></el-input>
</el-form-item>
</div></el-col>
<el-col :span="6"><div class="grid-content bg-purple">
<el-form-item :label="'工序名称'">
<el-input v-model="currentRow.operationName" disabled ></el-input>
<el-input v-model="currentRow.operationName" disabled></el-input>
</el-form-item>
</div></el-col>
</el-row>
</el-form>
<div v-if="currentRow.itemType === 'prepress'">
<prepress ref="prepress" @closeModel="closeModel"></prepress>
<prepress ref="prepress" @closeModel="closeModel"></prepress>
</div>
<div v-else-if="currentRow.itemType === 'printing'">
<printing ref="printing" @closeModel="closeModel"></printing>
<printing ref="printing" @closeModel="closeModel"></printing>
</div>
<div v-else-if="currentRow.itemType === 'printOther'">
<printOther ref="printOther" @closeModel="closeModel"></printOther>
@ -1053,13 +1045,15 @@
});
}
},
closeModel(){
this.routeModelFlag=false;
closeModel () {
this.routeModelFlag = false
},
//itemType
bmModel(row){
this.currentRow=row;
this.routeModelFlag=true
// itemType
bmModel (row) {
this.currentRow = row
this.routeModelFlag = true
setTimeout(() => {
switch (this.currentRow.itemType) {
case 'prepress':
@ -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'
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'
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'
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