Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
e03e0b37
Commit
e03e0b37
authored
Jun 22, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情,云资源部分,个人档案
parent
11aeea0d
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
296 additions
and
171 deletions
+296
-171
src/App.vue
src/App.vue
+0
-1
src/components/menu.vue
src/components/menu.vue
+1
-1
src/components/order-list/order-list-cell.vue
src/components/order-list/order-list-cell.vue
+53
-54
src/components/order-list/order-list-list.vue
src/components/order-list/order-list-list.vue
+6
-2
src/components/process-card.vue
src/components/process-card.vue
+5
-5
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+96
-60
src/pages/user/order/order_detail.vue
src/pages/user/order/order_detail.vue
+115
-46
src/request/api/authority.js
src/request/api/authority.js
+1
-1
src/request/api/service_shop.js
src/request/api/service_shop.js
+12
-1
src/request/api/user.js
src/request/api/user.js
+7
-0
No files found.
src/App.vue
View file @
e03e0b37
...
@@ -19,7 +19,6 @@ export default {
...
@@ -19,7 +19,6 @@ export default {
console
.
log
(
"
--- --- ---
"
);
console
.
log
(
"
--- --- ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- --- ---
"
);
console
.
log
(
"
--- --- ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
}
else
{
}
else
{
console
.
log
(
data
.
errMsg
);
console
.
log
(
data
.
errMsg
);
...
...
src/components/menu.vue
View file @
e03e0b37
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<el-button
@
click=
"settlement"
size=
"small"
class=
"shop_settlement"
>
去购物车申请结算
</el-button>
<el-button
@
click=
"settlement"
size=
"small"
class=
"shop_settlement"
>
去购物车申请结算
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"shop_sj"
></div>
<div
v-if=
"userInfo.user_name && userInfo.user_name !=''"
class=
"shop_sj"
></div>
</div>
</div>
<div
style=
"float:right"
>
<div
style=
"float:right"
>
...
...
src/components/order-list/order-list-cell.vue
View file @
e03e0b37
...
@@ -7,10 +7,7 @@
...
@@ -7,10 +7,7 @@
</div>
</div>
<el-row
class=
"cell_row"
>
<el-row
class=
"cell_row"
>
<el-col
:span=
"10"
class=
"cell_msg"
>
<el-col
:span=
"10"
class=
"cell_msg"
>
<img
<img
:src=
"cellItem.cover"
class=
"cell_msg_img"
/>
:src=
"cellItem.cover"
class=
"cell_msg_img"
/>
<div
class=
"cell_msg_right"
>
<div
class=
"cell_msg_right"
>
<div
class=
"cell_name"
>
<div
class=
"cell_name"
>
<span>
{{
cellItem
.
name
}}
</span>
<span>
{{
cellItem
.
name
}}
</span>
...
@@ -51,12 +48,7 @@
...
@@ -51,12 +48,7 @@
>
>
<p>
服务评价:
</p>
<p>
服务评价:
</p>
<div
class=
"pop_rate"
>
<div
class=
"pop_rate"
>
<el-rate
<el-rate
v-model=
"serviceRate"
:colors=
"colors"
show-score
score-template=
"
{value}">
</el-rate>
v-model=
"serviceRate"
:colors=
"colors"
show-score
score-template=
"
{value}"
>
</el-rate>
</div>
</div>
<p>
填写评价:
</p>
<p>
填写评价:
</p>
<div
class=
"evaluation_text"
>
<div
class=
"evaluation_text"
>
...
@@ -132,7 +124,7 @@ export default {
...
@@ -132,7 +124,7 @@ export default {
data
:
()
=>
({
data
:
()
=>
({
visible
:
false
,
visible
:
false
,
colors
:
[
"
#99A9BF
"
,
"
#F7BA2A
"
,
"
#FF9900
"
],
colors
:
[
"
#99A9BF
"
,
"
#F7BA2A
"
,
"
#FF9900
"
],
serviceRate
:
0
,
serviceRate
:
null
,
textarea
:
""
,
textarea
:
""
,
showMsgBox
:
false
,
showMsgBox
:
false
,
helper
:
helper
,
helper
:
helper
,
...
@@ -140,50 +132,57 @@ export default {
...
@@ -140,50 +132,57 @@ export default {
}),
}),
methods
:
{
methods
:
{
addEvaluation
()
{
addEvaluation
()
{
if
(
this
.
cellItem
.
order_type
==
1
)
{
if
(
this
.
textarea
==
""
&&
this
.
serviceRate
==
null
)
{
let
query
=
{
this
.
$message
({
service_id
:
this
.
cellItem
.
service_id
,
message
:
"
请先完善评价内容
"
,
content
:
this
.
textarea
,
type
:
"
error
"
score
:
this
.
serviceRate
,
apply_id
:
this
.
cellItem
.
apply_id
};
this
.
$api
.
user
.
addServiceEvaluation
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
评价订单成功
"
,
type
:
"
success
"
});
this
.
visible
=
false
;
this
.
$emit
(
"
updateList
"
);
}
else
{
this
.
$message
({
message
:
"
评价订单失败
"
,
type
:
"
error
"
});
}
});
}
else
if
(
this
.
cellItem
.
order_type
==
2
)
{
let
query
=
{
app
:
this
.
cellItem
.
app_id
,
content
:
this
.
textarea
,
score
:
this
.
serviceRate
,
apply_id
:
this
.
cellItem
.
apply_id
};
this
.
$api
.
user
.
addServiceEvaluation
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
评价订单成功
"
,
type
:
"
success
"
});
this
.
visible
=
false
;
this
.
$emit
(
"
updateList
"
);
}
else
{
this
.
$message
({
message
:
"
评价订单失败
"
,
type
:
"
error
"
});
}
});
});
}
else
{
if
(
this
.
cellItem
.
order_type
==
1
)
{
let
query
=
{
service_id
:
this
.
cellItem
.
service_id
,
content
:
this
.
textarea
,
score
:
this
.
serviceRate
,
apply_id
:
this
.
cellItem
.
apply_id
};
this
.
$api
.
user
.
addServiceEvaluation
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
评价订单成功
"
,
type
:
"
success
"
});
this
.
visible
=
false
;
this
.
$emit
(
"
updateList
"
);
}
else
{
this
.
$message
({
message
:
"
评价订单失败
"
,
type
:
"
error
"
});
}
});
}
else
if
(
this
.
cellItem
.
order_type
==
2
)
{
let
query
=
{
app
:
this
.
cellItem
.
app_id
,
content
:
this
.
textarea
,
score
:
this
.
serviceRate
,
apply_id
:
this
.
cellItem
.
apply_id
};
this
.
$api
.
user
.
addServiceEvaluation
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
评价订单成功
"
,
type
:
"
success
"
});
this
.
visible
=
false
;
this
.
$emit
(
"
updateList
"
);
}
else
{
this
.
$message
({
message
:
"
评价订单失败
"
,
type
:
"
error
"
});
}
});
}
}
}
},
},
viewDetail
(
val
)
{
viewDetail
(
val
)
{
...
...
src/components/order-list/order-list-list.vue
View file @
e03e0b37
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<el-col
:span=
"4"
>
操作
</el-col>
<el-col
:span=
"4"
>
操作
</el-col>
</el-row>
</el-row>
</div>
</div>
<order-cell
v-for=
"item in datas"
:key=
"item.id"
:cellItem=
"item"
></order-cell>
<order-cell
v-for=
"item in datas"
:key=
"item.id"
:cellItem=
"item"
@
updateList=
"updateList"
></order-cell>
</div>
</div>
</
template
>
</
template
>
...
@@ -28,7 +28,11 @@ export default {
...
@@ -28,7 +28,11 @@ export default {
},
},
data
:
()
=>
({}),
data
:
()
=>
({}),
mounted
()
{},
mounted
()
{},
methods
:
{}
methods
:
{
updateList
()
{
this
.
emit
(
"
updateList
"
);
}
}
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/components/process-card.vue
View file @
e03e0b37
<
template
>
<
template
>
<div
class=
"out"
>
<div
class=
"out"
>
<div
class=
"box"
v-for=
"(item,index) in data"
:key=
"index+3000"
:style=
"!(item.arr&&item.arr.length!==0)||item.result==='审批未通过'?
{border:'none'}:(type
&&
type=='approval'
&&
index==data.length-1)?{borderLeft:'2px dashed #e3e5ef',paddingBottom:'0px',}:{}" :class="data[index+1]
&&
data[index+1].result==='审批中'?'dashedbd':''">
<div
class=
"box"
v-for=
"(item,index) in data"
:key=
"index+3000"
:style=
"!(item.arr&&item.arr.length!==0)||item.result==='审批未通过'
||item.result==='审批不通过'
?
{border:'none'}:(type
&&
type=='approval'
&&
index==data.length-1)?{borderLeft:'2px dashed #e3e5ef',paddingBottom:'0px',}:{}" :class="data[index+1]
&&
data[index+1].result==='审批中'?'dashedbd':''">
<div
class=
"circle"
:style=
"!(item.arr&&item.arr.length!==0)?
{borderColor:'#ffc95c'}:item.result==='审批未通过'?{borderColor:'#de3b4b'}:{}">
</div>
<div
class=
"circle"
:style=
"!(item.arr&&item.arr.length!==0)?
{borderColor:'#ffc95c'}:item.result==='审批未通过'
||item.result==='审批不通过'
?{borderColor:'#de3b4b'}:{}">
</div>
<div
class=
"card"
:style=
"item.result==='审批未通过'?
{backgroundColor:'#fcfafa'}:{}">
<div
class=
"card"
:style=
"item.result==='审批未通过'
||item.result==='审批不通过'
?
{backgroundColor:'#fcfafa'}:{}">
<p
class=
"card_title"
:style=
"!(item.arr&&item.arr.length!==0)?
{backgroundColor:'#fcefd6'}:item.result==='审批未通过'?{backgroundColor:'#f7d5d5'}:{}">
<p
class=
"card_title"
:style=
"!(item.arr&&item.arr.length!==0)?
{backgroundColor:'#fcefd6'}:item.result==='审批未通过'
||item.result==='审批不通过'
?{backgroundColor:'#f7d5d5'}:{}">
<span>
{{
item
.
title
}}
</span>
<span>
{{
item
.
title
}}
</span>
<span
:style=
"!(item.arr&&item.arr.length!==0)?
{color:'#ef9433'}:item.result==='审批未通过'?{color:'#e15260'}:{}">
{{
item
.
result
}}
</span>
<span
:style=
"!(item.arr&&item.arr.length!==0)?
{color:'#ef9433'}:item.result==='审批未通过'
||item.result==='审批不通过'
?{color:'#e15260'}:{}">
{{
item
.
result
}}
</span>
</p>
</p>
<div
class=
"card_contain"
v-if=
"item.arr&&item.arr.length!==0"
>
<div
class=
"card_contain"
v-if=
"item.arr&&item.arr.length!==0"
>
<info-list
:list_arr=
"item.arr"
></info-list>
<info-list
:list_arr=
"item.arr"
></info-list>
...
...
src/components/shop-cloud/shop-cloud.vue
View file @
e03e0b37
This diff is collapsed.
Click to expand it.
src/pages/user/order/order_detail.vue
View file @
e03e0b37
This diff is collapsed.
Click to expand it.
src/request/api/authority.js
View file @
e03e0b37
...
@@ -29,7 +29,7 @@ const authority = {
...
@@ -29,7 +29,7 @@ const authority = {
// User
// User
setUserInfo
(
params
)
{
setUserInfo
(
params
)
{
return
axios
.
put
(
`/apaas/backmgt/user/put`
,
params
);
return
axios
.
put
(
`/apaas/backmgt/user/put
?pageType=
${
params
.
pageType
}
`
,
params
);
},
},
}
}
...
...
src/request/api/service_shop.js
View file @
e03e0b37
...
@@ -32,7 +32,18 @@ Page=${params.Page}&Size=${params.Size}`);
...
@@ -32,7 +32,18 @@ Page=${params.Page}&Size=${params.Size}`);
return
axios
.
get
(
`/apaas/hubApi/market/list?online_state=
${
params
.
online_state
}
&appTypes=
${
params
.
appTypes
}
&
return
axios
.
get
(
`/apaas/hubApi/market/list?online_state=
${
params
.
online_state
}
&appTypes=
${
params
.
appTypes
}
&
businessArea=
${
params
.
businessArea
}
&developable=
${
params
.
developable
}
&orgSource=
${
params
.
orgSource
}
&order=
${
params
.
order
}
&page=
${
params
.
page
}
&limit=
${
params
.
limit
}
&search=
${
params
.
search
}
`
);
businessArea=
${
params
.
businessArea
}
&developable=
${
params
.
developable
}
&orgSource=
${
params
.
orgSource
}
&order=
${
params
.
order
}
&page=
${
params
.
page
}
&limit=
${
params
.
limit
}
&search=
${
params
.
search
}
`
);
},
},
// cloud
getCloudList
()
{
return
axios
.
get
(
`/apaas/serviceapp/v3/resource/list`
)
},
applicationCloud
(
params
)
{
return
axios
.
post
(
`/apaas/serviceapp/v3/resource/apply/new`
,
params
)
},
updateCloud
(
params
)
{
return
axios
.
post
(
`/apaas/serviceapp/v3/resource/apply/up`
,
params
)
},
// shopping cart
// shopping cart
addShoppingCart
(
params
)
{
addShoppingCart
(
params
)
{
return
axios
.
post
(
`/apaas/serviceapp/v3/shopcart/add`
,
params
);
return
axios
.
post
(
`/apaas/serviceapp/v3/shopcart/add`
,
params
);
...
...
src/request/api/user.js
View file @
e03e0b37
...
@@ -28,6 +28,13 @@ const user = {
...
@@ -28,6 +28,13 @@ const user = {
getOrderDetail
(
params
)
{
getOrderDetail
(
params
)
{
return
axios
.
get
(
`/apaas/serviceapp/v3/order/orderInfo?order_id=
${
params
.
order_id
}
`
);
return
axios
.
get
(
`/apaas/serviceapp/v3/order/orderInfo?order_id=
${
params
.
order_id
}
`
);
},
},
getOrderUser
(
params
)
{
return
axios
.
get
(
`/apaas/serviceapp/v3/order/applyInfo?order_id=
${
params
.
order_id
}
`
);
},
getOrderApproval
(
params
)
{
return
axios
.
get
(
`/apaas/serviceapp/v3/order/approval?apply_id=
${
params
.
apply_id
}
`
);
},
// user info
// user info
getNowUser
()
{
getNowUser
()
{
...
...
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