Browse Source

Merge remote-tracking branch 'origin/master'

master
dimengzhe 1 year ago
parent
commit
a7c2f3bad2
  1. 19
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finmanufacturerbank/BankVoForPayment.java
  2. 8
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finmanufacturerbank/FinManufacturerBankFeign.java
  3. 5
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finmanufacturerbank/FinManufacturerBankFeignFallback.java
  4. 2
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finfundscarriedforwardapply/FinFundsCarriedForwardApplyService.java
  5. 11
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankMapper.java
  6. 6
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankMapper.xml
  7. 5
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankRest.java
  8. 49
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankService.java
  9. 8
      anrui-riskcenter-ui/src/api/Common/dictcommons.js
  10. 123
      anrui-riskcenter-ui/src/api/agentbusiness/agentbusiness.js
  11. 53
      anrui-riskcenter-ui/src/router/index.js
  12. 337
      anrui-riskcenter-ui/src/views/agentbusiness/agentbusiness.vue
  13. 252
      anrui-riskcenter-ui/src/views/agentbusiness/agentbusinessAdd.vue
  14. 134
      anrui-riskcenter-ui/src/views/agentbusiness/agentbusinessInfo.vue
  15. 246
      anrui-riskcenter-ui/src/views/alsotransfer/alsotransfer.vue
  16. 263
      anrui-riskcenter-ui/src/views/alsotransfer/pendingtransfer.vue
  17. 397
      anrui-riskcenter-ui/src/views/workFlow/daishoudaifuFlow/agentbusinessDaiBan.vue
  18. 246
      anrui-riskcenter-ui/src/views/workFlow/daishoudaifuFlow/agentbusinessEdit.vue
  19. 189
      anrui-riskcenter-ui/src/views/workFlow/daishoudaifuFlow/agentbusinessYiBan.vue
  20. 3
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantransferpaymentapply/LoanTransferPaymentApplyService.java

19
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finmanufacturerbank/BankVoForPayment.java

@ -0,0 +1,19 @@
package com.yxt.anrui.fin.api.finmanufacturerbank;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author Fan
* @description
* @date 2023/12/8 9:50
*/
@Data
public class BankVoForPayment {
@ApiModelProperty("开户银行")
private String depositBank;
@ApiModelProperty("转付账户")
private String account;
@ApiModelProperty("转付账户账号")
private String accountNumber;
}

8
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finmanufacturerbank/FinManufacturerBankFeign.java

@ -85,7 +85,7 @@ public interface FinManufacturerBankFeign {
@ApiOperation("获取该分公司下的开户账号:切换机构")
@GetMapping("/selectAccountByUseOrgSid")
@ResponseBody
public ResultBean<List<FinManufacturerVo>> selectAccountByUseOrgSid(@RequestParam("userSid") String userSid,@RequestParam("orgPath")String orgPath);
public ResultBean<List<FinManufacturerVo>> selectAccountByUseOrgSid(@RequestParam("userSid") String userSid, @RequestParam("orgPath") String orgPath);
@ApiOperation("获取该本分公司下的开户账号")
@GetMapping("/selAccountByOrgSid")
@ -96,4 +96,10 @@ public interface FinManufacturerBankFeign {
@PostMapping("/selAppAccountByOrgSid")
@ResponseBody
public ResultBean<PagerVo<FinManufacturerVo>> selAppAccountByOrgSid(@RequestBody PagerQuery<FinManufacturerOrgPathQuery> query);
@ApiOperation("代收代付选择银行账户")
@GetMapping("/listByPayment")
@ResponseBody
public ResultBean listByPayment(@RequestParam("orgPath") String orgPath, @RequestParam("key") String key);
}

5
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finmanufacturerbank/FinManufacturerBankFeignFallback.java

@ -89,4 +89,9 @@ public class FinManufacturerBankFeignFallback implements FinManufacturerBankFeig
public ResultBean<PagerVo<FinManufacturerVo>> selAppAccountByOrgSid(PagerQuery<FinManufacturerOrgPathQuery> query) {
return null;
}
@Override
public ResultBean listByPayment(String orgPath, String key) {
return null;
}
}

2
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finfundscarriedforwardapply/FinFundsCarriedForwardApplyService.java

@ -888,6 +888,7 @@ public class FinFundsCarriedForwardApplyService extends MybatisBaseService<FinFu
collectionDetailDtoOne.setExTaxMoney(listOne.get(0).getDcje().toString());
}
collectionDetailDtoOne.setUseTo("YT018");
collectionDetailDtoOne.setMaterialNo(listOne.get(0).getVinNo());
collectionDetailDtoListOne.add(collectionDetailDtoOne);
otherReceivableOne.setCollectionDetails(collectionDetailDtoListOne);
otherReceivableBillService.otherReceivableBillService(otherReceivableOne);
@ -909,6 +910,7 @@ public class FinFundsCarriedForwardApplyService extends MybatisBaseService<FinFu
collectionDetailDtoMany.setExTaxMoney(tzDto.getDcje().toString());
}
collectionDetailDtoMany.setUseTo("YT018");
collectionDetailDtoOne.setMaterialNo(tzDto.getVinNo());
collectionDetailDtoListMany.add(collectionDetailDtoMany);
otherReceivableMany.setCollectionDetails(collectionDetailDtoListMany);
otherReceivableBillService.otherReceivableBillService(otherReceivableMany);

