Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
ebb08fd2
Commit
ebb08fd2
authored
May 06, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
204-05-06处理问题点
parent
1ac89f50
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
592 additions
and
299 deletions
+592
-299
customeranalysis.js
src/api/report/customeranalysis.js
+9
-0
salesanalysis.js
src/api/report/salesanalysis.js
+10
-0
vz.js
src/api/report/vz.js
+9
-0
query.vue
src/views/ecw/box/query.vue
+2
-1
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+2
-1
paymentVoucher.vue
src/views/ecw/financial/paymentVoucher.vue
+339
-178
feeApplication.vue
src/views/ecw/order/feeApplication.vue
+0
-26
index.vue
src/views/report/customer_analysis/index.vue
+78
-49
index.vue
src/views/report/sales_analysis/index.vue
+125
-43
index.vue
src/views/report/vz/index.vue
+18
-1
No files found.
src/api/report/customeranalysis.js
View file @
ebb08fd2
...
@@ -19,3 +19,12 @@ export function exportExcel(data) {
...
@@ -19,3 +19,12 @@ export function exportExcel(data) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
export
function
exportExcel2
(
data
)
{
return
request
({
url
:
'
/Report/CustomerAnalysis/exportExcel2
'
,
method
:
'
get
'
,
params
:
data
,
responseType
:
'
blob
'
})
}
src/api/report/salesanalysis.js
View file @
ebb08fd2
...
@@ -18,3 +18,13 @@ export function exportExcel(query) {
...
@@ -18,3 +18,13 @@ export function exportExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
//获取统计汇总数据 lanbm 2024-05-04 add
export
function
getStatisticalSummary
(
query
)
{
return
request
({
url
:
'
/Report/SalesAnalysis/getStatisticalSummary
'
,
method
:
'
get
'
,
params
:
query
})
}
src/api/report/vz.js
View file @
ebb08fd2
...
@@ -49,3 +49,12 @@ export function exportExcel(query) {
...
@@ -49,3 +49,12 @@ export function exportExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
//测试功能
export
function
test
(
query
)
{
return
request
({
url
:
'
/ecwVz/vz/Test
'
,
method
:
'
get
'
,
params
:
query
})
}
src/views/ecw/box/query.vue
View file @
ebb08fd2
...
@@ -133,7 +133,8 @@
...
@@ -133,7 +133,8 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"price"
:label=
"$t('金额')"
align=
"center"
></el-table-column>
<el-table-column
prop=
"price"
:label=
"$t('金额')"
align=
"center"
></el-table-column>
<el-table-column
prop=
"payPrice"
:label=
"$t('实付金额')"
align=
"center"
></el-table-column>
<el-table-column
prop=
"payPrice"
:label=
"$t('实付金额')"
align=
"center"
></el-table-column>
<el-table-column
prop=
"payTime"
:label=
"$t('实付日期')"
align=
"center"
>
<el-table-column
prop=
"payTime"
:label=
"$t('创建日期')"
align=
"center"
>
<!--实付日期 改为 创建日期 lanbm 2024-05-06 add-->
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.payTime"
>
{{
formatDate
(
scope
.
row
.
payTime
)
}}
</span>
<span
v-if=
"scope.row.payTime"
>
{{
formatDate
(
scope
.
row
.
payTime
)
}}
</span>
</
template
>
</
template
>
...
...
src/views/ecw/financial/creatCollection.vue
View file @
ebb08fd2
...
@@ -376,7 +376,8 @@
...
@@ -376,7 +376,8 @@
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款汇率')
"
align
=
"
center
"
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款汇率')
"
align
=
"
center
"
>
<
template
slot
-
scope
=
"
scope
"
>
<!--
lanbm
2024
-
05
-
06
汇率保留小数增加到
6
位,为了方便显示,加宽此列的显示
-->
<
template
slot
-
scope
=
"
scope
"
style
=
"
width: 200px;
"
>
<
el
-
form
-
item
<
el
-
form
-
item
v
-
if
=
"
scope.row.type !== 'total'
"
v
-
if
=
"
scope.row.type !== 'total'
"
label
=
""
label
=
""
...
...
src/views/ecw/financial/paymentVoucher.vue
View file @
ebb08fd2
This diff is collapsed.
Click to expand it.
src/views/ecw/order/feeApplication.vue
View file @
ebb08fd2
...
@@ -221,32 +221,6 @@ export default {
...
@@ -221,32 +221,6 @@ export default {
// 有修改中的不允许修改
// 有修改中的不允许修改
if
(
this
.
list
.
findIndex
((
item
)
=>
item
.
editMode
)
>
-
1
)
return
false
;
if
(
this
.
list
.
findIndex
((
item
)
=>
item
.
editMode
)
>
-
1
)
return
false
;
return
true
;
return
true
;
};
computed
:{
isChinese
()
{
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
},
feeList
(){
return
this
.
list
.
filter
(
item
=>
item
.
status
===
0
)
},
// 正在编辑的费用申请
currentItem
(){
return
this
.
list
.
find
(
item
=>
item
.
editMode
)
},
// 是否修改模式
editMode
(){
return
!!
this
.
currentItem
},
modifable
(){
return
(
index
)
=>
{
// 审核中不允许修改
if
(
this
.
processInstanceId
)
return
false
// 有未提交的不允许修改
if
(
this
.
feeList
.
length
)
return
false
// 有修改中的不允许修改
if
(
this
.
list
.
findIndex
(
item
=>
item
.
editMode
)
>
-
1
)
return
false
return
true
}
}
}
},
},
},
},
...
...
src/views/report/customer_analysis/index.vue
View file @
ebb08fd2
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
size=
"mini"
size=
"mini"
@
click=
"handleExport"
@
click=
"handleExport"
:loading=
"exportLoading"
:loading=
"exportLoading"
v-show=
"
objEcwReportPermission.exportdataq == 1
"
v-show=
"
false
"
>
>
{{
$t
(
"
导出
"
)
}}
</el-button
{{
$t
(
"
导出
"
)
}}
</el-button
>
>
...
@@ -264,9 +264,9 @@
...
@@ -264,9 +264,9 @@
size=
"mini"
size=
"mini"
@
click=
"handleExport2"
@
click=
"handleExport2"
:loading=
"exportLoading"
:loading=
"exportLoading"
v-show=
"
false
"
v-show=
"
objEcwReportPermission.exportdataq == 1
"
>
>
{{
$t
(
"
导出
测试
"
)
}}
</el-button
{{
$t
(
"
导出
"
)
}}
</el-button
>
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -327,12 +327,24 @@
...
@@ -327,12 +327,24 @@
<el-table-column
label=
"泡货占比"
align=
"center"
prop=
"phSumZb"
/>
<el-table-column
label=
"泡货占比"
align=
"center"
prop=
"phSumZb"
/>
<el-table-column
label=
"控货总V值"
align=
"center"
prop=
"khSumV"
/>
<el-table-column
label=
"控货总V值"
align=
"center"
prop=
"khSumV"
/>
<el-table-column
label=
"控货占比"
align=
"center"
prop=
"khSumZb"
/>
<el-table-column
label=
"控货占比"
align=
"center"
prop=
"khSumZb"
/>
<el-table-column
label=
"是否首次成交"
align=
"center"
prop=
"isFirst"
/>
<!--2024-05-06和张工确认这几个参数无取数逻辑,暂时隐藏-->
<el-table-column
label=
"首次成交时间"
align=
"center"
prop=
"firstDate"
>
<el-table-column
label=
"是否首次成交"
v-show=
"false"
align=
"center"
prop=
"isFirst"
/>
<el-table-column
label=
"首次成交时间"
v-show=
"false"
align=
"center"
prop=
"firstDate"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
firstDate
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
firstDate
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!--2024-05-06和张工确认这几个参数无取数逻辑,暂时隐藏-->
<el-table-column
label=
"提货率"
align=
"center"
prop=
"thL"
/>
<el-table-column
label=
"提货率"
align=
"center"
prop=
"thL"
/>
<el-table-column
label=
"客户业绩类型"
align=
"center"
prop=
"cusYjType"
/>
<el-table-column
label=
"客户业绩类型"
align=
"center"
prop=
"cusYjType"
/>
<el-table-column
label=
"客户来源"
align=
"center"
prop=
"sourcename"
/>
<el-table-column
label=
"客户来源"
align=
"center"
prop=
"sourcename"
/>
...
@@ -367,7 +379,11 @@ import Treeselect from "@riophae/vue-treeselect";
...
@@ -367,7 +379,11 @@ import Treeselect from "@riophae/vue-treeselect";
//自定义目录数样式
//自定义目录数样式
import
"
@/assets/styles/vue-treeselect.css
"
;
import
"
@/assets/styles/vue-treeselect.css
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getListPage
,
exportExcel
}
from
"
@/api/report/customeranalysis
"
;
import
{
getListPage
,
exportExcel
,
exportExcel2
,
}
from
"
@/api/report/customeranalysis
"
;
import
{
import
{
getCurUserPermission
,
getCurUserPermission
,
getDeptChild
,
getDeptChild
,
...
@@ -517,50 +533,20 @@ export default {
...
@@ -517,50 +533,20 @@ export default {
getCountryListAll
().
then
((
r
)
=>
{
getCountryListAll
().
then
((
r
)
=>
{
this
.
countryList
=
r
.
data
;
this
.
countryList
=
r
.
data
;
});
});
this
.
doLoadData
();
//获取当前用户报表权限
},
getCurUserPermission
().
then
((
response
)
=>
{
watch
:
{
//复制对象
$route
(
to
)
{
Object
.
assign
(
this
.
objEcwReportPermission
,
response
.
data
);
//lanbm 2024-05-06 解决重新进入参数不刷新的问题
//this.objEcwReportPermission = response.data;
if
(
this
.
$route
.
name
==
"
客户分析
"
)
{
if
(
this
.
objEcwReportPermission
.
permissionFw
==
1
)
{
this
.
doLoadData
();
//只能看自己的,不能选择部门和客户经理
this
.
showCustomsManage
=
false
;
this
.
showDept
=
false
;
}
//获取页面传参
let
sSalesmanid
=
this
.
$route
.
query
.
salesmanid
;
let
sDeptid
=
this
.
$route
.
query
.
deptid
;
let
s
=
this
.
$route
.
query
.
sDate
;
let
e
=
this
.
$route
.
query
.
eDate
;
let
bd
=
this
.
$route
.
query
.
duibiYear
;
//客户编号
let
number
=
this
.
$route
.
query
.
number
;
if
(
sSalesmanid
!=
undefined
&&
sSalesmanid
!=
null
)
{
this
.
queryParams
.
salesmanid
=
parseInt
(
sSalesmanid
);
}
if
(
sDeptid
!=
undefined
&&
sDeptid
!=
null
)
{
this
.
queryParams
.
deptid
=
parseInt
(
sDeptid
);
}
if
(
s
!=
undefined
&&
s
!=
null
)
{
this
.
queryParams
.
sdate
=
s
+
"
-01
"
;
}
if
(
e
!=
undefined
&&
s
!=
null
)
{
let
lastDay
=
getLastDay
(
e
+
"
-01
"
);
this
.
queryParams
.
edate
=
e
+
"
-
"
+
lastDay
;
}
if
(
bd
!=
undefined
&&
bd
!=
null
)
{
this
.
queryParams
.
duibiYear
=
bd
;
}
if
(
number
!=
undefined
&&
number
!=
null
)
{
this
.
queryParams
.
searchtype
=
"
eq
"
;
this
.
queryParams
.
name
=
number
;
}
}
this
.
getTreeselect
();
},
this
.
getList
();
},
});
computed
:
{
//这几个函数的执行顺序
//created ------> computed ------> mounted ------> watch
},
},
computed
:
{},
methods
:
{
methods
:
{
/** 查询列表 */
/** 查询列表 */
getList
()
{
getList
()
{
...
@@ -582,6 +568,49 @@ export default {
...
@@ -582,6 +568,49 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
doLoadData
()
{
//获取当前用户报表权限
getCurUserPermission
().
then
((
response
)
=>
{
//复制对象
Object
.
assign
(
this
.
objEcwReportPermission
,
response
.
data
);
//this.objEcwReportPermission = response.data;
if
(
this
.
objEcwReportPermission
.
permissionFw
==
1
)
{
//只能看自己的,不能选择部门和客户经理
this
.
showCustomsManage
=
false
;
this
.
showDept
=
false
;
}
//获取页面传参
let
sSalesmanid
=
this
.
$route
.
query
.
salesmanid
;
let
sDeptid
=
this
.
$route
.
query
.
deptid
;
let
s
=
this
.
$route
.
query
.
sDate
;
let
e
=
this
.
$route
.
query
.
eDate
;
let
bd
=
this
.
$route
.
query
.
duibiYear
;
//客户编号
let
number
=
this
.
$route
.
query
.
number
;
if
(
sSalesmanid
!=
undefined
&&
sSalesmanid
!=
null
)
{
this
.
queryParams
.
salesmanid
=
parseInt
(
sSalesmanid
);
}
if
(
sDeptid
!=
undefined
&&
sDeptid
!=
null
)
{
this
.
queryParams
.
deptid
=
parseInt
(
sDeptid
);
}
if
(
s
!=
undefined
&&
s
!=
null
)
{
this
.
queryParams
.
sdate
=
s
+
"
-01
"
;
}
if
(
e
!=
undefined
&&
s
!=
null
)
{
let
lastDay
=
getLastDay
(
e
+
"
-01
"
);
this
.
queryParams
.
edate
=
e
+
"
-
"
+
lastDay
;
}
if
(
bd
!=
undefined
&&
bd
!=
null
)
{
this
.
queryParams
.
duibiYear
=
bd
;
}
if
(
number
!=
undefined
&&
number
!=
null
)
{
this
.
queryParams
.
searchtype
=
"
eq
"
;
this
.
queryParams
.
name
=
number
;
}
this
.
getTreeselect
();
this
.
getList
();
});
},
isChinese
()
{
isChinese
()
{
//基础函数,判断系统显示语言是中文还是英文
//基础函数,判断系统显示语言是中文还是英文
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
...
@@ -688,7 +717,7 @@ export default {
...
@@ -688,7 +717,7 @@ export default {
.
confirm
(
"
是否确认导出所有数据项?
"
)
.
confirm
(
"
是否确认导出所有数据项?
"
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportExcel
(
this
.
queryParams
);
return
exportExcel
2
(
this
.
queryParams
);
})
})
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
//放入后台队列需要注释此行代码
//放入后台队列需要注释此行代码
...
...
src/views/report/sales_analysis/index.vue
View file @
ebb08fd2
This diff is collapsed.
Click to expand it.
src/views/report/vz/index.vue
View file @
ebb08fd2
...
@@ -59,6 +59,17 @@
...
@@ -59,6 +59,17 @@
{{
$t
(
"
导出
"
)
}}
</el-button
{{
$t
(
"
导出
"
)
}}
</el-button
>
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
v-show=
"false"
size=
"mini"
@
click=
"TestFun"
>
{{
$t
(
"
测试功能
"
)
}}
</el-button
>
</el-col>
<right-toolbar
<right-toolbar
:showSearch.sync=
"showSearch"
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
@
queryTable=
"getList"
...
@@ -149,6 +160,7 @@ import {
...
@@ -149,6 +160,7 @@ import {
getModel
,
getModel
,
getPageList
,
getPageList
,
exportExcel
,
exportExcel
,
test
,
}
from
"
@/api/report/vz
"
;
}
from
"
@/api/report/vz
"
;
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
"
@/assets/styles/vue-treeselect.css
"
;
import
"
@/assets/styles/vue-treeselect.css
"
;
...
@@ -305,7 +317,7 @@ export default {
...
@@ -305,7 +317,7 @@ export default {
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
// 修改的提交
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
update
(
this
.
form
).
then
((
response
)
=>
{
update
(
this
.
form
).
then
((
response
)
=>
{
...
@@ -337,6 +349,11 @@ export default {
...
@@ -337,6 +349,11 @@ export default {
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{});
},
},
TestFun
()
{
test
().
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"
测试发送
"
);
});
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
// 处理查询参数
// 处理查询参数
...
...
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