diff --git a/klp-ui/src/api/wms/coilAbnormal.js b/klp-ui/src/api/wms/coilAbnormal.js
new file mode 100644
index 00000000..8008468c
--- /dev/null
+++ b/klp-ui/src/api/wms/coilAbnormal.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询钢卷异常信息列表
+export function listCoilAbnormal(query) {
+ return request({
+ url: '/wms/coilAbnormal/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询钢卷异常信息详细
+export function getCoilAbnormal(abnormalId) {
+ return request({
+ url: '/wms/coilAbnormal/' + abnormalId,
+ method: 'get'
+ })
+}
+
+// 新增钢卷异常信息
+export function addCoilAbnormal(data) {
+ return request({
+ url: '/wms/coilAbnormal',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改钢卷异常信息
+export function updateCoilAbnormal(data) {
+ return request({
+ url: '/wms/coilAbnormal',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除钢卷异常信息
+export function delCoilAbnormal(abnormalId) {
+ return request({
+ url: '/wms/coilAbnormal/' + abnormalId,
+ method: 'delete'
+ })
+}
diff --git a/klp-ui/src/views/lines/index.vue b/klp-ui/src/views/lines/index.vue
index 7df42676..fcd16480 100644
--- a/klp-ui/src/views/lines/index.vue
+++ b/klp-ui/src/views/lines/index.vue
@@ -1,12 +1,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -41,9 +41,10 @@ import RollerAnalysis from './panels/analysis/roller.vue'
},
data() {
return {
- activeName: 'Plan',
+ activeName: 'Track',
baseURL: '',
- ready: false
+ ready: false,
+ tabs: []
}
},
created() {
@@ -53,6 +54,14 @@ import RollerAnalysis from './panels/analysis/roller.vue'
this.baseURL = res.msg
this.ready = true
})
+ getConfigKey(`line.${route}.config`).then(res => {
+ const tabs = res.msg.split(',')
+ // 是否包含Track, 如果不包含则添加
+ if (!tabs.includes('Track')) {
+ tabs.push('Track')
+ }
+ this.tabs = tabs
+ })
}
}
diff --git a/klp-ui/src/views/wms/coil/abnormal.vue b/klp-ui/src/views/wms/coil/abnormal.vue
new file mode 100644
index 00000000..db0bbe06
--- /dev/null
+++ b/klp-ui/src/views/wms/coil/abnormal.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/coil/abnormalDetail.vue b/klp-ui/src/views/wms/coil/abnormalDetail.vue
new file mode 100644
index 00000000..e41cd1dd
--- /dev/null
+++ b/klp-ui/src/views/wms/coil/abnormalDetail.vue
@@ -0,0 +1,366 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.judgeTime, '{y}-{m}-{d}') }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+ {{dict.label}}
+
+
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/klp-ui/src/views/wms/coil/do/search.vue b/klp-ui/src/views/wms/coil/do/search.vue
index 1c0924f8..1ed13996 100644
--- a/klp-ui/src/views/wms/coil/do/search.vue
+++ b/klp-ui/src/views/wms/coil/do/search.vue
@@ -115,7 +115,6 @@
-
diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue
index b1d0b720..af7a082e 100644
--- a/klp-ui/src/views/wms/coil/panels/base.vue
+++ b/klp-ui/src/views/wms/coil/panels/base.vue
@@ -99,6 +99,7 @@
+
@@ -147,6 +148,7 @@
发货
+ 查看异常
修正
删除
追溯
@@ -311,6 +313,10 @@ export default {
type: Boolean,
default: false,
},
+ showAbnormal: {
+ type: Boolean,
+ default: false,
+ },
},
data() {
return {
@@ -509,6 +515,14 @@ export default {
this.$message.error('保存图片失败,请稍后重试');
}
},
+ handleAbnormal (row) {
+ this.$router.push({
+ path: '/quality/detail',
+ query: {
+ coilId: row.coilId,
+ }
+ })
+ },
// 取消按钮
cancel() {
this.open = false;
diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue
index 55bf34e7..e577f731 100644
--- a/klp-ui/src/views/wms/coil/panels/do.vue
+++ b/klp-ui/src/views/wms/coil/panels/do.vue
@@ -37,7 +37,8 @@
暂无待领物料
-
+
@@ -290,6 +296,40 @@
+
+
+
+
+
+ {{
+ dict.label }}
+
+
+
+
+
+
+
+ {{
+ dict.label }}
+
+
+
+
+ {{
+ dict.label }}
+
+
+
+
+
+
+
+
@@ -299,10 +339,11 @@ import { listPendingAction, startProcess, cancelAction, delPendingAction, addPen
import { parseTime } from '@/utils/klp'
import ProductInfo from '@/components/KLPService/Renderer/ProductInfo'
import RawMaterialInfo from '@/components/KLPService/Renderer/RawMaterialInfo'
+import { addCoilAbnormal } from '@/api/wms/coilAbnormal'
export default {
name: 'DoPage',
- dicts: ['action_type'],
+ dicts: ['action_type', 'coil_abnormal_code', 'coil_abnormal_position', 'coil_abnormal_degree'],
props: {
label: {
type: String,
@@ -342,6 +383,16 @@ export default {
currentCoilNo: null,
actionType: null, // 将在created中设置为酸连轧工序的actionType
actionStatus: null
+ },
+
+ exceptionDialogVisible: false,
+ exceptionForm: {
+ coilId: null,
+ position: null,
+ lengthCoord: null,
+ defectCode: null,
+ degree: null,
+ remark: null
}
}
},
@@ -603,6 +654,42 @@ export default {
}
return '—'
},
+ handleAddAbnormal(row) {
+ this.exceptionForm.coilId = row.coilId
+ this.exceptionDialogVisible = true
+ },
+ confirmException() {
+ addCoilAbnormal(this.exceptionForm).then(response => {
+ this.$message.success('异常记录添加成功')
+ this.cancelException();
+ // 重置表单
+ this.getMaterialCoil()
+ }).catch(error => {
+ console.error('异常记录添加失败:', error)
+ this.$message.error('异常记录添加失败: ' + (error.message || error))
+ })
+
+ },
+ handleAbnormal() {
+ this.$router.push({
+ path: '/quality/detail',
+ query: {
+ coilId: this.exceptionForm.coilId,
+ }
+ })
+ },
+ cancelException() {
+ // 重置表单
+ this.exceptionForm = {
+ coilId: null,
+ position: null,
+ lengthCoord: null,
+ defectCode: null,
+ degree: null,
+ remark: null
+ }
+ this.exceptionDialogVisible = false
+ },
}
}