master
xy 3 years ago
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>

@ -31,6 +31,9 @@
<Button type="primary" style="margin-left: 10px" @click="getBudgets"></Button> <Button type="primary" style="margin-left: 10px" @click="getBudgets"></Button>
<Button type="primary" style="margin-left: 10px" <Button type="primary" style="margin-left: 10px"
@click="()=>select={page:1,year:'', type:'', department:''}">重置</Button> @click="()=>select={page:1,year:'', type:'', department:''}">重置</Button>
<Button class="slot-btns-item" size="small" type="primary" @click="">
资金申请
</Button>
</div> </div>
</slot> </slot>
</lx-header> </lx-header>

@ -184,6 +184,23 @@
</div> </div>
</div> </div>
</template> </template>
<template #gov_plane_id v-if="detail.methods === 1">
<div class="xy-table-item">
<div class="xy-table-item-label">
政府采购项目
</div>
<div class="xy-table-item-content">
<div class="contract-add-plan" style="width: 300px;" @click="$refs['govPlane'].setSelected(detail.gov_plane_id),$refs['govPlane'].show()">
<template v-if="detail.gov_plane_id">
<Tag closable color="primary" @on-close="detail.gov_plane_id = ''">{{ detail.gov_plane_id ? (detail.gov_plane.name || $refs['govPlane'].selected.name) : '' }}</Tag>
</template>
<template v-else>
<div class="contract-add-plan-no-plan">请选择政府采购项目</div>
</template>
</div>
</div>
</div>
</template>
</xy-dialog> </xy-dialog>
@ -213,6 +230,8 @@
<Button type="primary" @click="isShowPlan = false">确定</Button> <Button type="primary" @click="isShowPlan = false">确定</Button>
</template> </template>
</xy-dialog> </xy-dialog>
<govPlane ref="govPlane" @selected="row => detail.gov_plane_id = row.id"></govPlane>
</div> </div>
</template> </template>
@ -232,7 +251,9 @@
import { import {
Message Message
} from 'element-ui' } from 'element-ui'
import govPlane from "@/views/contract/components/govPlane.vue";
export default { export default {
components: {govPlane},
props: { props: {
purchaseType: Array, purchaseType: Array,
moneyWay: Array, moneyWay: Array,
@ -567,7 +588,9 @@
new_money: item.money new_money: item.money
} }
} }
}) }),
gov_plane_id: res.gov_plane_id,
gov_plane: res.gov_plane
} }
this.plan = this.detail.plan this.plan = this.detail.plan
}, },

@ -132,6 +132,9 @@ export default {
hide() { hide() {
this.dialogVisible = false this.dialogVisible = false
}, },
setSelected (gov_plane_id) {
this.selected = this.data.find(i => i.id === gov_plane_id)
},
unique (arr) { unique (arr) {
const res= new Map() const res= new Map()

Loading…
Cancel
Save