master
parent
45c7a785ea
commit
4d93802cee
@ -1,171 +1,193 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="padding: 0 20px;">
|
<div style="padding: 0 20px;">
|
||||||
<lx-header icon="md-apps" style="margin-bottom: 10px; border: 0px; margin-top: 15px" text="付款计划">
|
<lx-header icon="md-apps" style="margin-bottom: 10px; border: 0px; margin-top: 15px" text="付款计划">
|
||||||
<div slot="content"></div>
|
<div slot="content"></div>
|
||||||
<slot>
|
<slot>
|
||||||
<div class="selects">
|
<div class="selects">
|
||||||
<div>
|
<div>
|
||||||
<span style="padding: 0 6px;word-break: keep-all;">
|
<span style="padding: 0 6px;word-break: keep-all;">
|
||||||
付款计划日期
|
付款计划日期
|
||||||
</span>
|
</span>
|
||||||
<DatePicker :value="[select.start,select.end]" placeholder="请选择日期" placement="bottom-start" style="width: 200px"
|
<DatePicker :value="[select.start,select.end]" placeholder="请选择日期" placement="bottom-start"
|
||||||
type="daterange" @on-change="datePick"></DatePicker>
|
style="width: 200px" type="daterange" @on-change="datePick"></DatePicker>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span style="padding: 0 6px;word-break: keep-all;">
|
<span style="padding: 0 6px;word-break: keep-all;">
|
||||||
关键字
|
关键字
|
||||||
</span>
|
</span>
|
||||||
<Input v-model="select.keyword" placeholder="请输入关键字" style="width: 180px"></Input>
|
<Input v-model="select.keyword" placeholder="请输入关键字" style="width: 180px"></Input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button style="margin-left: 10px" type="primary"
|
<Button style="margin-left: 10px" type="primary"
|
||||||
@click="select={showDate:'',start:'',end:'',pageIndex:1,keyword:''}">重置
|
@click="select={showDate:'',start:'',end:'',pageIndex:1,keyword:''}">重置
|
||||||
</Button>
|
</Button>
|
||||||
<Button style="margin-left: 10px" type="primary" @click="getSignPlan">查询</Button>
|
<Button style="margin-left: 10px" type="primary" @click="getSignPlan">查询</Button>
|
||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
</lx-header>
|
</lx-header>
|
||||||
|
|
||||||
|
|
||||||
<xy-table :list="list" :table-item="table" @delete="deleteContractSign"
|
<xy-table :list="list" :table-item="table" @delete="deleteContractSign"
|
||||||
@editor="(row)=>{$refs['detailContractSign'].planId = row.id;$refs['detailContractSign'].isShow = true}"></xy-table>
|
@editor="(row)=>{$refs['detailContractSign'].planId = row.id;$refs['detailContractSign'].isShow = true}">
|
||||||
|
<template v-slot:btns v-if="type==0">
|
||||||
<div style="display: flex;justify-content: flex-end;">
|
|
||||||
<Page :total="total" show-elevator/>
|
</template>
|
||||||
</div>
|
</xy-table>
|
||||||
|
|
||||||
<detailContractSign ref="detailContractSign" @editorSuccess="getSignPlan"></detailContractSign>
|
<div style="display: flex;justify-content: flex-end;">
|
||||||
</div>
|
<Page :total="total" @on-change="pageChange" show-elevator show-sizer @on-page-size-change="pageSizeChange" />
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<script>
|
<detailContractSign ref="detailContractSign" @editorSuccess="getSignPlan"></detailContractSign>
|
||||||
import {getContractSign, delContractSign} from "@/api/contractSign/contractSign"
|
</div>
|
||||||
import {parseTime} from "@/utils"
|
</template>
|
||||||
import {Message} from "element-ui";
|
|
||||||
|
<script>
|
||||||
import detailContractSign from "@/views/contract/components/detailContractSign";
|
import {
|
||||||
|
getContractSign,
|
||||||
export default {
|
delContractSign
|
||||||
components: {
|
} from "@/api/contractSign/contractSign"
|
||||||
detailContractSign
|
import {
|
||||||
},
|
parseTime
|
||||||
data() {
|
} from "@/utils"
|
||||||
return {
|
import {
|
||||||
select: {
|
Message
|
||||||
start: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
|
} from "element-ui";
|
||||||
end: `${new Date().getFullYear()}-${new Date().getMonth() + 2}-${new Date().getDate()}`,
|
|
||||||
pageIndex: 1,
|
import detailContractSign from "@/views/contract/components/detailContractSign";
|
||||||
keyword: ''
|
|
||||||
},
|
export default {
|
||||||
total: 0,
|
components: {
|
||||||
list: [],
|
detailContractSign
|
||||||
table: [
|
},
|
||||||
{
|
data() {
|
||||||
prop: 'contract.name',
|
return {
|
||||||
label: '项目名称',
|
select: {
|
||||||
width: 170,
|
start: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
|
||||||
align: 'left',
|
end: `${new Date().getFullYear()}-${new Date().getMonth() + 2}-${new Date().getDate()}`,
|
||||||
fixed: 'left'
|
pageIndex: 1,
|
||||||
},
|
keyword: '',
|
||||||
{
|
is_auth: 1,
|
||||||
prop: 'money',
|
},
|
||||||
label: '计划付款金额(元)',
|
total: 0,
|
||||||
align: 'right',
|
list: [],
|
||||||
width: 170,
|
table: [{
|
||||||
formatter: (v1, v2, value) => {
|
prop: 'contract.name',
|
||||||
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
|
label: '项目名称',
|
||||||
}
|
width: 170,
|
||||||
},
|
align: 'left',
|
||||||
{
|
fixed: 'left'
|
||||||
prop: 'date',
|
},
|
||||||
label: '计划付款日期',
|
{
|
||||||
width: 180
|
prop: 'money',
|
||||||
},
|
label: '计划付款金额(元)',
|
||||||
{
|
align: 'right',
|
||||||
prop: 'content',
|
width: 170,
|
||||||
label: '内容',
|
formatter: (v1, v2, value) => {
|
||||||
minWidth: 180,
|
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
|
||||||
align: 'left'
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'contract.created_at',
|
prop: 'date',
|
||||||
label: '合同签订日期',
|
label: '计划付款日期',
|
||||||
width: 180,
|
width: 180
|
||||||
formatter: (v1, v2, value) => {
|
},
|
||||||
return parseTime(new Date(value), '{y}-{m}-{d}')
|
{
|
||||||
}
|
prop: 'content',
|
||||||
},
|
label: '内容',
|
||||||
{
|
minWidth: 180,
|
||||||
prop: 'contract.supply',
|
align: 'left'
|
||||||
label: '受款单位',
|
},
|
||||||
width: 140
|
{
|
||||||
},
|
prop: 'contract.created_at',
|
||||||
{
|
label: '合同签订日期',
|
||||||
prop: 'admin.name',
|
width: 180,
|
||||||
label: '经办人',
|
formatter: (v1, v2, value) => {
|
||||||
width: 140
|
return parseTime(new Date(value), '{y}-{m}-{d}')
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
prop: 'department.name',
|
{
|
||||||
label: '经办科室',
|
prop: 'contract.supply',
|
||||||
width: 140
|
label: '受款单位',
|
||||||
},
|
width: 140
|
||||||
{
|
},
|
||||||
prop: 'created_at',
|
{
|
||||||
label: '创建信息',
|
prop: 'admin.name',
|
||||||
width: 160,
|
label: '经办人',
|
||||||
formatter: (v1, v2, value) => {
|
width: 140
|
||||||
return parseTime(new Date(value), '{y}-{m}-{d}')
|
},
|
||||||
}
|
{
|
||||||
}
|
prop: 'department.name',
|
||||||
],
|
label: '经办科室',
|
||||||
}
|
width: 140
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
async getSignPlan() {
|
prop: 'created_at',
|
||||||
const res = await getContractSign({
|
label: '创建信息',
|
||||||
page_size: 10,
|
width: 160,
|
||||||
page: this.select.pageIndex,
|
formatter: (v1, v2, value) => {
|
||||||
keyword: this.select.keyword,
|
return parseTime(new Date(value), '{y}-{m}-{d}')
|
||||||
start_date: this.select.start,
|
}
|
||||||
end_date: this.select.end,
|
}
|
||||||
is_auth:1
|
],
|
||||||
})
|
}
|
||||||
this.total = res.total
|
},
|
||||||
this.list = res.data
|
methods: {
|
||||||
},
|
pageSizeChange(e) {
|
||||||
deleteContractSign(row) {
|
this.select.pageSize = e;
|
||||||
delContractSign({id: row.id}).then(res => {
|
this.select.pageIndex = 1;
|
||||||
this.getSignPlan()
|
this.getSignPlan();
|
||||||
Message({
|
},
|
||||||
type: 'success',
|
async getSignPlan() {
|
||||||
message: "操作成功"
|
const res = await getContractSign({
|
||||||
})
|
page_size: this.select.pageSize,
|
||||||
})
|
page: this.select.pageIndex,
|
||||||
},
|
keyword: this.select.keyword,
|
||||||
datePick(e) {
|
start_date: this.select.start,
|
||||||
this.select.start = e[0]
|
end_date: this.select.end,
|
||||||
this.select.end = e[1]
|
is_auth: this.select.is_auth
|
||||||
},
|
})
|
||||||
pageChange(e) {
|
this.total = res.total
|
||||||
this.select.pageIndex = e
|
this.list = res.data
|
||||||
this.getSignPlan()
|
},
|
||||||
},
|
deleteContractSign(row) {
|
||||||
},
|
delContractSign({
|
||||||
mounted() {
|
id: row.id
|
||||||
this.getSignPlan()
|
}).then(res => {
|
||||||
}
|
this.getSignPlan()
|
||||||
}
|
Message({
|
||||||
</script>
|
type: 'success',
|
||||||
|
message: "操作成功"
|
||||||
<style lang="scss" scoped>
|
})
|
||||||
.selects {
|
})
|
||||||
display: flex;
|
},
|
||||||
flex-wrap: wrap;
|
datePick(e) {
|
||||||
|
this.select.start = e[0]
|
||||||
& > div {
|
this.select.end = e[1]
|
||||||
margin-bottom: 6px;
|
},
|
||||||
}
|
pageChange(e) {
|
||||||
}
|
this.select.pageIndex = e
|
||||||
|
this.getSignPlan()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getSignPlan()
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
let type = parseInt(this.$route.path.split("_")[1]);
|
||||||
|
this.type = this.select.is_auth = type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.selects {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
&>div {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,181 +1,223 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="padding: 0 20px;">
|
<div style="padding: 0 20px;">
|
||||||
<lx-header icon="md-apps" text="付款登记" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
<lx-header icon="md-apps" text="付款登记" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||||
<div slot="content"></div>
|
<div slot="content"></div>
|
||||||
<slot>
|
<slot>
|
||||||
<span style="padding: 0 6px;word-break: keep-all;">创建日期</span>
|
<span style="padding: 0 6px;word-break: keep-all;">创建日期</span>
|
||||||
<span>
|
<span>
|
||||||
<DatePicker :value="selectDate" placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px" @on-change="(e)=>selectDate = e"></DatePicker>
|
<DatePicker :value="selectDate" placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px"
|
||||||
</span>
|
@on-change="(e)=>selectDate = e"></DatePicker>
|
||||||
|
</span>
|
||||||
<span style="padding: 0 6px;word-break: keep-all;">关键字</span>
|
|
||||||
<span>
|
<span style="padding: 0 6px;word-break: keep-all;">关键字</span>
|
||||||
<Input v-model="keywords" placeholder="请输入关键字" style="width: 180px"></Input>
|
<span>
|
||||||
</span>
|
<Input v-model="keywords" placeholder="请输入关键字" style="width: 180px"></Input>
|
||||||
|
</span>
|
||||||
<Button type="primary" style="margin-left: 10px" ghost @click="contractId = '',pageIndex = 1,keywords = '',selectDate = ''">重置</Button>
|
<span style="padding: 0 6px;word-break: keep-all;">
|
||||||
<Button type="primary" style="margin-left: 10px" @click="getFundLogs">查询</Button>
|
状态
|
||||||
</slot>
|
</span>
|
||||||
</lx-header>
|
<Select v-model="status" clearable placeholder="请选择" style="width:100px;">
|
||||||
|
<Option v-for="item in [{label:'待审核',value:0},{label:'已审核',value:1}]" :key="item.value" :value="item.value">
|
||||||
<xy-table :list="list" :table-item="table">
|
{{ item.label }}
|
||||||
<template v-slot:btns>
|
</Option>
|
||||||
<el-table-column label="操作" fixed="right" width="200" header-align="center">
|
</Select>
|
||||||
<template slot-scope="scope">
|
<Button type="primary" style="margin-left: 10px" ghost
|
||||||
<template v-if="scope.row.status === 0">
|
@click="contractId = '',pageIndex = 1,keywords = '',selectDate = ''">重置</Button>
|
||||||
<Poptip
|
<Button type="primary" style="margin-left: 10px" @click="getFundLogs">查询</Button>
|
||||||
placement="bottom"
|
</slot>
|
||||||
confirm
|
</lx-header>
|
||||||
:transfer="true"
|
|
||||||
title="确认要删除吗"
|
<xy-table :list="list" :table-item="table">
|
||||||
@on-ok="deleteFundLog(scope.row)">
|
<template v-slot:btns>
|
||||||
<Button size="small" type="error" style="margin-left: 10px;margin-bottom: 4px" ghost>删除</Button>
|
<el-table-column label="操作" fixed="right" width="200" header-align="center">
|
||||||
</Poptip>
|
<template slot-scope="scope">
|
||||||
|
<template v-if="scope.row.status === 0&&type==1">
|
||||||
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px" @click="$refs['detailPaymentRegistration'].getFundLog(scope.row.id),$refs['detailPaymentRegistration'].isShow = true">编辑</Button>
|
<Poptip placement="bottom" confirm :transfer="true" title="确认要删除吗" @on-ok="deleteFundLog(scope.row)">
|
||||||
</template>
|
<Button size="small" type="error" style="margin-left: 10px;margin-bottom: 4px" ghost>删除</Button>
|
||||||
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px" @click="$refs['printRegistration'].getDetailFundLog(scope.row.id),$refs['printRegistration'].isShow = true">打印</Button>
|
</Poptip>
|
||||||
</template>
|
|
||||||
</el-table-column>
|
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px"
|
||||||
</template>
|
@click="$refs['detailPaymentRegistration'].getFundLog(scope.row.id),$refs['detailPaymentRegistration'].isShow = true">编辑</Button>
|
||||||
</xy-table>
|
</template>
|
||||||
|
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px"
|
||||||
<div style="display: flex;justify-content: flex-end;">
|
@click="$refs['printRegistration'].getDetailFundLog(scope.row.id),$refs['printRegistration'].isShow = true">打印</Button>
|
||||||
<Page :total="total" show-elevator @on-change="pageChange"/>
|
</template>
|
||||||
</div>
|
</el-table-column>
|
||||||
|
</template>
|
||||||
<printRegistration ref="printRegistration"></printRegistration>
|
</xy-table>
|
||||||
|
|
||||||
<detailPaymentRegistration ref="detailPaymentRegistration" @success="getFundLogs"></detailPaymentRegistration>
|
<div style="display: flex;justify-content: flex-end;">
|
||||||
</div>
|
<Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<script>
|
<printRegistration ref="printRegistration"></printRegistration>
|
||||||
import {getFundLog,delFundLog} from "@/api/paymentRegistration/fundLog"
|
|
||||||
import {parseTime} from "@/utils"
|
<detailPaymentRegistration ref="detailPaymentRegistration" @success="getFundLogs"></detailPaymentRegistration>
|
||||||
import {Message} from "element-ui";
|
</div>
|
||||||
|
</template>
|
||||||
import printRegistration from "./components/printRegistration";
|
|
||||||
import detailPaymentRegistration from "./components/detailPaymentRegistration";
|
<script>
|
||||||
export default {
|
import {
|
||||||
components:{
|
getFundLog,
|
||||||
printRegistration,
|
delFundLog
|
||||||
detailPaymentRegistration
|
} from "@/api/paymentRegistration/fundLog"
|
||||||
},
|
import {
|
||||||
data() {
|
parseTime
|
||||||
return {
|
} from "@/utils"
|
||||||
selectDate:'',
|
import {
|
||||||
keywords:'',
|
Message
|
||||||
list:[],
|
} from "element-ui";
|
||||||
contractId:'',
|
|
||||||
total:0,
|
import printRegistration from "./components/printRegistration";
|
||||||
pageIndex:1,
|
import detailPaymentRegistration from "./components/detailPaymentRegistration";
|
||||||
table:[
|
export default {
|
||||||
{
|
components: {
|
||||||
label:"项目名称",
|
printRegistration,
|
||||||
minWidth: 150,
|
detailPaymentRegistration
|
||||||
prop:'contract.name',
|
},
|
||||||
align:'left',
|
data() {
|
||||||
fixed:'left'
|
return {
|
||||||
},
|
selectDate: '',
|
||||||
{
|
keywords: '',
|
||||||
label:"付款申请金额(元)",
|
list: [],
|
||||||
prop:"apply_money",
|
contractId: '',
|
||||||
align:'right',
|
total: 0,
|
||||||
width: 180,
|
pageIndex: 1,
|
||||||
formatter:(v1,v2,value)=>{
|
pageSize: 10,
|
||||||
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
|
is_auth: 1,
|
||||||
}
|
status: "",
|
||||||
},
|
table: [{
|
||||||
{
|
label: "项目名称",
|
||||||
label:'实际支付金额(元)',
|
minWidth: 250,
|
||||||
prop:"act_money",
|
prop: 'contract.name',
|
||||||
align:'right',
|
align: 'left',
|
||||||
width: 180,
|
fixed: 'left'
|
||||||
formatter:(v1,v2,value)=>{
|
},
|
||||||
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
|
{
|
||||||
}
|
label: "付款申请金额(元)",
|
||||||
},
|
prop: "apply_money",
|
||||||
{
|
align: 'right',
|
||||||
label:"款项类型",
|
width: 180,
|
||||||
prop:"type",
|
formatter: (v1, v2, value) => {
|
||||||
width: 120
|
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
prop:'status',
|
{
|
||||||
label:'状态',
|
label: '实际支付金额(元)',
|
||||||
width: 120,
|
prop: "act_money",
|
||||||
formatter:(cell,data,value)=>{
|
align: 'right',
|
||||||
if(value === 0) return '待审核'
|
width: 180,
|
||||||
else return '已审核'
|
formatter: (v1, v2, value) => {
|
||||||
}
|
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
label:"是否为最后一笔",
|
{
|
||||||
prop:"is_end",
|
label: "款项类型",
|
||||||
width: 145,
|
prop: "type",
|
||||||
formatter:(cell,data,value)=>{
|
width: 120
|
||||||
return value == 1 ? "是" : "否"
|
},
|
||||||
}
|
{
|
||||||
},
|
prop: 'status',
|
||||||
{
|
label: '状态',
|
||||||
label:"经办人",
|
width: 120,
|
||||||
minWidth: 160,
|
formatter: (cell, data, value) => {
|
||||||
prop:'admin.name',
|
if (value === 0) return '待审核'
|
||||||
align:'center'
|
else return '已审核'
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
label:"业务科室",
|
{
|
||||||
minWidth: 160,
|
label: "次数",
|
||||||
prop:'department.name',
|
prop: "pay_count",
|
||||||
align:'center'
|
width: 95,
|
||||||
},
|
formatter: (cell, data, value) => {
|
||||||
{
|
return value + 1;
|
||||||
label:"备注",
|
}
|
||||||
minWidth: 160,
|
},
|
||||||
prop:'remark',
|
{
|
||||||
align:'left'
|
label: "是否为最后一笔",
|
||||||
},
|
prop: "is_end",
|
||||||
{
|
width: 145,
|
||||||
label:"创建信息",
|
formatter: (cell, data, value) => {
|
||||||
prop:"created_at",
|
return value == 1 ? "是" : "否"
|
||||||
width:160,
|
}
|
||||||
formatter:(cell,data,value)=>{
|
},
|
||||||
return parseTime(new Date(value),'{y}-{m}-{d}')
|
{
|
||||||
}
|
label: "经办人",
|
||||||
}
|
minWidth: 160,
|
||||||
]
|
prop: 'admin.name',
|
||||||
}
|
align: 'center'
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
pageChange(e){
|
label: "业务科室",
|
||||||
this.pageIndex = e
|
minWidth: 160,
|
||||||
this.getFundLogs()
|
prop: 'department.name',
|
||||||
},
|
align: 'center'
|
||||||
|
},
|
||||||
async getFundLogs(){
|
{
|
||||||
const res = await getFundLog({page_size:10,page:this.pageIndex,contract_id:this.contractId,keyword:this.keywords,date:this.selectDate})
|
label: "备注",
|
||||||
this.list = res.data
|
minWidth: 460,
|
||||||
this.total = res.total
|
prop: 'remark',
|
||||||
},
|
align: 'left'
|
||||||
|
},
|
||||||
deleteFundLog(row){
|
{
|
||||||
delFundLog({id:row.id}).then(res=>{
|
label: "创建信息",
|
||||||
Message({
|
prop: "created_at",
|
||||||
type:'success',
|
width: 160,
|
||||||
message:'操作成功'
|
formatter: (cell, data, value) => {
|
||||||
})
|
return parseTime(new Date(value), '{y}-{m}-{d}')
|
||||||
this.getFundLogs()
|
}
|
||||||
})
|
}
|
||||||
}
|
]
|
||||||
},
|
}
|
||||||
mounted() {
|
},
|
||||||
this.contractId = this.$route.query.contractId
|
methods: {
|
||||||
|
pageSizeChange(e) {
|
||||||
this.getFundLogs()
|
this.pageSize = e;
|
||||||
},
|
this.pageIndex = 1;
|
||||||
}
|
this.getFundLogs()
|
||||||
</script>
|
},
|
||||||
|
pageChange(e) {
|
||||||
<style scoped lang="scss">
|
this.pageIndex = e
|
||||||
|
this.getFundLogs()
|
||||||
|
},
|
||||||
|
|
||||||
|
async getFundLogs() {
|
||||||
|
const res = await getFundLog({
|
||||||
|
page_size: this.pageSize,
|
||||||
|
page: this.pageIndex,
|
||||||
|
contract_id: this.contractId,
|
||||||
|
keyword: this.keywords,
|
||||||
|
date: this.selectDate,
|
||||||
|
is_auth: this.selectDate,
|
||||||
|
status: this.status,
|
||||||
|
})
|
||||||
|
this.list = res.data
|
||||||
|
this.total = res.total
|
||||||
|
},
|
||||||
|
|
||||||
|
deleteFundLog(row) {
|
||||||
|
delFundLog({
|
||||||
|
id: row.id
|
||||||
|
}).then(res => {
|
||||||
|
Message({
|
||||||
|
type: 'success',
|
||||||
|
message: '操作成功'
|
||||||
|
})
|
||||||
|
this.getFundLogs()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.contractId = this.$route.query.contractId
|
||||||
|
|
||||||
|
this.getFundLogs()
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
let type = parseInt(this.$route.path.split("_")[1]);
|
||||||
|
this.type = this.is_auth = type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in new issue