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

二次风控

parent 73cb4504
......@@ -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) {
return request({
url: '/order/history/status',
......
......@@ -6,11 +6,11 @@
<el-option v-for="item in channels" :key="item.channelId" :label="item.channelName" :value="item.channelId"/>
</el-select>
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="getChannels">查询</el-button>
<!-- <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">添加</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>
</div>
<el-table
v-show="createBool"
ref="myTable"
:data="channels"
border
......@@ -37,17 +37,17 @@
</el-table-column> -->
</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-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" >
<span>基础配置</span>
</div>
<el-form :inline="true" size="medium" >
<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 label="渠道code" style="width:30%">
<el-input v-model="channel.basicInfo.channelCode" />
......@@ -80,10 +80,10 @@
<el-form size="medium" label-width="50px" >
<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 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>
</el-card>
......@@ -96,7 +96,7 @@
</div>
<el-form size="medium" label-width="130px">
<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 label="审核状态通知地址" >
<el-input v-model="channel.addInfo.approveCallBackUrl" />
......@@ -142,7 +142,8 @@ export default {
channel: { basicInfo: {}, addInfo: {}},
count: 1,
page: 1,
roles: undefined
roles: undefined,
createBool: true
}
},
created() {
......@@ -160,6 +161,7 @@ export default {
// this.channels = []
// this.count = 1
getChannels(this.listQuery).then(res => {
this.createBool = true
if (res.data) {
this.channels = res.data.content
this.count = res.data.totalElements
......@@ -172,11 +174,13 @@ export default {
handleCurrentChange(val) {
this.channel = { basicInfo: {}, addInfo: {}}
if (val) {
getChannelDetail({ channelId: val.channelId }).then(res => {
if (res.data) {
this.channel = res.data
}
})
}
},
boxStyle() {
......@@ -184,14 +188,10 @@ export default {
return boxStyle
},
// handleCreate() {
// this.resetTemp()
// this.dialogStatus = 'create'
// this.dialogFormVisible = true
// this.$nextTick(() => {
// this.$refs['dataForm'].clearValidate()
// })
// },
handleCreate() {
this.createBool = false
this.channel = { basicInfo: {}, addInfo: {}}
},
savevData() {
if (!this.roles.includes('admin')) {
......@@ -205,6 +205,7 @@ export default {
duration: 1000
})
this.handleCurrentChange(this.channel.basicInfo)
this.getChannels()
})
}
}
......
......@@ -143,7 +143,7 @@
</template>
<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 store from '@/store'
......@@ -233,8 +233,7 @@ export default {
this.dialogTitle = '审核操作'
this.dialogFormVisible = true
this.approveData = {
fundType: '1',
isPass: '0'
fundType: '0'
}
}
......@@ -250,6 +249,17 @@ export default {
if (opt.action === 'pay_fail') {
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) {
......
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