11
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankMapper.java

@ -31,10 +31,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yxt.anrui.buscenter.api.busdelivered.AppBusDeliveredPageQuery;
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank;
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDetailsVo;
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo;
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerVo;
import com.yxt.anrui.fin.api.finmanufacturerbank.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@ -66,7 +63,9 @@ public interface FinManufacturerBankMapper extends BaseMapper<FinManufacturerBan
List<FinManufacturerVo> selectAccountByUseOrgSid(String useOrgSid);
List<FinManufacturerVo> selAccountByOrgSid(@Param("useOrgSid") String useOrgSid,@Param("name") String name,@Param(Constants.WRAPPER) QueryWrapper<FinManufacturerBank> qw);
List<FinManufacturerVo> selAccountByOrgSid(@Param("useOrgSid") String useOrgSid, @Param("name") String name, @Param(Constants.WRAPPER) QueryWrapper<FinManufacturerBank> qw);
IPage<FinManufacturerVo> selAppAccountByOrgSid(IPage<FinManufacturerVo> page,@Param(Constants.WRAPPER) QueryWrapper<AppBusDeliveredPageQuery> qw,@Param("name") String name);
IPage<FinManufacturerVo> selAppAccountByOrgSid(IPage<FinManufacturerVo> page, @Param(Constants.WRAPPER) QueryWrapper<AppBusDeliveredPageQuery> qw, @Param("name") String name);
List<BankVoForPayment> listByPayment(@Param("useOrgSid") String useOrgSid, @Param("key") String key);
}

6
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankMapper.xml

@ -87,4 +87,10 @@
</if>
</where>
</select>
<select id="listByPayment" resultType="com.yxt.anrui.fin.api.finmanufacturerbank.BankVoForPayment">
select bankAccount as accountNumber, accountName as account, depositBank
from fin_manufacturer_bank
where useOrgSid = #{useOrgSid}
and dueBankKey = #{key}
</select>
</mapper>

5
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankRest.java

@ -105,4 +105,9 @@ public class FinManufacturerBankRest implements FinManufacturerBankFeign {
IPage<FinManufacturerVo> voIPage = finManufacturerBankService.selAppAccountByOrgSid(query);
return rb.success().setData(voIPage);
}
@Override
public ResultBean listByPayment(String orgPath, String key) {
return finManufacturerBankService.listByPayment(orgPath,key);
}
}

49
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/finmanufacturerbank/FinManufacturerBankService.java

