diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue
index 0e02c83b..ace53ba7 100644
--- a/src/views/wpm_bx/mlogbw_check.vue
+++ b/src/views/wpm_bx/mlogbw_check.vue
@@ -36,6 +36,7 @@
:addTemplate="addTemplate"
placeholder="暂无数据"
:hideAdd="hideAdd"
+ @add="rowAdd"
>
@@ -106,7 +107,6 @@
/>
-
保存
取消
编辑
+ 删除
{
+ that.material_model = res.material_model;
+ let years = year+'';
+ years = years.slice(2,4);
+ let months = month<10?'0'+month:month;
+ that.alreadyCount = res.count;
+ let num = res.count+1;
+ if(num<10){
+ num = "000"+num;
+ }else if(num<100){
+ num = "00"+num;
+ }else if(num<1000){
+ num = "0"+num;
+ }
+ if(that.mgroupName=='排一次棒'){
+ that.addTemplate.number = years+months+num;
+ }
+ if(that.mgroupName=='排板'){
+ that.addTemplate.number = years+ months + res.material_model+num;
+ }
+ })
+ },
+ rowAdd(data){
+ let that = this;
+ let years = that.year+'';
+ years = years.slice(2,4);
+ let months = that.month<10?'0'+that.month:that.month;
+ let num = data.number.slice(-4);
+ num = Number(num)+1;
+ if(num<10){
+ num = "000"+num;
+ }else if(num<100){
+ num = "00"+num;
+ }else if(num<1000){
+ num = "0"+num;
+ }
+ console.log('num',num);
+ console.log('data.number:',data.number);
+ if(this.mgroupName=='排一次棒'){
+ that.addTemplate.number = years+months+num;
+ }
+ if(that.mgroupName=='排板'){
+ that.addTemplate.number = years+ months + that.material_model+num;
+ }
+ },
getEquipment4() {
let that = this;
that.$API.em.equipment.list.req({page:0,cate__code:"4"}).then((res) => {
@@ -725,6 +798,9 @@ export default {
}
});
},
+ formTableDelet(row){
+ this.mlogbwlist.pop();
+ },
//删除
formTableDel(id) {
let that = this;