master
xy 3 years ago
parent b777572112
commit cdd8565ad8

@ -72,9 +72,20 @@
</template> </template>
</xy-table> </xy-table>
<!-- <div style="display: flex;justify-content: flex-end;">--> <div style="display: flex;justify-content: flex-end;">
<!-- <Page :total="total" @on-change="" show-elevator show-sizer @on-page-size-change="" />--> <Page :total="total"
<!-- </div>--> @on-change="e => {
select.page = e;
getList()
}"
show-elevator
show-sizer
@on-page-size-change="e => {
select.page_size = e;
select.page = 1;
getList()
}" />
</div>
<addEvaluate ref="addEvaluate" @refresh="getList"></addEvaluate> <addEvaluate ref="addEvaluate" @refresh="getList"></addEvaluate>
<addPlanEvaluate ref="addPlanEvaluate"></addPlanEvaluate> <addPlanEvaluate ref="addPlanEvaluate"></addPlanEvaluate>
</div> </div>

@ -1,17 +1,287 @@
<template> <template>
<div> <div style="padding: 0 20px">
<lx-header
icon="md-apps"
style="margin-bottom: 10px; border: 0px; margin-top: 15px"
text="绩效自评自审"
>
<div slot="content"></div>
<slot>
<div class="selects">
<div>
<span style="padding: 0 6px; word-break: keep-all"> 关键字 </span>
<Input
v-model="select.keyword"
placeholder="请输入关键字"
style="width: 180px"
></Input>
</div>
<Button style="margin-left: 10px" type="primary" @click=""
>重置
</Button>
<Button
style="margin-left: 10px"
type="primary"
@click="(select.page = 1), getList()"
>查询</Button
>
</div>
</slot>
</lx-header>
<xy-table :list="list" :table-item="table" @delete="destroy" @editor="edit">
<template v-slot:btns>
<el-table-column
label="操作"
header-align="center"
fixed="right"
width="180"
>
<template v-slot:default="scope">
<Button
size="small"
type="primary"
class="slot-btns-item"
@click="
() => {
$refs['addPlanEvaluate'].type = 1;
$refs['addPlanEvaluate'].setPlanId(scope.row.id);
$refs['addPlanEvaluate'].show();
}
"
>
年中目标
</Button>
<Button
size="small"
type="primary"
class="slot-btns-item"
@click="
() => {
$refs['addPlanEvaluate'].type = 2;
$refs['addPlanEvaluate'].setPlanId(scope.row.id);
$refs['addPlanEvaluate'].show();
}
"
>
年末目标
</Button>
<el-popover placement="left" width="200" trigger="click">
<div style="margin-bottom: 15px;">确认年中自评确认?</div>
<div style="margin-top:15px; display: flex;justify-content: flex-end;">
<Button @click="" type="primary" ghost size="small">确认</Button>
</div>
<Button
slot="reference"
size="small"
type="primary"
class="slot-btns-item"
style="margin-right: 5px;"
@click="
() => {
}
"
>
年中确认
</Button>
</el-popover>
<el-popover placement="left" width="200" trigger="click">
<div style="margin-bottom: 15px;">确认年末自评确认?</div>
<div style="margin-top:15px; display: flex;justify-content: flex-end;">
<Button @click="" type="primary" ghost size="small">确认</Button>
</div>
<Button
style="margin-right: 5px;"
slot="reference"
size="small"
type="primary"
class="slot-btns-item"
@click="
() => {
}
"
>
年末确认
</Button>
</el-popover>
</template>
</el-table-column>
</template>
</xy-table>
<div style="display: flex;justify-content: flex-end;">
<Page :total="total"
@on-change="e => {
select.page = e;
getList()
}"
show-elevator
show-sizer
@on-page-size-change="e => {
select.page_size = e;
select.page = 1;
getList()
}" />
</div>
<addEvaluate ref="addEvaluate" @refresh="getList"></addEvaluate>
<addPlanEvaluate ref="addPlanEvaluate"></addPlanEvaluate>
</div> </div>
</template> </template>
<script> <script>
import { getBudget, editorBudget } from "@/api/budget/budget";
import { index, destroy } from "@/api/achievements/evaluate";
import { moneyFormatter, parseTime } from "@/utils";
import { getparameter } from "@/api/system/dictionary";
import addEvaluate from '@/views/achievements/components/addEvaluate.vue'
import addPlanEvaluate from '@/views/achievements/components/addPlanEvaluate.vue'
export default { export default {
components: {
addPlanEvaluate, addEvaluate
},
data() { data() {
return {} return {
budgetTypes: [],
select: {
keyword: "",
page: 1,
page_size: 10,
},
total: 0,
table: [
{
label: "项目名称",
prop: "name",
width: 200,
sortable: false,
fixed: "left",
},
{
label: "预算类型",
prop: "type",
width: 115,
formatter: (cell, data, value) => {
let res = this.types.filter((item) => {
return item.id === value;
});
return res[0]?.value || "未知";
},
},
{
label: '年中自评',
prop: 'year_midst',
formatter: (cell, data, value) => {
return value ? "" : "待完成"
}
},
{
label: '年末自评',
prop: 'year_end',
formatter: (cell, data, value) => {
return value ? "" : "待完成"
}
},
{
label: "所属年份",
prop: "year",
width: 105,
},
{
label: "相关科室",
prop: "plan_department.name",
width: 110,
},
{
label: "年初预算金额(元)",
prop: "money",
align: "right",
width: 180,
formatter: (cell, data, value) => {
if (value == 0) return "--";
else return moneyFormatter(value);
},
},
{
label: "调整后预算金额(元)",
prop: "update_money",
align: "right",
width: 200,
formatter: (cell, data, value) => {
return moneyFormatter(value);
},
},
{
label: "创建信息",
prop: "created_at",
width: 160,
formatter: (cell, data, value) => {
return this.$moment(value).format("YYYY-MM-DD");
},
},
{
label: "描述",
minWidth: 300,
prop: "content",
align: "left",
sortable: false,
},
],
list: [],
};
}, },
methods: {}, methods: {
computed: {} async getBudgetTypes() {
} const res = await getparameter({
number: "money_way",
});
this.types = res.detail;
},
async getList() {
const res = await getBudget(this.select);
this.list = res.list.data;
},
edit(row, type) {
this.$refs["addEvaluate"].id = row.id;
this.$refs["addEvaluate"].setForm("type", type);
this.$refs["addEvaluate"].type = "add";
this.$refs["addEvaluate"].show();
},
destroy(row) {
destroy({
id: row.id,
}).then((res) => {
this.$message({
type: "success",
message: "删除成功",
});
this.getList();
});
},
},
computed: {},
created() {
this.getBudgetTypes();
this.getList();
},
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.selects {
display: flex;
align-items: center;
flex-wrap: wrap;
}
Button + Button {
margin-left: 4px;
}
</style> </style>

@ -1,58 +1,118 @@
<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" <DatePicker
@on-change="(e)=>selectDate = e"></DatePicker> :value="selectDate"
placeholder="请选择日期"
type="date"
placement="bottom-start"
style="width: 180px"
@on-change="(e) => (selectDate = e)"
></DatePicker>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;">关键字</span> <span style="padding: 0 6px; word-break: keep-all">关键字</span>
<span> <span>
<Input v-model="keyword" placeholder="请输入关键字" style="width: 180px"></Input> <Input
v-model="keyword"
placeholder="请输入关键字"
style="width: 180px"
></Input>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;">预算计划</span> <span style="padding: 0 6px; word-break: keep-all">预算计划</span>
<span> <span>
<Input v-model="select.plan_name" clearable placeholder="请选择预算计划" @on-focus="showPlanForSearch" <Input
style="width: 200px" @on-clear="clearSelectForSearch" /> v-model="select.plan_name"
clearable
placeholder="请选择预算计划"
@on-focus="showPlanForSearch"
style="width: 200px"
@on-clear="clearSelectForSearch"
/>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;"> <span style="padding: 0 6px; word-break: keep-all"> 状态 </span>
状态 <Select
</span> v-model="status"
<Select v-model="status" clearable placeholder="请选择" style="width:100px;"> clearable
<Option v-for="item in [{label:'待审核',value:0},{label:'已审核',value:1}]" :key="item.value" :value="item.value"> placeholder="请选择"
style="width: 100px"
>
<Option
v-for="item in [
{ label: '待审核', value: 0 },
{ label: '已审核', value: 1 },
]"
:key="item.value"
:value="item.value"
>
{{ item.label }} {{ item.label }}
</Option> </Option>
</Select> </Select>
<Button type="primary" style="margin-left: 10px" ghost>重置</Button> <Button type="primary" style="margin-left: 10px" ghost>重置</Button>
<Button type="primary" style="margin-left: 10px" @click="doSearch()"></Button> <Button type="primary" style="margin-left: 10px" @click="doSearch()"
<Button type="primary" @click="toExport()" style="margin-left: 10px">导出</Button> >查询</Button
>
<Button type="primary" @click="toExport()" style="margin-left: 10px"
>导出</Button
>
</slot> </slot>
</lx-header> </lx-header>
<!-- 搜索使用 预算计划 --> <!-- 搜索使用 预算计划 -->
<xy-dialog :is-show.sync="isShowPlanForSearch" title="预算计划" :width="720" @on-ok="planSelectForSearch"> <xy-dialog
:is-show.sync="isShowPlanForSearch"
title="预算计划"
:width="720"
@on-ok="planSelectForSearch"
>
<template v-slot:normalContent> <template v-slot:normalContent>
<Input v-model="planSearch.name" search enter-button=" " placeholder="搜索预算计划.." @on-search="searchBudgets" /> <Input
<div style="margin: 10px 0;display: flex;justify-content: space-between; v-model="planSearch.name"
align-items: center;"> search
<div>已选择<span style="margin-right:10px">{{select.plan_name}}</span> </div> enter-button="搜 索"
<el-link type="success" @click="clearSelectForSearch"></el-link> placeholder="搜索预算计划.."
@on-search="searchBudgets"
/>
<div
style="
margin: 10px 0;
display: flex;
justify-content: space-between;
align-items: center;
"
>
<div>
已选择<span style="margin-right: 10px">{{
select.plan_name
}}</span>
</div>
<el-link type="success" @click="clearSelectForSearch"
>清空选择</el-link
>
</div> </div>
<xy-table :list="plans" @rowClick="selectPlanForSearch" :show-index="false" :table-item="planTableSearch" <xy-table
:height="310" style="margin-top: 10px;" ref="singlePlanTable"> :list="plans"
<template v-slot:btns> @rowClick="selectPlanForSearch"
</template> :show-index="false"
:table-item="planTableSearch"
:height="310"
style="margin-top: 10px"
ref="singlePlanTable"
>
<template v-slot:btns> </template>
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex; justify-content: flex-end">
<Page :total="planTotal" show-elevator @on-change="planPageChange" /> <Page :total="planTotal" show-elevator @on-change="planPageChange" />
</div> </div>
<el-tag type="warning">点击行进行选择</el-tag> <el-tag type="warning">点击行进行选择</el-tag>
@ -65,387 +125,407 @@
<xy-table :list="list" :table-item="table"> <xy-table :list="list" :table-item="table">
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="操作" fixed="right" width="160" header-align="center"> <el-table-column
label="操作"
fixed="right"
width="160"
header-align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.status === 0"> <template v-if="scope.row.status === 0">
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px" <Button
@click="$refs['examineRegistration'].isShow = true,$refs['examineRegistration'].getRegistration(scope.row.id)">审核确认</Button> size="small"
type="primary"
style="margin-left: 10px; margin-bottom: 4px"
@click="
($refs['examineRegistration'].isShow = true),
$refs['examineRegistration'].getRegistration(scope.row.id)
"
>审核确认</Button
>
</template> </template>
<template v-else> <template v-else>
<Button size="small" type="error" ghost style="margin-left: 10px;margin-bottom: 4px" <Button
@click="cancelExamine(scope.row)">审核撤销</Button> size="small"
type="error"
ghost
style="margin-left: 10px; margin-bottom: 4px"
@click="cancelExamine(scope.row)"
>审核撤销</Button
>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex; justify-content: flex-end">
<Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" /> <Page
:total="total"
show-elevator
@on-change="pageChange"
show-sizer
@on-page-size-change="pageSizeChange"
/>
</div> </div>
<examineRegistration ref="examineRegistration" @refresh="getFundLogs"></examineRegistration> <examineRegistration
ref="examineRegistration"
@refresh="getFundLogs"
></examineRegistration>
</div> </div>
</template> </template>
<script> <script>
import { import {
getFundLog, getFundLog,
delFundLog, delFundLog,
editorFundLog editorFundLog,
} from "@/api/paymentRegistration/fundLog" } from "@/api/paymentRegistration/fundLog";
import { import { getToken } from "@/utils/auth";
getToken import { parseTime } from "@/utils";
} from '@/utils/auth' import { Message } from "element-ui";
import { import { getBudget } from "@/api/budget/budget";
parseTime import { getparameter } from "@/api/system/dictionary";
} from "@/utils" import examineRegistration from "./components/examineRegistration";
import { export default {
Message components: {
} from "element-ui"; examineRegistration,
import { },
getBudget data() {
} from "@/api/budget/budget" return {
import { moneyWay: [],
getparameter plan: [],
} from "@/api/system/dictionary" planTableSearch: [
import examineRegistration from "./components/examineRegistration"; {
export default { label: "分类",
components: { prop: "type",
examineRegistration formatter: (cell, data, value) => {
}, let res = this.moneyWay.filter((item) => {
data() { return item.id === value;
return { });
moneyWay: [], return res[0]?.value || "未知";
plan: [],
planTableSearch: [{
label: "分类",
prop: 'type',
formatter: (cell, data, value) => {
let res = this.moneyWay.filter(item => {
return item.id === value
})
return res[0]?.value || '未知'
},
width: 120
}, },
{ width: 120,
label: "年份",
prop: 'year',
align: 'center',
width: 90
},
{
label: "名称",
prop: 'name',
width: 200,
align: 'left'
},
{
label: "计划金额",
prop: 'money',
align: 'right',
width: 160
}
],
plans: [], //
planSearch: {
name: "",
plan_department_id: ""
}, },
planTotal: 0, {
plansPageIndex: 1, label: "年份",
isShowPlanForSearch: false, prop: "year",
status: 0, align: "center",
keyword: '', width: 90,
select: {
plan_id: "",
plan_name: ""
}, },
selectDate: '',
list: [], {
total: 0, label: "名称",
pageIndex: 1, prop: "name",
pageSize: 10, width: 200,
table: [{ align: "left",
label: "项目名称", },
minWidth: 300, {
prop: 'contract.name', label: "计划金额",
fixed: 'left', prop: "money",
align: 'left' align: "right",
}, width: 160,
{ },
label: "付款申请金额(元)", ],
prop: "apply_money", plans: [], //
align: 'right', planSearch: {
width: 170, name: "",
formatter: (v1, v2, value) => { plan_department_id: "",
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') },
} planTotal: 0,
plansPageIndex: 1,
isShowPlanForSearch: false,
status: 0,
keyword: "",
select: {
plan_id: "",
plan_name: "",
},
selectDate: "",
list: [],
total: 0,
pageIndex: 1,
pageSize: 10,
table: [
{
label: "项目名称",
minWidth: 300,
prop: "contract.name",
fixed: "left",
align: "left",
},
{
label: "付款申请金额(元)",
prop: "apply_money",
align: "right",
width: 170,
formatter: (v1, v2, value) => {
return Number(value)
.toFixed(2)
.replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
}, },
{ },
label: '实际付款金额(元)', {
prop: "act_money", label: "实际付款金额(元)",
align: 'right', prop: "act_money",
width: 170, align: "right",
formatter: (v1, v2, value) => { width: 170,
return Number(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') formatter: (v1, v2, value) => {
} return Number(value)
.toFixed(2)
.replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
}, },
{ },
label: "预算计划", {
width: 320, label: "预算计划",
align: "left", width: 320,
customFn: (row) => { align: "left",
{ customFn: (row) => {
if (row.act_plan_link.length > 0) {
return row.act_plan_link.map(item => {
return ( < div > [{
item.plan.year
}] - {
item.plan.name
} < br / > [使用金额] {
item.use_money
}
< /div>)
})
}
}
}
},
{
label: "款项类型",
prop: "type",
width: 120
},
{
prop: 'status',
label: '状态',
width: 100,
formatter: (cell, data, value) => {
if (value === 0) return '待审核'
else return '已审核'
}
},
{
label: "次数",
prop: "pay_count",
width: 95,
formatter: (cell, data, value) => {
return value + 1;
}
},
{
label: "最后一笔",
prop: "is_end",
width: 125,
formatter: (cell, data, value) => {
return value == 1 ? "是" : "否"
}
},
{
label: "经办人",
minWidth: 120,
prop: 'admin.name',
align: 'center'
},
{
label: "业务科室",
minWidth: 140,
prop: 'department.name',
align: 'center'
},
{
label: "备注",
minWidth: 360,
prop: 'remark',
align: 'left'
},
{ {
label: "创建信息", if (row.act_plan_link.length > 0) {
prop: "created_at", return row.act_plan_link.map((item) => {
width: 160, return (
formatter: (cell, data, value) => { <div>
return parseTime(new Date(value), '{y}-{m}-{d}') {" "}
[{item.plan.year}] - {item.plan.name} <br /> [使用金额]{" "}
{item.use_money}{" "}
</div>
);
});
} }
} }
]
}
},
methods: {
planPageChange(e) {
this.plansPageIndex = e
this.getBudgets()
}, },
// },
async getMoneyWay() { {
this.moneyWay = (await getparameter({ label: "款项类型",
number: 'money_way' prop: "type",
})).detail width: 120,
},
{
prop: "status",
label: "状态",
width: 100,
formatter: (cell, data, value) => {
if (value === 0) return "待审核";
else return "已审核";
}, },
clearSelectForSearch() { },
this.select.plan_id = "";
this.select.plan_name = "请选择预算计划";
{
label: "次数",
prop: "pay_count",
width: 95,
formatter: (cell, data, value) => {
return value + 1;
}, },
// },
searchBudgets() { {
this.plansPageIndex = 1; label: "最后一笔",
this.getBudgets(); prop: "is_end",
}, width: 125,
doSearch() { formatter: (cell, data, value) => {
this.pageIndex = 0; return value == 1 ? "是" : "否";
this.getFundLogs();
}, },
confirmPlanForSearch() { },
this.isShowPlanForSearch = false; {
this.getFundLogs(); label: "经办人",
minWidth: 120,
prop: "admin.name",
align: "center",
},
{
label: "业务科室",
minWidth: 140,
prop: "department.name",
align: "center",
},
{
label: "备注",
minWidth: 360,
prop: "remark",
align: "left",
},
{
label: "创建信息",
prop: "created_at",
width: 160,
formatter: (cell, data, value) => {
return parseTime(new Date(value), "{y}-{m}-{d}");
}, },
},
],
};
},
methods: {
planPageChange(e) {
this.plansPageIndex = e;
this.getBudgets();
},
//
async getMoneyWay() {
this.moneyWay = (
await getparameter({
number: "money_way",
})
).detail;
},
clearSelectForSearch() {
this.select.plan_id = "";
this.select.plan_name = "请选择预算计划";
},
//
searchBudgets() {
this.plansPageIndex = 1;
this.getBudgets();
},
doSearch() {
this.pageIndex = 0;
this.getFundLogs();
},
confirmPlanForSearch() {
this.isShowPlanForSearch = false;
this.getFundLogs();
},
// //
toggleSelection(plans, type) { toggleSelection(plans, type) {
if (plans) {
if (plans) { this.plans
this.plans.filter(plan => { .filter((plan) => {
if (plans.includes(plan.id)) { if (plans.includes(plan.id)) {
plan.useMoney = this.plan[plans.indexOf(plan.id)].value.use_money plan.useMoney = this.plan[plans.indexOf(plan.id)].value.use_money;
return true return true;
}
}).map(row => {
this.$refs.planTable.toggleRowSelection(row)
})
} else {
this.$refs.planTable.clearSelection()
} }
}, })
// .map((row) => {
async getBudgets() { this.$refs.planTable.toggleRowSelection(row);
await getBudget({ });
name: this.planSearch.name, } else {
page_size: 10, this.$refs.planTable.clearSelection();
page: this.plansPageIndex, }
plan_department_id: this.planSearch.plan_department_id, },
top_pid: 1 //
}).then(res => { async getBudgets() {
await getBudget({
name: this.planSearch.name,
this.plans = res.list.data page_size: 10,
page: this.plansPageIndex,
this.planTotal = res.list.total; plan_department_id: this.planSearch.plan_department_id,
top_pid: 1,
}).then((res) => {
this.plans = res.list.data;
this.toggleSelection(this.plan.map(item => { this.planTotal = res.list.total;
return item.value.plan_id
}), 1)
})
}, this.toggleSelection(
async showPlanForSearch() { this.plan.map((item) => {
this.isShowPlanForSearch = true return item.value.plan_id;
await this.getBudgets(); }),
}, 1
// );
selectPlanForSearch(sel) { });
console.log(sel) },
if (sel) { async showPlanForSearch() {
this.select.plan_id = sel.id; this.isShowPlanForSearch = true;
this.select.plan_name = "[" + sel.year + "]-" + sel.name; await this.getBudgets();
} else { },
this.select.plan_id = ""; //
this.select.plan_name = ""; selectPlanForSearch(sel) {
} console.log(sel);
}, if (sel) {
// this.select.plan_id = sel.id;
planSelectForSearch() { this.select.plan_name = "[" + sel.year + "]-" + sel.name;
if (this.select.plan_id == "") { } else {
Message({ this.select.plan_id = "";
type: 'warning', this.select.plan_name = "";
message: '选择计划不能为空' }
}) },
return //
} planSelectForSearch() {
this.isShowPlanForSearch = false if (this.select.plan_id == "") {
}, Message({
pageSizeChange(e) { type: "warning",
this.pageSize = e message: "选择计划不能为空",
this.pageIndex = 1 });
this.getFundLogs() return;
}, }
pageChange(e) { this.isShowPlanForSearch = false;
this.pageIndex = e },
this.getFundLogs() pageSizeChange(e) {
}, this.pageSize = e;
toExport() { this.pageIndex = 1;
this.is_export = 1; this.getFundLogs();
this.getFundLogs(true); },
}, pageChange(e) {
async getFundLogs(is_export) { this.pageIndex = e;
await getFundLog({ this.getFundLogs();
page_size: this.pageSize, },
page: this.pageIndex, toExport() {
keyword: this.keyword, this.is_export = 1;
date: this.selectDate, this.getFundLogs(true);
status: this.status, },
act_plan_link_id: this.select.plan_id async getFundLogs(is_export) {
}).then(res => { await getFundLog({
let tokens = getToken(); page_size: this.pageSize,
if (is_export) { page: this.pageIndex,
var url = "/api/admin/fund_log/index?token=" + tokens keyword: this.keyword,
if (this.selectDate) date: this.selectDate,
url += "&date=" + this.selectDate; status: this.status,
if (this.keyword) act_plan_link_id: this.select.plan_id,
url += "&keyword=" + this.keyword; }).then((res) => {
if (typeof(this.status) != "undefined") let tokens = getToken();
url += "&status=" + this.status; if (is_export) {
if (this.select.plan_id) var url = "/api/admin/fund_log/index?token=" + tokens;
url += "&act_plan_link_id=" + this.select.plan_id; if (this.selectDate) url += "&date=" + this.selectDate;
url += "&is_export=" + this.is_export; if (this.keyword) url += "&keyword=" + this.keyword;
url = location.host + url; if (typeof this.status != "undefined")
console.log(url) url += "&status=" + this.status;
window.open("http://" + url, '_blank') if (this.select.plan_id)
this.select.is_export = 0 url += "&act_plan_link_id=" + this.select.plan_id;
return; url += "&is_export=" + this.is_export;
} url = location.host + url;
this.list = res.data console.log(url);
this.total = res.total window.open("http://" + url, "_blank");
}) this.select.is_export = 0;
}, return;
}
this.list = res.data;
this.total = res.total;
});
},
deleteFundLog(row) { deleteFundLog(row) {
delFundLog({ delFundLog({
id: row.id id: row.id,
}).then(res => { }).then((res) => {
Message({ Message({
type: 'success', type: "success",
message: '操作成功' message: "操作成功",
}) });
this.getFundLogs() this.getFundLogs();
}) });
}, },
cancelExamine(row) { cancelExamine(row) {
editorFundLog({ editorFundLog({
id: row.id, id: row.id,
contract_id: row.contract_id, contract_id: row.contract_id,
status: 0 status: 0,
}).then(res => { }).then((res) => {
this.getFundLogs() this.getFundLogs();
Message({ Message({
type: "success", type: "success",
message: "操作成功" message: "操作成功",
}) });
}) });
} },
}, },
mounted() { mounted() {
this.getMoneyWay(); this.getMoneyWay();
this.getFundLogs() this.getFundLogs();
} },
} };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss"></style>
</style>

Loading…
Cancel
Save