瀏覽代碼

调整代码,接入对公账户充值相关的列表渲染接口

master
admin 3 年之前
父節點
當前提交
9c09a67e94

+ 19
- 8
src/views/fancongcong/advancepaymentaccount/advancepaymentaccount.vue 查看文件

@@ -56,7 +56,7 @@
<el-button type="warning" @click="agree(scope.row)">同意</el-button>
</el-tooltip>
<el-tooltip content="请输入对公账号" placement="top" v-if="scope.row.status == null">
<el-button type="warning" @click="opendialo">请输入对公账号</el-button>
<el-button type="warning" @click="opendialo(scope.row)">请输入对公账号</el-button>
</el-tooltip>
<el-tooltip :content="filterType(scope.row.status)" placement="top" v-if="scope.row.status != null">
<el-button type="primary" @click="opendialo" disabled>{{filterType(scope.row.status)}}</el-button>
@@ -223,7 +223,7 @@ const tableData = ref([
snippet: 'PPFAKYCKG',
staffId: 'MQWJVIMRO',
staffName: 'JQLOMWANP',
status: 1,
status: null,
transTime: 'MYHFJBLCP',
updateTime: '1982/10/14 13:50:50',
useage: 'OYQYKVWPG'
@@ -270,6 +270,7 @@ const agree = (row) => {
}
//驳回申请
const опровергать = (row) => {
console.log(row,row.id)
dialogFormVisible.value = false;
form.data_id = row.id
ElMessageBox.confirm('确定驳回这个申请?', '警告', {
@@ -289,9 +290,9 @@ const опровергать = (row) => {
}
//驳回申请原因
const getMsg = () => {
proxy.$request.post('reason', {
proxy.$request.post('/advancepayment/confirm', {
id: form.data_id,
reason: form.data_msg,
message: form.data_msg,
value: 1
}, {
//baseURL: 'http://localhost:8089',
@@ -368,9 +369,9 @@ const account = () => {
//baseURL: 'http://localhost:8089'
}
console.log(data)
return
proxy.$request.post('/advancepayment/account', data,{}).then((res) => {
if(form.phone != ''){
proxy.$request.post('/advancepayment/account', data,{}).then((res) => {
console.log(res, form.data_id, form.value)
if (res.data.success) {
dialogFormVisible.value = false;
@@ -380,6 +381,14 @@ const account = () => {
.catch((err) => {
console.log(err)
})
}else{
ElMessage({
message: '请填入对公账号!',
type: 'warning',
})
}

}
//打开填写对公账户的弹窗
const opendialo = (row) => {
@@ -393,8 +402,10 @@ const filterType = (type: Number) => {
return '审核通过'
} else if (type == 2) {
return '已驳回'
} else {
} else if(type == null){
return '未审核'
} else{
return '请联系管理员'
}
}


+ 9
- 2
src/views/fancongcong/corporateaccountManage/corporateaccountManage.vue 查看文件

@@ -70,8 +70,8 @@
</el-table>

<div class="page_box">
<el-pagination :page-size="20" :pager-count="11" layout="prev, pager, next" :total="pageCount"
v-model="pageNo"/>
<el-pagination :pager-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">
@@ -327,6 +327,11 @@ let tableData: any = ref([
}
]);

//watch 监听当前页变化
watch(pageNo, (newValue, oldValue) => {
console.log('watch 已触发', newValue)
})

//事件处理
const onSubmit = () => {
console.log('submit!')
@@ -633,6 +638,8 @@ const filterType = (type: Number) => {
return '其他'
}
}


</script>

<style lang="scss">

Loading…
取消
儲存