Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
紫光云
web-project
Commits
a440540a
Commit
a440540a
authored
Oct 30, 2024
by
ccc2wdd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
招标管理,统计页面有初始年份和季度
parent
957c5344
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
39 deletions
+110
-39
statisticsBidding.vue
src/views/biddingManagement/statisticsBidding.vue
+23
-5
biddingPlan.data.ts
src/views/biddingPlan/biddingPlan.data.ts
+1
-2
biddingPlanData.vue
src/views/biddingPlan/biddingPlanData.vue
+70
-5
changeSignatureStatistic.vue
src/views/changeSignature/changeSignatureStatistic.vue
+16
-27
No files found.
src/views/biddingManagement/statisticsBidding.vue
View file @
a440540a
...
@@ -33,6 +33,20 @@
...
@@ -33,6 +33,20 @@
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
const
params
=
ref
({
tenderYear
:
''
,
biddingQuarter
:
''
,
companyName
:
''
});
const
currentMonth
=
moment
().
format
(
'MM'
);
const
currentquarter
=
getQuarter
();
function
getQuarter
()
{
if
(
currentMonth
<=
3
)
{
return
'第一季度'
;
}
else
if
(
currentMonth
<=
6
)
{
return
'第二季度'
;
}
else
if
(
currentMonth
<=
9
)
{
return
'第三季度'
;
}
else
{
return
'第四季度'
;
}
}
const
seach
=
ref
([
const
seach
=
ref
([
{
{
field
:
'tenderYear'
,
field
:
'tenderYear'
,
...
@@ -56,7 +70,7 @@
...
@@ -56,7 +70,7 @@
component
:
'Select'
,
component
:
'Select'
,
componentProps
:
{
componentProps
:
{
placeholder
:
'季度'
,
placeholder
:
'季度'
,
defaultValue
:
'第一季度'
,
defaultValue
:
currentquarter
,
options
:
[
options
:
[
{
{
label
:
'第一季度'
,
label
:
'第一季度'
,
...
@@ -82,6 +96,10 @@
...
@@ -82,6 +96,10 @@
const
deptId
=
ref
(
''
);
const
deptId
=
ref
(
''
);
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
deptId
.
value
=
useUserStore
().
userInfo
.
deptId
;
deptId
.
value
=
useUserStore
().
userInfo
.
deptId
;
// 设置当前年份
params
.
value
.
tenderYear
=
moment
().
format
(
'YYYY'
);
// 设置当前季度
params
.
value
.
biddingQuarter
=
currentquarter
;
getStatisticList
();
getStatisticList
();
});
});
...
@@ -96,12 +114,13 @@
...
@@ -96,12 +114,13 @@
});
});
async
function
exportCount
()
{
async
function
exportCount
()
{
const
params
=
getFieldsValue
();
const
data
=
await
exportStatisticList
(
params
.
value
);
const
data
=
await
exportStatisticList
(
params
);
downloadByData
(
data
,
'招标管理统计报表'
+
'.xlsx'
);
downloadByData
(
data
,
'招标管理统计报表'
+
'.xlsx'
);
}
}
const
loadingRef
=
ref
(
false
);
const
loadingRef
=
ref
(
false
);
function
handleSubmit
()
{
function
handleSubmit
()
{
let
data
=
getFieldsValue
();
params
.
value
=
data
;
getStatisticList
();
getStatisticList
();
}
}
function
setRowClassName
(
record
)
{
function
setRowClassName
(
record
)
{
...
@@ -122,7 +141,6 @@
...
@@ -122,7 +141,6 @@
return
`
${
year
}
-
${
month
}
`
;
return
`
${
year
}
-
${
month
}
`
;
}
}
async
function
getStatisticList
()
{
async
function
getStatisticList
()
{
const
params
=
getFieldsValue
();
// if (params.tenderYear === undefined || params.tenderYear === null) {
// if (params.tenderYear === undefined || params.tenderYear === null) {
// // 创建一个表示当前日期和时间的 Date 对象
// // 创建一个表示当前日期和时间的 Date 对象
// var currentDate = new Date();
// var currentDate = new Date();
...
@@ -133,7 +151,7 @@
...
@@ -133,7 +151,7 @@
// columns[0].title = params.tenderYear + '年招标管理';
// columns[0].title = params.tenderYear + '年招标管理';
// }
// }
loadingRef
.
value
=
true
;
loadingRef
.
value
=
true
;
let
data
=
await
getListAll
(
params
);
let
data
=
await
getListAll
(
params
.
value
);
// dataSource.value = data;
// dataSource.value = data;
let
propsList
=
[
'companyName'
,
'projectName'
];
let
propsList
=
[
'companyName'
,
'projectName'
];
propsList
.
map
((
item
)
=>
{
propsList
.
map
((
item
)
=>
{
...
...
src/views/biddingPlan/biddingPlan.data.ts
View file @
a440540a
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
useUserStore
}
from
"@/store/modules/user"
;
import
{
useUserStore
}
from
"@/store/modules/user"
;
const
deptId
=
''
+
useUserStore
().
userInfo
.
deptParentId
;
const
deptId
=
useUserStore
().
userInfo
.
deptParentId
;
//主模块-招标计划列表页
//主模块-招标计划列表页
export
const
columns
:
BasicColumn
[]
=
[
export
const
columns
:
BasicColumn
[]
=
[
{
{
...
...
src/views/biddingPlan/biddingPlanData.vue
View file @
a440540a
...
@@ -29,23 +29,86 @@
...
@@ -29,23 +29,86 @@
import
PageCard
from
'@/components/Page/src/PageCard.vue'
;
import
PageCard
from
'@/components/Page/src/PageCard.vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
moment
from
'moment'
;
const
currentMonth
=
moment
().
format
(
'MM'
);
const
currentquarter
=
getQuarter
();
function
getQuarter
()
{
if
(
currentMonth
<=
3
)
{
return
'第一季度'
;
}
else
if
(
currentMonth
<=
6
)
{
return
'第二季度'
;
}
else
if
(
currentMonth
<=
9
)
{
return
'第三季度'
;
}
else
{
return
'第四季度'
;
}
}
const
{
push
}
=
useRouter
();
const
{
push
}
=
useRouter
();
onMounted
(
async
()
=>
{
const
seach
=
ref
([
getStatisticList
();
{
});
field
:
'tenderYear'
,
label
:
''
,
component
:
'DatePicker'
,
componentProps
:
{
placeholder
:
'年份'
,
picker
:
'year'
,
defaultValue
:
moment
().
format
(
'YYYY'
),
valueFormat
:
'YYYY'
,
format
:
'YYYY'
,
style
:
{
width
:
'100%'
,
},
},
colProps
:
{
span
:
4
},
},
{
field
:
'biddingQuarter'
,
label
:
''
,
component
:
'Select'
,
componentProps
:
{
placeholder
:
'季度'
,
defaultValue
:
currentquarter
,
options
:
[
{
label
:
'第一季度'
,
value
:
'第一季度'
,
},
{
label
:
'第二季度'
,
value
:
'第二季度'
,
},
{
label
:
'第三季度'
,
value
:
'第三季度'
,
},
{
label
:
'第四季度'
,
value
:
'第四季度'
,
},
],
},
colProps
:
{
span
:
4
},
},
]);
defineOptions
({
name
:
'MonthlyPlan'
});
defineOptions
({
name
:
'MonthlyPlan'
});
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
const
formElRef
=
ref
<
Nullable
<
FormActionType
>>
(
null
);
const
formElRef
=
ref
<
Nullable
<
FormActionType
>>
(
null
);
const
[
registerForm
,
{
getFieldsValue
}]
=
useForm
({
const
[
registerForm
,
{
getFieldsValue
}]
=
useForm
({
labelWidth
:
90
,
labelWidth
:
90
,
baseColProps
:
{
span
:
24
},
baseColProps
:
{
span
:
24
},
schemas
:
sea
rchFormSchema
,
schemas
:
sea
ch
,
showActionButtonGroup
:
false
,
showActionButtonGroup
:
false
,
});
});
const
params
=
ref
({
tenderYear
:
''
,
biddingQuarter
:
''
,
companyName
:
''
});
const
params
=
ref
({
tenderYear
:
''
,
biddingQuarter
:
''
,
companyName
:
''
});
const
loadingRef
=
ref
(
false
);
const
loadingRef
=
ref
(
false
);
onMounted
(
async
()
=>
{
// 设置当前年份
params
.
value
.
tenderYear
=
moment
().
format
(
'YYYY'
);
// 设置当前季度
params
.
value
.
biddingQuarter
=
currentquarter
;
getStatisticList
();
});
function
handleSubmit
()
{
function
handleSubmit
()
{
// let data = getFieldsValue();
// let data = getFieldsValue();
// params.value = data;
// params.value = data;
...
@@ -54,6 +117,8 @@
...
@@ -54,6 +117,8 @@
// } else {
// } else {
// columns[0].title = '招标计划';
// columns[0].title = '招标计划';
// }
// }
let
data
=
getFieldsValue
();
params
.
value
=
data
;
getStatisticList
();
getStatisticList
();
}
}
async
function
exportCount
()
{
async
function
exportCount
()
{
...
...
src/views/changeSignature/changeSignatureStatistic.vue
View file @
a440540a
...
@@ -36,9 +36,19 @@
...
@@ -36,9 +36,19 @@
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
const
currentMonth
=
new
Date
().
getMonth
()
+
1
;
const
currentMonth
=
moment
().
format
(
'MM'
)
;
const
currentquarter
=
getQuarter
();
const
currentquarter
=
getQuarter
();
function
getQuarter
()
{
if
(
currentMonth
<=
3
)
{
return
'第一季度'
;
}
else
if
(
currentMonth
<=
6
)
{
return
'第二季度'
;
}
else
if
(
currentMonth
<=
9
)
{
return
'第三季度'
;
}
else
{
return
'第四季度'
;
}
}
// 列表
// 列表
const
dataSource
=
ref
([]);
const
dataSource
=
ref
([]);
// 表头
// 表头
...
@@ -203,21 +213,10 @@
...
@@ -203,21 +213,10 @@
]);
]);
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
deptId
.
value
=
useUserStore
().
userInfo
.
deptId
;
deptId
.
value
=
useUserStore
().
userInfo
.
deptId
;
// 获取当前日期
const
now
=
new
Date
();
// 设置当前年份
// 设置当前年份
params
.
value
.
givenYear
=
now
.
getFullYear
().
toString
();
params
.
value
.
givenYear
=
moment
().
format
(
'YYYY'
);
// 计算当前季度
// 设置当前季度
const
currentMonth
=
now
.
getMonth
()
+
1
;
// getMonth() 返回的月份是从 0 开始的
params
.
value
.
quarter
=
currentquarter
;
if
(
currentMonth
<=
3
)
{
params
.
value
.
quarter
=
'第一季度'
;
}
else
if
(
currentMonth
<=
6
)
{
params
.
value
.
quarter
=
'第二季度'
;
}
else
if
(
currentMonth
<=
9
)
{
params
.
value
.
quarter
=
'第三季度'
;
}
else
{
params
.
value
.
quarter
=
'第四季度'
;
}
getStatisticList
();
getStatisticList
();
});
});
...
@@ -236,17 +235,7 @@
...
@@ -236,17 +235,7 @@
downloadByData
(
data
,
'变更签证管理统计报表'
+
'.xls'
);
downloadByData
(
data
,
'变更签证管理统计报表'
+
'.xls'
);
}
}
const
loadingRef
=
ref
(
false
);
const
loadingRef
=
ref
(
false
);
function
getQuarter
()
{
if
(
currentMonth
<=
3
)
{
return
'第一季度'
;
}
else
if
(
currentMonth
<=
6
)
{
return
'第二季度'
;
}
else
if
(
currentMonth
<=
9
)
{
return
'第三季度'
;
}
else
{
return
'第四季度'
;
}
}
function
handleSubmit
()
{
function
handleSubmit
()
{
let
data
=
getFieldsValue
();
let
data
=
getFieldsValue
();
params
.
value
=
data
;
params
.
value
=
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment