Browse Source

Merge remote-tracking branch 'origin/master'

master
God 10 months ago
parent
commit
209618147a
  1. 6
      anrui-riskcenter-ui/src/api/repaymentschedule/repaymentschedule.js
  2. 10
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue
  3. 115
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentscheduleInfo.vue
  4. 16
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymentschedule/DetailsVehVo.java
  5. 2
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymentschedule/LoanRepaymentDetailsVo.java
  6. 1
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsMapper.java
  7. 3
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsMapper.xml
  8. 4
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsService.java
  9. 2
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleMapper.java
  10. 12
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleMapper.xml
  11. 204
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java
  12. 47
      yxt-as-ui/src/views/operation/merchandisereturn/merchandisereturnInfo.vue

6
anrui-riskcenter-ui/src/api/repaymentschedule/repaymentschedule.js

@ -27,10 +27,10 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
// 查看多台还款计划--回显(详情)
viewVinsSchedule: function(data) {
// 查看还款计划--回显(详情)
scheduleDetails: function(data) {
return request({
url: '/riskcenter/v1/loanrepaymentschedule/viewVinsSchedule',
url: '/riskcenter/v1/loanrepaymentschedule/scheduleDetails',
method: 'get',
params: data
})

10
anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

@ -60,11 +60,11 @@
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<!-- <el-table-column label="操作" width="130" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" width="130" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="builded" label="生成状态" align="center" width="100"/>
<el-table-column prop="repaymentCreateTime" label="生成日期" align="center" width="100"/>
<el-table-column prop="useOrgName" label="分公司" align="center" width="120"/>

115
anrui-riskcenter-ui/src/views/repaymentschedule/repaymentscheduleInfo.vue

@ -4,7 +4,7 @@
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" @click="lookBike()">查看单车还款计划表</el-button>
<el-button type="primary" size="small" @click="lookBike()">查看明细</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
@ -20,41 +20,55 @@
<el-form-item><span class="addinputInfo">{{ formobj.borrowerName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">车辆台数</div>
<el-form-item><span class="addinputInfo">{{ formobj.vehCount }}</span></el-form-item>
<div class="span-sty">贷款总金额(台数)</div>
<el-form-item><span class="addinputInfo">{{ formobj.amountAll }}({{ formobj.vehCount }})</span></el-form-item>
</el-col>
</el-row>
<div class="title titleOne">
<div>主金融产品<span>{{ (formobj.policyName) }}</span></div>
</div>
<el-row>
<el-col :span="8">
<div class="span-sty">资方</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankName }}</span></el-form-item>
<div class="span-sty">单车贷款金额</div>
<el-form-item><span class="addinputInfo">{{ formobj.loanAmount }}</span></el-form-item>
</el-col>
<el-col :span="16" class="tlineheightb">
<div class="span-sty">涉及车架号</div>
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
<el-col :span="8">
<div class="span-sty">期数</div>
<el-form-item><span class="addinputInfo">{{ formobj.mainPeriod }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">首期还款日</div>
<el-form-item><span class="addinputInfo">{{ formobj.mainRepayDate }}</span></el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.scheduleVins" border style="width: 100%">
<el-table-column prop="period" width="60" label="期数" align="center"/>
<el-table-column label="还款月份" align="center">
<template slot-scope="scope">
<span>{{ scope.row.repayMonth }}</span>
</template>
</el-table-column>
<el-table-column :label="'月还(' + formobj.mainRepayDate + '日)'" align="center">
<template slot-scope="scope">
<span>{{ scope.row.mainRepay }}</span>
</template>
<div v-if="formobj.isOtherPolicy == '1'">
<div class="title">其它融<span>({{ formobj.otherPolicyName }})</span></div>
<el-row>
<el-col :span="8">
<div class="span-sty">单车贷款金额</div>
<el-form-item><span class="addinputInfo">{{ formobj.otherAmount }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">期数</div>
<el-form-item><span class="addinputInfo">{{ formobj.otherPeriod }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">首期还款日</div>
<el-form-item><span class="addinputInfo">{{ formobj.otherRepayDate }}</span></el-form-item>
</el-col>
</el-row>
</div>
<el-table :key="tableKey" :data="formobj.vinList" border style="width: 100%">
<el-table-column prop="vinNo" label="车架号" align="center" min-width="120" />
<el-table-column label="主金融产品" align="center">
<el-table-column prop="mainFirstRepay" label="首期月还" align="center" min-width="120" />
<el-table-column prop="mainMidRepay" label="期间月还" align="center" min-width="120" />
<el-table-column prop="mainLastRepay" label="末期月还" align="center" min-width="120" />
</el-table-column>
<el-table-column v-if="formobj.isOtherPolicy == '1'" :label="'其它融月还(' + formobj.otherRepayDate + '日)'" align="center">
<template slot-scope="scope">
<span>{{ scope.row.otherRepay }}</span>
</template>
</el-table-column>
<el-table-column v-if="formobj.isOtherPolicy == '1'" label="合计" align="center">
<template slot-scope="scope">
<span>{{ scope.row.amount }}</span>
</template>
<el-table-column v-if="formobj.isOtherPolicy == '1'" label="其它融" align="center">
<el-table-column prop="otherFirstRepay" label="首期月还" align="center" min-width="120" />
<el-table-column prop="otherMidRepay" label="期间月还" align="center" min-width="120" />
<el-table-column prop="otherLastRepay" label="末期月还" align="center" min-width="120" />
</el-table-column>
</el-table>
</el-form>
@ -80,23 +94,28 @@ export default {
viewState: 1,
tableKey: 0,
formobj: {
salesOrderSid: '',
sid: '',
loanContractNo: '',
borrowerName: '',
bankName: '',
amountAll: '',
vehCount: '',
vinNo: '',
isOtherPolicy: '',
policyName: '',
loanAmount: '',
mainPeriod: '',
mainRepayDate: '',
otherPolicyName: '',
otherAmount: '',
otherPeriod: '',
otherRepayDate: '',
scheduleVins: []
vinList: [],
isOtherPolicy: ''
}
}
},
methods: {
showInfo(row) {
this.viewTitle = '单车还款计划表'
req.viewVinsSchedule({ salesOrderSid: row.salesOrderSid }).then((res) => {
req.scheduleDetails({ salesOrderSid: row.salesOrderSid }).then((res) => {
if (res.success) {
this.formobj = res.data
}
@ -111,16 +130,21 @@ export default {
},
handleReturn() {
this.formobj = {
salesOrderSid: '',
sid: '',
loanContractNo: '',
borrowerName: '',
bankName: '',
amountAll: '',
vehCount: '',
vinNo: '',
isOtherPolicy: '',
policyName: '',
loanAmount: '',
mainPeriod: '',
mainRepayDate: '',
otherPolicyName: '',
otherAmount: '',
otherPeriod: '',
otherRepayDate: '',
scheduleVins: []
vinList: [],
isOtherPolicy: ''
}
this.$emit('doback')
}
@ -135,17 +159,4 @@ export default {
.addinputInfo {
margin-left: 120px !important;
}
.tlineheightb {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
/deep/ .tlineheightb .el-form-item .el-form-item__content .addinputInfo {
line-height: 15px !important;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
</style>

16
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymentschedule/DetailsVehVo.java

@ -0,0 +1,16 @@
package com.yxt.anrui.riskcenter.api.loanrepaymentschedule;
import lombok.Data;
/**
* @author Fan
* @description
* @date 2024/6/25 8:35
*/
@Data
public class DetailsVehVo {
private String money;
private String vinNo;
private String busVinSid;
}

2
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanrepaymentschedule/LoanRepaymentDetailsVo.java

@ -40,5 +40,5 @@ public class LoanRepaymentDetailsVo {
@ApiModelProperty("其他融首期还款日")
private String otherRepayDate;
private List<DetailsListVo> vinList = new ArrayList<>();
private String isOtherPolicy; //是否有其他融 0没有 1有
}

1
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsMapper.java

@ -85,4 +85,5 @@ public interface LoanRepaymentPlanDetailsMapper extends BaseMapper<LoanRepayment
String fetchCwDeptCodeByBusVinSid(@Param("busVinSid") String busVinSid);
String selSumMoneyByScheduleSid(@Param("sid") String sid);
}

3
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsMapper.xml

@ -787,4 +787,7 @@
LIMIT 1
)
</select>
<select id="selSumMoneyByScheduleSid" resultType="java.lang.String">
SELECT IFNULL(SUM(dueMoney),0) FROM loan_repayment_plan_details WHERE scheduleSid = #{sid}
</select>
</mapper>

4
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsService.java

@ -327,4 +327,8 @@ public class LoanRepaymentPlanDetailsService extends MybatisBaseService<LoanRepa
public int updateTimeByBankName(String bankName, Date updateTime, String useOrgSid) {
return baseMapper.updateTimeByBankName(bankName, updateTime, useOrgSid);
}
public String selSumMoneyByScheduleSid(String sid) {
return baseMapper.selSumMoneyByScheduleSid(sid);
}
}

2
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleMapper.java

@ -44,4 +44,6 @@ public interface LoanRepaymentScheduleMapper extends BaseMapper<LoanRepaymentSch
String selSumAmountDueMoneyByBusVinSid(@Param("mainSid") String mainSid,@Param("busVinSid") String busVinSid,@Param("mainOrOther") String mainOrOther);
List<LoanRepaymentPlanDetailsExportVo> selPlansExcel(@Param("sids") List<String> sids);
List<DetailsVehVo> selMoneyAndVin(@Param("sid") String sid);
}

12
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleMapper.xml

@ -140,4 +140,16 @@
#{item}
</foreach>
</select>
<select id="selMoneyAndVin" resultType="com.yxt.anrui.riskcenter.api.loanrepaymentschedule.DetailsVehVo">
SELECT
SUM( dueMoney ) as money,
vinNo,
busVinSid
FROM
loan_repayment_plan_details AS p
WHERE
p.scheduleSid = #{sid}
GROUP BY
p.vinNo
</select>
</mapper>

204
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java

@ -74,6 +74,7 @@ import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.Function;
import java.util.stream.Collectors;
@ -125,6 +126,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
private LoanFinPolicyService loanFinPolicyService;
@Autowired
private BaseVehicleOutApplyFeign baseVehicleOutApplyFeign;
/**
* 根据销售订单SID生成还款计划表回显
*
@ -4624,9 +4626,207 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
ResultBean rb = ResultBean.fireFail();
LoanRepaymentDetailsVo vo = new LoanRepaymentDetailsVo();
LoanRepaymentSchedule schedule = baseMapper.selectByContractSid(salesOrderSid);
List<DetailsListVo> vinList = new ArrayList<>();
if (null != schedule) {
vo.setSid(schedule.getSid());
vo.setIsOtherPolicy(schedule.getIsOtherPolicy());
if (StringUtils.isNotBlank(schedule.getLoanContractNo())) {
vo.setLoanContractNo(schedule.getLoanContractNo());
}
if (StringUtils.isNotBlank(schedule.getBorrowerName())) {
vo.setBorrowerName(schedule.getBorrowerName());
}
if (StringUtils.isNotBlank(schedule.getVehCount())) {
vo.setVehCount(schedule.getVehCount());
}
String sumMoney = loanRepaymentPlanDetailsService.selSumMoneyByScheduleSid(schedule.getSid());
vo.setAmountAll(sumMoney);
String policyName = "";
String bankContractNo = "";
String otherPolicyName = "";
String otherBankNo = "";
if (StringUtils.isNotBlank(schedule.getPolicyName())) {
policyName = schedule.getPolicyName();
}
if (StringUtils.isNotBlank(schedule.getBankContractNo())) {
bankContractNo = schedule.getBankContractNo();
}
vo.setPolicyName(policyName + "-" + bankContractNo);
if (schedule.getIsOtherPolicy().equals("1")) {
//查看是否有其他融
LoanSolutions loanSolutions = loanSolutionsService.selectBySaleOrderSid(schedule.getSalesOrderSid());
LoanSolutionsOtherpolicy otherpolicy = loanSolutionsOtherpolicyService.selectByLoanSid(loanSolutions.getSid());
if (null != otherpolicy) {
if (StringUtils.isNotBlank(otherpolicy.getOtherPolicyPeriod())) {
// 其他融产品
if (StringUtils.isNotBlank(otherpolicy.getOtherPolicyName())) {
otherPolicyName = otherpolicy.getOtherPolicyName();
}
}
}
if (StringUtils.isNotBlank(schedule.getOtherBankNo())) {
otherBankNo = schedule.getOtherBankNo();
vo.setOtherPolicyName(otherPolicyName + "-" + otherBankNo);
}
BigDecimal mp = new BigDecimal(schedule.getMainPeriod());
BigDecimal mf = schedule.getMainFirstRepay();
BigDecimal mm = schedule.getMainMidRepay();
BigDecimal ml = schedule.getMainLastRepay();
BigDecimal op = new BigDecimal(schedule.getOtherPeriod());
BigDecimal of = schedule.getOtherFirstRepay();
BigDecimal om = schedule.getOtherMidRepay();
BigDecimal ol = schedule.getOtherLastRepay();
BigDecimal sm = mm.multiply((mp.subtract(new BigDecimal("2")))).add(mf).add(ml);
vo.setLoanAmount(sm.toString());
vo.setMainPeriod(schedule.getMainPeriod());
vo.setMainRepayDate(DateUtil.formatDate(schedule.getMainRepayDate()));
BigDecimal so = om.multiply((op.subtract(new BigDecimal("2")))).add(of).add(ol);
vo.setOtherAmount(so.toString());
vo.setOtherPeriod(schedule.getOtherPeriod());
vo.setOtherRepayDate(DateUtil.formatDate(schedule.getOtherRepayDate()));
} else {
BigDecimal mp = new BigDecimal(schedule.getMainPeriod());
BigDecimal mf = schedule.getMainFirstRepay();
BigDecimal mm = schedule.getMainMidRepay();
BigDecimal ml = schedule.getMainLastRepay();
BigDecimal sm = mm.multiply((mp.subtract(new BigDecimal("2")))).add(mf).add(ml);
vo.setLoanAmount(sm.toString());
vo.setMainPeriod(schedule.getMainPeriod());
vo.setMainRepayDate(DateUtil.formatDate(schedule.getMainRepayDate()));
}
if (Integer.parseInt(schedule.getVehCount()) > 1) {
if (StringUtils.isNotBlank(schedule.getIsDifferent())) {
if (schedule.getIsDifferent().equals("1")) {
List<DetailsVehVo> vehVos = baseMapper.selMoneyAndVin(schedule.getSid());
Map<String, String> map = new HashMap<>();
List<String> moneys = new ArrayList<>();
List<String> vinNos = new ArrayList<>();
if (!vehVos.isEmpty()) {
for (DetailsVehVo vehVo : vehVos) {
map.put(vehVo.getVinNo() + "," + vehVo.getBusVinSid(), vehVo.getMoney());
moneys.add(vehVo.getMoney());
}
//找出元素最多的一个
String maxCount = moneys.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()))
.entrySet()
.stream()
.max(Map.Entry.comparingByValue())
.map(Map.Entry::getKey)
.get();
for (Map.Entry<String, String> entry : map.entrySet()) {
String value = entry.getValue();
String key = entry.getKey();
String flag = ""; //0代表普通 1代表与其他不同
if (value.equals(maxCount)) {
flag = "0";
} else {
flag = "1";
}
vinNos.add(key + ";" + flag);
}
// 赋值
BigDecimal mf = schedule.getMainFirstRepay();
BigDecimal mm = schedule.getMainMidRepay();
BigDecimal ml = schedule.getMainLastRepay();
BigDecimal of = new BigDecimal("0");
BigDecimal om = new BigDecimal("0");
BigDecimal ol = new BigDecimal("0");
BigDecimal mfs = schedule.getSingleMainFirstRepay();
BigDecimal mms = schedule.getSingleMainMidRepay();
BigDecimal mls = schedule.getSingleMainLastRepay();
BigDecimal ofs = new BigDecimal("0");
BigDecimal oms = new BigDecimal("0");
BigDecimal ols = new BigDecimal("0");
if (schedule.getIsOtherPolicy().equals("1")) {
of = schedule.getOtherFirstRepay();
om = schedule.getOtherMidRepay();
ol = schedule.getOtherLastRepay();
ofs = schedule.getSingleOtherFirstRepay();
oms = schedule.getSingleOtherMidRepay();
ols = schedule.getSingleOtherLastRepay();
}
for (String s : vinNos) {
//拆分字符串
String[] split = s.split(";");
String vin = split[0];
String flag = split[1];
String[] v = vin.split(",");
String vinNo = v[0];
String busVinSid = v[1];
DetailsListVo listVo = new DetailsListVo();
listVo.setVinNo(vinNo);
listVo.setBusVinSid(busVinSid);
if (flag.equals("0")) {
//普通
listVo.setMainFirstRepay(mf.toString());
listVo.setMainMidRepay(mm.toString());
listVo.setMainLastRepay(ml.toString());
if (schedule.getIsOtherPolicy().equals("1")) {
listVo.setOtherFirstRepay(of.toString());
listVo.setOtherMidRepay(om.toString());
listVo.setOtherLastRepay(ol.toString());
}
} else if (flag.equals("1")) {
//与其他不同
listVo.setMainFirstRepay(mfs.toString());
listVo.setMainMidRepay(mms.toString());
listVo.setMainLastRepay(mls.toString());
if (schedule.getIsOtherPolicy().equals("1")) {
listVo.setOtherFirstRepay(ofs.toString());
listVo.setOtherMidRepay(oms.toString());
listVo.setOtherLastRepay(ols.toString());
}
}
vinList.add(listVo);
}
}
} else {
List<DetailsVehVo> vehVos = baseMapper.selMoneyAndVin(schedule.getSid());
for (DetailsVehVo detailsVehVo : vehVos) {
DetailsListVo listVo = new DetailsListVo();
listVo.setBusVinSid(detailsVehVo.getBusVinSid());
listVo.setVinNo(detailsVehVo.getVinNo());
BigDecimal mf = schedule.getMainFirstRepay();
BigDecimal mm = schedule.getMainMidRepay();
BigDecimal ml = schedule.getMainLastRepay();
listVo.setMainFirstRepay(mf.toString());
listVo.setMainMidRepay(mm.toString());
listVo.setMainLastRepay(ml.toString());
if (schedule.getIsOtherPolicy().equals("1")) {
BigDecimal of = schedule.getOtherFirstRepay();
BigDecimal om = schedule.getOtherMidRepay();
BigDecimal ol = schedule.getOtherLastRepay();
listVo.setOtherFirstRepay(of.toString());
listVo.setOtherMidRepay(om.toString());
listVo.setOtherLastRepay(ol.toString());
}
vinList.add(listVo);
}
}
}
} else {
List<DetailsVehVo> vehVos = baseMapper.selMoneyAndVin(schedule.getSid());
DetailsVehVo detailsVehVo = vehVos.get(0);
DetailsListVo listVo = new DetailsListVo();
listVo.setBusVinSid(detailsVehVo.getBusVinSid());
listVo.setVinNo(detailsVehVo.getVinNo());
BigDecimal mf = schedule.getMainFirstRepay();
BigDecimal mm = schedule.getMainMidRepay();
BigDecimal ml = schedule.getMainLastRepay();
listVo.setMainFirstRepay(mf.toString());
listVo.setMainMidRepay(mm.toString());
listVo.setMainLastRepay(ml.toString());
if (schedule.getIsOtherPolicy().equals("1")) {
BigDecimal of = schedule.getOtherFirstRepay();
BigDecimal om = schedule.getOtherMidRepay();
BigDecimal ol = schedule.getOtherLastRepay();
listVo.setOtherFirstRepay(of.toString());
listVo.setOtherMidRepay(om.toString());
listVo.setOtherLastRepay(ol.toString());
}
vinList.add(listVo);
}
vo.setVinList(vinList);
}
return rb.success().setData(vo);
}

47
yxt-as-ui/src/views/operation/merchandisereturn/merchandisereturnInfo.vue

@ -78,53 +78,6 @@
<el-form-item><span class="addinputInfo">{{ formobj.customerOrg }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="border-right: 0px">合计金额</div>
<el-form-item><span class="addinputInfo"> = 工时费 + 材料费 + 附加费 + 税额</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="border-right: 0px">应收金额</div>
<el-form-item><span class="addinputInfo"> = 合计优惠 + 已收金额 + 欠款 + 退款抵欠款</span></el-form-item>
</el-col>
</el-row>
<div v-show="formobj.type == '0'">
<div class="title titleOne">服务项目</div>
<el-table :key="sitemKey" :data="formobj.sitemVos" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="serviceItem" label="服务项目" align="center" width="300" />
<el-table-column prop="serviceType" label="工种" align="center" width="150" />
<el-table-column prop="manufacturerName" label="厂家" align="center" width="150" />
<el-table-column prop="subject" label="科目" align="center" width="100" />
<el-table-column prop="repairerName" label="维修人" align="center" width="100" />
<el-table-column prop="examineHourPrice" label="考核工时" align="center" width="100" />
<el-table-column prop="hourPrice" label="工时单价" align="center" width="100" />
<el-table-column prop="hours" label="工时数" align="center" width="140" />
<el-table-column prop="price" label="销售价" align="center" width="120" />
<el-table-column prop="discount" label="折扣" align="center" width="120" />
<el-table-column prop="discountAmount" label="优惠" align="center" width="120" />
<el-table-column prop="amount" label="金额" align="center" width="100" />
<el-table-column prop="remarks" label="备注" align="center" min-width="200" />
</el-table>
</div>
<div class="title">商品列表</div>
<el-table :key="goodsKey" :data="formobj.goodsDetailsVos" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="goodsSpuName" label="商品名称" align="center" width="300" />
<el-table-column prop="goodsSkuCode" label="图号" align="center" width="150" />
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" width="150" />
<el-table-column prop="unit" label="单位" align="center" width="100" />
<el-table-column prop="manufacturerName" label="厂家" align="center" width="100" />
<el-table-column prop="price" label="销售价" align="center" width="100" />
<el-table-column prop="count" label="数量" align="center" width="100" />
<el-table-column prop="amount" label="已出库" align="center" width="140" />
<el-table-column prop="discount" label="折扣" align="center" width="120" />
<el-table-column prop="discountAmount" label="优惠" align="center" width="120" />
<el-table-column prop="amount" label="金额" align="center" width="100" />
<el-table-column prop="remarks" label="备注" align="center" min-width="200" />
</el-table>
<div v-show="formobj.returnGoods.length > 0">
<div class="title">退货商品列表</div>
<el-table :key="tableKey" :data="formobj.returnGoods" :index="index" border style="width: 100%">

Loading…
Cancel
Save