|
|
@@ -30,7 +30,7 @@ |
|
|
|
<el-form-item> |
|
|
|
<el-button :icon="Search" type="primary" @click="grabble">查询</el-button> |
|
|
|
<el-button type="info" @click="resive">重置</el-button> |
|
|
|
<el-button type="primary">导入Excel</el-button> |
|
|
|
<el-button type="primary" @click="upload_dialogVisible = true">导入Excel</el-button> |
|
|
|
<el-button type="primary">下载导入模板</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@@ -58,15 +58,14 @@ |
|
|
|
<el-tooltip content="请输入对公账号" placement="top" v-if="scope.row.status == null"> |
|
|
|
<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> |
|
|
|
<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> |
|
|
|
</el-tooltip> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</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 :page-size="20" :pager-count="11" layout="prev, pager, next" :total="pageCount"/> |
|
|
|
</div> |
|
|
|
<el-dialog v-model="dialogFormVisible" :title="title"> |
|
|
|
<el-form :model="form"> |
|
|
@@ -95,6 +94,16 @@ |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
<!--文件上传弹窗--> |
|
|
|
<el-dialog v-model="upload_dialogVisible" title="上传文件"> |
|
|
|
<Upload type="img" :limit="1"></Upload> |
|
|
|
<template #footer> |
|
|
|
<span class="dialog-footer"> |
|
|
|
<el-button @click="upload_dialogVisible = false">关闭</el-button> |
|
|
|
<el-button type="primary" @click="upload_dialogVisible = false">确定</el-button> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@@ -103,7 +112,7 @@ |
|
|
|
import { Search } from '@element-plus/icons-vue' |
|
|
|
import { reactive, ref, getCurrentInstance, onMounted } from 'vue' |
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
|
|
|
|
|
import Upload from "@/components/upload/upload.vue" |
|
|
|
//变量声明 |
|
|
|
const { proxy } = getCurrentInstance() |
|
|
|
const formInline = ref({ |
|
|
@@ -111,7 +120,7 @@ const formInline = ref({ |
|
|
|
region: '', |
|
|
|
number: '', |
|
|
|
coNumber: '', |
|
|
|
user: '', |
|
|
|
serialNo:'' |
|
|
|
}) |
|
|
|
const onSubmit = () => { |
|
|
|
console.log('submit!') |
|
|
@@ -148,6 +157,7 @@ let pageNumber = ref(15)//每页条数 |
|
|
|
let dialogTableVisible = ref(false) |
|
|
|
let dialogFormVisible = ref(false) |
|
|
|
let dialogFormVisibles = ref(false) |
|
|
|
let upload_dialogVisible = ref(false) |
|
|
|
let pageCount = ref(0) //总页数 |
|
|
|
let formLabelWidth = '140px' |
|
|
|
let form = reactive({ |
|
|
@@ -233,7 +243,7 @@ const tableData = ref([ |
|
|
|
//事件 |
|
|
|
//同意申请 |
|
|
|
const agree = (row) => { |
|
|
|
console.log("id",row.id) |
|
|
|
console.log("id", row.id) |
|
|
|
dialogFormVisible.value = false; |
|
|
|
ElMessageBox.confirm('确定通过这个申请?', '警告', { |
|
|
|
confirmButtonText: '确定', |
|
|
@@ -270,7 +280,7 @@ const agree = (row) => { |
|
|
|
} |
|
|
|
//驳回申请 |
|
|
|
const опровергать = (row) => { |
|
|
|
console.log(row,row.id) |
|
|
|
console.log(row, row.id) |
|
|
|
dialogFormVisible.value = false; |
|
|
|
form.data_id = row.id |
|
|
|
ElMessageBox.confirm('确定驳回这个申请?', '警告', { |
|
|
@@ -292,7 +302,7 @@ const опровергать = (row) => { |
|
|
|
const getMsg = () => { |
|
|
|
proxy.$request.post('/advancepayment/confirm', { |
|
|
|
id: form.data_id, |
|
|
|
message: form.data_msg, |
|
|
|
reason: form.data_msg, |
|
|
|
value: 1 |
|
|
|
}, { |
|
|
|
//baseURL: 'http://localhost:8089', |
|
|
@@ -314,7 +324,7 @@ const getMsg = () => { |
|
|
|
|
|
|
|
//搜索 |
|
|
|
const grabble = () => { |
|
|
|
let data:any = { |
|
|
|
let data: any = { |
|
|
|
//endTime: '2020/01/01 00:00:00', |
|
|
|
pageNo: pageNo.value, |
|
|
|
pageSize: pageNumber.value, |
|
|
@@ -322,11 +332,11 @@ const grabble = () => { |
|
|
|
//type: 0, |
|
|
|
} |
|
|
|
formInline.value.Number != '' ? data.reciprocalAccount = formInline.value.Number : ''; |
|
|
|
formInline.value.coNumber != '' ? data.reciprocalAccountName = formInline.value.coNumber :''; |
|
|
|
formInline.value.serialNo != '' ? data.serialNo = formInline.value.serialNo :''; |
|
|
|
|
|
|
|
formInline.value.coNumber != '' ? data.reciprocalAccountName = formInline.value.coNumber : ''; |
|
|
|
formInline.value.serialNo != '' ? data.serialNo = formInline.value.serialNo : ''; |
|
|
|
|
|
|
|
proxy.$request |
|
|
|
.post('/advancepayment/queryPage',data,{}) |
|
|
|
.post('/advancepayment/queryPage', data, {}) |
|
|
|
.then((res) => { |
|
|
|
//console.log(res.data,data) |
|
|
|
if (res.data.code == 200) { |
|
|
@@ -369,26 +379,26 @@ const account = () => { |
|
|
|
//baseURL: 'http://localhost:8089' |
|
|
|
} |
|
|
|
console.log(data) |
|
|
|
|
|
|
|
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; |
|
|
|
grabble(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
|
|
|
|
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; |
|
|
|
grabble(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
ElMessage({ |
|
|
|
message: '请填入对公账号!', |
|
|
|
type: 'warning', |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
ElMessage({ |
|
|
|
message: '请填入对公账号!', |
|
|
|
type: 'warning', |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
//打开填写对公账户的弹窗 |
|
|
|
const opendialo = (row) => { |
|
|
@@ -402,9 +412,9 @@ const filterType = (type: Number) => { |
|
|
|
return '审核通过' |
|
|
|
} else if (type == 2) { |
|
|
|
return '已驳回' |
|
|
|
} else if(type == null){ |
|
|
|
} else if (type == null) { |
|
|
|
return '未审核' |
|
|
|
} else{ |
|
|
|
} else { |
|
|
|
return '请联系管理员' |
|
|
|
} |
|
|
|
} |