Browse Source

Merge remote-tracking branch 'origin/master'

zhanglei
fanzongzhe 1 year ago
parent
commit
97beb663fa
  1. 13
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finbillapplication/FinBillApplicationService.java
  2. 2819
      anrui-fin/anrui-fin-biz/src/main/resources/ftl/existingvehicles_black.ftl
  3. 76
      anrui-reportcenter-ui/src/views/branchofficestatistics/branchofficestatistics.vue
  4. 85
      anrui-reportcenter-ui/src/views/businessdivisionstatistics/businessdivisionstatistics.vue
  5. 78
      anrui-reportcenter-ui/src/views/groupstatistics/groupstatistics.vue
  6. 169
      anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportMapper.xml
  7. 160
      anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportService.java
  8. 19
      anrui-riskcenter-ui/src/views/caseappeal/caseappealAdd.vue
  9. 14
      anrui-riskcenter-ui/src/views/caseappeal/caseappealInfo.vue
  10. 16
      anrui-riskcenter-ui/src/views/workFlow/shangsuFlow/caseappealDaiBan.vue
  11. 13
      anrui-riskcenter-ui/src/views/workFlow/shangsuFlow/caseappealEdit.vue
  12. 16
      anrui-riskcenter-ui/src/views/workFlow/shangsuFlow/caseappealYiBan.vue

13
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finbillapplication/FinBillApplicationService.java

@ -838,6 +838,7 @@ public class FinBillApplicationService extends MybatisBaseService<FinBillApplica
checkMap.put("priceRemarks", "");
checkMap.put("depositTotal", "");
checkMap.put("createOrgName", "");
checkMap.put("payTypeKey", busSalesOrder.getPayTypeKey());
}
@ -896,7 +897,15 @@ public class FinBillApplicationService extends MybatisBaseService<FinBillApplica
}
public String blackFile(Map<String, Object> map) {
String ftl = "dai_existingvehicles_black";
String ftl = "";
String name = "";
if("1".equals(map.get("payTypeKey").toString())){
ftl = "existingvehicles_black";
name = "全款新车买卖空白合同_";
}else{
ftl = "dai_existingvehicles_black";
name = "贷款新车买卖空白合同_";
}
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + ftl + ".ftl");
//生成word文件名
String targetPath = docPdfComponent.getUploadTemplateUrl();
@ -910,7 +919,7 @@ public class FinBillApplicationService extends MybatisBaseService<FinBillApplica
//新生成的word路径
String wordPath = targetPath + typeName;
//生成合同文件名
String pdfName = map.get("contractNo").toString() + "贷款新车买卖空白合同_" + dateStr + seconds + ".pdf";
String pdfName = map.get("contractNo").toString() + name + dateStr + seconds + ".pdf";
WordConvertUtils.doc2pdf(wordPath, targetPath, pdfName);
return pdfName;
}

2819
anrui-fin/anrui-fin-biz/src/main/resources/ftl/existingvehicles_black.ftl

File diff suppressed because it is too large

76
anrui-reportcenter-ui/src/views/branchofficestatistics/branchofficestatistics.vue

