From 49b18aa41ee4cb5cce6e94fe65d6658b95b54d66 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 28 Nov 2025 14:25:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E7=89=A9=E6=96=99=E5=B1=95=E7=A4=BAtable?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=8E=9F=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/style/app.scss | 2 +- src/views/wpm_bx/mlogbw_check_table.vue | 340 ++++++++++++------------ 2 files changed, 172 insertions(+), 170 deletions(-) diff --git a/src/style/app.scss b/src/style/app.scss index 82e56ccc..389d6c41 100644 --- a/src/style/app.scss +++ b/src/style/app.scss @@ -4,7 +4,7 @@ a {color: #333;text-decoration: none;} a:hover, a:focus {color: #000;text-decoration: none;} a:link {text-decoration: none;} a:-webkit-any-link {text-decoration: none;} -a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: border-box;outline:none !important; -webkit-appearance: none;} +a,button,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: border-box;outline:none !important; -webkit-appearance: none;} * {margin: 0;padding: 0;box-sizing: border-box;outline: none;} .card-header { display: flex; diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index d4e4f88d..7eaa429a 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -17,148 +17,65 @@ - 检验 + 新增 + 检验 批量操作 - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
物料批次物料编号{{ item.testitem_name }}{{ item.defect_name }}备注操作
+ + + + {{ row.mlogb__batch }} + + + {{ row.number }} + ——{{ row.wpr_number_out }} + + {{ row[item.testitem_name] }} + + + + + + + + {{ row.note }} + + + + + + + +
{ + if(that.selectedindexes.indexOf(item.id)>-1){ + that.selectWprList.push(item); + } + }) + console.log('selectWprList',that.selectWprList); }, selectAllChange(datas){ let that = this; @@ -616,6 +527,7 @@ export default { } that.mlogbwlist.push(obj); }) + // console.log('that.mlogbwlist',that.mlogbwlist); } }) }, @@ -709,7 +621,15 @@ export default { if(that.mlogbwlist[index].work_start_time==''||that.mlogbwlist[index].work_start_time==null){ that.mlogbwlist[index].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss'); } - if(that.setForm.cd_req_addr!==null&&that.setForm.cd_req_addr!==""&&that.setForm.cd_req_addr!==undefined){ + let getEd = false; + if(that.qct_testitems.length>0){ + for(let i=0;i {}); }, - switchChange(row,item){ + switchChange(row,item,index){ let that = this; - let index = that.mlogbwlist.indexOf(row); that.mlogbwlist[index][item.defect_name] = row[item.defect_name]; }, //表单提交方法 @@ -868,7 +787,7 @@ export default { that.$refs.dialogForm.validate((valid) => { if (valid) { let obj = {}; - obj.mlogbw_ids = that.mlogbwlist.map(item => item.id); + obj.mlogbw_ids = that.mlogbwlist.map(item => item.id).filter(id => id !== undefined && id !== null && id !== ''); obj.test_equip = that.form.equipment; obj.test_user = that.form.test_user; obj.test_date = that.handle_date!=null?that.handle_date:that.currentDate; @@ -892,7 +811,7 @@ export default { that.qct_testitems = []; that.qct_testitems = that.testitemlists; that.tableHeight = document.getElementById('mlogbwMain').clientHeight-80; - that.getList(); + // that.getList(); }).catch(() => { that.isSaveing = false; }) @@ -913,6 +832,7 @@ export default { if(this.selectWprList.length>0){ this.selectWpr = this.selectWprList; } + console.log('this.selectWpr',this.selectWpr); this.setVisible=true; }, //扫描物料将这一行放到第一行并编辑这一行 @@ -929,8 +849,15 @@ export default { that.$nextTick(() => { that.$refs.mlogbwTable.setCurrentRows(obj); // 选中第一行 }) - - if(that.setForm.cd_req_addr!==null&&that.setForm.cd_req_addr!==""&&that.setForm.cd_req_addr!==undefined){ + let getEd = false; + if(that.qct_testitems.length>0){ + for(let i=0;i From e18a9544dcf45ef1507c0a0f2c336e4abc2a4ed6 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 28 Nov 2025 14:35:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E7=89=A9=E6=96=99=E5=88=97=E8=A1=A8=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_detail.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 8a92e9f0..a861af9f 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -216,7 +216,8 @@ row-key="id" stripe :params="paramsIn" - hidePagination + hidePagination + hideDo >