|
@@ -616,13 +616,13 @@
|
|
|
for (var i=0;i<this.multipleSelection.length; i++) {
|
|
|
var line = this.multipleSelection[i];
|
|
|
var array = line.data;
|
|
|
- // if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
- // ids += line.reportIds+',';
|
|
|
- // } else {
|
|
|
+ if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
+ ids += line.reportIds+',';
|
|
|
+ } else {
|
|
|
for (var m=0;m<array.length; m++) {
|
|
|
ids += array[m].id+',';
|
|
|
}
|
|
|
- // }
|
|
|
+ }
|
|
|
}
|
|
|
if (ids.length > 0) {
|
|
|
ids = ids.substring(0, ids.length-1);
|
|
@@ -754,9 +754,9 @@
|
|
|
}
|
|
|
//明夷电子特殊处理
|
|
|
let url = this.port.report.portList;
|
|
|
- // if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
- // url = '/report-batch/getAuditList';
|
|
|
- // }
|
|
|
+ if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
+ url = '/report-batch/getAuditList';
|
|
|
+ }
|
|
|
this.http.post(url, this.search,
|
|
|
res => {
|
|
|
this.listLoading = false;
|
|
@@ -783,13 +783,13 @@
|
|
|
approve(id,date, item) {
|
|
|
let ids = '';
|
|
|
let data = item.data;
|
|
|
- // if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
- // ids = item.reportIds;
|
|
|
- // } else {
|
|
|
+ if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
+ ids = item.reportIds;
|
|
|
+ } else {
|
|
|
data.forEach(element => {
|
|
|
ids +=(element.id+',');
|
|
|
});
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
this.isbatch = false
|
|
|
this.approveinData = {
|
|
@@ -871,14 +871,14 @@
|
|
|
showDenyDialog(id,i, date, item) {
|
|
|
this.denyReasonDialog = true;
|
|
|
var ids = '';
|
|
|
- // if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
- // ids = item.reportIds;
|
|
|
- // } else {
|
|
|
+ if (this.user.company.companyName == '成都明夷电子科技有限公司') {
|
|
|
+ ids = item.reportIds;
|
|
|
+ } else {
|
|
|
var data = item.data;
|
|
|
data.forEach(element => {
|
|
|
ids +=(element.id+',');
|
|
|
});
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
this.denyForm = {id: id ,i:i, date: date, reportIds: ids, reason:null};
|
|
|
},
|