Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
5605d23d
Commit
5605d23d
authored
Jun 30, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b79ae291
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
orderlist.vue
src/components/sale/orderlist.vue
+28
-0
orderStatistics.vue
src/pages/sale/orderStatistics.vue
+14
-1
No files found.
src/components/sale/orderlist.vue
View file @
5605d23d
...
...
@@ -124,41 +124,66 @@
<
template
v-if=
"item.Unit_Price>=0"
>
{{
item
.
Unit_Price
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
Unit_Price
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"border:none"
>
<
template
v-if=
"item.PreferPrice>=0"
>
{{
item
.
PreferPrice
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
PreferPrice
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"border:none"
>
<
template
v-if=
"item.Income>=0"
>
{{
item
.
Income
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
Income
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"color:var(--q-color-negative);border:none"
>
<
template
v-if=
"item.DiscountMoney>=0"
>
{{
item
.
DiscountMoney
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
DiscountMoney
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"border:none"
>
<
template
v-if=
"item.LessPrice>=0"
>
{{
item
.
LessPrice
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
LessPrice
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"border:none"
>
<
template
v-if=
"item.Refund>=0"
>
{{
item
.
Refund
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
Refund
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"border:none"
>
<
template
v-if=
"item.PlatformTax>=0"
>
{{
item
.
PlatformTax
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
PlatformTax
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"color:#2961FE;border:none"
>
<
template
v-if=
"item.DueInMoney>=0"
>
{{
item
.
DueInMoney
.
toFixed
(
2
)
}}
</
template
>
<
template
v-else
>
<span
class=
"redstyle"
>
{{
item
.
DueInMoney
.
toFixed
(
2
)
}}
</span>
</
template
>
</td>
<td
style=
"border:none"
>
<div
style=
"background: rgba(2, 196, 153, 0.2);width: 80px;border-radius: 2px;text-align: center"
>
...
...
@@ -1547,5 +1572,8 @@
overflow-x
:
hidden
;
overflow-y
:
auto
;
}
.classorder
.redstyle
{
color
:
var
(
--q-color-negative
);
}
</
style
>
src/pages/sale/orderStatistics.vue
View file @
5605d23d
...
...
@@ -54,7 +54,7 @@
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"msg.EnterID"
:options=
"EmployeeList"
emit-value
map-options
label=
"业务员"
/>
option-label=
"EmployeeName"
v-model=
"msg.EnterID"
:options=
"EmployeeList"
emit-value
map-options
label=
"业务员"
use-input
@
filter=
"filterFn2"
/>
</div>
</div>
</div>
...
...
@@ -186,6 +186,7 @@
isShowRenewClass
:
false
,
//不显示续课
},
EmployeeList
:[],
//业务员
AllemployeeList
:[],
}
},
created
()
{
...
...
@@ -315,11 +316,23 @@
EmployeeName
:
"不限"
}
this
.
EmployeeList
.
unshift
(
obj
)
this
.
AllemployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
EmployeeList
));
}
}).
catch
(()
=>
{
})
},
//筛选业务员
filterFn2
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllemployeeList
))
}
else
{
const
needle
=
val
.
toLowerCase
()
this
.
EmployeeList
=
this
.
AllemployeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
)
}
})
},
}
}
...
...
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