feat(钢卷异常管理): 新增上下板面和主缺陷字段并完善钢卷信息展示
在异常表单中增加上下板面选择器和主缺陷复选框 在多个页面表格中新增上下板面和主缺陷字段展示 在异常管理对话框和面板中增加钢卷详细信息展示 优化表单布局和部分字段标签描述
This commit is contained in:
@@ -53,11 +53,14 @@
|
||||
</coil-no>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="上下板面" align="center" prop="plateSurface"></el-table-column>
|
||||
|
||||
<el-table-column label="位置" align="center" prop="position">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.coil_abnormal_position" :value="scope.row.position" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="开始位置" align="center" prop="startPosition" />
|
||||
<el-table-column label="结束位置" align="center" prop="endPosition" />
|
||||
<el-table-column label="缺陷长度" align="center" prop="length" />
|
||||
@@ -66,6 +69,12 @@
|
||||
<dict-tag :options="dict.type.coil_abnormal_code" :value="scope.row.defectCode" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否为主缺陷" prop="mainMark">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.mainMark" type="success">是</el-tag>
|
||||
<el-tag v-else type="danger">否</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="程度" align="center" prop="degree">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.coil_abnormal_degree" :value="scope.row.degree" />
|
||||
@@ -167,8 +176,8 @@ export default {
|
||||
'$route.query.coilId': {
|
||||
handler(newVal, oldVal) {
|
||||
// if (newVal !== oldVal) {
|
||||
this.queryParams.coilId = newVal
|
||||
this.handleQuery()
|
||||
this.queryParams.coilId = newVal
|
||||
this.handleQuery()
|
||||
// }
|
||||
},
|
||||
immediate: true
|
||||
@@ -252,7 +261,7 @@ export default {
|
||||
if (valid) {
|
||||
this.buttonLoading = true;
|
||||
if (this.form.abnormalId != null) {
|
||||
updateCoilAbnormal({...this.form, length: this.form.endPosition - this.form.startPosition}).then(response => {
|
||||
updateCoilAbnormal({ ...this.form, length: this.form.endPosition - this.form.startPosition }).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
@@ -260,7 +269,7 @@ export default {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
} else {
|
||||
addCoilAbnormal({...this.form, length: this.form.endPosition - this.form.startPosition}).then(response => {
|
||||
addCoilAbnormal({ ...this.form, length: this.form.endPosition - this.form.startPosition }).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
|
||||
Reference in New Issue
Block a user