From d3f252cd3111a2625c419f694e977702bfc5bf25 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Mon, 4 Nov 2024 17:53:12 +0800 Subject: [PATCH] 1 --- src/api/orderIssure/soIssueNotify.js | 1 + src/assets/scss/yzznb.scss | 11 ++ .../soIssueNotify/newSoIssueNotify.vue | 113 +++++++++++-- .../soIssueNotify/searchIssureNotify.vue | 152 ++++++++++-------- .../soIssueNotify/searchIssureNotifyForCK.vue | 150 ++++++++++------- 5 files changed, 293 insertions(+), 134 deletions(-) diff --git a/src/api/orderIssure/soIssueNotify.js b/src/api/orderIssure/soIssueNotify.js index 29002a9..ed15e59 100644 --- a/src/api/orderIssure/soIssueNotify.js +++ b/src/api/orderIssure/soIssueNotify.js @@ -39,3 +39,4 @@ export const saveOtherPart= data => createAPI(`/orderIssure/issureNotify/saveOth export const getNoControlPartList= data => createAPI(`/orderIssure/issureNotify/getNoControlPartList`,'post',data) export const searchOtherPart= data => createAPI(`/orderIssure/issureNotify/searchOtherPart`,'post',data) export const searchNotifyLog= data => createAPI(`/orderIssure/issureNotify/searchNotifyLog`,'post',data) +export const deleteNotifyMaterialWithOutLog= data => createAPI(`/orderIssure/issureNotify/deleteNotifyMaterialWithOutLog`,'post',data) diff --git a/src/assets/scss/yzznb.scss b/src/assets/scss/yzznb.scss index 49ae996..ef88018 100644 --- a/src/assets/scss/yzznb.scss +++ b/src/assets/scss/yzznb.scss @@ -19,3 +19,14 @@ width: 100%; /* 让 el-input 铺满容器宽度 */ } + +.el-table .error-row { + background: #f80d0d; + color: white; +} + + +.yzz .el-table__body tr:hover > td { + background-color: transparent !important; /* 设置为你需要的颜色,透明色表示无背景色 */ +} + diff --git a/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue b/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue index 8e1a53a..aaba1f1 100644 --- a/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue @@ -1,5 +1,5 @@ + + + @@ -148,6 +158,16 @@ style="width: 100px; height: 80px"/> + + + @@ -358,7 +378,7 @@ 关闭 - + @@ -396,12 +416,16 @@ :min-width="item.columnWidth" :label="item.columnLabel"> @@ -536,6 +560,7 @@ border @row-dblclick="chooseNoControlPartNo" style="width: 100%;"> + + + + + + + + 保存 @@ -703,6 +735,7 @@ saveOtherPart, getNoControlPartList, searchOtherPart, + deleteNotifyMaterialWithOutLog, }from "@/api/orderIssure/soIssueNotify.js" import Chooselist from '@/views/modules/common/Chooselist_eam' export default { @@ -858,6 +891,23 @@ status: true, fixed: '', columnWidth: 80 + },{ + userId: this.$store.state.user.name, + functionId: 701001, + serialNumber: '701001Table4Remark', + tableId: "701001Table4", + tableName: "申请单材料明细表", + columnProp: "remark", + headerAlign: "center", + align: "left", + columnLabel: "备注", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 200 }, ], modalData:{ @@ -1273,7 +1323,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 50, + columnWidth: 80, }, { userId: this.$store.state.user.name, @@ -1291,7 +1341,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 220, + columnWidth: 120, }, { userId: this.$store.state.user.name, @@ -1320,7 +1370,7 @@ columnProp: 'qtyOnHand', headerAlign: "center", align: "right", - columnLabel: '现场库存数量', + columnLabel: '现场库存', columnHidden: false, columnImage: false, columnSortable: false, @@ -1365,6 +1415,24 @@ fixed: '', columnWidth: 60, }, + { + userId: this.$store.state.user.name, + functionId: 701001002, + serialNumber: '701001002Table3Remark', + tableId: "701001002Table3", + tableName: "领料申请BOM子表", + columnProp: 'remark', + headerAlign: "center", + align: "left", + columnLabel: '备注', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 150, + }, ], rules:{ groupIdType:[ @@ -1421,6 +1489,7 @@ issueType:'', partDesc:'', umid:'', + remark:'', }, } }, @@ -1450,6 +1519,30 @@ }, methods: { + deleteNotifyMaterial(row){ + this.$confirm('确认删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + deleteNotifyMaterialWithOutLog(row).then(({data}) => { + if (data && data.code === 0) { + this.searchOtherPart('非BOM物料') + this.searchOtherPart('不管控物料') + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, getBaseList (val,type) { this.tagNo = val let conSql='' @@ -1484,6 +1577,7 @@ issueType:'非BOM物料', partDesc:row.partDesc, umid:row.umid, + remark:'', } this.saveOtherPartModalFlag=true }, @@ -1498,6 +1592,7 @@ issueType:'不管控物料', partDesc:row.partDesc, umid:row.umid, + remark:'', } this.saveOtherPartModalFlag=true }, diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue index 529b164..cfe3710 100644 --- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue @@ -1,5 +1,5 @@