@ -80,10 +80,10 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
QueryWrapper<FinManufacturerBank> qw = new QueryWrapper<>();
FinManufacturerBankQuery params = pq.getParams();
if (params != null) {
if(StringUtils.isNotBlank(params.getOrgPath())){
if (StringUtils.isNotBlank(params.getOrgPath())) {
String orgSid = sysStaffOrgFeign.getOrgSidByPath(params.getOrgPath()).getData();
qw.eq("useOrgSid", orgSid);
}else{
} else {
String userSid = params.getUserSid();
if (StringUtils.isNotBlank(userSid)) {
ResultBean<String> resultBean = sysStaffOrgFeign.getPathSidByUserSid(userSid);
@ -126,7 +126,7 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
}
baseMapper.insert(finManufacturerBank);
List<BasePurchaseSystemDetailsVo> data = basePurchaseSystemFeign.fetchOrgCodeByUseOrgSid(finManufacturerBank.getUseOrgSid()).getData();
if (data != null){
if (data != null) {
for (BasePurchaseSystemDetailsVo datum : data) {
CNBankacnt cnBankacnt = new CNBankacnt();
cnBankacnt.setFCreateOrgId(datum.getOrgCode());
@ -136,7 +136,7 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
cnBankacnt.setFName(finManufacturerBank.getAccountName());
cnBankcntService.draftCNBankcnt(cnBankacnt);
}
}else {
} else {
CNBankacnt cnBankacnt = new CNBankacnt();
String useOrgSid = finManufacturerBank.getUseOrgSid();
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(useOrgSid).getData();
@ -161,7 +161,7 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
finManufacturerBank.setBankAccount(StringUtils.deleteWhitespace(dto.getBankAccount()));
baseMapper.updateById(finManufacturerBank);
List<BasePurchaseSystemDetailsVo> data = basePurchaseSystemFeign.fetchOrgCodeByUseOrgSid(finManufacturerBank.getUseOrgSid()).getData();
if (data != null){
if (data != null) {
for (BasePurchaseSystemDetailsVo datum : data) {
CNBankacnt cnBankacnt = new CNBankacnt();
cnBankacnt.setFCreateOrgId(datum.getOrgCode());
@ -171,7 +171,7 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
cnBankacnt.setFName(finManufacturerBank.getAccountName());
cnBankcntService.updateCNBankacnt(cnBankacnt);
}
}else {
} else {
CNBankacnt cnBankacnt = new CNBankacnt();
String useOrgSid = finManufacturerBank.getUseOrgSid();
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.fetchBySid(useOrgSid).getData();
@ -196,12 +196,12 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
return rb.success().setData(vo);
}
public ResultBean<List<FinManufacturerVo>> selectAccountByUseOrgSid(String userSid,String orgPath) {
public ResultBean<List<FinManufacturerVo>> selectAccountByUseOrgSid(String userSid, String orgPath) {
ResultBean<List<FinManufacturerVo>> rb = ResultBean.fireFail();
String useOrgSid = "";
if(StringUtils.isNotBlank(orgPath)){
if (StringUtils.isNotBlank(orgPath)) {
useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData();
}else{
} else {
useOrgSid = sysStaffOrgFeign.getPathSidByUserSid(userSid).getData();
}
List<FinManufacturerVo> list = baseMapper.selectAccountByUseOrgSid(useOrgSid);
@ -220,20 +220,20 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
} else {
useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData();
}
qw.eq("useOrgSid",useOrgSid);
if(StringUtils.isNotBlank(query.getCollectionTypeKey())){
qw.eq("useOrgSid", useOrgSid);
if (StringUtils.isNotBlank(query.getCollectionTypeKey())) {
String key = "";
//个人账户
if("03".equals(query.getCollectionTypeKey())){
if ("03".equals(query.getCollectionTypeKey())) {
key = "01";
qw.eq("dueBankKey",key);
qw.eq("dueBankKey", key);
}
if("05".equals(query.getCollectionTypeKey())){
if ("05".equals(query.getCollectionTypeKey())) {
key = "02";
qw.eq("dueBankKey",key);
qw.eq("dueBankKey", key);
}
}
List<FinManufacturerVo> list = baseMapper.selAccountByOrgSid(useOrgSid,query.getName(),qw);
List<FinManufacturerVo> list = baseMapper.selAccountByOrgSid(useOrgSid, query.getName(), qw);
list.removeAll(Collections.singleton(null));
return rb.success().setData(list);
}
@ -250,19 +250,26 @@ public class FinManufacturerBankService extends MybatisBaseService<FinManufactur
orgSid = sysStaffOrgFeign.getPathSidByUserSid(query.getParams().getUserSid()).getData();
}
qw.eq("useOrgSid", orgSid);
if(StringUtils.isNotBlank(query.getParams().getCollectionTypeKey())){
if (StringUtils.isNotBlank(query.getParams().getCollectionTypeKey())) {
String key = "";
//个人账户
if("03".equals(query.getParams().getCollectionTypeKey())){
if ("03".equals(query.getParams().getCollectionTypeKey())) {
key = "01";
qw.eq("dueBankKey",key);
qw.eq("dueBankKey", key);
}
if("05".equals(query.getParams().getCollectionTypeKey())){
if ("05".equals(query.getParams().getCollectionTypeKey())) {
key = "02";
qw.eq("dueBankKey",key);
qw.eq("dueBankKey", key);
}
}
IPage<FinManufacturerVo> iPage = baseMapper.selAppAccountByOrgSid(page, qw, name);
return iPage;
}
public ResultBean listByPayment(String orgPath, String key) {
ResultBean rb = ResultBean.fireFail();
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData();
List<BankVoForPayment> list = baseMapper.listByPayment(useOrgSid, key);
return rb.success().setData(list);
}
}

8
anrui-riskcenter-ui/src/api/Common/dictcommons.js

@ -160,4 +160,12 @@ export function selectStaffListss() {
})
}
// 根据分公司和账号类型获取银行账号信息
export function listByPayment(data) {
return request({
url: '/fin/v1/finmanufacturerbank/listByPayment',
method: 'get',
params: data
})
}

123
anrui-riskcenter-ui/src/api/agentbusiness/agentbusiness.js

@ -0,0 +1,123 @@
import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/listPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 查询分页列表--间还转付记录列表
transferPaymentList: function(params) {
return request({
url: '/riskcenter/v1/loanrepaymenthistory/transferPaymentList',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
saveOrUpdate: function(data) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/saveTransferPayment',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
init: function(data) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/paymentInit',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
fetchBySid: function(data) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/paymentDetails',
method: 'get',
params: data
})
},
deleteBySids: function(data) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/deleteBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 提交流程
submit: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/submit',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(同意)
complete: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/complete',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(加签)
delegate: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/delegate',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(驳回)
reject: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/reject',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(终止)
breakProcess: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/breakProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(撤回)
revokeProcess: function(params) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/revokeProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 审批流程(同意)获取下一环节
getNextNodesForSubmit: function(data) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/getNextNodesForSubmit',
method: 'get',
params: data
})
},
// 审批流程(驳回)获取上一环节
getPreviousNodesForReject: function(data) {
return request({
url: '/riskcenter/v1/loantransferpaymentapply/getPreviousNodesForReject',
method: 'get',
params: data
})
}
}

53
anrui-riskcenter-ui/src/router/index.js

@ -395,6 +395,38 @@ export const constantRoutes = [
}
]
},
{
path: '/alsotransfer',
component: Layout,
redirect: '/alsotransfer',
meta: {
title: '间还转付记录'
},
children: [
{
path: '/alsotransfer/pendingtransfer',
component: () => import('@/views/alsotransfer/pendingtransfer.vue'),
name: 'AlsoTransfer',
meta: { title: '间还转付记录', noCache: true }
}
]
},
{
path: '/agentbusiness',
component: Layout,
redirect: '/agentbusiness',
meta: {
title: '代收代付申请'
},
children: [
{
path: '/agentbusiness/agentbusiness',
component: () => import('@/views/agentbusiness/agentbusiness.vue'),
name: 'AgentBusiness',
meta: { title: '代收代付申请', noCache: true }
}
]
},
// 流程审批
// 金融产品政策报备--编辑
@ -595,6 +627,27 @@ export const constantRoutes = [
component: () =>
import('@/views/workFlow/diankuanFlow/advancerequestYiBan.vue'),
name: 'AdvanceRequestYiBan'
},
// 代收代付申请管理--编辑
{
path: '/daishoudaifuFlow/agentbusinessEdit',
component: () =>
import('@/views/workFlow/daishoudaifuFlow/agentbusinessEdit.vue'),
name: 'AgentBusinessEdit'
},
// 代收代付申请管理--待办
{
path: '/daishoudaifuFlow/agentbusinessDaiBan',
component: () =>
import('@/views/workFlow/daishoudaifuFlow/agentbusinessDaiBan.vue'),
name: 'AgentBusinessDaiBan'
},
// 代收代付申请管理--已办
{
path: '/daishoudaifuFlow/agentbusinessYiBan',
component: () =>
import('@/views/workFlow/daishoudaifuFlow/agentbusinessYiBan.vue'),
name: 'AgentBusinessYiBan'
},
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }

337
anrui-riskcenter-ui/src/views/agentbusiness/agentbusiness.vue

@ -0,0 +1,337 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="代收代付申请管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="分公司">
<el-input v-model="listQuery.params.company" placeholder="" clearable/>
</el-form-item>
<el-form-item label="申请编号">
<el-input v-model="listQuery.params.billNo" placeholder="" clearable/>
</el-form-item>
<el-form-item label="申请人">
<el-input v-model="listQuery.params.applyName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="申请日期">
<el-date-picker v-model="listQuery.params.applyStartDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.applyEndDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">代收代付申请列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<!--Start 主页面主要部分 -->
<div class="">
<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="150" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toEdit(scope.row)" :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true">办理</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="状态" width="180px" header-align="center">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="分公司" align="center">
<template slot-scope="scope">
<span>{{ scope.row.company }}</span>
</template>
</el-table-column>
<el-table-column label="申请人" align="center" width="100">
<template slot-scope="scope">
<span>{{ scope.row.applyName }}</span>
</template>
</el-table-column>
<el-table-column label="申请部门" align="center">
<template slot-scope="scope">
<span>{{ scope.row.dept }}</span>
</template>
</el-table-column>
<el-table-column label="申请日期" align="center" width="100">
<template slot-scope="scope">
<span>{{ scope.row.applyDate }}</span>
</template>
</el-table-column>
<el-table-column label="申请编号" align="center" width="165">
<template slot-scope="scope">
<span>{{ scope.row.billNo }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<!--End查询列表部分-->
</div>
</div>
<!--新增及修改 -->
<agentbusinessAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--详情-->
<agentbusinessInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
<!-- 流程审批记录 -->
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/agentbusiness/agentbusiness'
import { getStorage } from '@/utils/auth'
import agentbusinessAdd from './agentbusinessAdd'
import agentbusinessInfo from './agentbusinessInfo'
export default {
name: 'AgentBusiness',
components: {
Pagination,
pageye,
ButtonBar,
agentbusinessAdd,
agentbusinessInfo
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
btndisabled: false,
btnList: [
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
list: [],
sids: [], // SIDs
FormLoading: false,
listLoading: false,
//
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
billNo: '',
applyName: '',
applyStartDate: '',
applyEndDate: '',
menuUrl: '',
orgPath: '',
company: '',
userSid: ''
}
}
}
},
created() {
//
this.getList()
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstId,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
// sid
handleSelectionChange(row) {
const aa = []
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(this.listQuery).then(response => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
billNo: '',
applyName: '',
applyStartDate: '',
applyEndDate: '',
menuUrl: '',
orgPath: '',
company: '',
userSid: ''
}
}
this.getList()
},
toEdit(row) {
this.viewState = 3
this.$refs['divAdd'].showEdit(row)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
doDel() {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.deleteBySids(this.sids).then(resp => {
if (resp.success) {
this.$message({ type: 'success', message: resp.msg, showClose: true })
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {
})
},
//
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
</style>

252
anrui-riskcenter-ui/src/views/agentbusiness/agentbusinessAdd.vue

@ -0,0 +1,252 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</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>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder="" class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" :accept="accept" v-model="formobj.files" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.records" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="140"/>
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="140" />
<el-table-column prop="customer" label="客户名称" align="center" width="100" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="120" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="120" />
<el-table-column label="息差" align="center" min-width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.spread" clearable placeholder="" />
</template>
</el-table-column>
<el-table-column label="转付本金" align="center" width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.transferPrincipal" clearable placeholder="" />
</template>
</el-table-column>
<el-table-column label="转付罚息" align="center" width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.defaultInterest" clearable placeholder="" />
</template>
</el-table-column>
<el-table-column label="转付账户类型" align="center" width="150">
<template slot-scope="scope">
<el-select v-model="scope.row.accountType" clearable placeholder="请选择" @change="accountTypeChange($event, scope.row)">
<el-option v-for="item in accountType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="转付账号" align="center" width="130">
<template slot-scope="scope">
<el-select v-model="scope.row.accountNumber" clearable placeholder="请选择" filterable @change="accountNumberChange($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.accountNumber" :label="item.accountNumber" :value="item.accountNumber">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="转付账户" align="center" width="130">
<template slot-scope="scope">
<span>{{ scope.row.account }}</span>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
import uploadImg from '@/components/uploadFile/uploadImg'
import { typeValues, listByPayment } from '@/api/Common/dictcommons'
export default {
name: 'AgentBusinessAdd',
components: {
uploadImg
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
tableKey: 0,
index: 0,
accept: '.jpg,.jpeg,.png',
accountType_list: [],
payment_list: [],
formobj: {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
},
rules: {}
}
},
methods: {
init() {
typeValues({ type: 'accountType' }).then((resp) => {
if (resp.success) {
this.accountType_list = resp.data
}
})
},
showAdd(sids) {
this.viewTitle = '【新增】代收代付申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
req.init(sids).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.applyName = window.sessionStorage.getItem('name')
this.formobj.userSid = window.sessionStorage.getItem('userSid')
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.dept = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
}
})
},
showEdit(row) {
this.viewTitle = '【编辑】代收代付申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
req.fetchBySid({ sid: row.sid }).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
accountTypeChange(value, row) {
const choose = this.accountType_list.filter((item) => item.dictValue === value)
if (choose.length > 0 && choose !== null) {
row.accountTypeKey = choose[0].dictKey
listByPayment({ orgPath: this.formobj.orgPath, key: row.accountTypeKey }).then((res) => {
if (res.success) {
this.payment_list = res.data
}
})
} else {
row.accountTypeKey = ''
}
},
accountNumberChange(value, row) {
const choose = this.payment_list.filter((item) => item.accountNumber === value)
if (choose.length > 0 && choose !== null) {
row.account = choose[0].account
} else {
row.account = ''
}
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
submit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
}
this.submitdisabled = false
this.$emit('doback')
}
}
}
</script>
<style scoped>
.addinputInfo {
margin-left: 60px !important;
}
</style>

