diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue
index bc3c8798..be7124e5 100644
--- a/src/views/inm/mioitem.vue
+++ b/src/views/inm/mioitem.vue
@@ -104,8 +104,6 @@
{{scope.row.count}}
-
-
@@ -113,9 +111,7 @@
{{ Number(scope.row.count) - Number(scope.row.count_send) }}
-
@@ -670,14 +666,18 @@ export default {
return;
}
let propert = '';
- //尺寸检验
- if(index == 6){
+ if((index == 5||index == 6)&&column.label=='数量'){
propert = 'count';
- }else if(index == 7&&this.mioObj.type == 'sale_out'&&this.project_code=='gx'){
- propert = 'count_send';
- }else if((index == 7||index == 8)&&column.label=='不合格数量'){
+ }
+ if((index == 6||index == 7||index == 8||index == 9)&&column.label=='不合格数量'){
propert = 'count_notok';
}
+ if((index == 6||index == 7||index == 8)&&column.label=='检验'){
+ propert = 'count_tested';
+ }
+ if(index == 6 &&column.label == '发出数量'){
+ propert = 'count_send';
+ }
if (propert!=='') {
const values = data.map((item) =>
Number(item[propert])
@@ -694,12 +694,12 @@ export default {
}, 0);
}
}
- if(index==8&&this.mioObj.type == 'sale_out'&&this.project_code=='gx'){
- if(sums[6]){
- if(sums[7]){
- sums[index] = sums[6]-sums[7];
+ if(index==7&&this.mioObj.type == 'sale_out'&&this.project_code=='gx'){
+ if(sums[5]){
+ if(sums[6]){
+ sums[index] = sums[5]-sums[6];
}else{
- sums[index] = sums[6];
+ sums[index] = sums[5];
}
}
}