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
111ca01f
Commit
111ca01f
authored
Mar 17, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
63701d4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
409 additions
and
36 deletions
+409
-36
courseoffer.vue
src/pages/sale/courseoffer.vue
+21
-35
myoffer.vue
src/pages/sale/myoffer.vue
+382
-0
routes.js
src/router/routes.js
+6
-1
No files found.
src/pages/sale/courseoffer.vue
View file @
111ca01f
...
...
@@ -133,33 +133,17 @@
</
template
>
<
template
v-slot:body-cell-OrderIdList=
"props"
>
<q-td
:props=
"props"
>
<span
title=
"点击查看订单"
v-for=
"item in props.row.OrderIdList"
style=
"cursor:pointer;color:blue;margin-left:5px;"
@
click=
"goOrderList(item)"
>
{{
item
}}
</span>
<span
title=
"点击查看订单"
v-for=
"item in props.row.OrderIdList"
style=
"cursor:pointer;color:blue;margin-left:5px;"
@
click=
"goOrderList(item)"
>
{{
item
}}
</span>
</q-td>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div>
<q-btn
v-if=
"props.row.CustomerStatus==1||props.row.CustomerStatus==2"
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"editQuotation(props.row)"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left:10px;"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"gotoDetails(props.row)"
>
<q-item-section>
<q-item-label>
详情
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
v-if=
"props.row.CustomerStatus==1||props.row.CustomerStatus==2"
@
click=
"offerTransOrder(props.row)"
>
<q-item-section>
<q-item-label>
转订单
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"editOrderPrice(props.row)"
>
<q-item-section>
<q-item-label>
改价
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"改价"
@
click=
"editOrderPrice(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"详情"
@
click=
"gotoDetails(props.row)"
/>
</div>
</q-td>
</
template
>
...
...
@@ -191,7 +175,9 @@
import
{
queryCourseOfferPage
,
}
from
'../../api/course/index'
import
{
mapState
}
from
"vuex"
;
import
{
mapState
}
from
"vuex"
;
export
default
{
meta
:
{
...
...
@@ -213,7 +199,7 @@
rowsPerPage
:
10
,
Name
:
""
,
IsGetDetails
:
1
,
CreateBy
:
0
CreateBy
:
0
},
pageCount
:
0
,
showForm
:
false
,
//是否显示报价单弹窗
...
...
@@ -297,30 +283,30 @@
}
],
showOrderForm
:
false
,
//是否显示转订单表单
commonId
:
0
,
showEditPrice
:
false
,
//是否显示改价表单
commonId
:
0
,
showEditPrice
:
false
,
//是否显示改价表单
}
},
computed
:
mapState
({
isHavePriceAction
(
state
)
{
if
(
state
.
user
.
userInfo
&&
state
.
user
.
userInfo
.
ActionMenuList
)
{
let
commonNum
=
0
;
if
(
state
.
user
.
userInfo
&&
state
.
user
.
userInfo
.
ActionMenuList
)
{
let
commonNum
=
0
;
let
action
=
state
.
user
.
userInfo
.
ActionMenuList
.
find
(
x
=>
{
if
(
x
.
FunctionCode
==
"Query_All_Offer"
)
{
commonNum
+=
1
;
commonNum
+=
1
;
}
});
this
.
commonId
=
state
.
user
.
userInfo
.
Id
;
this
.
commonId
=
state
.
user
.
userInfo
.
Id
;
return
commonNum
;
}
}
}),
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
;
if
(
this
.
isHavePriceAction
>
0
)
{
this
.
msg
.
CreateBy
=
0
;
}
else
{
this
.
msg
.
CreateBy
=
this
.
commonId
;
if
(
this
.
isHavePriceAction
>
0
)
{
this
.
msg
.
CreateBy
=
0
;
}
else
{
this
.
msg
.
CreateBy
=
this
.
commonId
;
}
this
.
getcourseofferpage
();
},
...
...
@@ -340,7 +326,7 @@
this
.
showOrderForm
=
true
;
},
//改价
editOrderPrice
(
item
){
editOrderPrice
(
item
)
{
this
.
offerObj
=
item
;
this
.
showEditPrice
=
true
;
},
...
...
src/pages/sale/myoffer.vue
0 → 100644
View file @
111ca01f
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
111ca01f
...
...
@@ -427,10 +427,15 @@ const routes = [{
import
(
"pages/sale/courseList.vue"
)
},
{
path
:
"/sale/courseoffer"
,
//销售 报价单
path
:
"/sale/courseoffer"
,
//销售 报价单
管理
component
:
()
=>
import
(
"pages/sale/courseoffer.vue"
)
},
{
path
:
"/sale/myoffer"
,
//销售 我的报价单
component
:
()
=>
import
(
"pages/sale/myoffer.vue"
)
},
{
path
:
"/sale/myOrder"
,
//销售 我的订单
component
:
()
=>
...
...
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