@ -31,7 +31,7 @@
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange" :span-method="rowspanMethod">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange" :span-method="objectSpanMethod">
<el-table-column prop="useOrgName" label="分公司" width="120" align="center"></el-table-column>
<el-table-column prop="brandName" label="品牌" width="120" align="center"></el-table-column>
<el-table-column prop="vehModeName" label="车型" width="250" align="center"></el-table-column>
@ -266,6 +266,80 @@ export default {
}
}
},
// element-ui
// objectSpanMethod { row, column, rowIndex, columnIndex }
// row:
// column:
// rowIndex:
// columnIndex:
// 1:
// :
// 0: ,
mergeCol(id, rowIndex) {
// debugger
//
// id:
// rowIndex:
var idName = this.list[rowIndex][id] //
if (rowIndex > 0) {
//
// eslint-disable-next-line eqeqeq
if (this.list[rowIndex][id] !== this.list[rowIndex - 1][id]) {
//
var i = rowIndex
var num = 0 // i,,num
while (i < this.list.length) {
// table,
if (this.list[i][id] === idName) {
//
i++ // ,1
num++ // num1
} else {
i = this.list.length // ,table,
}
}
return {
rowspan: num, //
colspan: 1
}
} else {
return {
rowspan: 0, // ,rowspan0
colspan: 1
}
}
} else {
// ,
let i = rowIndex
let num = 0
while (i < this.list.length) {
// table,
if (this.list[i][id] === idName) {
i++
num++
} else {
i = this.list.length
}
}
return {
rowspan: num,
colspan: 1
}
}
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
//
switch (
columnIndex //
) {
// ,(0,1 0,1)
// gzTroubles,gzID
case 0:
return this.mergeCol('useOrgName', rowIndex)
case 1:
return this.mergeCol('brandName', rowIndex)
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size

85
anrui-reportcenter-ui/src/views/businessdivisionstatistics/businessdivisionstatistics.vue

@ -31,9 +31,9 @@
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange" :span-method="rowspanMethod">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange" :span-method="objectSpanMethod">
<el-table-column prop="busOrgName" label="事业部" width="120" align="center"></el-table-column>
<el-table-column label="分公司" width="120" align="center">
<el-table-column prop="useOrgName" label="分公司" width="120" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="lookBranch(scope.row)">{{ scope.row.useOrgName }}</span>
</template>
@ -233,9 +233,9 @@ export default {
})
this.sids = aa
},
//
//
rowspanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) { //
if (columnIndex === 1) { //
//
const currentValue = row[column.property]
//
@ -260,6 +260,83 @@ export default {
}
}
},
//
// element-ui
// objectSpanMethod { row, column, rowIndex, columnIndex }
// row:
// column:
// rowIndex:
// columnIndex:
// 1:
// :
// 0: ,
mergeCol(id, rowIndex) {
// debugger
//
// id:
// rowIndex:
var idName = this.list[rowIndex][id] //
if (rowIndex > 0) {
//
// eslint-disable-next-line eqeqeq
if (this.list[rowIndex][id] !== this.list[rowIndex - 1][id]) {
//
var i = rowIndex
var num = 0 // i,,num
while (i < this.list.length) {
// table,
if (this.list[i][id] === idName) {
//
i++ // ,1
num++ // num1
} else {
i = this.list.length // ,table,
}
}
return {
rowspan: num, //
colspan: 1
}
} else {
return {
rowspan: 0, // ,rowspan0
colspan: 1
}
}
} else {
// ,
let i = rowIndex
let num = 0
while (i < this.list.length) {
// table,
if (this.list[i][id] === idName) {
i++
num++
} else {
i = this.list.length
}
}
return {
rowspan: num,
colspan: 1
}
}
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
//
switch (
columnIndex //
) {
// ,(0,1 0,1)
// gzTroubles,gzID
case 0:
return this.mergeCol('busOrgName', rowIndex)
case 1:
return this.mergeCol('useOrgName', rowIndex)
case 2:
return this.mergeCol('brandName', rowIndex)
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size

78
anrui-reportcenter-ui/src/views/groupstatistics/groupstatistics.vue

@ -31,8 +31,8 @@
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange" :span-method="rowspanMethod">
<el-table-column label="事业部" width="120" align="center">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange" :span-method="objectSpanMethod">
<el-table-column prop="busOrgName" label="事业部" width="120" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="lookBusiness(scope.row)">{{ scope.row.busOrgName }}</span>
</template>
@ -250,6 +250,80 @@ export default {
}
}
},
// element-ui
// objectSpanMethod { row, column, rowIndex, columnIndex }
// row:
// column:
// rowIndex:
// columnIndex:
// 1:
// :
// 0: ,
mergeCol(id, rowIndex) {
// debugger
//
// id:
// rowIndex:
var idName = this.list[rowIndex][id] //
if (rowIndex > 0) {
//
// eslint-disable-next-line eqeqeq
if (this.list[rowIndex][id] !== this.list[rowIndex - 1][id]) {
//
var i = rowIndex
var num = 0 // i,,num
while (i < this.list.length) {
// table,
if (this.list[i][id] === idName) {
//
i++ // ,1
num++ // num1
} else {
i = this.list.length // ,table,
}
}
return {
rowspan: num, //
colspan: 1
}
} else {
return {
rowspan: 0, // ,rowspan0
colspan: 1
}
}
} else {
// ,
let i = rowIndex
let num = 0
while (i < this.list.length) {
// table,
if (this.list[i][id] === idName) {
i++
num++
} else {
i = this.list.length
}
}
return {
rowspan: num,
colspan: 1
}
}
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
//
switch (
columnIndex //
) {
// ,(0,1 0,1)
// gzTroubles,gzID
case 0:
return this.mergeCol('busOrgName', rowIndex)
case 1:
return this.mergeCol('brandName', rowIndex)
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size

169
anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportMapper.xml

@ -2,7 +2,114 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yxt.anrui.reportcenter.biz.dailyreport.DailyReportMapper">
<select id="listPage" resultType="com.yxt.anrui.reportcenter.api.dailyreport.DailyReportVo">
select dr.*
<!--select dr.*
from daily_report dr
left join anrui_base.base_vehicle_model bm on bm.sid = dr.vehModelSid
left join anrui_base.base_model_config bmc on bmc.sid = dr.vehMConfigSid
<where>
${ew.sqlSegment}
</where>-->
select ifnull(sum(dr.saleOfStockRatio), 0)
as saleOfStockRatio,
ifnull(sum(dr.stock_total), 0) as stock_total,
ifnull(sum(dr.stock_unreserve), 0) as stock_unreserve,
ifnull(sum(dr.stock_reserve), 0) as stock_reserve,
ifnull(sum(dr.stock_subtotal), 0) as stock_subtotal,
ifnull(sum(dr.stock_buyout_unreserve), 0) as stock_buyout_unreserve,
ifnull(sum(dr.stock_buyout_reserve), 0) as stock_buyout_reserve,
ifnull(sum(dr.stock_buyout_subtotal), 0) as stock_buyout_subtotal,
ifnull(sum(dr.pcOrder_unreserve), 0) as pcOrder_unreserve,
ifnull(sum(dr.pcOrder_reserve), 0) as pcOrder_reserve,
ifnull(sum(dr.pcOrder_subtotal), 0) as pcOrder_subtotal,
ifnull(sum(dr.simpleOrder_day), 0) as simpleOrder_day,
ifnull(sum(dr.simpleOrder_month), 0) as simpleOrder_month,
ifnull(sum(dr.saleOrder_full_day), 0) as saleOrder_full_day,
ifnull(sum(dr.saleOrder_loan_day), 0) as saleOrder_loan_day,
ifnull(sum(dr.saleOrder_subtotal_day), 0) as saleOrder_subtotal_day,
ifnull(sum(dr.saleOrder_full_month), 0) as saleOrder_full_month,
ifnull(sum(dr.saleOrder_loan_month), 0) as saleOrder_loan_month,
ifnull(sum(dr.saleOrder_subtotal_month), 0) as saleOrder_subtotal_month,
ifnull(sum(dr.saleOrder_waitVeh_total), 0) as saleOrder_waitVeh_total,
ifnull(sum(dr.sale_full_day), 0) as sale_full_day,
ifnull(sum(dr.sale_loan_day), 0) as sale_loan_day,
ifnull(sum(dr.sale_subtotal_day), 0) as sale_subtotal_day,
ifnull(sum(dr.sale_full_month), 0) as sale_full_month,
ifnull(sum(dr.sale_loan_month), 0) as sale_loan_month,
ifnull(sum(dr.sale_subtotal_month), 0) as sale_subtotal_month,
ifnull(sum(dr.sale_full_year), 0) as sale_full_year,
ifnull(sum(dr.sale_loan_year), 0) as sale_loan_year,
ifnull(sum(dr.sale_subtotal_year), 0) as sale_subtotal_year,
ifnull(sum(dr.manufacturer_invoicing_year), 0) as manufacturer_invoicing_year,
ifnull(sum(dr.buyout_day), 0) as buyout_day,
ifnull(sum(dr.buyout_month), 0) as buyout_month,
ifnull(sum(dr.buyout_year), 0) as buyout_year,
ifnull(sum(dr.arrears_carry_veh_count), 0) as arrears_carry_veh_count,
ifnull(sum(dr.arrears_carry_veh_amount), 0) as arrears_carry_veh_amount,
ifnull(sum(dr.loan_not_count), 0) as loan_not_count,
ifnull(sum(dr.loan_not_amount), 0) as loan_not_amount,
ifnull(sum(dr.deliver_loan_day), 0) as deliver_loan_day,
ifnull(sum(dr.deliver_full_day), 0) as deliver_full_day,
ifnull(sum(dr.deliver_subtotal_day), 0) as deliver_subtotal_day,
ifnull(sum(dr.deliver_loan_month), 0) as deliver_loan_month,
ifnull(sum(dr.deliver_full_month), 0) as deliver_full_month,
ifnull(sum(dr.deliver_subtotal_month), 0) as deliver_subtotal_month,
ifnull(sum(dr.deliver_loan_year), 0) as deliver_loan_year,
ifnull(sum(dr.deliver_full_year), 0) as deliver_full_year,
ifnull(sum(dr.deliver_subtotal_year), 0) as deliver_subtotal_year,
ifnull(sum(dr.saleAllToThree), 0) as saleAllToThree
,
dr.busOrgName,
dr.brandName,
dr.busOrgSid,
dr.useOrgSid,
dr.useOrgName,
dr.remarks,
bm.vehicleAlias vehModeName,
bmc.carColor,
bmc.specification,
bmc.fuelTank,
bmc.baffleModel,
bmc.independentSources,
bmc.tireCover,
bmc.saddle,
bmc.airConditioner,
bmc.rearAxleRatio,
bmc.rearAxleValue,
bmc.tireSize,
bmc.slowMachine,
bmc.rearViewMirror,
bmc.wheelbase,
bmc.suspension,
bmc.packingCase,
bmc.seat,
bmc.hubMaterial,
bmc.configuringBao,
bmc.multimedia,
bmc.bumper,
bmc.clutchValue,
bmc.dirMachineValue,
bmc.proponsValue,
bmc.doorAndWindowValue,
bmc.doorLockValue,
bmc.headlightValue,
bmc.boardPedalValue,
bmc.steerWheelValue,
bmc.storagBatteryValue,
bmc.comfortPackValue,
bmc.cheBasePackValue,
bmc.savingPackValue,
bmc.conPackValue,
bm.vehicleTypeValue,
bm.emissionStandardValue,
bm.productLineValue,
bm.driveFormValue,
bm.powerValue,
bm.tranCaseTypeValue,
bm.gearboxTypeValue,
bm.fuelTypeValue,
bm.vehicleVersionValue,
bm.engineTypeValue,
bm.specifications
from daily_report dr
left join anrui_base.base_vehicle_model bm on bm.sid = dr.vehModelSid
left join anrui_base.base_model_config bmc on bmc.sid = dr.vehMConfigSid
@ -12,14 +119,70 @@
</select>
<select id="listPage3" resultType="com.yxt.anrui.reportcenter.api.dailyreport.DailyReportVo">
select dr.*
select ifnull(sum(dr.saleOfStockRatio), 0)
as saleOfStockRatio,
ifnull(sum(dr.stock_total), 0) as stock_total,
ifnull(sum(dr.stock_unreserve), 0) as stock_unreserve,
ifnull(sum(dr.stock_reserve), 0) as stock_reserve,
ifnull(sum(dr.stock_subtotal), 0) as stock_subtotal,
ifnull(sum(dr.stock_buyout_unreserve), 0) as stock_buyout_unreserve,
ifnull(sum(dr.stock_buyout_reserve), 0) as stock_buyout_reserve,
ifnull(sum(dr.stock_buyout_subtotal), 0) as stock_buyout_subtotal,
ifnull(sum(dr.pcOrder_unreserve), 0) as pcOrder_unreserve,
ifnull(sum(dr.pcOrder_reserve), 0) as pcOrder_reserve,
ifnull(sum(dr.pcOrder_subtotal), 0) as pcOrder_subtotal,
ifnull(sum(dr.simpleOrder_day), 0) as simpleOrder_day,
ifnull(sum(dr.simpleOrder_month), 0) as simpleOrder_month,
ifnull(sum(dr.saleOrder_full_day), 0) as saleOrder_full_day,
ifnull(sum(dr.saleOrder_loan_day), 0) as saleOrder_loan_day,
ifnull(sum(dr.saleOrder_subtotal_day), 0) as saleOrder_subtotal_day,
ifnull(sum(dr.saleOrder_full_month), 0) as saleOrder_full_month,
ifnull(sum(dr.saleOrder_loan_month), 0) as saleOrder_loan_month,
ifnull(sum(dr.saleOrder_subtotal_month), 0) as saleOrder_subtotal_month,
ifnull(sum(dr.saleOrder_waitVeh_total), 0) as saleOrder_waitVeh_total,
ifnull(sum(dr.sale_full_day), 0) as sale_full_day,
ifnull(sum(dr.sale_loan_day), 0) as sale_loan_day,
ifnull(sum(dr.sale_subtotal_day), 0) as sale_subtotal_day,
ifnull(sum(dr.sale_full_month), 0) as sale_full_month,
ifnull(sum(dr.sale_loan_month), 0) as sale_loan_month,
ifnull(sum(dr.sale_subtotal_month), 0) as sale_subtotal_month,
ifnull(sum(dr.sale_full_year), 0) as sale_full_year,
ifnull(sum(dr.sale_loan_year), 0) as sale_loan_year,
ifnull(sum(dr.sale_subtotal_year), 0) as sale_subtotal_year,
ifnull(sum(dr.manufacturer_invoicing_year), 0) as manufacturer_invoicing_year,
ifnull(sum(dr.buyout_day), 0) as buyout_day,
ifnull(sum(dr.buyout_month), 0) as buyout_month,
ifnull(sum(dr.buyout_year), 0) as buyout_year,
ifnull(sum(dr.arrears_carry_veh_count), 0) as arrears_carry_veh_count,
ifnull(sum(dr.arrears_carry_veh_amount), 0) as arrears_carry_veh_amount,
ifnull(sum(dr.loan_not_count), 0) as loan_not_count,
ifnull(sum(dr.loan_not_amount), 0) as loan_not_amount,
ifnull(sum(dr.deliver_loan_day), 0) as deliver_loan_day,
ifnull(sum(dr.deliver_full_day), 0) as deliver_full_day,
ifnull(sum(dr.deliver_subtotal_day), 0) as deliver_subtotal_day,
ifnull(sum(dr.deliver_loan_month), 0) as deliver_loan_month,
ifnull(sum(dr.deliver_full_month), 0) as deliver_full_month,
ifnull(sum(dr.deliver_subtotal_month), 0) as deliver_subtotal_month,
ifnull(sum(dr.deliver_loan_year), 0) as deliver_loan_year,
ifnull(sum(dr.deliver_full_year), 0) as deliver_full_year,
ifnull(sum(dr.deliver_subtotal_year), 0) as deliver_subtotal_year,
ifnull(sum(dr.saleAllToThree), 0) as saleAllToThree
,
bm.fuelTypeValue,
bm.emissionStandardValue,
dr.busOrgName,
dr.brandName,
dr.busOrgSid,
dr.remarks,
dr.useOrgSid,
dr.useOrgName
from daily_report dr
left join anrui_base.base_vehicle_model bm on bm.sid = dr.vehModelSid
left join anrui_base.base_model_config bmc on bmc.sid = dr.vehMConfigSid
<where>
${ew.sqlSegment}
</where>
group by dr.busOrgSid, dr.brandSid, dr.vehModelSid, dr.vehMConfigSid
group by dr.busOrgSid, dr.brandSid, bm.fuelTypeValue, bm.emissionStandardValue
order by dr.busOrgSid desc, dr.brandSid desc, bm.fuelTypeValue desc, bm.emissionStandardValue desc
</select>

160
anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/dailyreport/DailyReportService.java

@ -39,7 +39,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
private ReportSetService reportSetService;
public PagerVo<DailyReportVo> listPage(PagerQuery<DailyReportQuery> pagerQuery) {
DailyReportQuery query = pagerQuery.getParams();
/* DailyReportQuery query = pagerQuery.getParams();
QueryWrapper<DailyReport> qw = new QueryWrapper<>();
if (query != null) {
String useOrgSid = query.getUseOrgSid();
@ -80,11 +80,59 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
}
}
PagerVo<DailyReportVo> p = PagerUtil.pageToVo(pagging, null);
return p;*/
DailyReportQuery query = pagerQuery.getParams();
QueryWrapper<DailyReport> qw = new QueryWrapper<>();
if (query != null) {
String useOrgSid = query.getUseOrgSid();
qw.eq("dr.useOrgSid", useOrgSid);
if (StringUtils.isNotBlank(query.getTodayDate())) {
qw.like("dr.createTime", query.getTodayDate());
}
qw.orderByDesc("dr.useOrgSid");
qw.orderByDesc("dr.brandSid");
qw.groupBy("dr.brandSid");
qw.orderByDesc("bm.fuelTypeValue");
qw.groupBy("bm.fuelTypeValue");
qw.orderByDesc("bm.emissionStandardValue");
qw.groupBy("bm.emissionStandardValue");
List<DailyParameterVo> parameterVoList = baseMapper.selectByParameters(useOrgSid);
parameterVoList.removeAll(Collections.singleton(null));
for (int i = 0; i < parameterVoList.size(); i++) {
DailyParameterVo dailyParameterVo = parameterVoList.get(i);
String tableName = Arrays.asList(dailyParameterVo.getTableNameKey().split("\\.")).get(1);
if ("base_model_config".equals(tableName)) {
qw.orderByDesc("bmc." + dailyParameterVo.getColName());
qw.groupBy("bmc." + dailyParameterVo.getColName());
} else if ("base_vehicle_model".equals(tableName)) {
qw.orderByDesc("bm." + dailyParameterVo.getColName());
qw.groupBy("bm." + dailyParameterVo.getColName());
}
}
}
IPage<DailyReport> page = PagerUtil.queryToPage(pagerQuery);
IPage<DailyReportVo> pagging = baseMapper.listPage(page, qw);
List<DailyReportVo> recordList = pagging.getRecords();
recordList.removeAll(Collections.singleton(null));
if (!recordList.isEmpty()) {
for (int i = 0; i < recordList.size(); i++) {
DailyReportVo dailyReportVo = recordList.get(i);
String ratio = "";
if (dailyReportVo.getSaleAllToThree() == 0) {
ratio = dailyReportVo.getStock_subtotal() + ":1";
} else {
ratio = new BigDecimal(dailyReportVo.getStock_total()).divide((new BigDecimal(dailyReportVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, RoundingMode.HALF_UP)), 0, RoundingMode.HALF_UP).toString() + ":1";
}
dailyReportVo.setSaleOfStockRatio(ratio);
}
}
PagerVo<DailyReportVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
public PagerVo<DailyReportVo> listPage2(PagerQuery<DailyReportQuery> pagerQuery) {
DailyReportQuery query = pagerQuery.getParams();
/*DailyReportQuery query = pagerQuery.getParams();
QueryWrapper<DailyReport> qw = new QueryWrapper<>();
if (query != null) {
//查询事业部
@ -132,6 +180,65 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
}
}
PagerVo<DailyReportVo> p = PagerUtil.pageToVo(pagging, null);
return p;*/
DailyReportQuery query = pagerQuery.getParams();
QueryWrapper<DailyReport> qw = new QueryWrapper<>();
if (query != null) {
//查询事业部
if (StringUtils.isNotBlank(query.getOrgPath())) {
List<String> stringList = Arrays.asList(query.getOrgPath().split("/"));
String sybOrgSid = query.getOrgPath().substring(37, 73);
qw.eq("dr.busOrgSid", sybOrgSid);
}
if (StringUtils.isNotBlank(query.getTodayDate())) {
qw.like("dr.createTime", query.getTodayDate());
}
qw.orderByDesc("dr.useOrgSid");
qw.groupBy("dr.useOrgSid");
qw.orderByDesc("dr.brandSid");
qw.groupBy("dr.brandSid");
qw.orderByDesc("bm.fuelTypeValue");
qw.groupBy("bm.fuelTypeValue");
qw.orderByDesc("bm.emissionStandardValue");
qw.groupBy("bm.emissionStandardValue");
}
IPage<DailyReport> page = PagerUtil.queryToPage(pagerQuery);
IPage<DailyReportVo> pagging = baseMapper.listPage(page, qw);
List<DailyReportVo> recordList = pagging.getRecords();
recordList.removeAll(Collections.singleton(null));
if (!recordList.isEmpty()) {
for (int i = 0; i < recordList.size(); i++) {
DailyReportVo dailyReportVo = recordList.get(i);
/*String modelSid = dailyReportVo.getVehModelSid();
String configSid = dailyReportVo.getVehMConfigSid();
BaseVehicleModel baseVehicleModel = baseMapper.selectModel(modelSid);
BaseModelConfig baseModelConfig = baseMapper.selectConfig(configSid);
BeanUtil.copyProperties(baseModelConfig, dailyReportVo, "useOrgName");
BeanUtil.copyProperties(baseVehicleModel, dailyReportVo, "useOrgName");*/
//根据库存小计和排产小计计算库存总计
/*int stock_subtotal = dailyReportVo.getStock_subtotal();
int pcOrder_subtotal = dailyReportVo.getPcOrder_subtotal();
int stock_total = stock_subtotal + pcOrder_subtotal;
dailyReportVo.setStock_total(stock_total);
//根据库存总计/前三月的平均销售台数为存销比
String threeNum = baseMapper.select(dailyReportVo.getUseOrgSid(), dailyReportVo.getBrandSid(), dailyReportVo.getVehModelSid(), dailyReportVo.getVehMConfigSid(), dailyReportVo.getCreateTime());
if ("0".equals(threeNum)) {
dailyReportVo.setSaleOfStockRatio(String.valueOf(stock_total));
} else {
BigDecimal big = new BigDecimal(stock_total).divide(new BigDecimal(threeNum).divide(new BigDecimal(3), 2, BigDecimal.ROUND_CEILING), 2, BigDecimal.ROUND_CEILING);
dailyReportVo.setSaleOfStockRatio(big.toString());
}*/
String ratio = "";
if (dailyReportVo.getSaleAllToThree() == 0) {
ratio = dailyReportVo.getStock_subtotal() + ":1";
} else {
ratio = new BigDecimal(dailyReportVo.getStock_total()).divide((new BigDecimal(dailyReportVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, RoundingMode.HALF_UP)), 0, RoundingMode.HALF_UP).toString() + ":1";
}
dailyReportVo.setSaleOfStockRatio(ratio);
}
}
PagerVo<DailyReportVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
@ -159,7 +266,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
String busUseOrg = dailyReportVo.getBusOrgSid();
String prefix = "fd6435f2-0005-11ec-a033-48452053aa33/";
dailyReportVo.setOrgPath(prefix + busUseOrg);
//根据库存小计和排产小计计算库存总计
/*//根据库存小计和排产小计计算库存总计
int stock_subtotal = dailyReportVo.getStock_subtotal();
int pcOrder_subtotal = dailyReportVo.getPcOrder_subtotal();
int stock_total = stock_subtotal + pcOrder_subtotal;
@ -171,7 +278,14 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
} else {
BigDecimal big = new BigDecimal(stock_total).divide(new BigDecimal(threeNum).divide(new BigDecimal(3), 2, BigDecimal.ROUND_CEILING), 2, BigDecimal.ROUND_CEILING);
dailyReportVo.setSaleOfStockRatio(big.toString());
}*/
String ratio = "";
if (dailyReportVo.getSaleAllToThree() == 0) {
ratio = dailyReportVo.getStock_subtotal() + ":1";
} else {
ratio = new BigDecimal(dailyReportVo.getStock_total()).divide((new BigDecimal(dailyReportVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, RoundingMode.HALF_UP)), 0, RoundingMode.HALF_UP).toString() + ":1";
}
dailyReportVo.setSaleOfStockRatio(ratio);
}
}
@ -259,7 +373,7 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
recordList.removeAll(Collections.singleton(null));
if (!recordList.isEmpty()) {
for (int i = 0; i < recordList.size(); i++) {
DailyReportListVo dailyReportVo = recordList.get(i);
/*DailyReportListVo dailyReportVo = recordList.get(i);
//根据库存小计和排产小计计算库存总计
int stock_subtotal = dailyReportVo.getStock_subtotal();
int pcOrder_subtotal = dailyReportVo.getPcOrder_subtotal();
@ -271,7 +385,19 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
} else {
BigDecimal big = new BigDecimal(stock_total).divide(new BigDecimal(threeNum).divide(new BigDecimal(3), 2, BigDecimal.ROUND_CEILING), 2, BigDecimal.ROUND_CEILING);
dailyReportVo.setSaleOfStockRatio(big.toString());
}*/
DailyReportListVo dailyReportListVo = recordList.get(i);
String ratio = "";
if (StringUtils.isBlank(dailyReportListVo.getSaleAllToThree())) {
ratio = dailyReportListVo.getStock_subtotal() + ":1";
} else {
if ("0".equals(dailyReportListVo.getSaleAllToThree())) {
ratio = dailyReportListVo.getStock_subtotal() + ":1";
} else {
ratio = new BigDecimal(dailyReportListVo.getStock_total()).divide((new BigDecimal(dailyReportListVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, RoundingMode.HALF_UP)), 0, RoundingMode.HALF_UP).toString() + ":1";
}
}
dailyReportListVo.setSaleOfStockRatio(ratio);
}
}
PagerVo<DailyReportListVo> p = PagerUtil.pageToVo(pagging, null);
@ -294,6 +420,24 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
}
IPage<DailyReport> page = PagerUtil.queryToPage(pagerQuery);
IPage<DailyReportListVo> pagging = baseMapper.listPage3_1(page, qw);
List<DailyReportListVo> recordList = pagging.getRecords();
recordList.removeAll(Collections.singleton(null));
if (!recordList.isEmpty()) {
for (int i = 0; i < recordList.size(); i++) {
DailyReportListVo dailyReportListVo = recordList.get(i);
String ratio = "";
if (StringUtils.isBlank(dailyReportListVo.getSaleAllToThree())) {
ratio = dailyReportListVo.getStock_subtotal() + ":1";
} else {
if ("0".equals(dailyReportListVo.getSaleAllToThree())) {
ratio = dailyReportListVo.getStock_subtotal() + ":1";
} else {
ratio = new BigDecimal(dailyReportListVo.getStock_total()).divide((new BigDecimal(dailyReportListVo.getSaleAllToThree()).divide(new BigDecimal(3), 4, RoundingMode.HALF_UP)), 0, RoundingMode.HALF_UP).toString() + ":1";
}
}
dailyReportListVo.setSaleOfStockRatio(ratio);
}
}
PagerVo<DailyReportListVo> p = PagerUtil.pageToVo(pagging, null);
return p;
}
@ -623,20 +767,20 @@ public class DailyReportService extends MybatisBaseService<DailyReportMapper, Da
return p;
}
public ResultBean<ReportVo> getReport(String date, String userSid,String orgPath,String type) {
public ResultBean<ReportVo> getReport(String date, String userSid, String orgPath, String type) {
ResultBean<ReportVo> rb = ResultBean.fireFail();
QueryWrapper<DailyReport> qw = new QueryWrapper<>();
if (StringUtils.isNotBlank(date)) {
qw.like("createTime", date);
}
if(StringUtils.isNotBlank(type)){//事业部或分公司
if("syb".equals(type)){
if (StringUtils.isNotBlank(type)) {//事业部或分公司
if ("syb".equals(type)) {
if (StringUtils.isNotBlank(orgPath)) {
List<String> stringList = Arrays.asList(orgPath.split("/"));
String busOrgSid = orgPath.substring(37, 73);
qw.eq("busOrgSid", busOrgSid);
}
}else if("fgs".equals(type)){
} else if ("fgs".equals(type)) {
if (StringUtils.isNotBlank(orgPath)) {
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData();
qw.eq("useOrgSid", useOrgSid);

19
anrui-riskcenter-ui/src/views/caseappeal/caseappealAdd.vue

@ -128,7 +128,7 @@
<el-row>
<el-col :span="24">
<div class="span-sty">判决资料</div>
<el-form-item><el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in formobj.pjclFiles" :key="index" :src="item" :preview-src-list="formobj.pjclFiles" /></el-form-item>
<el-form-item><el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list" /></el-form-item>
</el-col>
</el-row>
<div class="title">车辆信息</div>
@ -190,6 +190,7 @@ export default {
submitdisabled: false,
tableKey: 0,
index: 0,
image_list: [],
formobj: {
appealDueDate: '',
arrearsTotal: '',
@ -249,6 +250,13 @@ export default {
req.init({ sid: sid, userSid: window.sessionStorage.getItem('userSid'), orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.pjclFiles.length > 0) {
const aa = []
this.formobj.pjclFiles.forEach((e) => {
aa.push(e.url)
})
this.image_list = aa
}
}
})
},
@ -260,6 +268,14 @@ export default {
req.fetchBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.instanceId = res.data.procInstSid
if (this.formobj.pjclFiles.length > 0) {
const aa = []
this.formobj.pjclFiles.forEach((e) => {
aa.push(e.url)
})
this.image_list = aa
}
}
})
},
@ -346,6 +362,7 @@ export default {
useOrgSid: '',
ysclFiles: []
}
this.image_list = []
this.submitdisabled = false
this.$emit('doback')
}

14
anrui-riskcenter-ui/src/views/caseappeal/caseappealInfo.vue

@ -242,6 +242,20 @@ export default {
req.fetchBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.pjclFiles.length > 0) {
const aa = []
this.formobj.pjclFiles.forEach((e) => {
aa.push(e.url)
})
this.formobj.pjclFiles = aa
}
if (this.formobj.ysclFiles.length > 0) {
const aa = []
this.formobj.ysclFiles.forEach((e) => {
aa.push(e.url)
})
this.formobj.ysclFiles = aa
}
}
})
},

