Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe0036 1 month ago
parent
commit
b058b5ec48
  1. 11
      anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/bussalesorder/BusSalesOrderService.java
  2. 28
      yxt-as-ui/src/views/storage/adjustment/adjustmentAdd.vue

11
anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/bussalesorder/BusSalesOrderService.java

@ -3464,15 +3464,24 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper
return rb.setMsg("金融方案中实收金额小于单台订金");
}
BigDecimal AmountAll = BigDecimal.ZERO;
BigDecimal AllAmount = BigDecimal.ZERO;
if (StringUtils.isNotBlank(solutionsDetailsVo.getMainVehicleAmount())) {
//主车发票价
AmountAll = AmountAll.add(new BigDecimal(solutionsDetailsVo.getMainVehicleAmount()));
AllAmount = AllAmount.add(new BigDecimal(solutionsDetailsVo.getMainVehicleAmount()));
}
if (solutionsDetailsVo.isAccessoriesAmountCb()) {//包含配件
if (StringUtils.isNotBlank(solutionsDetailsVo.getAccessoriesAmount())) {
AmountAll = AmountAll.add(new BigDecimal(solutionsDetailsVo.getAccessoriesAmount()));
AllAmount = AllAmount.add(new BigDecimal(solutionsDetailsVo.getAccessoriesAmount()));
}
}
if (StringUtils.isNotBlank(solutionsDetailsVo.getOffsetAccessories())) {//抵顶配件
AllAmount = AllAmount.subtract(new BigDecimal(solutionsDetailsVo.getOffsetAccessories()));
}
if(AllAmount.compareTo(new BigDecimal(busSalesOrderPriceDetailsVo.getSingleFinalPrice())) != 0){
return rb.setMsg("需要先完善金融方案信息,再提交订单");
}
//判断成交价与主车发票价和配件之和
if (AmountAll.compareTo(new BigDecimal(busSalesOrderPriceDetailsVo.getSingleFinalPrice())) < 0) {
return rb.setMsg("主车发票价与配件之和不能小于订单成交价");
@ -8563,7 +8572,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper
String customerSid = busSalesOrder.getCustomerSid();
LoanPreloanCreditApply loanPreloanCreditApply = busSalesOrderBorrowerService.selectLoanApply(customerSid);
if (loanPreloanCreditApply != null) {
if ((!"001".equals(loanPreloanCreditApply.getZffkjgKey()) && !"003".equals(loanPreloanCreditApply.getZffkjgKey()))|| !"通过".equals(loanPreloanCreditApply.getSsjg())) {
if ((!"001".equals(loanPreloanCreditApply.getZffkjgKey()) && !"003".equals(loanPreloanCreditApply.getZffkjgKey())) || !"通过".equals(loanPreloanCreditApply.getSsjg())) {
return rb.setMsg("该客户资方审核未通过或未审核,请处理后再操作");
}
}

28
yxt-as-ui/src/views/storage/adjustment/adjustmentAdd.vue

@ -7,7 +7,7 @@
<!-- start 添加修改按钮 -->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submintdate">提交</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
<!-- end 添加修改按钮 -->
@ -45,7 +45,7 @@
<el-table-column fixed width="80" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" wid align="center" width="200">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="deleteGoodsType(scope.$index)">删除</el-button>
<el-button type="danger" size="mini" @click="deleteGoodsType(scope.$index)">删除</el-button>
<el-button type="primary" size="mini" @click="editPriceStrategy(scope.row)">编辑</el-button>
</template>
</el-table-column>
@ -222,7 +222,7 @@ export default {
}
})
},
submintdate() {
submit() {
if (this.formobj.smsPricestrategyBillDetailList.length == 0) {
this.$message({
showClose: true,
@ -254,7 +254,27 @@ export default {
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.submitdisabled = false
this.formobj = {}
this.formobj = {
sid: '',
createByName: window.sessionStorage.getItem('name'),
billNo: '',
deptName: window.sessionStorage.getItem('defaultOrgPathName').substring(window
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1),
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1),
remarks: '',
createBySid: window.sessionStorage.getItem('userSid'),
createTime: getCurrentDate(),
procDefId: '',
nodeId: '',
procInstId: '',
nodeState: '',
taskId: '',
finishTime: '',
useOrgSid: '',
useOrgName: '',
smsPricestrategyBillDetailList: []
}
this.$emit('doback')
},
showAdd() {

Loading…
Cancel
Save