78 changed files with 3632 additions and 752 deletions
@ -0,0 +1,62 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
// 审计监管
|
||||
|
export default { |
||||
|
// 查询分页列表
|
||||
|
listPage: function(params) { |
||||
|
return request({ |
||||
|
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
|
||||
|
url: '/riskcenter/v1/auditSupervision/listPage', |
||||
|
method: 'post', |
||||
|
data: params, |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json' |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
saveOrUpdate: function(data) { |
||||
|
return request({ |
||||
|
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
|
||||
|
url: '/riskcenter/v1/auditSupervision/saveOrUpdate', |
||||
|
method: 'post', |
||||
|
data: data, |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json' |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
saveResult: function(data) { |
||||
|
return request({ |
||||
|
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
|
||||
|
url: '/riskcenter/v1/auditSupervision/saveResult', |
||||
|
method: 'post', |
||||
|
data: data, |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json' |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
init: function(data) { |
||||
|
return request({ |
||||
|
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
|
||||
|
url: '/riskcenter/v1/auditSupervision/gteInitBySid/' + data, |
||||
|
method: 'get', |
||||
|
|
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
deleteBySids: function(data) { |
||||
|
return request({ |
||||
|
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
|
||||
|
url: '/riskcenter/v1/auditSupervision/delBySids', |
||||
|
method: 'DELETE', |
||||
|
data: data, |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json' |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,419 @@ |
|||||
|
<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" class="tab-header"> |
||||
|
<el-form-item label="分公司"> |
||||
|
<el-input v-model="listQuery.params.orgName" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="审计事项"> |
||||
|
<el-input v-model="listQuery.params.auditMatters" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="审计日期"> |
||||
|
<el-date-picker v-model="listQuery.params.createStartDate" 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.createEndDate" 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="80" 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="useOrgName" label="分公司" align="center" /> |
||||
|
<el-table-column prop="auditMatters" label="审计事项" align="center" /> |
||||
|
<el-table-column prop="createStartDate" label="审计开始日期" align="center" /> |
||||
|
<el-table-column prop="createEndDate" label="审计结束日期" align="center" /> |
||||
|
<el-table-column prop="auditor" label="审计人" align="center" /> |
||||
|
<el-table-column prop="auditResults" label="审计结果" align="center" /> |
||||
|
</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> |
||||
|
<!--新增及修改 --> |
||||
|
<auditSupervisionAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" |
||||
|
@reloadlist="getList" /> |
||||
|
<!--详情--> |
||||
|
<auditSupervisionInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" /> |
||||
|
|
||||
|
<el-dialog title="审计结果" :visible.sync="dialogVisible" :before-close="handleClose"> |
||||
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02" style="margin-top: -30px"> |
||||
|
<el-row style="border-top: 1px solid #e0e3eb"> |
||||
|
<el-col :span="24"> |
||||
|
<div class="span-sty"><span class="must">*</span> 审计结果</div> |
||||
|
<el-form-item prop="result"><el-input v-model="formobj.result" clearable placeholder="" |
||||
|
class="addinputInfo addinputw" /></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
|
||||
|
<div style="display: flex;flex-direction: row;width: 100%;justify-content: center;align-items: center;"> |
||||
|
<el-button type="primary" style="margin-top: 20px;" @click="saveResults">确 定</el-button> |
||||
|
</div> |
||||
|
|
||||
|
</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/auditSupervision/auditSupervision' |
||||
|
import auditSupervisionAdd from './auditSupervisionAdd' |
||||
|
import auditSupervisionInfo from './auditSupervisionInfo' |
||||
|
|
||||
|
export default { |
||||
|
name: 'AdvanceDetails', |
||||
|
components: { |
||||
|
Pagination, |
||||
|
pageye, |
||||
|
ButtonBar, |
||||
|
auditSupervisionAdd, |
||||
|
auditSupervisionInfo |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
btndisabled: false, |
||||
|
dialogVisible: false, |
||||
|
btnList: [{ |
||||
|
type: 'primary', |
||||
|
size: 'small', |
||||
|
icon: 'plus', |
||||
|
btnKey: 'toAdd', |
||||
|
btnLabel: '新增' |
||||
|
}, |
||||
|
{ |
||||
|
type: 'primary', |
||||
|
size: 'small', |
||||
|
icon: 'plus', |
||||
|
btnKey: 'toEdit', |
||||
|
btnLabel: '编辑' |
||||
|
}, |
||||
|
{ |
||||
|
type: 'primary', |
||||
|
size: 'small', |
||||
|
icon: 'plus', |
||||
|
btnKey: 'toResult', |
||||
|
btnLabel: '审计结果' |
||||
|
}, |
||||
|
{ |
||||
|
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: { |
||||
|
"userSid": "", |
||||
|
"menuUrl": "", |
||||
|
"orgPath": "", |
||||
|
"orgName": "", |
||||
|
"auditMatters": "", |
||||
|
"createStartDate": "", |
||||
|
"createEndDate": "" |
||||
|
} |
||||
|
}, |
||||
|
sids: [], |
||||
|
formobj: { |
||||
|
sids: [], |
||||
|
result: '', |
||||
|
userSid: window.sessionStorage.getItem('userSid'), |
||||
|
}, |
||||
|
rules: { |
||||
|
result: [{ |
||||
|
required: true, |
||||
|
message: '审计结果不能为空', |
||||
|
trigger: 'blur' |
||||
|
}], |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
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 'toEdit': |
||||
|
this.toEdit() |
||||
|
break |
||||
|
case 'toResult': |
||||
|
this.toResult() |
||||
|
break |
||||
|
case 'doDel': |
||||
|
this.doDel() |
||||
|
break |
||||
|
case 'doClose': |
||||
|
this.doClose() |
||||
|
break |
||||
|
default: |
||||
|
break |
||||
|
} |
||||
|
}, |
||||
|
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: { |
||||
|
"userSid": "", |
||||
|
"menuUrl": "", |
||||
|
"orgPath": "", |
||||
|
"orgName": "", |
||||
|
"auditMatters": "", |
||||
|
"createStartDate": "", |
||||
|
"createEndDate": "" |
||||
|
} |
||||
|
} |
||||
|
this.getList() |
||||
|
}, |
||||
|
toAdd() { |
||||
|
this.viewState = 2 |
||||
|
this.$refs['divAdd'].showAdd() |
||||
|
}, |
||||
|
toEdit() { |
||||
|
|
||||
|
if (this.sids.length != 1) { |
||||
|
this.$message({ |
||||
|
showClose: true, |
||||
|
type: 'error', |
||||
|
message: '请选择一条记录进行操作' |
||||
|
}) |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
this.viewState = 3 |
||||
|
this.$refs['divAdd'].showEdit(this.sids[0]) |
||||
|
}, |
||||
|
toResult() { |
||||
|
|
||||
|
this.dialogVisible = true |
||||
|
|
||||
|
}, |
||||
|
handleClose() { |
||||
|
this.dialogVisible = false |
||||
|
this.formobj = { |
||||
|
sids: [], |
||||
|
result: '', |
||||
|
userSid: window.sessionStorage.getItem('userSid'), |
||||
|
} |
||||
|
}, |
||||
|
saveResults() { |
||||
|
|
||||
|
this.formobj.sids = this.sids |
||||
|
this.$refs['form_obj'].validate((valid) => { |
||||
|
if (valid) { |
||||
|
req.saveResult(this.formobj).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.handleClose() |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
}, |
||||
|
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(() => {}) |
||||
|
}, |
||||
|
doClose() { |
||||
|
this.$store.dispatch('tagsView/delView', this.$route) |
||||
|
this.$router.go(-1) |
||||
|
}, |
||||
|
toInfo(row) { |
||||
|
|
||||
|
this.viewState = 4 |
||||
|
this.$refs['divInfo'].showDetail(row.sid) |
||||
|
}, |
||||
|
resetState() { |
||||
|
this.viewState = 1 |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 130px !important; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 120px !important; |
||||
|
width: calc(100% - 115px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,269 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div class="tab-header webtop"> |
||||
|
<div>{{ viewTitle }}</div> |
||||
|
<div> |
||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</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.deptName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">申请人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">申请日期</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createStartDate }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> --> |
||||
|
<el-row style="border-top: 1px solid #e0e3eb"> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty"><span class="must">*</span> 分公司</div> |
||||
|
<el-form-item prop="useOrgName"> |
||||
|
<el-select class="addinputInfo addinputw" v-model="formobj.useOrgName" placeholder="请选择" |
||||
|
@change="seleOrgName"> |
||||
|
<el-option v-for="item in orgList" :key="item.sid" :label="item.name" :value="item.sid"></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty"><span class="must">*</span> 审计人</div> |
||||
|
<el-form-item prop="auditor"><el-input v-model="formobj.auditor" clearable placeholder="" |
||||
|
class="addinputInfo addinputw" /></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty"><span class="must">*</span> 审计事项</div> |
||||
|
<el-form-item prop="auditMatters"><el-input v-model="formobj.auditMatters" 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><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="addinputw addinputInfo" v-model="formobj.urls" :limit="1" bucket="map" |
||||
|
:upload-data="{ type: '0001' }" @change="backData" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/auditSupervision/auditSupervision' |
||||
|
import uploadImg from '@/components/uploadFile/uploadImg' |
||||
|
import { |
||||
|
selectOrgSidList, |
||||
|
getOrgSidByPath, |
||||
|
fetchBySid |
||||
|
} from '@/api/Common/dictcommons' |
||||
|
import { |
||||
|
getCurrentDate, |
||||
|
} from '@/utils/index' |
||||
|
|
||||
|
export default { |
||||
|
name: 'AuditSupervisionAdd', |
||||
|
components: { |
||||
|
uploadImg |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
viewTitle: '', |
||||
|
submitdisabled: false, |
||||
|
formobj: { |
||||
|
"sid": "", |
||||
|
"useOrgName": "", |
||||
|
"useOrgSid": "", |
||||
|
"auditMatters": "", |
||||
|
"createStartDate": getCurrentDate(), |
||||
|
"createEndDate": "", |
||||
|
"auditor": "", |
||||
|
"auditResults": "", |
||||
|
"remarks": "", |
||||
|
"urls": [], |
||||
|
"createBySid": window.sessionStorage.getItem('userSid'), |
||||
|
"createByName": window.sessionStorage.getItem('name'), |
||||
|
"createOrgSid": "", |
||||
|
"createOrgName": '', |
||||
|
}, |
||||
|
rules: { |
||||
|
orgName: [{ |
||||
|
required: true, |
||||
|
message: '请选择分公司', |
||||
|
trigger: 'change' |
||||
|
}], |
||||
|
auditor: [{ |
||||
|
required: true, |
||||
|
message: '审计人不能为空', |
||||
|
trigger: 'blur' |
||||
|
}], |
||||
|
auditMatters: [{ |
||||
|
required: true, |
||||
|
message: '审计项目不能为空', |
||||
|
trigger: 'blur' |
||||
|
}], |
||||
|
}, |
||||
|
orgList: [], |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
init() { |
||||
|
selectOrgSidList().then((res) => { |
||||
|
if (res.success) { |
||||
|
console.log("selectOrgSidList", res); |
||||
|
this.orgList = res.data |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
getOrgSidByPath({ |
||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
||||
|
}).then((resp) => { |
||||
|
if (resp.success) { |
||||
|
this.formobj.createOrgSid = resp.data |
||||
|
fetchBySid(resp.data).then((respsone) => { |
||||
|
if (respsone.success) { |
||||
|
this.formobj.createOrgName = respsone.data.name |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
backData(value) { |
||||
|
|
||||
|
console.log('backData》》》》', value) |
||||
|
|
||||
|
this.formobj.urls = value |
||||
|
|
||||
|
}, |
||||
|
showAdd() { |
||||
|
this.viewTitle = '【新增】审计监管' |
||||
|
this.$nextTick(() => { |
||||
|
this.$refs['form_obj'].clearValidate() |
||||
|
}) |
||||
|
this.init() |
||||
|
}, |
||||
|
showEdit(sid) { |
||||
|
this.viewTitle = '【编辑】审计监管' |
||||
|
this.$nextTick(() => { |
||||
|
this.$refs['form_obj'].clearValidate() |
||||
|
}) |
||||
|
this.init() |
||||
|
req.init(sid).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.formobj = res.data |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
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 |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
handleReturn(isreload) { |
||||
|
if (isreload === 'true') this.$emit('reloadlist') |
||||
|
this.formobj = { |
||||
|
"sid": "", |
||||
|
"useOrgName": "", |
||||
|
"useOrgSid": "", |
||||
|
"auditMatters": "", |
||||
|
"createStartDate": getCurrentDate(), |
||||
|
"createEndDate": "", |
||||
|
"auditor": "", |
||||
|
"auditResults": "", |
||||
|
"remarks": "", |
||||
|
"urls": [], |
||||
|
"createBySid": window.sessionStorage.getItem('userSid'), |
||||
|
"createByName": window.sessionStorage.getItem('name'), |
||||
|
"createOrgSid": "", |
||||
|
"createOrgName": '', |
||||
|
} |
||||
|
this.submitdisabled = false |
||||
|
this.$emit('doback') |
||||
|
}, |
||||
|
seleOrgName(val) { |
||||
|
console.log("seleOrgName", val); |
||||
|
const choose = this.orgList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>seleOrgName', choose) |
||||
|
this.formobj.useOrgSid = choose[0].sid |
||||
|
this.formobj.useOrgName = choose[0].name |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 130px !important; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 120px !important; |
||||
|
width: calc(100% - 115px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,114 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<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" 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.deptName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">申请人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">申请日期</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createStartDate }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> --> |
||||
|
<el-row style="border-top: 1px solid #e0e3eb"> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">分公司</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.useOrgName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">审计人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.auditor }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">审计事项</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.auditMatters }}</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> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-for="(item,index) in formobj.urls" :key="index" class="addinputInfo"> |
||||
|
<el-popover placement="left" trigger="click" width="300"> |
||||
|
<img :src="item.url" width="100%" /> |
||||
|
<img slot="reference" :src="item.url" :alt="item.url" |
||||
|
style="max-height: 70px;max-width: 70px; padding: 5px" /> |
||||
|
</el-popover> |
||||
|
</span> |
||||
|
</template> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/auditSupervision/auditSupervision' |
||||
|
|
||||
|
export default { |
||||
|
name: 'AuditSupervisionAdd', |
||||
|
components: {}, |
||||
|
data() { |
||||
|
return { |
||||
|
viewTitle: '', |
||||
|
submitdisabled: false, |
||||
|
formobj: {}, |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
showDetail(sid) { |
||||
|
this.viewTitle = '审计监管详情' |
||||
|
req.init(sid).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.formobj = res.data |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
handleReturn(isreload) { |
||||
|
if (isreload === 'true') this.$emit('reloadlist') |
||||
|
this.formobj = { |
||||
|
|
||||
|
} |
||||
|
this.submitdisabled = false |
||||
|
this.$emit('doback') |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
.span-sty { |
||||
|
width: 160px !important; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 150px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 150px !important; |
||||
|
width: calc(100% - 145px); |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "审计监管", description = "审计监管") |
||||
|
@TableName("loan_audit") |
||||
|
public class LoanAudit extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("创建人sid") |
||||
|
private String createByName; // 创建人sid
|
||||
|
@ApiModelProperty("审计事项") |
||||
|
private String auditMatters; // 审计事项
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计开始日期") |
||||
|
private Date createStartDate; // 审计开始日期
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计结束日期") |
||||
|
private Date createEndDate; // 审计结束日期
|
||||
|
@ApiModelProperty("审计人") |
||||
|
private String auditor; // 审计人
|
||||
|
@ApiModelProperty("审计结果") |
||||
|
private String auditResults; // 审计结果
|
||||
|
@ApiModelProperty("分公司sid") |
||||
|
private String useOrgSid; // 分公司sid
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String useOrgName; // 分公司名称
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
@ApiModelProperty("创建组织名称") |
||||
|
private String createOrgName; // 创建组织名称
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "审计监管 视图数据详情", description = "审计监管 视图数据详情") |
||||
|
public class LoanAuditDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("创建人sid") |
||||
|
private String createByName; // 创建人sid
|
||||
|
@ApiModelProperty("审计事项") |
||||
|
private String auditMatters; // 审计事项
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计开始日期") |
||||
|
private Date createStartDate; |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计结束日期") |
||||
|
private Date createEndDate; // 审计结束日期
|
||||
|
@ApiModelProperty("审计人") |
||||
|
private String auditor; // 审计人
|
||||
|
@ApiModelProperty("审计结果") |
||||
|
private String auditResults; // 审计结果
|
||||
|
@ApiModelProperty("分公司sid") |
||||
|
private String useOrgSid; // 分公司sid
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String useOrgName; // 分公司名称
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
@ApiModelProperty("创建组织名称") |
||||
|
private String createOrgName; // 创建组织名称
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "审计监管 数据传输对象", description = "审计监管 数据传输对象") |
||||
|
public class LoanAuditDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("创建人sid") |
||||
|
private String createByName; // 创建人sid
|
||||
|
@ApiModelProperty("审计事项") |
||||
|
private String auditMatters; // 审计事项
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计开始日期") |
||||
|
private Date createStartDate; |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计结束日期") |
||||
|
private Date createEndDate; |
||||
|
@ApiModelProperty("审计人") |
||||
|
private String auditor; // 审计人
|
||||
|
@ApiModelProperty("审计结果") |
||||
|
private String auditResults; // 审计结果
|
||||
|
@ApiModelProperty("分公司sid") |
||||
|
private String useOrgSid; // 分公司sid
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String useOrgName; // 分公司名称
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
@ApiModelProperty("创建组织名称") |
||||
|
private String createOrgName; // 创建组织名称
|
||||
|
|
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Api(tags = "审计监管") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanAudit", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/auditSupervision") |
||||
|
public interface LoanAuditFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<LoanAuditVo>> listPage(@RequestBody PagerQuery<LoanAuditQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/saveOrUpdate") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody LoanAuditDto dto); |
||||
|
|
||||
|
@ApiOperation("保存审计结果") |
||||
|
@PostMapping("/saveResult") |
||||
|
@ResponseBody |
||||
|
public ResultBean saveResult(@RequestBody LoanAuditResulitDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/saveResult") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/gteInitBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<LoanAuditDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "审计监管 查询条件", description = "审计监管 查询条件") |
||||
|
public class LoanAuditQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String useOrgName; |
||||
|
@ApiModelProperty("审计事项") |
||||
|
private String auditMatters; |
||||
|
@ApiModelProperty("审计开始日期") |
||||
|
private String createStartDate; |
||||
|
@ApiModelProperty("审计结束日期") |
||||
|
private String createEndDate; |
||||
|
|
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
private String menuUrl; |
||||
|
private String menuSid; |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "审计监管 数据传输对象", description = "审计监管 数据传输对象") |
||||
|
public class LoanAuditResulitDto implements Dto { |
||||
|
|
||||
|
private List<String> sids; |
||||
|
@ApiModelProperty("审计结果") |
||||
|
private String auditResults; // 审计结果
|
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.api.loanaudit; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "审计监管 视图数据对象", description = "审计监管 视图数据对象") |
||||
|
public class LoanAuditVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String useOrgName; |
||||
|
@ApiModelProperty("审计事项") |
||||
|
private String auditMatters; |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计开始日期") |
||||
|
private Date createStartDate; |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
@ApiModelProperty("审计结束日期") |
||||
|
private Date createEndDate; |
||||
|
@ApiModelProperty("审计人") |
||||
|
private String auditor; |
||||
|
@ApiModelProperty("审计结果") |
||||
|
private String auditResults; |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanaudit; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.riskcenter.api.loanaudit.LoanAudit; |
||||
|
import com.yxt.anrui.riskcenter.api.loanaudit.LoanAuditVo; |
||||
|
import org.apache.ibatis.annotations.Update; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: 111(111) <br/> |
||||
|
* File: LoanAuditMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanaudit.LoanAuditMapper <br/> |
||||
|
* Description: 审计监管. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-09-29 16:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LoanAuditMapper extends BaseMapper<LoanAudit> { |
||||
|
|
||||
|
IPage<LoanAuditVo> selectPageVo(IPage<LoanAudit> page, @Param(Constants.WRAPPER) Wrapper<LoanAudit> qw); |
||||
|
|
||||
|
@Update("update loan_audit set auditResults = #{auditResults} where sid = #{sid}") |
||||
|
void updateResulit(@Param("auditResults") String auditResults,@Param("sid") String sid); |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.anrui.riskcenter.biz.loanaudit.LoanAuditMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loanaudit.LoanAuditVo"> |
||||
|
SELECT la.* FROM loan_audit la |
||||
|
LEFT JOIN anrui_portal.sys_organization as u ON la.createOrgSid = u.sid |
||||
|
<where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,89 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanaudit; |
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loanaudit.*; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Api(tags = "审计监管") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/auditSupervision") |
||||
|
public class LoanAuditRest implements LoanAuditFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanAuditService loanAuditService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanAuditVo>> listPage(@RequestBody PagerQuery<LoanAuditQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<LoanAuditVo> pv = loanAuditService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanAuditDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanAuditService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean saveResult(LoanAuditResulitDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanAuditService.saveResult(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
loanAuditService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/gteInitBySid/{sid}") |
||||
|
public ResultBean<LoanAuditDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanAuditDetailsVo vo = loanAuditService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,164 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.riskcenter.biz.loanaudit; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanaudit.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyVo; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: 111(111) <br/> |
||||
|
* File: LoanAuditService.java <br/> |
||||
|
* Class: com.yxt.anrui.riskcenter.biz.loanaudit.LoanAuditService <br/> |
||||
|
* Description: 审计监管 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-09-29 16:25:57 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LoanAuditService extends MybatisBaseService<LoanAuditMapper, LoanAudit> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
|
||||
|
public PagerVo<LoanAuditVo> listPageVo(PagerQuery<LoanAuditQuery> pq) { |
||||
|
LoanAuditQuery query = pq.getParams(); |
||||
|
QueryWrapper<LoanAudit> qw = new QueryWrapper<>(); |
||||
|
//========================================数据授权开始
|
||||
|
if (StringUtils.isNotBlank(query.getMenuUrl())) { |
||||
|
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
||||
|
privilegeQuery.setOrgPath(query.getOrgPath()); |
||||
|
privilegeQuery.setMenuUrl(query.getMenuUrl()); |
||||
|
privilegeQuery.setMenuSid(query.getMenuSid()); |
||||
|
privilegeQuery.setUserSid(query.getUserSid()); |
||||
|
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
||||
|
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
||||
|
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
||||
|
String orgSidPath = query.getOrgPath(); |
||||
|
orgSidPath = orgSidPath + "/"; |
||||
|
int i1 = orgSidPath.indexOf("/"); |
||||
|
int i2 = orgSidPath.indexOf("/", i1 + 1); |
||||
|
int i3 = orgSidPath.indexOf("/", i2 + 1); |
||||
|
int i4 = orgSidPath.indexOf("/", i3 + 1); |
||||
|
String orgLevelKey = defaultIdReltBean.getData(); |
||||
|
if ("1".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i1); |
||||
|
qw.like("u.orgSidPath", orgSidPath); |
||||
|
} else if ("2".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i2); |
||||
|
qw.like("u.orgSidPath", orgSidPath); |
||||
|
} else if ("3".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i3); |
||||
|
qw.like("u.orgSidPath", orgSidPath); |
||||
|
} else if ("4".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i4); |
||||
|
qw.like("u.orgSidPath", orgSidPath); |
||||
|
} else if ("5".equals(orgLevelKey)) { |
||||
|
qw.eq("la.createBySid", query.getUserSid()); |
||||
|
} else { |
||||
|
PagerVo<LoanAuditVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} else { |
||||
|
PagerVo<LoanAuditVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} |
||||
|
if(StringUtils.isNotBlank(query.getUseOrgName())){ |
||||
|
qw.like("la.useOrgName",query.getUseOrgName()); |
||||
|
} |
||||
|
if(StringUtils.isNotBlank(query.getAuditMatters())){ |
||||
|
qw.like("la.auditMatters",query.getAuditMatters()); |
||||
|
} |
||||
|
String createStartTime = query.getCreateStartDate(); |
||||
|
String createEndTime = query.getCreateEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(createStartTime), "date_format (la.createStartDate,'%Y-%m-%d') >= date_format('" + createStartTime + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(createEndTime), "date_format (la.createEndTime,'%Y-%m-%d') <= date_format('" + createEndTime + "','%Y-%m-%d')" |
||||
|
); |
||||
|
IPage<LoanAudit> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<LoanAuditVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<LoanAuditVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(LoanAuditDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(LoanAuditDto dto){ |
||||
|
LoanAudit entity = new LoanAudit(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(LoanAuditDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
LoanAudit entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public LoanAuditDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
LoanAudit entity = fetchBySid(sid); |
||||
|
LoanAuditDetailsVo vo = new LoanAuditDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public void saveResult(LoanAuditResulitDto dto) { |
||||
|
List<String> sids = dto.getSids(); |
||||
|
for (String sid : sids) { |
||||
|
baseMapper.updateResulit(dto.getAuditResults(),sid); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AppBusclaimCheckApplyDetailVo { |
||||
|
|
||||
|
@ApiModelProperty("维修工单号") |
||||
|
private String repairBillNo; |
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; |
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
|
||||
|
@ApiModelProperty("差异调整工时费") |
||||
|
private String claimHourAmount; |
||||
|
@ApiModelProperty("差异调整材料费") |
||||
|
private String claimGoodsAmount; |
||||
|
@ApiModelProperty("差异调整外出费") |
||||
|
private String claimOutAmount; |
||||
|
@ApiModelProperty("差异调整厂家补助") |
||||
|
private String claimSubsidyAmount; |
||||
|
@ApiModelProperty("差异调整其他费用") |
||||
|
private String claimOtherAmount; |
||||
|
@ApiModelProperty("差异调整施救费") |
||||
|
private String claimRescueAmount; |
||||
|
@ApiModelProperty("预留") |
||||
|
private String reserved; |
||||
|
@ApiModelProperty("原因") |
||||
|
private String reason; |
||||
|
|
||||
|
//工单:工时费
|
||||
|
private String hourAmount1; |
||||
|
|
||||
|
//工单材料费
|
||||
|
private String goodsAmount1; |
||||
|
|
||||
|
//工单外出费
|
||||
|
private String claimOutAmount1; |
||||
|
|
||||
|
//工单厂家补助
|
||||
|
private String claimSubsidyAmount1; |
||||
|
|
||||
|
//工单其他费用
|
||||
|
private String claimOtherAmount1; |
||||
|
|
||||
|
//工单施救费
|
||||
|
private String claimRescueAmount1; |
||||
|
|
||||
|
//工单合计
|
||||
|
private String all1; |
||||
|
|
||||
|
//索赔开票工时费
|
||||
|
private String claimHourAmount2; |
||||
|
|
||||
|
//索赔开票材料费
|
||||
|
private String claimGoodsAmount2; |
||||
|
|
||||
|
//索赔开票外出费
|
||||
|
private String claimOutAmount2; |
||||
|
|
||||
|
//索赔开票厂家补助
|
||||
|
private String claimSubsidyAmount2; |
||||
|
|
||||
|
//索赔开票其他金额
|
||||
|
private String claimOtherAmount2; |
||||
|
|
||||
|
//索赔开票施救费
|
||||
|
private String claimRescueAmount2; |
||||
|
|
||||
|
//合计
|
||||
|
private String all2; |
||||
|
|
||||
|
//差异合计
|
||||
|
private String all3; |
||||
|
|
||||
|
//差异调整合计
|
||||
|
private String all4; |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppBusclaimCheckApplyDetailsVo { |
||||
|
|
||||
|
private String sid; |
||||
|
private String createByName; |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private Date createTime; |
||||
|
@ApiModelProperty("申请部门名称") |
||||
|
private String createDeptName; |
||||
|
private List<String> fileList = new ArrayList<>(); |
||||
|
private String remarks; |
||||
|
@ApiModelProperty("实例id") |
||||
|
private String procInsId; |
||||
|
@ApiModelProperty("任务iD") |
||||
|
private String taskId; |
||||
|
private List<AppBusclaimCheckApplyDetailVo> detailList = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowDto; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaiminvoicebill.AppBusclaimInvoiceBillDetailsVo; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
@FeignClient( |
||||
|
contextId = "terminal-AppBusclaimCheckApply", |
||||
|
name = "anrui-terminal", |
||||
|
path = "v1/BusclaimCheckApply") |
||||
|
public interface AppBusclaimCheckApplyFeign { |
||||
|
|
||||
|
@ApiOperation("详情") |
||||
|
@GetMapping("/details") |
||||
|
public ResultBean<AppBusclaimCheckApplyDetailsVo> fetchDetailsBySid(@RequestParam("sid") String sid); |
||||
|
|
||||
|
/**********************************************流程********************************************/ |
||||
|
|
||||
|
@ApiOperation("办理") |
||||
|
@PutMapping("/agreeCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean agreeCreditInfo(@RequestBody AppFlowDto dto); |
||||
|
|
||||
|
@ApiOperation("驳回") |
||||
|
@PutMapping("/rejectCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean rejectCreditInfo(@RequestBody AppFlowTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("撤回") |
||||
|
@PutMapping("/recallCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean recallCreditInfo(@RequestBody AppFlowTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("终止") |
||||
|
@PutMapping("/stopCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean stopCreditInfo(@RequestBody AppFlowTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("获取流程操作标题") |
||||
|
@GetMapping("/getFlowOperateTitle") |
||||
|
@ResponseBody |
||||
|
ResultBean<String> getFlowOperateTitle(@SpringQueryMap AppFlowQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "加签") |
||||
|
@PutMapping(value = "/delegate") |
||||
|
@ResponseBody |
||||
|
public ResultBean delegate(@RequestBody AppDelegateQuery delegateQuery); |
||||
|
|
||||
|
@ApiOperation(value = "转办") |
||||
|
@PutMapping(value = "/assignTask") |
||||
|
@ResponseBody |
||||
|
public ResultBean assignTask(@RequestBody AppDelegateQuery delegateQuery); |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/28 10:16 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppDelegateQuery { |
||||
|
@ApiModelProperty |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
@JsonProperty("procInsId") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务Id") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("审批人sid") |
||||
|
private String assignee; |
||||
|
@ApiModelProperty("填写意见") |
||||
|
private String views; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/8/9 14:09 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppFlowDto implements Dto { |
||||
|
private static final long serialVersionUID = 3626473483180150495L; |
||||
|
|
||||
|
@ApiModelProperty(value = "任务id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty(value = "流程id") |
||||
|
@NotBlank(message = "参数错误:procInsId") |
||||
|
@JsonProperty("procInsId") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty(value = "意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty(value = "用户sid") |
||||
|
@NotBlank(message = "参数错误:userSid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/8/9 14:15 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppFlowQuery implements Query { |
||||
|
private static final long serialVersionUID = 5514095179438249641L; |
||||
|
|
||||
|
@ApiModelProperty(value = "节点key") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty(value = "0 上一环节 1下一环节") |
||||
|
@NotNull(message = "参数错误:next") |
||||
|
private Integer next; |
||||
|
|
||||
|
@ApiModelProperty("组织机构全路径") |
||||
|
private String orgPath; |
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/8/9 14:11 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppFlowTaskQuery implements Query { |
||||
|
private static final long serialVersionUID = -7082170710942810289L; |
||||
|
|
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务Id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
/** |
||||
|
* 终止、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务意见") |
||||
|
private String comment; |
||||
|
/** |
||||
|
* 终止、撤回、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("用户Sid") |
||||
|
private String userSid; |
||||
|
/** |
||||
|
* 终止 |
||||
|
*/ |
||||
|
@ApiModelProperty("流程实例Id") |
||||
|
@JsonProperty("procInsId") |
||||
|
private String instanceId; |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.as.busclaimcheckapply; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.AppBusclaimCheckApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.AppBusclaimCheckApplyFeign; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowDto; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowTaskQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("v1/BusclaimCheckApply") |
||||
|
public class AppBusclaimCheckApplyRest implements AppBusclaimCheckApplyFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private AppBusclaimCheckApplyService appBusclaimCheckApplyService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<AppBusclaimCheckApplyDetailsVo> fetchDetailsBySid(String sid) { |
||||
|
return appBusclaimCheckApplyService.fetchDetailsBySid(sid); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean agreeCreditInfo(AppFlowDto dto) { |
||||
|
return appBusclaimCheckApplyService.agreeCreditInfo(dto); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean rejectCreditInfo(AppFlowTaskQuery query) { |
||||
|
return appBusclaimCheckApplyService.rejectCreditInfo(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean recallCreditInfo(AppFlowTaskQuery query) { |
||||
|
return appBusclaimCheckApplyService.recallCreditInfo(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean stopCreditInfo(AppFlowTaskQuery query) { |
||||
|
return appBusclaimCheckApplyService.stopCreditInfo(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> getFlowOperateTitle(AppFlowQuery query) { |
||||
|
return appBusclaimCheckApplyService.getFlowOperateTitle(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delegate(AppDelegateQuery delegateQuery) { |
||||
|
return appBusclaimCheckApplyService.delegate(delegateQuery); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean assignTask(AppDelegateQuery delegateQuery) { |
||||
|
return appBusclaimCheckApplyService.assignTask(delegateQuery); |
||||
|
} |
||||
|
} |
@ -0,0 +1,191 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.as.busclaimcheckapply; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.AppBusclaimCheckApplyDetailVo; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.AppBusclaimCheckApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowDto; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowQuery; |
||||
|
import com.yxt.anrui.terminal.api.as.busclaimcheckapply.flowable.AppFlowTaskQuery; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.AsBusclaimCheckApplyDetailVo; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.AsBusclaimCheckApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.AsBusclaimCheckApplyFegin; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.AsBusclaimCheckApplyFile; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable.*; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaiminvoicebill.flowable.*; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Service |
||||
|
public class AppBusclaimCheckApplyService { |
||||
|
|
||||
|
@Resource |
||||
|
private AsBusclaimCheckApplyFegin asBusclaimCheckApplyFegin; |
||||
|
@Autowired |
||||
|
private SysStaffOrgFeign sysStaffOrgFeign; |
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
|
||||
|
public ResultBean<AppBusclaimCheckApplyDetailsVo> fetchDetailsBySid(String sid) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
AsBusclaimCheckApplyDetailsVo data = asBusclaimCheckApplyFegin.details(sid).getData(); |
||||
|
AppBusclaimCheckApplyDetailsVo appBusclaimCheckApplyDetailsVo = new AppBusclaimCheckApplyDetailsVo(); |
||||
|
BeanUtil.copyProperties(data,appBusclaimCheckApplyDetailsVo,"fileList"); |
||||
|
appBusclaimCheckApplyDetailsVo.setProcInsId(data.getProcInstId()); |
||||
|
appBusclaimCheckApplyDetailsVo.setCreateDeptName(data.getDeptName()); |
||||
|
List<AsBusclaimCheckApplyFile> fileList = data.getFileList(); |
||||
|
ArrayList<String> files = new ArrayList<>(); |
||||
|
for (AsBusclaimCheckApplyFile asBusclaimCheckApplyFile : fileList) { |
||||
|
files.add(asBusclaimCheckApplyFile.getUrl()); |
||||
|
} |
||||
|
appBusclaimCheckApplyDetailsVo.setFileList(files); |
||||
|
List<AsBusclaimCheckApplyDetailVo> detailsList = data.getDetailsList(); |
||||
|
List<AppBusclaimCheckApplyDetailVo> appBusclaimCheckApplyDetailVos = new ArrayList<>(); |
||||
|
for (AsBusclaimCheckApplyDetailVo asBusclaimCheckApplyDetailVo : detailsList) { |
||||
|
AppBusclaimCheckApplyDetailVo appBusclaimCheckApplyDetailVo = new AppBusclaimCheckApplyDetailVo(); |
||||
|
BeanUtil.copyProperties(asBusclaimCheckApplyDetailVo,appBusclaimCheckApplyDetailVo); |
||||
|
appBusclaimCheckApplyDetailVos.add(appBusclaimCheckApplyDetailVo); |
||||
|
} |
||||
|
appBusclaimCheckApplyDetailsVo.setDetailList(appBusclaimCheckApplyDetailVos); |
||||
|
return rb.success().setData(appBusclaimCheckApplyDetailsVo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean agreeCreditInfo(AppFlowDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
//根据用户sid获取staffSid
|
||||
|
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(dto.getUserSid()); |
||||
|
if (!userVoResultBean.getSuccess()) { |
||||
|
return rb.setMsg(userVoResultBean.getMsg()); |
||||
|
} |
||||
|
//根据staffSid获取用户的组织全路径
|
||||
|
ResultBean<SysStaffOrg> staffOrgResultBean = sysStaffOrgFeign.getOrgByStaffSid(userVoResultBean.getData().getStaffSid()); |
||||
|
if (!staffOrgResultBean.getSuccess()) { |
||||
|
return rb.setMsg(staffOrgResultBean.getMsg()); |
||||
|
} |
||||
|
//用户的组织全路径
|
||||
|
String orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
||||
|
CompleteBusclaimCheckApplyDto completeBusclaimCheckApplyDto = new CompleteBusclaimCheckApplyDto(); |
||||
|
BeanUtil.copyProperties(dto, completeBusclaimCheckApplyDto); |
||||
|
completeBusclaimCheckApplyDto.setOrgSidPath(orgSidPath); |
||||
|
ResultBean resultBean = asBusclaimCheckApplyFegin.complete(completeBusclaimCheckApplyDto); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean rejectCreditInfo(AppFlowTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BusclaimCheckApplyTaskQuery busclaimCheckApplyTaskQuery = new BusclaimCheckApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, busclaimCheckApplyTaskQuery); |
||||
|
ResultBean resultBean = asBusclaimCheckApplyFegin.taskReject(busclaimCheckApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean recallCreditInfo(AppFlowTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BusclaimCheckApplyTaskQuery busclaimCheckApplyTaskQuery = new BusclaimCheckApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, busclaimCheckApplyTaskQuery); |
||||
|
ResultBean resultBean = asBusclaimCheckApplyFegin.revokeProcess(busclaimCheckApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean stopCreditInfo(AppFlowTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BusclaimCheckApplyTaskQuery busclaimCheckApplyTaskQuery = new BusclaimCheckApplyTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, busclaimCheckApplyTaskQuery); |
||||
|
ResultBean resultBean = asBusclaimCheckApplyFegin.breakProcess(busclaimCheckApplyTaskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<String> getFlowOperateTitle(AppFlowQuery query) { |
||||
|
ResultBean<String> rb = ResultBean.fireFail(); |
||||
|
//0 上一环节 1下一环节
|
||||
|
int next = query.getNext(); |
||||
|
BusclaimCheckApplyNodeQuery getNodeQuery = new BusclaimCheckApplyNodeQuery(); |
||||
|
BeanUtil.copyProperties(query, getNodeQuery); |
||||
|
String data = ""; |
||||
|
if (next == 0) { |
||||
|
ResultBean<List<BusclaimCheckApplyNodeVo>> getPreviousNodesForReject = asBusclaimCheckApplyFegin.getPreviousNodesForReject(getNodeQuery); |
||||
|
if (getPreviousNodesForReject.getSuccess()) { |
||||
|
getPreviousNodesForReject.getData().removeAll(Collections.singleton(null)); |
||||
|
data = getPreviousNodesForReject.getData().get(0).getName(); |
||||
|
} else { |
||||
|
return rb.setMsg(getPreviousNodesForReject.getMsg()); |
||||
|
} |
||||
|
} else if (next == 1) { |
||||
|
ResultBean<List<BusclaimCheckApplyNodeVo>> getNextNodesForSubmit = asBusclaimCheckApplyFegin.getNextNodesForSubmit(getNodeQuery); |
||||
|
if (getNextNodesForSubmit.getSuccess()) { |
||||
|
getNextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
||||
|
data = getNextNodesForSubmit.getData().get(0).getName(); |
||||
|
} else { |
||||
|
return rb.setMsg(getNextNodesForSubmit.getMsg()); |
||||
|
} |
||||
|
} else { |
||||
|
return rb.setMsg("参数错误:next"); |
||||
|
} |
||||
|
return rb.success().setData(data); |
||||
|
} |
||||
|
|
||||
|
public ResultBean delegate(AppDelegateQuery delegateQuery) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BusclaimCheckApplyDelegateQuery delegateQuery1 = new |
||||
|
BusclaimCheckApplyDelegateQuery(); |
||||
|
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
||||
|
asBusclaimCheckApplyFegin.delegate(delegateQuery1); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
public ResultBean assignTask(AppDelegateQuery delegateQuery) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BusclaimCheckApplyDelegateQuery delegateQuery1 = new |
||||
|
BusclaimCheckApplyDelegateQuery(); |
||||
|
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
||||
|
asBusclaimCheckApplyFegin.assignTask(delegateQuery1); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AsBusclaimCheckApplyDetailVo { |
||||
|
|
||||
|
@ApiModelProperty("索赔单号") |
||||
|
private String claimBillNo; |
||||
|
@ApiModelProperty("维修工单号") |
||||
|
private String repairBillNo; |
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; |
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("开票申请sid") |
||||
|
private String billInvoiceSid; |
||||
|
@ApiModelProperty("开票明细sid") |
||||
|
private String billInvoiceDetailSid; |
||||
|
@ApiModelProperty("差异调整工时费") |
||||
|
private String claimHourAmount; |
||||
|
@ApiModelProperty("差异调整材料费") |
||||
|
private String claimGoodsAmount; |
||||
|
@ApiModelProperty("差异调整外出费") |
||||
|
private String claimOutAmount; |
||||
|
@ApiModelProperty("差异调整厂家补助") |
||||
|
private String claimSubsidyAmount; |
||||
|
@ApiModelProperty("差异调整其他费用") |
||||
|
private String claimOtherAmount; |
||||
|
@ApiModelProperty("差异调整施救费") |
||||
|
private String claimRescueAmount; |
||||
|
@ApiModelProperty("预留") |
||||
|
private String reserved; |
||||
|
@ApiModelProperty("原因") |
||||
|
private String reason; |
||||
|
|
||||
|
//工单:工时费
|
||||
|
private String hourAmount1; |
||||
|
|
||||
|
//工单材料费
|
||||
|
private String goodsAmount1; |
||||
|
|
||||
|
//工单外出费
|
||||
|
private String claimOutAmount1; |
||||
|
|
||||
|
//工单厂家补助
|
||||
|
private String claimSubsidyAmount1; |
||||
|
|
||||
|
//工单其他费用
|
||||
|
private String claimOtherAmount1; |
||||
|
|
||||
|
//工单施救费
|
||||
|
private String claimRescueAmount1; |
||||
|
|
||||
|
//工单合计
|
||||
|
private String all1; |
||||
|
|
||||
|
//索赔开票工时费
|
||||
|
private String claimHourAmount2; |
||||
|
|
||||
|
//索赔开票材料费
|
||||
|
private String claimGoodsAmount2; |
||||
|
|
||||
|
//索赔开票外出费
|
||||
|
private String claimOutAmount2; |
||||
|
|
||||
|
//索赔开票厂家补助
|
||||
|
private String claimSubsidyAmount2; |
||||
|
|
||||
|
//索赔开票其他金额
|
||||
|
private String claimOtherAmount2; |
||||
|
|
||||
|
//索赔开票施救费
|
||||
|
private String claimRescueAmount2; |
||||
|
|
||||
|
//合计
|
||||
|
private String all2; |
||||
|
|
||||
|
//差异合计
|
||||
|
private String all3; |
||||
|
|
||||
|
//差异调整合计
|
||||
|
private String all4; |
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AsBusclaimCheckApplyDetailsVo { |
||||
|
|
||||
|
private String sid; |
||||
|
private String createBySid; |
||||
|
private String createByName; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private Date createTime; |
||||
|
|
||||
|
@ApiModelProperty("申请部门sid") |
||||
|
private String deptSid; |
||||
|
@ApiModelProperty("申请部门名称") |
||||
|
private String deptName; |
||||
|
|
||||
|
private List<AsBusclaimCheckApplyFile> fileList = new ArrayList<>(); |
||||
|
private String remarks; |
||||
|
|
||||
|
private String billNo; |
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; |
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; |
||||
|
@ApiModelProperty("分公司") |
||||
|
private String useOrgName; |
||||
|
@ApiModelProperty("办结日期") |
||||
|
private String closeDate; |
||||
|
@ApiModelProperty("实例id") |
||||
|
private String procInstId; |
||||
|
@ApiModelProperty("流程定义id") |
||||
|
private String procDefId; |
||||
|
@ApiModelProperty("任务iD") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("环节iD") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty("流程状态") |
||||
|
private String nodeState; |
||||
|
|
||||
|
private List<AsBusclaimCheckApplyDetailVo> detailsList = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable.*; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaiminvoicebill.AsBusclaimInvoiceBillDetailsVo; |
||||
|
import com.yxt.anrui.terminal.fegin.asbusclaiminvoicebill.flowable.*; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@FeignClient( |
||||
|
contextId = "yxt-as-AsBusclaimCheckApply", |
||||
|
name = "yxt-as", |
||||
|
path = "v1/AsBusclaimCheckApply" |
||||
|
) |
||||
|
public interface AsBusclaimCheckApplyFegin { |
||||
|
|
||||
|
@GetMapping("/details") |
||||
|
@ApiOperation("详情") |
||||
|
ResultBean<AsBusclaimCheckApplyDetailsVo> details(@RequestParam("sid") String sid); |
||||
|
|
||||
|
@ApiOperation(value = "办理(同意)") |
||||
|
@PostMapping("/complete") |
||||
|
public ResultBean complete(@Valid @RequestBody CompleteBusclaimCheckApplyDto query); |
||||
|
|
||||
|
@ApiOperation(value = "获取上一个环节") |
||||
|
@GetMapping(value = "/getPreviousNodesForReject") |
||||
|
ResultBean<List<BusclaimCheckApplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap BusclaimCheckApplyNodeQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "获取下一个环节") |
||||
|
@GetMapping(value = "/getNextNodesForSubmit") |
||||
|
ResultBean<List<BusclaimCheckApplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap BusclaimCheckApplyNodeQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "驳回任务") |
||||
|
@PostMapping(value = "/reject") |
||||
|
public ResultBean taskReject(@Valid @RequestBody BusclaimCheckApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "撤回流程") |
||||
|
@PostMapping(value = "/revokeProcess") |
||||
|
public ResultBean revokeProcess(@Valid @RequestBody BusclaimCheckApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "终止任务") |
||||
|
@PostMapping(value = "/breakProcess") |
||||
|
public ResultBean breakProcess(@Valid @RequestBody BusclaimCheckApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "加签") |
||||
|
@PostMapping(value = "/delegate") |
||||
|
@ResponseBody |
||||
|
public ResultBean delegate(@RequestBody BusclaimCheckApplyDelegateQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "转办") |
||||
|
@PutMapping(value = "/assignTask") |
||||
|
@ResponseBody |
||||
|
public ResultBean assignTask(@RequestBody BusclaimCheckApplyDelegateQuery query); |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AsBusclaimCheckApplyFile { |
||||
|
|
||||
|
private String url; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class BusclaimCheckApplyDelegateQuery { |
||||
|
|
||||
|
private String userSid; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务Id") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("审批人sid") |
||||
|
private String assignee; |
||||
|
@ApiModelProperty("填写意见") |
||||
|
private String views; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class BusclaimCheckApplyNodeQuery { |
||||
|
|
||||
|
@ApiModelProperty(value = "环节定义id") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
private String businessSid; |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class BusclaimCheckApplyNodeVo { |
||||
|
|
||||
|
@ApiModelProperty(value = "节点名称") |
||||
|
private String name; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
private String id; |
||||
|
@ApiModelProperty(value = "审批组") |
||||
|
private List<String> candidateGroups; |
||||
|
@ApiModelProperty(value = "是否是最后环节") |
||||
|
private String endTask; |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class BusclaimCheckApplyTaskQuery { |
||||
|
|
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务Id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
/** |
||||
|
* 终止、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务意见") |
||||
|
private String comment; |
||||
|
/** |
||||
|
* 终止、撤回、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("用户Sid") |
||||
|
private String userSid; |
||||
|
/** |
||||
|
* 终止 |
||||
|
*/ |
||||
|
@ApiModelProperty("流程实例Id") |
||||
|
private String instanceId; |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.asbusclaimcheckapply.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/5/11 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class CompleteBusclaimCheckApplyDto { |
||||
|
|
||||
|
@ApiModelProperty(value = "用户sid") |
||||
|
@NotBlank(message = "参数错误:userSid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty(value = "用户全路径sid") |
||||
|
private String orgSidPath; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "任务id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty(value = "流程id") |
||||
|
@NotBlank(message = "参数错误:instanceId") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty(value = "意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
} |
Loading…
Reference in new issue