16
anrui-riskcenter-ui/src/views/workFlow/shangsuFlow/caseappealDaiBan.vue

@ -335,7 +335,7 @@ export default {
params: {
//
code: 2,
data: 400 + 'px'
data: 500 + 'px'
}
}, '*')
},
@ -348,6 +348,20 @@ export default {
req.fetchBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.pjclFiles.length > 0) {
const aa = []
this.formobj.pjclFiles.forEach((e) => {
aa.push(e.url)
})
this.formobj.pjclFiles = aa
}
if (this.formobj.ysclFiles.length > 0) {
const aa = []
this.formobj.ysclFiles.forEach((e) => {
aa.push(e.url)
})
this.formobj.ysclFiles = aa
}
}
})
selectStaffListss().then((res) => {

13
anrui-riskcenter-ui/src/views/workFlow/shangsuFlow/caseappealEdit.vue

@ -127,7 +127,7 @@
<el-row>
<el-col :span="24">
<div class="span-sty">判决资料</div>
<el-form-item><el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in formobj.pjclFiles" :key="index" :src="item" :preview-src-list="formobj.pjclFiles" /></el-form-item>
<el-form-item><el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list" /></el-form-item>
</el-col>
</el-row>
<div class="title">车辆信息</div>
@ -189,6 +189,7 @@ export default {
submitdisabled: false,
tableKey: 0,
index: 0,
image_list: [],
formobj: {
appealDueDate: '',
arrearsTotal: '',
@ -252,7 +253,7 @@ export default {
params: {
//
code: 2,
data: 400 + 'px'
data: 500 + 'px'
}
}, '*')
},
@ -265,6 +266,14 @@ export default {
req.fetchBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.instanceId = res.data.procInstSid
if (this.formobj.pjclFiles.length > 0) {
const aa = []
this.formobj.pjclFiles.forEach((e) => {
aa.push(e.url)
})
this.image_list = aa
}
}
})
},

16
anrui-riskcenter-ui/src/views/workFlow/shangsuFlow/caseappealYiBan.vue

@ -264,7 +264,7 @@ export default {
params: {
//
code: 2,
data: 400 + 'px'
data: 500 + 'px'
}
}, '*')
},
@ -277,6 +277,20 @@ export default {
req.fetchBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.pjclFiles.length > 0) {
const aa = []
this.formobj.pjclFiles.forEach((e) => {
aa.push(e.url)
})
this.formobj.pjclFiles = aa
}
if (this.formobj.ysclFiles.length > 0) {
const aa = []
this.formobj.ysclFiles.forEach((e) => {
aa.push(e.url)
})
this.formobj.ysclFiles = aa
}
}
})
},

Loading…
Cancel
Save