fix(生产模块-基膜工序出站): 添加线速度字段
This commit is contained in:
parent
1d4847b29f
commit
9da5ce2a5a
@ -344,6 +344,17 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 添加线速度 -->
|
||||
<el-table-column v-if="isLineSpeed === 'Y'" prop="lineSpeed" label="线速度" header-align="center" width="130px">
|
||||
<template #header >
|
||||
<span><span style="color: red;">*</span>线速度</span>
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<el-input v-model="scope.row.lineSpeed" type="number" :min="minValue" @input="outInput(scope.row, 'lineSpeed')"/>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" header-align="center" width="120px">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
@ -434,6 +445,7 @@ export default {
|
||||
isGroup: null, // 工序出站列表中班组是否显示且必输
|
||||
isTreadeSide: null, // 工序出站列表中处理面是否显示且必输
|
||||
isParameter: null, // 工序出站列表中检验项目VLT、IRR、UVR是否显示且必输
|
||||
isLineSpeed: null, // 工序出站列表中线速是否必输
|
||||
showInspector: null, // 是否展示检验员
|
||||
showPrintNum: null, // 是否展示打印数量
|
||||
}
|
||||
@ -460,6 +472,8 @@ export default {
|
||||
this.getCustomFieldsByResrce(this.site, this.$route.query.resrce, "IS_INSPECTOR")
|
||||
// 获取设备自定义字段工序出站展示打印数量
|
||||
this.getCustomFieldsByResrce(this.site, this.$route.query.resrce, "IS_PRINT_COPIES")
|
||||
// 获取设备自定义字段工序出站展示线速度
|
||||
this.getCustomFieldsByResrce(this.site, this.$route.query.resrce, "IS_LINE_SPEED")
|
||||
}
|
||||
if (this.$route.query.operation) {
|
||||
this.searchForm.operation = this.$route.query.operation
|
||||
@ -596,6 +610,16 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if (flag === 'lineSpeed') {
|
||||
if (reg.test(row.lineSpeed)) {
|
||||
row.uvrParsedValue = row.lineSpeed;
|
||||
} else {
|
||||
if (row.lineSpeed) {
|
||||
this.$nextTick(() => {
|
||||
row.lineSpeed = row.uvrParsedValue;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// 质检状态字典处理
|
||||
@ -1028,6 +1052,12 @@ export default {
|
||||
} else if (fieldName === "IS_PRINT_COPIES") {
|
||||
// 工序出站展示检验员
|
||||
this.showPrintNum = response.data.data
|
||||
} else if (fieldName === "IS_LINE_SPEED") {
|
||||
console.log("IS_LINE_SPEED");
|
||||
console.log(response.data.data);
|
||||
// 工序出站展示线速度
|
||||
this.isLineSpeed = response.data.data;
|
||||
console.log(this.isLineSpeed)
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1083,6 +1113,9 @@ export default {
|
||||
if (this.isParameter === 'Y' && !this.selectedRows[i].uvr) {
|
||||
return this.$message.warning("列表中已勾选的数据存在未输入的检验项目UVR!");
|
||||
}
|
||||
if (this.isLineSpeed === 'Y' && !this.selectedRows[i].lineSpeed) {
|
||||
return this.$message.warning("列表中已勾选的数据存在未输入的线速度!");
|
||||
}
|
||||
}
|
||||
}
|
||||
// 校验选中的列表数据是否存在重复的工单和物料和工位
|
||||
|
||||
Loading…
Reference in New Issue
Block a user