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
28aabf73
Commit
28aabf73
authored
Mar 12, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f8429996
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
105 deletions
+129
-105
quotation-form.vue
src/components/sale/quotation-form.vue
+2
-1
courseoffer.vue
src/pages/sale/courseoffer.vue
+127
-104
No files found.
src/components/sale/quotation-form.vue
View file @
28aabf73
...
...
@@ -132,7 +132,8 @@
</q-card-section>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"primary"
v-close-popup
/>
<q-btn
label=
"创建报价单"
color=
"accent"
class=
"q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveOffice"
/>
<q-btn
:label=
"model.Id==0?'创建报价单':'保存报价单'"
color=
"accent"
class=
"q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveOffice"
/>
</q-card-actions>
</q-card>
</template>
...
...
src/pages/sale/courseoffer.vue
View file @
28aabf73
...
...
@@ -3,104 +3,104 @@
list-style-type
:
none
;
}
.course
List
ul
{
padding
:
0px
.course
Offer
ul
{
padding
:
0px
;
}
.course
List
li
{
.course
Offer
li
{
background
:
rgba
(
221
,
222
,
224
,
0.2
);
border-radius
:
4px
;
margin-top
:
15px
margin-top
:
15px
;
}
.course
List
li
.dline
{
.course
Offer
li
.dline
{
display
:
table
;
width
:
100%
;
display
:
flex
;
flex-direction
:
row
flex-direction
:
row
;
}
.course
List
li
.d1
,
.course
List
li
.d2
,
.course
List
li
.d3
,
.course
List
li
.d4
,
.course
List
li
.d5
{
.course
Offer
li
.d1
,
.course
Offer
li
.d2
,
.course
Offer
li
.d3
,
.course
Offer
li
.d4
,
.course
Offer
li
.d5
{
width
:
18%
;
padding
:
20px
20px
10px
;
}
.course
List
li
.d7
{
.course
Offer
li
.d7
{
flex
:
1
;
width
:
1px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
justify-content
:
center
;
}
.course
List
li
.d1
.di-title
{
.course
Offer
li
.d1
.di-title
{
font-size
:
16px
;
color
:
#111111
;
}
.course
List
li
.d1
.di-c
{
.course
Offer
li
.d1
.di-c
{
font-size
:
14px
;
display
:
flex
;
line-height
:
28px
;
color
:
#111111
color
:
#111111
;
}
.course
List
li
.d6
{
.course
Offer
li
.d6
{
padding
:
10px
20px
;
width
:
100%
;
height
:
inherit
;
position
:
relative
;
border-top
:
1px
solid
#
DDDEE0
border-top
:
1px
solid
#
dddee0
;
}
.course
List
li
.d6
.progress
{
.course
Offer
li
.d6
.progress
{
width
:
100%
;
height
:
5px
;
position
:
absolute
;
left
:
0
;
bottom
:
0
bottom
:
0
;
}
.course
List
li
.d2
div
{
.course
Offer
li
.d2
div
{
margin
:
2px
0
;
font-size
:
14px
;
color
:
#111111
;
}
.course
List
li
.d2-n
{
.course
Offer
li
.d2-n
{
font-size
:
12px
;
color
:
#999999
;
margin-right
:
20px
margin-right
:
20px
;
}
.course
List
li
.d3
.d3-s
{
.course
Offer
li
.d3
.d3-s
{
color
:
var
(
--q-color-negative
);
font-weight
:
bold
font-weight
:
bold
;
}
.course
List
li
.d3
div
{
.course
Offer
li
.d3
div
{
margin
:
2px
0
;
font-size
:
14px
;
}
.course
List
li
.d4
div
{
.course
Offer
li
.d4
div
{
font-size
:
14px
;
color
:
#111111
;
margin
:
2px
0
;
}
.course
List
li
.d5
div
{
.course
Offer
li
.d5
div
{
font-size
:
14px
;
color
:
#111111
;
margin
:
2px
0
;
}
.course
List
.myCourseNName
{
.course
Offer
.myCourseNName
{
width
:
25px
;
height
:
25px
;
border-radius
:
50%
;
...
...
@@ -112,7 +112,7 @@
</
style
>
<
template
>
<div
class=
"page-body course
List
"
>
<div
class=
"page-body course
Offer
"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
...
...
@@ -122,79 +122,29 @@
</div>
</div>
<div
class=
"page-content"
>
<ul
v-if=
"data.length!=0"
>
<li
v-for=
"(item,index) in data"
:key=
"index"
>
<div
class=
"dline"
>
<div
class=
"d1"
style=
"width:25%"
>
<div
class=
"di-title"
>
流水号
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<div>
{{
item
.
SerialNum
}}
</div>
</div>
</div>
<div
class=
"d2"
>
<div
class=
"di-title"
>
名称
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<div
style=
"margin-left:5px;"
>
{{
item
.
Name
}}
</div>
</div>
</div>
<div
class=
"d3"
>
<div
class=
"di-title"
>
客户信息
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span
style=
"margin-right:5px;"
>
{{
item
.
CustomerName
}}
/
{{
item
.
CustomerTel
}}
</span>
</div>
</div>
<div
class=
"d4"
style=
"width:20%"
>
<div
class=
"di-title"
>
总原价
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span
style=
"color: var(--q-color-negative); font-weight: bold;"
>
¥
{{
item
.
TotalOriginalPrice
.
toFixed
(
2
)
}}
</span>
</div>
</div>
<div
class=
"d5"
style=
"width:20%"
>
<div
class=
"di-title"
>
总价格
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span
style=
"color: var(--q-color-negative); font-weight: bold;"
>
¥
{{
item
.
TotalPrice
.
toFixed
(
2
)
}}
</span>
</div>
</div>
<div
class=
"d5"
style=
"width:20%"
>
<div
class=
"di-title"
>
总优惠
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span
style=
"color: var(--q-color-negative); font-weight: bold;"
>
¥
{{
item
.
TotalDiscountPrice
.
toFixed
(
2
)
}}
</span>
</div>
</div>
<div
class=
"d5"
style=
"width:19%"
>
<div
class=
"di-title"
>
报名人数
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span
style=
"color: var(--q-color-negative); font-weight: bold;"
>
{{
item
.
JoinNum
}}
</span>
</div>
</div>
<div
class=
"d5"
style=
"width:19%"
>
<div
class=
"di-title"
>
状态
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span>
{{
item
.
CustomerStatusName
}}
</span>
</div>
</div>
<div
class=
"d5"
style=
"width:19%"
>
<div
class=
"di-title"
>
操作
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"修改报价单"
@
click=
"editQuotation(item)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"详情"
@
click=
"gotoDetails(item)"
/>
</div>
</div>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
课程报价单
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"创建报价单"
@
click=
"editQuotation(null)"
/>
</div>
</li>
<li
style=
"border: none;display: flex;justify-content: flex-end;background: white;padding: 5px 20px"
>
<q-pagination
v-model=
"msg.pageIndex"
:max=
"pageCount"
@
input=
"changePage"
class=
"full-width justify-end"
color=
"primary"
:input=
"true"
>
</q-pagination>
</li>
</ul>
<div
v-else
style=
"width: 100%;color: #999999;text-align: center;font-size: 15px"
>
暂无数据
</div>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"editQuotation(props.row)"
/>
<q-btn
flat
color=
"primary"
label=
"详情"
@
click=
"gotoDetails(props.row)"
/>
</div>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
<q-dialog
v-model=
"showForm"
persistent
>
<quotation-form
:obj=
"offerObj"
@
save=
"showForm=false"
></quotation-form>
...
...
@@ -220,14 +170,87 @@
loading
:
true
,
msg
:
{
pageIndex
:
1
,
pageSize
:
1
2
,
rowsPerPage
:
1
2
,
pageSize
:
1
0
,
rowsPerPage
:
1
0
,
Name
:
""
,
IsGetDetails
:
1
,
},
pageCount
:
0
,
showForm
:
false
,
//是否显示报价单弹窗
offerObj
:
{},
//报价单信息
columns
:
[{
name
:
"SerialNum"
,
label
:
"流水号"
,
field
:
"SerialNum"
,
align
:
"left"
},
{
name
:
"Name"
,
label
:
"名称"
,
field
:
"Name"
,
align
:
"left"
},
{
name
:
"CustomerName"
,
required
:
true
,
label
:
"客户信息"
,
align
:
"left"
,
field
:
row
=>
row
.
CustomerName
},
{
name
:
"CustomerTel"
,
required
:
true
,
label
:
"客户电话"
,
align
:
"left"
,
field
:
row
=>
row
.
CustomerTel
},
{
name
:
"TotalOriginalPrice"
,
required
:
true
,
label
:
"总原价"
,
align
:
"left"
,
field
:
row
=>
row
.
TotalOriginalPrice
.
toFixed
(
2
)
},
{
name
:
"TotalPrice"
,
required
:
true
,
label
:
"总价"
,
align
:
"left"
,
field
:
row
=>
row
.
TotalPrice
.
toFixed
(
2
)
},
{
name
:
"TotalDiscountPrice"
,
required
:
true
,
label
:
"总优惠"
,
align
:
"left"
,
field
:
row
=>
row
.
TotalDiscountPrice
.
toFixed
(
2
)
},
{
name
:
"JoinNum"
,
label
:
"报名人数"
,
field
:
"JoinNum"
,
align
:
"left"
,
format
:
(
val
,
row
)
=>
`
${
val
}
人`
},
{
name
:
"CustomerStatusName"
,
label
:
"状态"
,
field
:
"CustomerStatusName"
,
align
:
"left"
,
format
:
(
val
,
row
)
=>
`
${
val
}
`
},
{
name
:
"CreateTimeStr"
,
label
:
"报价时间"
,
field
:
"CreateTimeStr"
,
align
:
"left"
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'Id'
}
],
}
},
mounted
()
{
...
...
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