134
anrui-riskcenter-ui/src/views/agentbusiness/agentbusinessInfo.vue

@ -0,0 +1,134 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<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.files" :key="index" :src="item" :preview-src-list="formobj.files"/>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.records" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="140"/>
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="140" />
<el-table-column prop="customer" label="客户名称" align="center" width="100" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="120" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="120" />
<el-table-column prop="spread" label="息差" align="center" min-width="130" />
<el-table-column prop="transferPrincipal" label="转付本金" align="center" width="130" />
<el-table-column prop="defaultInterest" label="转付罚息" align="center" width="130" />
<el-table-column prop="accountType" label="转付账户类型" align="center" width="150" />
<el-table-column prop="accountNumber" label="转付账号" align="center" width="130" />
<el-table-column prop="account" label="转付账户" align="center" width="130" />
</el-table>
</el-form>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
export default {
name: 'AgentBusinessInfo',
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
tableKey: 0,
index: 0,
formobj: {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
},
rules: {}
}
},
methods: {
showInfo(row) {
this.viewTitle = '代收代付申请详情'
req.fetchBySid({ sid: row.sid }).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.files.length > 0) {
const aa = []
this.formobj.files.forEach((e) => {
aa.push(e.url)
})
this.formobj.files = aa
}
}
})
},
handleReturn() {
this.formobj = {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
}
this.$emit('doback')
}
}
}
</script>
<style scoped>
.addinputInfo {
margin-left: 60px !important;
}
</style>

