|
|
|
|
@ -34,6 +34,10 @@
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
></Input>
|
|
|
|
|
</span>
|
|
|
|
|
<i-switch size="large" style="margin-left: 12px;" v-model="switch1" @on-change="pageChange" >
|
|
|
|
|
<span slot="open">分页</span>
|
|
|
|
|
<span slot="close">不分页</span>
|
|
|
|
|
</i-switch>
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@ -81,6 +85,7 @@
|
|
|
|
|
|
|
|
|
|
<div style="display: flex; justify-content: flex-end; margin-top: 10px">
|
|
|
|
|
<Page
|
|
|
|
|
:page-size="select.page_size"
|
|
|
|
|
:total="total"
|
|
|
|
|
show-elevator
|
|
|
|
|
@on-change="
|
|
|
|
|
@ -110,6 +115,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
switch1: true,//是否分页
|
|
|
|
|
type: -1, //0为业务员1财审
|
|
|
|
|
departments: [],
|
|
|
|
|
select: {
|
|
|
|
|
@ -121,11 +127,6 @@ export default {
|
|
|
|
|
total: 0,
|
|
|
|
|
list: [],
|
|
|
|
|
table: [
|
|
|
|
|
{
|
|
|
|
|
prop: "department.name",
|
|
|
|
|
label: "责任科室",
|
|
|
|
|
width: 160,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "项目名称",
|
|
|
|
|
@ -133,19 +134,17 @@ export default {
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "content",
|
|
|
|
|
label: "项目内容",
|
|
|
|
|
minWidth: 220,
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "plan_money",
|
|
|
|
|
label: "采购预算",
|
|
|
|
|
label: '未完成情况',
|
|
|
|
|
width: 160,
|
|
|
|
|
align: "right",
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return `¥ ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
|
|
|
},
|
|
|
|
|
customFn:row => {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
{ row.public_act_date ? '' : (<Tag color="warning">采购意向公开未完成</Tag>) }
|
|
|
|
|
{ row.invite_act_date ? '' : (<Tag color="warning">招标文件挂网未完成</Tag>) }
|
|
|
|
|
{ row.open_act_date ? '' : (<Tag color="warning">项目开标未完成</Tag>) }
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "public_plane_date",
|
|
|
|
|
@ -207,6 +206,26 @@ export default {
|
|
|
|
|
: "未完成";
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "department.name",
|
|
|
|
|
label: "责任科室",
|
|
|
|
|
width: 160,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: "plan.name",
|
|
|
|
|
label: "关联计划",
|
|
|
|
|
@ -222,6 +241,11 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
pageChange (e) {
|
|
|
|
|
this.select.page_size = e ? 10 : 9999;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
cellStyle({ column }) {
|
|
|
|
|
if (/计划时间/g.test(column.label)) {
|
|
|
|
|
return {
|
|
|
|
|
|