Browse Source

Merge remote-tracking branch 'origin/master'

zhanglei
dimengzhe 3 years ago
parent
commit
a58febd3ea
  1. 54
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclepatrolinspectionsheet/ScmVehiclePatrolinspectionsheetService.java
  2. 4
      anrui-scm/anrui-scm-ui/src/views/othermenu/shangzhuangtiaojia/shangzhuangtiaojiaAdd.vue
  3. 4
      anrui-scm/anrui-scm-ui/src/views/othermenu/shangzhuangtiaojia/shangzhuangtiaojiaInfo.vue
  4. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/shangzhuangtiaojiaFlow/shangzhuangtiaojiaguanli/shangzhuangtiaojiaDaiBanInfo.vue
  5. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/shangzhuangtiaojiaFlow/shangzhuangtiaojiaguanli/shangzhuangtiaojiaEdit.vue
  6. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/shangzhuangtiaojiaFlow/shangzhuangtiaojiaguanli/shangzhuangtiaojiaYiBanInfo.vue

54
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmvehiclepatrolinspectionsheet/ScmVehiclePatrolinspectionsheetService.java

@ -174,22 +174,37 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S
ResultBean rb = ResultBean.fireFail();
String s1 = "";
String type1 = "06"; //巡检相关照片
ScmVehiclePatrolinspectionsheet scmVehiclePatrolinspectionsheet = new ScmVehiclePatrolinspectionsheet();
BeanUtil.copyProperties(dto, scmVehiclePatrolinspectionsheet, "sid");
ScmVehiclePatrolinspectionsheetDetailsVo pcInspection = baseMapper.getPCInspection(dto.getPatrolInspectionSid());
String sid = scmVehiclePatrolinspectionsheet.getSid();
String useOrgSid = sysStaffOrgFeign.getPathSidByUserSid(dto.getUserSid()).getData();
if (pcInspection != null) {
ScmVehiclePatrolinspectionsheetDetailsVo pcInspection = baseMapper.getPCInspection(dto.getPatrolInspectionSid());
if (pcInspection == null) {
BeanUtil.copyProperties(dto, scmVehiclePatrolinspectionsheet, "sid");
scmVehiclePatrolinspectionsheet.setCreateOrgSid(useOrgSid);
save(scmVehiclePatrolinspectionsheet);
scmVehicleStayPatrolinspectionService.updateState(dto.getPatrolInspectionSid());
scmFileService.deleteByLinkSidAndType(scmVehiclePatrolinspectionsheet.getSid(), type1);
List<String> images = dto.getImages();
for (String s : images) {
if (s.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
s1 = s.replace(fileUploadComponent.getUrlPrefix(), "");
}
ScmFile scmFile1 = new ScmFile();
scmFile1.setAttachType(type1);
scmFile1.setFileName("巡检相关照片");
scmFile1.setFilePath(s1);
scmFile1.setLinkSid(scmVehiclePatrolinspectionsheet.getSid());
scmFileService.save(scmFile1);
}
return rb.success();
} else {
dto.setCreateOrgSid(useOrgSid);
dto.setSid(pcInspection.getSid());
int i = updateBySid(dto, pcInspection.getSid());
if (i == 0) {
return rb.setMsg("操作失败");
}
//更新待巡检中的为已暂存
scmVehicleStayPatrolinspectionService.updateByState(dto.getPatrolInspectionSid(),2);
scmVehicleStayPatrolinspectionService.updateByState(dto.getPatrolInspectionSid(), 2);
scmFileService.deleteByLinkSidAndType(dto.getSid(), type1);
List<String> images = dto.getImages();
for (String s : images) {
@ -203,25 +218,8 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S
scmFile1.setLinkSid(dto.getSid());
scmFileService.save(scmFile1);
}
return rb.success();
}
scmVehiclePatrolinspectionsheet.setCreateOrgSid(useOrgSid);
scmVehiclePatrolinspectionsheet.setSid(sid);
scmFileService.deleteByLinkSidAndType(scmVehiclePatrolinspectionsheet.getSid(), type1);
List<String> images = dto.getImages();
for (String s : images) {
if (s.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
s1 = s.replace(fileUploadComponent.getUrlPrefix(), "");
}
ScmFile scmFile1 = new ScmFile();
scmFile1.setAttachType(type1);
scmFile1.setFileName("巡检相关照片");
scmFile1.setFilePath(s1);
scmFile1.setLinkSid(scmVehiclePatrolinspectionsheet.getSid());
scmFileService.save(scmFile1);
}
save(scmVehiclePatrolinspectionsheet);
scmVehicleStayPatrolinspectionService.updateState(dto.getPatrolInspectionSid());
return rb.success();
}
/**
@ -236,7 +234,7 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S
if (StringUtils.isNotBlank(dto.getDutyName())) {
return rb.setMsg("选择相关责任人后,不允许点击通过");
}
if(StringUtils.isNotBlank(dto.getDutySid())){
if (StringUtils.isNotBlank(dto.getDutySid())) {
return rb.setMsg("选择相关责任人后,不允许点击通过");
}
String s1 = "";
@ -282,8 +280,8 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S
return rb.success().setMsg("操作成功");
}
ScmVehiclePatrolinspectionsheet scmVehiclePatrolinspectionsheet = new ScmVehiclePatrolinspectionsheet();
BeanUtil.copyProperties(dto, scmVehiclePatrolinspectionsheet, "sid");
String sid = scmVehiclePatrolinspectionsheet.getSid();
BeanUtil.copyProperties(dto, scmVehiclePatrolinspectionsheet,"sid");
scmVehiclePatrolinspectionsheet.setCreateOrgSid(useOrgSid);
scmFileService.deleteByLinkSidAndType(scmVehiclePatrolinspectionsheet.getSid(), type1);
List<String> images = dto.getImages();

4
anrui-scm/anrui-scm-ui/src/views/othermenu/shangzhuangtiaojia/shangzhuangtiaojiaAdd.vue

@ -71,7 +71,7 @@
<span>{{ scope.row.jacketName }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center" width="120">
<el-table-column label="主车车架号" align="center" width="250">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
@ -106,7 +106,7 @@
<span>{{ adjustVehGuidedPrice(scope.row) }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" width="200">
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" clearable placeholder="" class="addinputw"></el-input>
</template>

4
anrui-scm/anrui-scm-ui/src/views/othermenu/shangzhuangtiaojia/shangzhuangtiaojiaInfo.vue

@ -68,7 +68,7 @@
<span>{{ scope.row.jacketName }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center" width="120">
<el-table-column label="主车车架号" align="center" width="250">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
@ -103,7 +103,7 @@
<span>{{ scope.row.adjustVehGuidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" width="200">
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>

4
anrui-scm/anrui-scm-ui/src/views/workFlow/shangzhuangtiaojiaFlow/shangzhuangtiaojiaguanli/shangzhuangtiaojiaDaiBanInfo.vue

@ -66,7 +66,7 @@
<span>{{ scope.row.jacketName }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center" width="120">
<el-table-column label="主车车架号" align="center" width="250">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
@ -101,7 +101,7 @@
<span>{{ scope.row.adjustVehGuidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" width="200">
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>

4
anrui-scm/anrui-scm-ui/src/views/workFlow/shangzhuangtiaojiaFlow/shangzhuangtiaojiaguanli/shangzhuangtiaojiaEdit.vue

@ -70,7 +70,7 @@
<span>{{ scope.row.jacketName }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center" width="120">
<el-table-column label="主车车架号" align="center" width="250">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
@ -105,7 +105,7 @@
<span>{{ adjustVehGuidedPrice(scope.row) }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" width="200">
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" clearable placeholder="" class="addinputw"></el-input>
</template>

4
anrui-scm/anrui-scm-ui/src/views/workFlow/shangzhuangtiaojiaFlow/shangzhuangtiaojiaguanli/shangzhuangtiaojiaYiBanInfo.vue

@ -64,7 +64,7 @@
<span>{{ scope.row.jacketName }}</span>
</template>
</el-table-column>
<el-table-column label="主车车架号" align="center" width="120">
<el-table-column label="主车车架号" align="center" width="250">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
@ -99,7 +99,7 @@
<span>{{ scope.row.adjustVehGuidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" width="200">
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>

Loading…
Cancel
Save