246
anrui-riskcenter-ui/src/views/alsotransfer/alsotransfer.vue

@ -0,0 +1,246 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="间还转付记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="switch_btn">
<el-button class="" @click="handleClick">待转付</el-button>
<el-button :class="{btn_style:viewState === 1}">已转付</el-button>
</div>
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方合同号">
<el-input v-model="listQuery.params.bankContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="期数">
<el-input v-model="listQuery.params.period" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="转付账户类型">
<el-select v-model="listQuery.params.accountTypekey" clearable placeholder="请选择">
<el-option v-for="item in accountType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="应还日期">
<el-date-picker v-model="listQuery.params.dueStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.dueEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
<el-form-item label="转付日期">
<el-date-picker v-model="listQuery.params.prepareStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.prepareEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">间还已转付记录</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;">
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="bankName" label="资方" align="center" width="120" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="150" />
<el-table-column prop="customer" label="客户名称" align="center" width="120" />
<el-table-column prop="borrowerName" label="贷款人" align="center" min-width="120" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="dueDate" label="应还日期" align="center" width="100" />
<el-table-column prop="dueMoney" label="本期应还" align="center" width="100" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="100" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="100" />
<el-table-column prop="prepareDate" label="预转付日期" align="center" width="100" />
<el-table-column prop="transferDate" label="实际转付日期" align="center" width="100" />
<el-table-column prop="spread" label="息差" align="center" width="100" />
<el-table-column prop="transferPrincipal" label="转付本金" align="center" width="100" />
<el-table-column prop="defaultInterest" label="转付罚息" align="center" width="100" />
<el-table-column prop="accountType" label="转付账户类型" align="center" width="100" />
<el-table-column prop="account" label="转付账户" align="center" width="100" />
<el-table-column prop="accountNumber" label="转付账号" align="center" width="100" />
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- End 列表页面 -->
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'AlsoTransfer',
components: {
Pagination,
pageye,
ButtonBar
},
data() {
return {
viewState: 1,
btndisabled: false,
btnList: [
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
accountType_list: [],
listLoading: false,
listQuery: {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '1',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
},
rules: {}
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
req.transferPaymentList(this.listQuery).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
typeValues({ type: 'accountType' }).then((resp) => {
if (resp.success) {
this.accountType_list = resp.data
}
})
} else {
this.list = []
this.listQuery.total = 0
}
})
},
handleClick() {
this.$parent.resetState()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '1',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
}
this.getList()
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
</style>

