|
|
@@ -4,25 +4,45 @@ |
|
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline"> |
|
|
|
<el-form-item label="申请时间"> |
|
|
|
<div class="block"> |
|
|
|
<el-date-picker v-model="start_time" type="datetime" placeholder="请选择申请开始时间" format="YYYY/MM/DD" |
|
|
|
value-format="YYYY/MM/DD" /> |
|
|
|
<el-date-picker |
|
|
|
v-model="start_time" |
|
|
|
type="datetime" |
|
|
|
placeholder="请选择申请开始时间" |
|
|
|
format="YYYY/MM/DD" |
|
|
|
value-format="YYYY/MM/DD" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<el-icon> |
|
|
|
<semi-select /> |
|
|
|
</el-icon> |
|
|
|
<div class="block"> |
|
|
|
<el-date-picker v-model="end_time" type="datetime" placeholder="请选择申请结束时间" format="YYYY/MM/DD" |
|
|
|
value-format="YYYY/MM/DD" /> |
|
|
|
<el-date-picker |
|
|
|
v-model="end_time" |
|
|
|
type="datetime" |
|
|
|
placeholder="请选择申请结束时间" |
|
|
|
format="YYYY/MM/DD" |
|
|
|
value-format="YYYY/MM/DD" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="账号状态"> |
|
|
|
<el-select v-model="cтатус_счета" clearable placeholder="账号状态"> |
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="每页条数"> |
|
|
|
<el-select v-model="номер" clearable placeholder="账号状态"> |
|
|
|
<el-option v-for="item in optiones" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
<el-option |
|
|
|
v-for="item in optiones" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="对公账户资金账户编号"> |
|
|
@@ -70,8 +90,13 @@ |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<div class="page_box"> |
|
|
|
<el-pagination :page-count="pageCount" :current-page="pageNo" :hide-on-single-page="false" |
|
|
|
layout="prev, pager, next" @update:current-page="pagechange" /> |
|
|
|
<el-pagination |
|
|
|
:page-count="pageCount" |
|
|
|
:current-page="pageNo" |
|
|
|
:hide-on-single-page="false" |
|
|
|
layout="prev, pager, next" |
|
|
|
@update:current-page="pagechange" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-dialog v-model="dialogFormVisible" :title="title" :show-close="false"> |
|
|
@@ -82,7 +107,9 @@ |
|
|
|
<el-form-item label="验证码" :label-width="150"> |
|
|
|
<div class="as-layout-horizontal"> |
|
|
|
<el-input v-model="form.region" /> |
|
|
|
<el-button type="primary" @click="getPhone" :disabled="codetext != '获取验证码'">{{ codetext }}</el-button> |
|
|
|
<el-button type="primary" @click="getPhone" :disabled="codetext != '获取验证码'">{{ |
|
|
|
codetext |
|
|
|
}}</el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@@ -132,28 +159,48 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="授权书" :label-width="formLabelWidth"> |
|
|
|
<el-image style="width: 100px; height: 100px" :src="detilMsg.authBookUrl" |
|
|
|
:preview-src-list="detilMsg.authBookUrl" :initial-index="4" fit="cover" /> |
|
|
|
<el-image |
|
|
|
style="width: 100px; height: 100px" |
|
|
|
:src="detilMsg.authBookUrl" |
|
|
|
:preview-src-list="detilMsg.authBookUrl" |
|
|
|
:initial-index="4" |
|
|
|
fit="cover" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="公司营业执照" :label-width="formLabelWidth"> |
|
|
|
<el-image style="width: 100px; height: 100px" :src="detilMsg.photoUrl" |
|
|
|
:preview-src-list="detilMsg.photoUrl" :initial-index="4" fit="cover" /> |
|
|
|
<el-image |
|
|
|
style="width: 100px; height: 100px" |
|
|
|
:src="detilMsg.photoUrl" |
|
|
|
:preview-src-list="detilMsg.photoUrl" |
|
|
|
:initial-index="4" |
|
|
|
fit="cover" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="被委托人身份证正面照" :label-width="formLabelWidth"> |
|
|
|
<el-image style="width: 100px; height: 100px" :src="detilMsg.idCardImageUrl" |
|
|
|
:preview-src-list="detilMsg.idCardImageUrl" :initial-index="4" fit="cover" /> |
|
|
|
<el-image |
|
|
|
style="width: 100px; height: 100px" |
|
|
|
:src="detilMsg.idCardImageUrl" |
|
|
|
:preview-src-list="detilMsg.idCardImageUrl" |
|
|
|
:initial-index="4" |
|
|
|
fit="cover" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="被委托人身份证反面照" :label-width="formLabelWidth + 50"> |
|
|
|
<el-image style="width: 100px; height: 100px" :src="detilMsg.idCardB" :preview-src-list="srcList" |
|
|
|
:initial-index="4" fit="cover" /> |
|
|
|
<el-image |
|
|
|
style="width: 100px; height: 100px" |
|
|
|
:src="detilMsg.idCardB" |
|
|
|
:preview-src-list="srcList" |
|
|
|
:initial-index="4" |
|
|
|
fit="cover" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@@ -187,7 +234,7 @@ |
|
|
|
import { Search } from '@element-plus/icons-vue' |
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
|
import { reactive, ref, getCurrentInstance, onMounted, watch } from 'vue' |
|
|
|
import { account } from "@/views/fancongcong/publicJs/account" |
|
|
|
import { account } from '@/views/fancongcong/publicJs/account' |
|
|
|
//console.log("ac",account) |
|
|
|
|
|
|
|
//变量定义 |
|
|
@@ -214,17 +261,17 @@ let form: any = ref({ |
|
|
|
idImgOne: '', //被委托人身份证正面照 |
|
|
|
idImgTwo: '', //被委托人身份证反面照 |
|
|
|
data_id: '', //获取详细信息所点击的数据的id |
|
|
|
data_msg: '' //驳回原因 |
|
|
|
data_msg: '', //驳回原因 |
|
|
|
}) |
|
|
|
let detilMsg: any = ref({});//待待审核等状态下的详细信息 |
|
|
|
let detilMsg: any = ref({}) //待待审核等状态下的详细信息 |
|
|
|
const formInline = ref({ |
|
|
|
user: '', |
|
|
|
region: '', |
|
|
|
number: '', //资金编号 |
|
|
|
coNumber: '' // |
|
|
|
coNumber: '', // |
|
|
|
}) |
|
|
|
let title = ref('对公账户信息') |
|
|
|
let srcList = ref([]);//图片预览列表 |
|
|
|
let srcList = ref([]) //图片预览列表 |
|
|
|
let pageSize = ref(20) //显示每页条数 |
|
|
|
let pageCount = ref(1) //总页数 |
|
|
|
let pageNo = ref(1) //当前页 |
|
|
@@ -232,24 +279,24 @@ let clickType = ref(0) //点击事件类型 0.驳回审核 1.审核通过 3.查 |
|
|
|
const options = ref([ |
|
|
|
{ |
|
|
|
value: '', |
|
|
|
label: '全部' |
|
|
|
label: '全部', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '1', |
|
|
|
label: '驳回' |
|
|
|
label: '驳回', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '0', |
|
|
|
label: '待审核' |
|
|
|
label: '待审核', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '1', |
|
|
|
label: '已启用' |
|
|
|
label: '已启用', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '待修改初始密码' |
|
|
|
} |
|
|
|
label: '待修改初始密码', |
|
|
|
}, |
|
|
|
]) |
|
|
|
let codetext = ref('获取验证码') |
|
|
|
let setTime: any = ref(null) // |
|
|
@@ -266,30 +313,30 @@ const { proxy } = getCurrentInstance() |
|
|
|
const optiones = ref([ |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '2' |
|
|
|
label: '2', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '6', |
|
|
|
label: '6' |
|
|
|
label: '6', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '10', |
|
|
|
label: '10' |
|
|
|
label: '10', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '15', |
|
|
|
label: '15' |
|
|
|
label: '15', |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '30', |
|
|
|
label: '30' |
|
|
|
} |
|
|
|
label: '30', |
|
|
|
}, |
|
|
|
]) |
|
|
|
const defaultTime = new Date(2000, 1, 1, 12, 0, 0) |
|
|
|
const shortcuts = [ |
|
|
|
{ |
|
|
|
text: 'Today', |
|
|
|
value: new Date() |
|
|
|
value: new Date(), |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'Yesterday', |
|
|
@@ -297,7 +344,7 @@ const shortcuts = [ |
|
|
|
const date = new Date() |
|
|
|
date.setTime(date.getTime() - 3600 * 1000 * 24) |
|
|
|
return date |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'A week ago', |
|
|
@@ -305,8 +352,8 @@ const shortcuts = [ |
|
|
|
const date = new Date() |
|
|
|
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7) |
|
|
|
return date |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
let tableData: any = ref([ |
|
|
|
/*{ |
|
|
@@ -325,7 +372,7 @@ let tableData: any = ref([ |
|
|
|
status: 0, |
|
|
|
uploadTime: '2009/09/05 11:28:06' |
|
|
|
}*/ |
|
|
|
]); |
|
|
|
]) |
|
|
|
|
|
|
|
//watch 监听当前页变化 |
|
|
|
watch(pageNo, (newValue, oldValue) => { |
|
|
@@ -342,7 +389,7 @@ const agree = (row: any) => { |
|
|
|
ElMessageBox.confirm('确定通过这个申请?', '警告', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
type: 'warning', |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
proxy.$request |
|
|
@@ -352,18 +399,16 @@ const agree = (row: any) => { |
|
|
|
//baseURL: 'http://localhost:8089', |
|
|
|
id: row.id, |
|
|
|
// message:form.data_msg, |
|
|
|
value: 0 |
|
|
|
value: 0, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
{} |
|
|
|
) |
|
|
|
.then((res: any) => { |
|
|
|
console.log(res, form.data_id, form.value) |
|
|
|
if (res.data.code == 200) { |
|
|
|
ElMessage({ |
|
|
|
type: 'success', |
|
|
|
message: '操作成功!' |
|
|
|
message: '操作成功!', |
|
|
|
}) |
|
|
|
search() |
|
|
|
} |
|
|
@@ -375,7 +420,7 @@ const agree = (row: any) => { |
|
|
|
.catch(() => { |
|
|
|
ElMessage({ |
|
|
|
type: '取消', |
|
|
|
message: '已取消' |
|
|
|
message: '已取消', |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
@@ -385,16 +430,16 @@ const опровергать = (row: any) => { |
|
|
|
ElMessageBox.confirm('确定驳回这个申请?', '警告', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
type: 'warning', |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
form.data_id = row.id; |
|
|
|
form.data_id = row.id |
|
|
|
dialogFormVisibles.value = true |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
ElMessage({ |
|
|
|
type: '取消', |
|
|
|
message: '已取消' |
|
|
|
message: '已取消', |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
@@ -407,18 +452,16 @@ const getMsg = () => { |
|
|
|
//baseURL: 'http://localhost:8089', |
|
|
|
id: form.data_id, |
|
|
|
message: form.value.data_msg, |
|
|
|
value: 1 |
|
|
|
value: 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
{} |
|
|
|
) |
|
|
|
.then((res: any) => { |
|
|
|
console.log(res, form.data_id, form.value.data_msg) |
|
|
|
if (res.data.code) { |
|
|
|
ElMessage({ |
|
|
|
type: 'success', |
|
|
|
message: '操作成功!' |
|
|
|
message: '操作成功!', |
|
|
|
}) |
|
|
|
dialogFormVisibles.value = false |
|
|
|
search() |
|
|
@@ -451,11 +494,10 @@ const getPhone = (id: Number) => { |
|
|
|
.post( |
|
|
|
'/corporateaccount/send', |
|
|
|
{ |
|
|
|
id: form.data_id |
|
|
|
id: form.data_id, |
|
|
|
}, |
|
|
|
{ |
|
|
|
//baseURL: 'http://localhost:8089', |
|
|
|
|
|
|
|
} |
|
|
|
) |
|
|
|
.then((res: any) => { |
|
|
@@ -475,7 +517,7 @@ const getPhone = (id: Number) => { |
|
|
|
} else { |
|
|
|
ElMessage({ |
|
|
|
type: 'success', |
|
|
|
message: '请输入验证码!' |
|
|
|
message: '请输入验证码!', |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@@ -488,7 +530,7 @@ const search = () => { |
|
|
|
//bankCardId: '', |
|
|
|
pageNo: pageNo.value, |
|
|
|
pageSize: номер.value, |
|
|
|
status: cтатус_счета.value |
|
|
|
status: cтатус_счета.value, |
|
|
|
//baseURL:'http://10.20.10.206:81', |
|
|
|
} |
|
|
|
//formInline.value.number != '' ? data.accountId = formInline.value.number : "" |
|
|
@@ -525,7 +567,26 @@ const resive = () => { |
|
|
|
} |
|
|
|
//导出 |
|
|
|
const drow = () => { |
|
|
|
console.log('导出') |
|
|
|
proxy.$request |
|
|
|
.post( |
|
|
|
'csms/finance/supplybalance/imageinput/', |
|
|
|
{ id: form.data_id }, |
|
|
|
{ |
|
|
|
///baseURL: 'http://localhost:8089', |
|
|
|
} |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
console.log('导出') |
|
|
|
ElMessage({ |
|
|
|
type: 'success', |
|
|
|
message: res.data.message, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
//核验验证码 |
|
|
|
const regcode = () => { |
|
|
@@ -542,20 +603,19 @@ const regcode = () => { |
|
|
|
if (form.value.region == '') { |
|
|
|
ElMessage({ |
|
|
|
type: 'success', |
|
|
|
message: '请输入验证码!' |
|
|
|
message: '请输入验证码!', |
|
|
|
}) |
|
|
|
return; |
|
|
|
return |
|
|
|
} |
|
|
|
proxy.$request |
|
|
|
.post( |
|
|
|
'/corporateaccount/check', |
|
|
|
{ |
|
|
|
id: form.data_id, |
|
|
|
verifyCode: form.region |
|
|
|
verifyCode: form.region, |
|
|
|
}, |
|
|
|
{ |
|
|
|
//baseURL: 'http://localhost:8089', |
|
|
|
|
|
|
|
} |
|
|
|
) |
|
|
|
.then((res: any) => { |
|
|
@@ -563,41 +623,47 @@ const regcode = () => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
form.value.delivery = false |
|
|
|
console.log('de', form.delivery) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err: any) => { |
|
|
|
console.log(err, form.delivery) |
|
|
|
proxy.$request.post('/corporateaccount/queryId', { id: form.data_id }, { |
|
|
|
///baseURL: 'http://localhost:8089', |
|
|
|
}).then((res) => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
form.value.delivery = false; |
|
|
|
detilMsg.value = res.data.data; |
|
|
|
/*srcList.value.push(res.data.data.authBookUrl) |
|
|
|
proxy.$request |
|
|
|
.post( |
|
|
|
'/corporateaccount/queryId', |
|
|
|
{ id: form.data_id }, |
|
|
|
{ |
|
|
|
///baseURL: 'http://localhost:8089', |
|
|
|
} |
|
|
|
) |
|
|
|
.then((res) => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
form.value.delivery = false |
|
|
|
detilMsg.value = res.data.data |
|
|
|
/*srcList.value.push(res.data.data.authBookUrl) |
|
|
|
srcList.value.push(res.data.data.idCardBackImageUrl) |
|
|
|
srcList.value.push(res.data.data.idCardImageUrl) |
|
|
|
srcList.value.push(res.data.data.photoUrl)*/ |
|
|
|
console.log(detilMsg.value, srcList.value); |
|
|
|
} |
|
|
|
}).catch((err) => { |
|
|
|
console.log(err); |
|
|
|
}) |
|
|
|
console.log(detilMsg.value, srcList.value) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//图片路径过滤 |
|
|
|
const imgfilTer = (url) => { |
|
|
|
return import.meta.env.VITE_APP_BASE_URL + url; |
|
|
|
return import.meta.env.VITE_APP_BASE_URL + url |
|
|
|
} |
|
|
|
|
|
|
|
//弹窗点击关闭 |
|
|
|
const close = () => { |
|
|
|
detilMsg.value = {}; |
|
|
|
form.value.region = ''; |
|
|
|
form.value.delivery = true; |
|
|
|
dialogFormVisible.value = false; |
|
|
|
detilMsg.value = {} |
|
|
|
form.value.region = '' |
|
|
|
form.value.delivery = true |
|
|
|
dialogFormVisible.value = false |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
@@ -609,15 +675,15 @@ const getDetil = (row: any) => { |
|
|
|
// ; |
|
|
|
console.log(row, row.agentTel) |
|
|
|
if (!form.delivery) { |
|
|
|
form.value.data_id = row.id; |
|
|
|
form.value.phone = row.agentTel; |
|
|
|
form.value.data_id = row.id |
|
|
|
form.value.phone = row.agentTel |
|
|
|
dialogFormVisible.value = true |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
form.data_id = row.id |
|
|
|
console.log('dedil_id', form.data_id) |
|
|
|
} catch (error) { } |
|
|
|
} catch (error) {} |
|
|
|
} |
|
|
|
//获取当前页数据 |
|
|
|
const pagechange = (el: any) => { |
|
|
@@ -639,8 +705,6 @@ const filterType = (type: Number) => { |
|
|
|
return '其他' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss"> |