|
@@ -27,6 +27,7 @@
|
|
<script>
|
|
<script>
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import { getChangeList, getChangeListDetail, getTransferSubmit, getTransferCancel } from '@/api/finance/change_list'
|
|
import { getChangeList, getChangeListDetail, getTransferSubmit, getTransferCancel } from '@/api/finance/change_list'
|
|
|
|
+import { financeTransferList, financeTransferListExport } from '@/api/finance/change_list_v2'
|
|
import ChangeListDetail from './components/change_list-detail'
|
|
import ChangeListDetail from './components/change_list-detail'
|
|
import ChangeListExamine from './components/change_list-examine'
|
|
import ChangeListExamine from './components/change_list-examine'
|
|
import ChangeListReview from './components/change_list-review'
|
|
import ChangeListReview from './components/change_list-review'
|
|
@@ -40,20 +41,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
isCustomer: null,
|
|
isCustomer: null,
|
|
- currentPage: 1, // 当前页码
|
|
|
|
- pageSize: 10, // 每页数量
|
|
|
|
- listTotal: 0, // 列表总数
|
|
|
|
- dataList: [], // 列表数据
|
|
|
|
- searchForm: {
|
|
|
|
- customerName: '',
|
|
|
|
- startTime: '',
|
|
|
|
- walletName: '',
|
|
|
|
- id: ''
|
|
|
|
- }, //搜索表单
|
|
|
|
- listLoading: false, // 列表加载loading
|
|
|
|
- category: '',
|
|
|
|
showPage: 1,
|
|
showPage: 1,
|
|
- isCollapse: true,
|
|
|
|
detailList: {},
|
|
detailList: {},
|
|
optionsEvensGroup: [],
|
|
optionsEvensGroup: [],
|
|
// 表格属性
|
|
// 表格属性
|
|
@@ -71,13 +59,12 @@ export default {
|
|
created() {
|
|
created() {
|
|
const res = JSON.parse(localStorage.getItem('supply_user'))
|
|
const res = JSON.parse(localStorage.getItem('supply_user'))
|
|
this.isCustomer = res.isCustomer
|
|
this.isCustomer = res.isCustomer
|
|
- this.getDataList()
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 列表请求函数
|
|
// 列表请求函数
|
|
- getList: getCreditList,
|
|
|
|
|
|
+ getList: financeTransferList,
|
|
// 列表导出函数
|
|
// 列表导出函数
|
|
- exportList: getCreditListExport,
|
|
|
|
|
|
+ exportList: financeTransferListExport,
|
|
// 表格列解析渲染数据更改
|
|
// 表格列解析渲染数据更改
|
|
columnParsing(item, defaultData) {
|
|
columnParsing(item, defaultData) {
|
|
return defaultData
|
|
return defaultData
|
|
@@ -90,7 +77,7 @@ export default {
|
|
return (h, { row, index, column }) => {
|
|
return (h, { row, index, column }) => {
|
|
return (
|
|
return (
|
|
<div class="operation-btns">
|
|
<div class="operation-btns">
|
|
- {this.$checkBtnRole('apply', this.$route.meta.roles) && row.examineStatus == 'SAVE' ? (
|
|
|
|
|
|
+ {this.$checkBtnRole('apply', this.$route.meta.roles) && row.examineStatus == '保存' ? (
|
|
<el-button
|
|
<el-button
|
|
onClick={() => {
|
|
onClick={() => {
|
|
this.submitFn(row.id)
|
|
this.submitFn(row.id)
|
|
@@ -102,7 +89,7 @@ export default {
|
|
提审
|
|
提审
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {row.examineStatus == 'WAIT' &&
|
|
|
|
|
|
+ {row.examineStatus == '待审核' &&
|
|
!this.isCustomer &&
|
|
!this.isCustomer &&
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
@@ -116,7 +103,7 @@ export default {
|
|
审核
|
|
审核
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {(row.examineStatus == 'FAIL_ONE' || row.examineStatus == 'SAVE') &&
|
|
|
|
|
|
+ {(row.examineStatus == '初审不通过' || row.examineStatus == '保存') &&
|
|
this.$checkBtnRole('edit', this.$route.meta.roles) ? (
|
|
this.$checkBtnRole('edit', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
@@ -129,7 +116,6 @@ export default {
|
|
修改
|
|
修改
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
-
|
|
|
|
<el-button
|
|
<el-button
|
|
onClick={() => {
|
|
onClick={() => {
|
|
this.detailFn(row.id)
|
|
this.detailFn(row.id)
|
|
@@ -140,9 +126,8 @@ export default {
|
|
>
|
|
>
|
|
详情
|
|
详情
|
|
</el-button>
|
|
</el-button>
|
|
- {row.examineStatus == 'WAIT' ? (
|
|
|
|
|
|
+ {row.examineStatus == '待审核' ? (
|
|
<el-button
|
|
<el-button
|
|
- v-if="scope.row.examineStatus == 'WAIT'"
|
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
this.cancelFn(row.id)
|
|
this.cancelFn(row.id)
|
|
}}
|
|
}}
|
|
@@ -160,96 +145,39 @@ export default {
|
|
//取消
|
|
//取消
|
|
async cancelFn(id) {
|
|
async cancelFn(id) {
|
|
await getTransferCancel({ id })
|
|
await getTransferCancel({ id })
|
|
- this.getDataList()
|
|
|
|
|
|
+ this.refreshFn()
|
|
this.$message.success('取消成功')
|
|
this.$message.success('取消成功')
|
|
},
|
|
},
|
|
- //切换radio
|
|
|
|
- changeRadioGroupFn(v) {
|
|
|
|
- // console.log(v);
|
|
|
|
- this.currentPage = 1
|
|
|
|
-
|
|
|
|
- this.getDataList()
|
|
|
|
- },
|
|
|
|
- //撤回
|
|
|
|
- withdrawFn() {},
|
|
|
|
//刷新
|
|
//刷新
|
|
refreshFn() {
|
|
refreshFn() {
|
|
- this.getDataList()
|
|
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
},
|
|
},
|
|
//提审
|
|
//提审
|
|
async submitFn(id) {
|
|
async submitFn(id) {
|
|
await getTransferSubmit({ id })
|
|
await getTransferSubmit({ id })
|
|
this.$message.success('提审成功')
|
|
this.$message.success('提审成功')
|
|
- this.getDataList()
|
|
|
|
- },
|
|
|
|
- //清空
|
|
|
|
- clearFn() {
|
|
|
|
- this.$refs.searchForm.resetFields()
|
|
|
|
- },
|
|
|
|
- //搜索
|
|
|
|
- searchFn() {
|
|
|
|
- this.currentPage = 1
|
|
|
|
- this.getDataList()
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- //获取列表数据
|
|
|
|
- async getDataList() {
|
|
|
|
- let params = {
|
|
|
|
- pageNum: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- customerName: this.searchForm.customerName,
|
|
|
|
- examineStatus: this.category,
|
|
|
|
- id: this.searchForm.id,
|
|
|
|
- startTime: this.searchForm.startTime,
|
|
|
|
- walletName: this.searchForm.walletName
|
|
|
|
- }
|
|
|
|
- const res = await getChangeList(params)
|
|
|
|
- // console.log(res);
|
|
|
|
- res.data.records.forEach(item => {
|
|
|
|
- item.sums1 = []
|
|
|
|
- item.sums2 = ['amount', 'allowanceAmount']
|
|
|
|
- })
|
|
|
|
- this.dataList = res.data.records
|
|
|
|
- this.listTotal = res.data.total
|
|
|
|
|
|
+ this.refreshFn()
|
|
},
|
|
},
|
|
//详情
|
|
//详情
|
|
async detailFn(id) {
|
|
async detailFn(id) {
|
|
const res = await getChangeListDetail({ id })
|
|
const res = await getChangeListDetail({ id })
|
|
- console.log(res)
|
|
|
|
this.detailList = res.data
|
|
this.detailList = res.data
|
|
this.showPage = 2
|
|
this.showPage = 2
|
|
},
|
|
},
|
|
//修改
|
|
//修改
|
|
async editFn(id) {
|
|
async editFn(id) {
|
|
const res = await getChangeListDetail({ id })
|
|
const res = await getChangeListDetail({ id })
|
|
-
|
|
|
|
this.detailList = res.data
|
|
this.detailList = res.data
|
|
this.showPage = 4
|
|
this.showPage = 4
|
|
},
|
|
},
|
|
//审核
|
|
//审核
|
|
async examineFn(id) {
|
|
async examineFn(id) {
|
|
const res = await getChangeListDetail({ id })
|
|
const res = await getChangeListDetail({ id })
|
|
-
|
|
|
|
this.detailList = res.data
|
|
this.detailList = res.data
|
|
this.showPage = 3
|
|
this.showPage = 3
|
|
- },
|
|
|
|
- // 更改每页数量
|
|
|
|
- handleSizeChange(val) {
|
|
|
|
- this.pageSize = val
|
|
|
|
- this.currentPage = 1
|
|
|
|
- this.getDataList()
|
|
|
|
- },
|
|
|
|
- // 更改当前页
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
- this.currentPage = val
|
|
|
|
- this.getDataList()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
-.dateStyle {
|
|
|
|
- width: 100%;
|
|
|
|
-}
|
|
|
|
-</style>
|
|
|
|
|
|
+<style lang="scss" scoped></style>
|