263
anrui-riskcenter-ui/src/views/alsotransfer/pendingtransfer.vue

@ -0,0 +1,263 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="间还转付记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="switch_btn">
<el-button :class="{btn_style:viewState === 1}">待转付</el-button>
<el-button class="" @click="handleClick">已转付</el-button>
</div>
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方合同号">
<el-input v-model="listQuery.params.bankContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="应还日期">
<el-date-picker v-model="listQuery.params.dueStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.dueEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
<el-form-item label="预转付日期">
<el-date-picker v-model="listQuery.params.prepareStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.prepareEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">间还待转付记录</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed width="50" type="selection" align="center"/>
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="paymentState" label="状态" align="center" width="80" />
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="bankName" label="资方" align="center" width="150" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120" />
<el-table-column prop="customer" label="客户名称" align="center" min-width="120" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="dueDate" label="应还日期" align="center" width="100" />
<el-table-column prop="dueMoney" label="本期应还" align="center" width="100" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="100" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="100" />
<el-table-column prop="prepareDate" label="预转付日期" align="center" width="100" />
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- End 列表页面 -->
<!-- 已选择列表 -->
<alsotransfer v-show="viewState == 2" ref="divSelect" @doback="resetState"/>
<!-- 新增 -->
<agentbusinessAdd v-show="viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import alsotransfer from './alsotransfer'
import agentbusinessAdd from '../agentbusiness/agentbusinessAdd'
export default {
name: 'PendingTransfer',
components: {
Pagination,
pageye,
ButtonBar,
alsotransfer,
agentbusinessAdd
},
data() {
return {
viewState: 1,
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toAdd',
btnLabel: '代收代付申请'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
sids: [],
listLoading: false,
listQuery: {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '0',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
},
rules: {}
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
},
//
getList() {
this.listLoading = true
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
req.transferPaymentList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
toAdd() {
if (this.sids.length > 0) {
this.viewState = 3
this.$refs['divAdd'].showAdd(this.sids)
} else {
this.$message({ showClose: true, type: 'error', message: '请至少选择一条记录进行操作' })
}
},
handleClick() {
this.viewState = 2
this.$refs['divSelect'].getList()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '0',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
}
this.getList()
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
</style>

397
anrui-riskcenter-ui/src/views/workFlow/daishoudaifuFlow/agentbusinessDaiBan.vue

@ -0,0 +1,397 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" @click="openCountersign('加签')"> </el-button>
<el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div>
</div>
<div class="">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<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.files" :key="index" :src="item" :preview-src-list="formobj.files"/>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.records" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="140"/>
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="140" />
<el-table-column prop="customer" label="客户名称" align="center" width="100" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="120" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="120" />
<el-table-column prop="spread" label="息差" align="center" min-width="130" />
<el-table-column prop="transferPrincipal" label="转付本金" align="center" width="130" />
<el-table-column prop="defaultInterest" label="转付罚息" align="center" width="130" />
<el-table-column prop="accountType" label="转付账户类型" align="center" width="150" />
<el-table-column prop="accountNumber" label="转付账号" align="center" width="130" />
<el-table-column prop="account" label="转付账户" align="center" width="130" />
</el-table>
</el-form>
</div>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<el-row v-show="countersignLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">
<span class="icon">*</span>加签人员:
</el-col>
<el-col :span="20">
<el-form-item>
<el-select v-model="countersign.assignee" placeholder="请选择" filterable>
<el-option v-for="item in options" :key="item.userSid" :label="item.staffName" :value="item.userSid">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">
<span>当前环节:</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item>
</el-col>
</el-row>
<el-row :class="{rowClass:!currentLink}">
<el-col :span="4" class="tleftb">
<span>意见:</span>
</el-col>
<el-col :span="20">
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item>
</el-col>
</el-row>
<div style="text-align:center;margin-top: 20px;">
<el-button type="primary" size="mini" @click="reject"> </el-button>
<el-button type="info " size="mini" @click="nodeDialogVisible = false"> </el-button>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
export default {
name: 'AgentBusinessDaiBan',
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
tableKey: 0,
index: 0,
formobj: {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
},
rules: {},
options: [],
operation: '', //
dialogList: {
comment: ''
},
startTask: true,
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
countersignLink: false,
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
},
//
countersign: {
taskId: '',
assignee: '',
userSid: '',
instanceId: '',
views: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
// this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.countersign.taskId = obj.taskId
this.countersign.userSid = window.sessionStorage.getItem('userSid')
this.countersign.instanceId = obj.instanceId
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 400 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '代收代付申请详情'
req.fetchBySid({ sid: sid }).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.files.length > 0) {
const aa = []
this.formobj.files.forEach((e) => {
aa.push(e.url)
})
this.formobj.files = aa
}
}
})
},
//
openCountersign(val) {
this.operation = val
this.currentLink = true
this.countersignLink = true
this.dialogList.comment = ''
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.countersignLink = false
this.dialogList.comment = '同意'
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openReject(val) {
this.operation = val
this.currentLink = true
this.countersignLink = false
this.dialogList.comment = ''
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openStop(val) {
this.operation = val
this.currentLink = false
this.countersignLink = false
this.dialogList.comment = ''
this.nodeDialogVisible = true
},
reject() {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleReject()
}
} else if (this.operation === '终止') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleStop()
}
} else if (this.operation === '加签') {
this.handleCountersign()
}
},
/** 加签 */
handleCountersign() {
if (this.countersign.assignee === '') {
this.$message({ showClose: true, type: 'error', message: '请选择加签人员' })
return
}
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
return
}
this.countersign.views = this.dialogList.comment
req.delegate(this.countersign).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
req.complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 驳回任务 */
handleReject() {
this.linkByParameter.comment = this.dialogList.comment
req.reject(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 终止任务 */
handleStop() {
this.linkByParameter.comment = this.dialogList.comment
req.breakProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
</script>
<style scoped>
.addinputInfo {
margin-left: 60px !important;
}
.rowClass{
border-top: 1px solid #E0E3EB;
}
</style>

246
anrui-riskcenter-ui/src/views/workFlow/daishoudaifuFlow/agentbusinessEdit.vue

@ -0,0 +1,246 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
</div>
</div>
<div class="">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder="" class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" :accept="accept" v-model="formobj.files" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.records" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="140"/>
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="140" />
<el-table-column prop="customer" label="客户名称" align="center" width="100" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="120" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="120" />
<el-table-column label="息差" align="center" min-width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.spread" clearable placeholder="" />
</template>
</el-table-column>
<el-table-column label="转付本金" align="center" width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.transferPrincipal" clearable placeholder="" />
</template>
</el-table-column>
<el-table-column label="转付罚息" align="center" width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.defaultInterest" clearable placeholder="" />
</template>
</el-table-column>
<el-table-column label="转付账户类型" align="center" width="150">
<template slot-scope="scope">
<el-select v-model="scope.row.accountType" clearable placeholder="请选择" @change="accountTypeChange($event, scope.row)">
<el-option v-for="item in accountType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="转付账号" align="center" width="130">
<template slot-scope="scope">
<el-select v-model="scope.row.accountNumber" clearable filterable placeholder="请选择" @change="accountNumberChange($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.accountNumber" :label="item.accountNumber" :value="item.accountNumber">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="转付账户" align="center" width="130">
<template slot-scope="scope">
<span>{{ scope.row.account }}</span>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
import uploadImg from '@/components/uploadFile/uploadImg'
import { typeValues, listByPayment } from '@/api/Common/dictcommons'
export default {
name: 'AgentBusinessEdit',
components: {
uploadImg
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
tableKey: 0,
index: 0,
accept: '.jpg,.jpeg,.png',
accountType_list: [],
payment_list: [],
formobj: {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
},
rules: {}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 400 + 'px'
}
}, '*')
},
methods: {
init() {
typeValues({ type: 'accountType' }).then((resp) => {
if (resp.success) {
this.accountType_list = resp.data
}
})
},
showInfo(sid) {
this.viewTitle = '【编辑】代收代付申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
req.fetchBySid({ sid: sid }).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
accountTypeChange(value, row) {
const choose = this.accountType_list.filter((item) => item.dictValue === value)
if (choose.length > 0 && choose !== null) {
row.accountTypeKey = choose[0].dictKey
listByPayment({ orgPath: this.formobj.orgPath, key: row.accountTypeKey }).then((res) => {
if (res.success) {
this.payment_list = res.data
}
})
} else {
row.accountTypeKey = ''
}
},
accountNumberChange(value, row) {
const choose = this.payment_list.filter((item) => item.accountNumber === value)
if (choose.length > 0 && choose !== null) {
row.account = choose[0].account
} else {
row.account = ''
}
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
// ()
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
submit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
// ()
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
}
}
}
</script>
<style scoped>
.addinputInfo {
margin-left: 60px !important;
}
</style>

189
anrui-riskcenter-ui/src/views/workFlow/daishoudaifuFlow/agentbusinessYiBan.vue

@ -0,0 +1,189 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="danger" size="small" @click="openRevoke()">撤回</el-button>
</div>
</div>
<div class="">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<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.files" :key="index" :src="item" :preview-src-list="formobj.files"/>
</el-form-item>
</el-col>
</el-row>
<el-table :key="tableKey" :data="formobj.records" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="140"/>
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="140" />
<el-table-column prop="customer" label="客户名称" align="center" width="100" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="120" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="120" />
<el-table-column prop="spread" label="息差" align="center" min-width="130" />
<el-table-column prop="transferPrincipal" label="转付本金" align="center" width="130" />
<el-table-column prop="defaultInterest" label="转付罚息" align="center" width="130" />
<el-table-column prop="accountType" label="转付账户类型" align="center" width="150" />
<el-table-column prop="accountNumber" label="转付账号" align="center" width="130" />
<el-table-column prop="account" label="转付账户" align="center" width="130" />
</el-table>
</el-form>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
export default {
name: 'AgentBusinessYiBan',
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
tableKey: 0,
index: 0,
formobj: {
sid: '',
userSid: '',
dept: '',
deptSid: '',
applyName: '',
applyDate: '',
remarks: '',
orgPath: '',
taskId: '',
instanceId: '',
files: [],
records: []
},
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
},
rules: {}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 400 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '代收代付申请详情'
req.fetchBySid({ sid: sid }).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.files.length > 0) {
const aa = []
this.formobj.files.forEach((e) => {
aa.push(e.url)
})
this.formobj.files = aa
}
}
})
},
/** 确认撤回任务 */
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消撤回'
})
})
},
/** 撤回任务 */
handleRevoke() {
req.revokeProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
</script>
<style scoped>
.addinputInfo {
margin-left: 60px !important;
}
</style>

3
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loantransferpaymentapply/LoanTransferPaymentApplyService.java

@ -94,6 +94,9 @@ public class LoanTransferPaymentApplyService extends MybatisBaseService<LoanTran
LoanTransferPaymentRecordVo recordVo = baseMapper.paymentInfo(sid);
recordVo.setSpread("0");
recordVo.setDefaultInterest("0");
if (StringUtils.isNotBlank(recordVo.getActualMoney())) {
recordVo.setTransferPrincipal(recordVo.getActualMoney());
}
if (StringUtils.isNotBlank(recordVo.getBankContractNo())) {
LoanTransferPaymentRecord paymentRecord = loanTransferPaymentRecordService.selByBankContractNo(recordVo.getBankContractNo());
if (null != paymentRecord) {

Loading…
Cancel
Save