|
|
|
@ -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> |
|
|
|
|