fix:mlogbw输出物料检验

This commit is contained in:
shijing 2025-01-22 09:42:05 +08:00
parent 14170dbc56
commit e8508bfc67
1 changed files with 9 additions and 6 deletions

View File

@ -7,10 +7,11 @@
@closed="$emit('closed')" @closed="$emit('closed')"
> >
<el-container> <el-container>
<el-main> <el-main id="mlogbwMain">
<sc-form-table <sc-form-table
hideDelete hideDelete
id="mlogbwList" id="mlogbwlist"
:tableHeight="tableHeight"
v-model="mlogbwlist" v-model="mlogbwlist"
:addTemplate="addTemplate" :addTemplate="addTemplate"
placeholder="暂无数据" placeholder="暂无数据"
@ -209,6 +210,7 @@ export default {
note: "", note: "",
isEdit: true, isEdit: true,
}, },
tableHeight:500,
apiObjPrint:this.$API.cm.labelmat.fromWm, apiObjPrint:this.$API.cm.labelmat.fromWm,
printer_name:localStorage.getItem("printer_name") printer_name:localStorage.getItem("printer_name")
}; };
@ -224,6 +226,10 @@ export default {
this.mode = mode; this.mode = mode;
console.log(this.mode); console.log(this.mode);
this.visible = true; this.visible = true;
setTimeout(() => {
this.tableHeight = document.getElementById('mlogbwMain').clientHeight-20;
},500)
}, },
getdefects(){ getdefects(){
let that = this; let that = this;
@ -322,7 +328,7 @@ export default {
//qct //qct
if(that.qct!==null&&that.qct!==''){ if(that.qct!==null&&that.qct!==''){
// //
if(row.ftest!==null){ if(row.ftest!==null&&row.ftest!==undefined&&row.ftest!==''){
console.log('已填过'); console.log('已填过');
obj.ftest =row.ftest; obj.ftest =row.ftest;
obj.ftest.ftestdefects.forEach((item) => { obj.ftest.ftestdefects.forEach((item) => {
@ -480,7 +486,4 @@ export default {
.width-100{ .width-100{
width: 100%; width: 100%;
} }
#mlogbwList .el-table--default .cell{
padding: 0 5px !important;
}
</style> </style>