Merge remote-tracking branch 'origin/fix_20230524' into fix_20230524

This commit is contained in:
zyx.net
2023-06-01 16:01:54 +08:00
6 changed files with 19 additions and 16 deletions
@@ -213,8 +213,8 @@ public class OtaBaSjSjmbclServiceImpl extends ServiceImpl<OtaBaSjSjmbclMapper, O
private OtaBaSjSjmbcl parseFile(File upFile, String otaId, String cut, StringBuilder errMsg) throws Exception { private OtaBaSjSjmbcl parseFile(File upFile, String otaId, String cut, StringBuilder errMsg) throws Exception {
OtaBaSjSjmbcl mbcl = new OtaBaSjSjmbcl(); OtaBaSjSjmbcl mbcl = new OtaBaSjSjmbcl();
OtaBaSjSjmbcx mbcx = otaBaSjSjmbcxService.queryByOtaId(otaId, ""); OtaBaSjSjmbcx mbcx = otaBaSjSjmbcxService.queryByOtaId(otaId, "");
if (ObjectUtils.isNotEmpty(mbcx) && StringUtils.isNotEmpty(mbcx.getCpxh())) { if (ObjectUtils.isNotEmpty(mbcx) && StringUtils.isNotEmpty(mbcx.getCpmc())) {
String cx = mbcx.getCpxh(); String mc = mbcx.getCpmc();
Workbook wb = ImportFileUtil.readExcel(upFile); Workbook wb = ImportFileUtil.readExcel(upFile);
Sheet s = wb.getSheetAt(0); Sheet s = wb.getSheetAt(0);
@@ -227,7 +227,7 @@ public class OtaBaSjSjmbclServiceImpl extends ServiceImpl<OtaBaSjSjmbclMapper, O
vinObj.setVin(ImportFileUtil.getCellValue(cell, wb)); vinObj.setVin(ImportFileUtil.getCellValue(cell, wb));
cell = row.getCell(1); cell = row.getCell(1);
vinObj.setCx(ImportFileUtil.getCellValue(cell, wb)); vinObj.setCx(ImportFileUtil.getCellValue(cell, wb));
if (!cx.equals(vinObj.getCx())) { if (!mc.equals(vinObj.getCx())) {
continue; continue;
} }
cell = row.getCell(2); cell = row.getCell(2);
@@ -3010,8 +3010,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
dataRow.createCell(3).setCellValue(submitAmount); dataRow.createCell(3).setCellValue(submitAmount);
dataRow.createCell(4).setCellValue(syncReporAmount); dataRow.createCell(4).setCellValue(syncReporAmount);
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount; double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
double parameterCollectingPercentage = (syncReporAmount / parameterCollectingCount) * 100; double completionCount = submitAmount + syncReporAmount;
String parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? df.format(parameterCollectingPercentage) : "0"; double parameterCollectingPercentage = (completionCount / parameterCollectingCount) * 100;
String parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
dataRow.createCell(5).setCellValue(parameterCollectingPercentageStr + percentSign); dataRow.createCell(5).setCellValue(parameterCollectingPercentageStr + percentSign);
} }
@@ -984,8 +984,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
syncReporAmount = (double) syncReporMap.get("amount"); syncReporAmount = (double) syncReporMap.get("amount");
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount; double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
double parameterCollectingPercentage = ((submitAmount + syncReporAmount) / parameterCollectingCount) * 100; double completionCount = submitAmount + syncReporAmount;
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? df.format(parameterCollectingPercentage) : "0"; double parameterCollectingPercentage = (completionCount / parameterCollectingCount) * 100;
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
} }
dataRow.createCell(51).setCellValue(notStartAmount); dataRow.createCell(51).setCellValue(notStartAmount);
dataRow.createCell(52).setCellValue(collectingAmount); dataRow.createCell(52).setCellValue(collectingAmount);
@@ -1187,8 +1188,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
double syncReporAmount = (double) syncReporMap.get("amount"); double syncReporAmount = (double) syncReporMap.get("amount");
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount; double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
double parameterCollectingPercentage = (submitAmount + syncReporAmount) / parameterCollectingCount; double completionCount = submitAmount + syncReporAmount;
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? parameterCollectingPercentage : 0; double parameterCollectingPercentage = (completionCount) / parameterCollectingCount;
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? parameterCollectingPercentage : 0;
} }
Map<String,Object> certificationProgressMap = this.projectCertificationInventoryEOService.groupByCertificationProgress(pciEos); Map<String,Object> certificationProgressMap = this.projectCertificationInventoryEOService.groupByCertificationProgress(pciEos);
@@ -241,10 +241,10 @@ export default {
}) })
}, },
addClick(index){ addClick(index){
if(this.formInline.dataList.length + 1 > 10){ // if(this.formInline.dataList.length + 1 > 10){
this.$message.warning(this.$t('nomorethan')) // this.$message.warning(this.$t('nomorethan'))
return // return
} // }
this.formInline.dataList.splice(index + 1, 0, {}) this.formInline.dataList.splice(index + 1, 0, {})
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
@@ -60,8 +60,8 @@
<span slot="differentialupgradeornot" slot-scope="text,record" :max-length="50"> <span slot="differentialupgradeornot" slot-scope="text,record" :max-length="50">
<!-- <a-input :placeholder="$t('pleaseEnter')" v-model="record.sfcfsj" :title='record.sfcfsj'></a-input>--> <!-- <a-input :placeholder="$t('pleaseEnter')" v-model="record.sfcfsj" :title='record.sfcfsj'></a-input>-->
<a-radio-group v-model="record.sfcfsj"> <a-radio-group v-model="record.sfcfsj">
<a-radio :value="1"> {{ $t('yes') }} </a-radio> <a-radio :value="'1'"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio> <a-radio :value="'2'"> {{ $t('not') }} </a-radio>
</a-radio-group> </a-radio-group>
</span> </span>
<!-- 操作列--> <!-- 操作列-->
@@ -247,7 +247,7 @@
{{$t('Assignedby')}} {{$t('Assignedby')}}
</div> </div>
<!-- 导出--> <!-- 导出-->
<div @click="handleExport" class="operator-text" v-if='currentPersonRole == "sdt"'> <div @click="handleExport" class="operator-text" v-if='currentPersonRole == "sdt" || currentPersonRole == "admin"'>
<a-icon type="export"/> <a-icon type="export"/>
{{$t('dataExport')}} {{$t('dataExport')}}
</div> </div>