Commit 8c385007 authored by 智勇's avatar 智勇

二次风控

parent 73cb4504
...@@ -16,6 +16,14 @@ export function approve(data) { ...@@ -16,6 +16,14 @@ export function approve(data) {
}) })
} }
export function secondAudit(query) {
return request({
url: '/order/secondAudit',
method: 'get',
params: query
})
}
export function getOrderHistory(query) { export function getOrderHistory(query) {
return request({ return request({
url: '/order/history/status', url: '/order/history/status',
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
<el-option v-for="item in channels" :key="item.channelId" :label="item.channelName" :value="item.channelId"/> <el-option v-for="item in channels" :key="item.channelId" :label="item.channelName" :value="item.channelId"/>
</el-select> </el-select>
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getChannels">查询</el-button> <el-button class="filter-item" type="primary" icon="el-icon-search" @click="getChannels">查询</el-button>
<el-button v-permission="['admin']" :disabled="!createBool" class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
<!-- <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button> -->
</div> </div>
<el-table <el-table
v-show="createBool"
ref="myTable" ref="myTable"
:data="channels" :data="channels"
border border
...@@ -37,17 +37,17 @@ ...@@ -37,17 +37,17 @@
</el-table-column> --> </el-table-column> -->
</el-table> </el-table>
<pagination v-show="count>0" :total="count" :page.sync="page" :limit.sync="listQuery.pageSize" @pagination="getChannels" /> <pagination v-show="createBool && count>0" :total="count" :page.sync="page" :limit.sync="listQuery.pageSize" @pagination="getChannels" />
<el-card v-show="channel.addInfo" class="box-card"> <el-card v-show="channel.addInfo" class="box-card">
<el-card v-permission="['admin']" v-show="channel.basicInfo.channelId" class="box-card" style="margin-bottom:20px;float:left;width:45%;margin-right:1%"> <el-card v-permission="['admin']" class="box-card" style="margin-bottom:20px;float:left;width:45%;margin-right:1%">
<div slot="header" > <div slot="header" >
<span>基础配置</span> <span>基础配置</span>
</div> </div>
<el-form :inline="true" size="medium" > <el-form :inline="true" size="medium" >
<el-form-item label="渠道号" style="width:30%"> <el-form-item label="渠道号" style="width:30%">
<el-input v-model="channel.basicInfo.channelId" disabled="" /> <el-input v-model="channel.basicInfo.channelId" :disabled="createBool" />
</el-form-item> </el-form-item>
<el-form-item label="渠道code" style="width:30%"> <el-form-item label="渠道code" style="width:30%">
<el-input v-model="channel.basicInfo.channelCode" /> <el-input v-model="channel.basicInfo.channelCode" />
...@@ -80,10 +80,10 @@ ...@@ -80,10 +80,10 @@
<el-form size="medium" label-width="50px" > <el-form size="medium" label-width="50px" >
<el-form-item label="AES" > <el-form-item label="AES" >
<el-input v-model="channel.basicInfo.aesKey" :autosize="{ minRows: 2, maxRows: 4}" type="textarea"/> <el-input v-model="channel.basicInfo.aesKey" :autosize="{ minRows: 1, maxRows: 4}" type="textarea"/>
</el-form-item> </el-form-item>
<el-form-item label="MD5" > <el-form-item label="MD5" >
<el-input v-model="channel.basicInfo.md5Key" :autosize="{ minRows: 2, maxRows: 4}" type="textarea"/> <el-input v-model="channel.basicInfo.md5Key" :autosize="{ minRows: 1, maxRows: 4}" type="textarea"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</div> </div>
<el-form size="medium" label-width="130px"> <el-form size="medium" label-width="130px">
<el-form-item label="域名" > <el-form-item label="域名" >
<el-input v-model="channel.addInfo.envPath" disabled=""/> <el-input v-model="channel.addInfo.envPath" :disabled="createBool"/>
</el-form-item> </el-form-item>
<el-form-item label="审核状态通知地址" > <el-form-item label="审核状态通知地址" >
<el-input v-model="channel.addInfo.approveCallBackUrl" /> <el-input v-model="channel.addInfo.approveCallBackUrl" />
...@@ -142,7 +142,8 @@ export default { ...@@ -142,7 +142,8 @@ export default {
channel: { basicInfo: {}, addInfo: {}}, channel: { basicInfo: {}, addInfo: {}},
count: 1, count: 1,
page: 1, page: 1,
roles: undefined roles: undefined,
createBool: true
} }
}, },
created() { created() {
...@@ -160,6 +161,7 @@ export default { ...@@ -160,6 +161,7 @@ export default {
// this.channels = [] // this.channels = []
// this.count = 1 // this.count = 1
getChannels(this.listQuery).then(res => { getChannels(this.listQuery).then(res => {
this.createBool = true
if (res.data) { if (res.data) {
this.channels = res.data.content this.channels = res.data.content
this.count = res.data.totalElements this.count = res.data.totalElements
...@@ -172,11 +174,13 @@ export default { ...@@ -172,11 +174,13 @@ export default {
handleCurrentChange(val) { handleCurrentChange(val) {
this.channel = { basicInfo: {}, addInfo: {}} this.channel = { basicInfo: {}, addInfo: {}}
getChannelDetail({ channelId: val.channelId }).then(res => { if (val) {
if (res.data) { getChannelDetail({ channelId: val.channelId }).then(res => {
this.channel = res.data if (res.data) {
} this.channel = res.data
}) }
})
}
}, },
boxStyle() { boxStyle() {
...@@ -184,14 +188,10 @@ export default { ...@@ -184,14 +188,10 @@ export default {
return boxStyle return boxStyle
}, },
// handleCreate() { handleCreate() {
// this.resetTemp() this.createBool = false
// this.dialogStatus = 'create' this.channel = { basicInfo: {}, addInfo: {}}
// this.dialogFormVisible = true },
// this.$nextTick(() => {
// this.$refs['dataForm'].clearValidate()
// })
// },
savevData() { savevData() {
if (!this.roles.includes('admin')) { if (!this.roles.includes('admin')) {
...@@ -205,6 +205,7 @@ export default { ...@@ -205,6 +205,7 @@ export default {
duration: 1000 duration: 1000
}) })
this.handleCurrentChange(this.channel.basicInfo) this.handleCurrentChange(this.channel.basicInfo)
this.getChannels()
}) })
} }
} }
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</template> </template>
<script> <script>
import { getOrders, getOrderHistory, approve, cancelLoan, lendLoan, callbackRecord, logHistory } from '@/api/order' import { getOrders, getOrderHistory, approve, cancelLoan, lendLoan, callbackRecord, logHistory, secondAudit } from '@/api/order'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import store from '@/store' import store from '@/store'
...@@ -233,8 +233,7 @@ export default { ...@@ -233,8 +233,7 @@ export default {
this.dialogTitle = '审核操作' this.dialogTitle = '审核操作'
this.dialogFormVisible = true this.dialogFormVisible = true
this.approveData = { this.approveData = {
fundType: '1', fundType: '0'
isPass: '0'
} }
} }
...@@ -250,6 +249,17 @@ export default { ...@@ -250,6 +249,17 @@ export default {
if (opt.action === 'pay_fail') { if (opt.action === 'pay_fail') {
this.handleLendLoan(false) this.handleLendLoan(false)
} }
if (opt.action === 'second_audit') {
secondAudit({ channelOrderNumber: this.order.channelOrderNumber }).then(() => {
this.$notify({
title: '操作成功',
type: 'success',
duration: 1000
})
})
this.getOrders()
}
}, },
handleLendLoan(result) { handleLendLoan(result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment