fix:禅道474
This commit is contained in:
parent
f8d3524c67
commit
ac63085192
|
|
@ -157,6 +157,12 @@ export default {
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
normalizeBangModel(model) {
|
||||||
|
if (model === "G05(粗)" || model === "G05(细)") {
|
||||||
|
return "G05";
|
||||||
|
}
|
||||||
|
return model;
|
||||||
|
},
|
||||||
getCountOk(type,models) {
|
getCountOk(type,models) {
|
||||||
let that = this;
|
let that = this;
|
||||||
let params = {
|
let params = {
|
||||||
|
|
@ -177,6 +183,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
b_model = item.型号;
|
b_model = item.型号;
|
||||||
}
|
}
|
||||||
|
b_model = that.normalizeBangModel(b_model);
|
||||||
let index = models.indexOf(b_model);
|
let index = models.indexOf(b_model);
|
||||||
if(index>-1){
|
if(index>-1){
|
||||||
that.tableData11[index].中检合格数 += item.合格数量;
|
that.tableData11[index].中检合格数 += item.合格数量;
|
||||||
|
|
@ -189,6 +196,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
b_model = item1.型号;
|
b_model = item1.型号;
|
||||||
}
|
}
|
||||||
|
b_model = that.normalizeBangModel(b_model);
|
||||||
let index = models.indexOf(b_model);
|
let index = models.indexOf(b_model);
|
||||||
if(index>-1){
|
if(index>-1){
|
||||||
that.tableData11[index].检验合格数 += item1.数量;
|
that.tableData11[index].检验合格数 += item1.数量;
|
||||||
|
|
@ -271,13 +279,15 @@ export default {
|
||||||
//按版型(型号)分组
|
//按版型(型号)分组
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
let index = 0;
|
let index = 0;
|
||||||
|
let model = "";
|
||||||
if (item.型号.indexOf("+") > -1) {
|
if (item.型号.indexOf("+") > -1) {
|
||||||
let model = item.型号.split("+")[0];
|
model = item.型号.split("+")[0];
|
||||||
index = models.indexOf(model);
|
|
||||||
item.型号 = model;
|
|
||||||
} else {
|
} else {
|
||||||
index = models.indexOf(item.型号);
|
model = item.型号;
|
||||||
}
|
}
|
||||||
|
model = that.normalizeBangModel(model);
|
||||||
|
item.型号 = model;
|
||||||
|
index = models.indexOf(model);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
dataArr[index].push(item);
|
dataArr[index].push(item);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -355,6 +365,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
model = item.型号;
|
model = item.型号;
|
||||||
}
|
}
|
||||||
|
model = that.normalizeBangModel(model);
|
||||||
let index = models.indexOf(model);
|
let index = models.indexOf(model);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
that.tableData11[index].检验合格数 += item.数量;
|
that.tableData11[index].检验合格数 += item.数量;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue