parent
0f2b5c897e
commit
97134ed096
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,163 @@
|
||||
<template>
|
||||
<div style="padding: 0 20px">
|
||||
<lx-header
|
||||
icon="md-apps"
|
||||
text="资金申请记录"
|
||||
style="margin-bottom: 10px; border: 0px; margin-top: 15px"
|
||||
>
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<span style="padding: 0 6px; word-break: keep-all">关键字</span>
|
||||
<span>
|
||||
<Input
|
||||
v-model="select.keyword"
|
||||
placeholder="请输入关键字"
|
||||
style="width: 180px"
|
||||
></Input>
|
||||
</span>
|
||||
<Button type="primary" style="margin-left: 10px" ghost @click=""
|
||||
>重置</Button
|
||||
>
|
||||
<Button type="primary" style="margin-left: 10px" @click="getList"
|
||||
>查询</Button
|
||||
>
|
||||
</slot>
|
||||
</lx-header>
|
||||
|
||||
<xy-table
|
||||
:list="list"
|
||||
:table-item="table"
|
||||
>
|
||||
<template #btns> </template>
|
||||
</xy-table>
|
||||
|
||||
<div style="display: flex; justify-content: flex-end; margin-top: 10px">
|
||||
<Page
|
||||
:total="total"
|
||||
show-elevator
|
||||
@on-change="
|
||||
(e) => {
|
||||
select.page = e;
|
||||
getList();
|
||||
}
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { index, destroy } from "@/api/govPlane";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
select: {
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
keyword: "",
|
||||
},
|
||||
total: 0,
|
||||
list: [],
|
||||
table: [
|
||||
{
|
||||
prop: "department.name",
|
||||
label: "责任科室",
|
||||
width: 160,
|
||||
},
|
||||
{
|
||||
prop: "name",
|
||||
label: "项目名称",
|
||||
width: 180,
|
||||
},
|
||||
{
|
||||
prop: "content",
|
||||
label: "项目内容",
|
||||
minWidth: 220,
|
||||
align: "left",
|
||||
},
|
||||
{
|
||||
prop: "plan_money",
|
||||
label: "采购预算",
|
||||
width: 160,
|
||||
align: "right",
|
||||
formatter: (cell, data, value) => {
|
||||
return `¥ ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
},
|
||||
},
|
||||
{
|
||||
prop: "public_plane_date",
|
||||
label: "采购意向公开计划时间",
|
||||
width: 190,
|
||||
formatter: (cell, data, value) => {
|
||||
return this.$moment(new Date(value)).format("YYYY年MM月DD");
|
||||
},
|
||||
},
|
||||
{
|
||||
prop: "public_act_date",
|
||||
label: "采购意向公开实际时间",
|
||||
width: 190,
|
||||
formatter: (cell, data, value) => {
|
||||
return this.$moment(new Date(value)).format("YYYY年MM月DD");
|
||||
},
|
||||
},
|
||||
{
|
||||
prop: "invite_plane_date",
|
||||
label: "招标文件挂网计划时间",
|
||||
width: 190,
|
||||
formatter: (cell, data, value) => {
|
||||
return this.$moment(new Date(value)).format("YYYY年MM月DD");
|
||||
},
|
||||
},
|
||||
{
|
||||
prop: "invite_act_date",
|
||||
label: "招标文件挂网实际时间",
|
||||
width: 190,
|
||||
formatter: (cell, data, value) => {
|
||||
return this.$moment(new Date(value)).format("YYYY年MM月DD");
|
||||
},
|
||||
},
|
||||
{
|
||||
prop: "open_plane_date",
|
||||
label: "项目开标计划时间",
|
||||
width: 180,
|
||||
formatter: (cell, data, value) => {
|
||||
return this.$moment(new Date(value)).format("YYYY年MM月DD");
|
||||
},
|
||||
},
|
||||
{
|
||||
prop: "open_act_date",
|
||||
label: "项目开标实际时间",
|
||||
width: 180,
|
||||
formatter: (cell, data, value) => {
|
||||
return this.$moment(new Date(value)).format("YYYY年MM月DD");
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const res = await index(this.select);
|
||||
this.total = res.total;
|
||||
this.list = res.data;
|
||||
},
|
||||
|
||||
destroy (row) {
|
||||
destroy({ id: row.id }).then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '删除成功'
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
Loading…
Reference in new issue