Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
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
潘自豪 Rambo Pan
shld-databoard-ui
Commits
da4b48d1
Commit
da4b48d1
authored
Sep 27, 2023
by
潘自豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营业额明显页面修改
parent
46ede36b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
132 deletions
+45
-132
fetch.js
src/module/api/fetch.js
+0
-3
lostAddCustomer.js
src/module/databoard/databoard/js/lostAddCustomer.js
+1
-1
lost-add-customer.vue
src/module/databoard/databoard/lost-add-customer.vue
+2
-2
turnoverDetail.js
src/module/databoard/databoard/turnoverDetail.js
+42
-126
No files found.
src/module/api/fetch.js
View file @
da4b48d1
...
@@ -44,9 +44,6 @@ export default async (url = '', data = {}, type = 'GET', method = 'fetch') => {
...
@@ -44,9 +44,6 @@ export default async (url = '', data = {}, type = 'GET', method = 'fetch') => {
try
{
try
{
const
response
=
await
fetch
(
url
,
requestConfig
);
const
response
=
await
fetch
(
url
,
requestConfig
);
const
responseJson
=
await
response
.
json
();
const
responseJson
=
await
response
.
json
();
if
(
response
.
status
===
403
){
parent
.
window
.
location
=
"/"
;
}
return
responseJson
return
responseJson
}
catch
(
error
)
{
}
catch
(
error
)
{
throw
new
Error
(
error
)
throw
new
Error
(
error
)
...
...
src/module/databoard/databoard/js/lostAddCustomer.js
View file @
da4b48d1
...
@@ -36,7 +36,7 @@ export const adapterLostAdd = function (data) {
...
@@ -36,7 +36,7 @@ export const adapterLostAdd = function (data) {
let
lostAddDataCol
=
new
Array
();
let
lostAddDataCol
=
new
Array
();
lostAddDataCol
[
0
]
=
adapterLostAddCol
(
"订单量(万吨) "
,
conver_amont
(
data
.
unit_weight
),
"red"
)
lostAddDataCol
[
0
]
=
adapterLostAddCol
(
"订单量(万吨) "
,
conver_amont
(
data
.
unit_weight
),
"red"
)
lostAddDataCol
[
1
]
=
adapterLostAddCol
(
"订单件数"
,
data
.
qty
,
"#eaa749"
)
lostAddDataCol
[
1
]
=
adapterLostAddCol
(
"订单件数"
,
data
.
qty
,
"#eaa749"
)
lostAddDataCol
[
2
]
=
adapterLostAddCol
(
"营
销
额(万元)"
,
conver_amont
(
data
.
sell_settle_amount
),
"#49eb29"
)
lostAddDataCol
[
2
]
=
adapterLostAddCol
(
"营
业
额(万元)"
,
conver_amont
(
data
.
sell_settle_amount
),
"#49eb29"
)
lostAddData
[
'column'
]
=
lostAddDataCol
;
lostAddData
[
'column'
]
=
lostAddDataCol
;
return
lostAddData
;
return
lostAddData
;
}
}
...
...
src/module/databoard/databoard/lost-add-customer.vue
View file @
da4b48d1
...
@@ -3,11 +3,13 @@
...
@@ -3,11 +3,13 @@
<div
class=
"content"
>
<div
class=
"content"
>
<display-board
class=
"content_card"
:title=
"lostCustomerTitle"
title_size=
"large"
>
<display-board
class=
"content_card"
:title=
"lostCustomerTitle"
title_size=
"large"
>
<winners-list
style=
"height: 100%;overflow: auto;"
id=
"ar_company_list"
<winners-list
style=
"height: 100%;overflow: auto;"
id=
"ar_company_list"
:columns-style=
"
{'title':{'width':'45%'}}"
:rows="lostCustomer"
:rows="lostCustomer"
/>
/>
</display-board>
</display-board>
<display-board
class=
"content_card"
:title=
"addCustomerTitle"
title_size=
"large"
>
<display-board
class=
"content_card"
:title=
"addCustomerTitle"
title_size=
"large"
>
<winners-list
style=
"height: 100%;overflow: auto;"
id=
"ar_company_list"
<winners-list
style=
"height: 100%;overflow: auto;"
id=
"ar_company_list"
:columns-style=
"
{'title':{'width':'45%'}}"
:rows="addCustomer"
:rows="addCustomer"
/>
/>
</display-board>
</display-board>
...
@@ -50,9 +52,7 @@ export default {
...
@@ -50,9 +52,7 @@ export default {
},
},
async
mounted
()
{
async
mounted
()
{
this
.
lostCustomer
=
await
getAllDatas
(
this
.
today
,
2
)
this
.
lostCustomer
=
await
getAllDatas
(
this
.
today
,
2
)
console
.
log
(
this
.
lostCustomer
)
this
.
addCustomer
=
await
getAllDatas
(
this
.
today
,
1
)
this
.
addCustomer
=
await
getAllDatas
(
this
.
today
,
1
)
console
.
log
(
this
.
addCustomer
)
},
},
}
}
</
script
>
</
script
>
...
...
src/module/databoard/databoard/turnoverDetail.js
View file @
da4b48d1
This diff is collapsed.
Click to expand it.
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