Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
c6dce127
Commit
c6dce127
authored
Nov 19, 2021
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 查看所有评价
parent
46f785d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
evaluate-set.vue
src/views/apps/order-evaluate/evaluate-set.vue
+21
-13
No files found.
src/views/apps/order-evaluate/evaluate-set.vue
View file @
c6dce127
...
...
@@ -12,9 +12,14 @@
<div
class=
"app-detail-pane border-box p-20"
>
<div
class=
"m-b-20"
>
<span
class=
"font-14 p-r-10"
></span>
<el-switch
v-model=
"myCustomData.guideReplyFlag"
></el-switch>
<el-switch
v-model=
"myCustomData.guideReplyFlag"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
<span
class=
"p-r-10 font-14 color-303133"
>
禁止订单关联导购回复评价
</span><span
class=
"font-12 color-909399 p-l-10"
>
注:开启后,订单关联导购不可回复评价
</span>
</div>
<div
class=
"m-b-20"
>
<span
class=
"font-14 p-r-10"
></span>
<el-switch
v-model=
"myCustomData.allOrderFlag"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
<span
class=
"p-r-10 font-14 color-303133"
>
允许店员查看所有订单评价
</span>
</div>
<div
class=
"m-t-46"
>
<el-button
type=
"primary"
:loading=
"loading"
@
click=
"submit('searchFlag')"
:disabled=
"$store.state.wxEnterpriseType"
>
保 存
</el-button>
</div>
...
...
@@ -25,7 +30,7 @@
import
showMsg
from
'@/common/js/showmsg'
;
import
errMsg
from
'@/common/js/error'
;
import
{
_debounce
}
from
'@/common/js/public'
;
import
{
postRequest
}
from
'@/api/api'
;
import
{
postRequest
,
getRequest
}
from
'@/api/api'
;
export
default
{
name
:
'evaluate-set'
,
props
:
{
...
...
@@ -53,7 +58,8 @@ export default {
projectName
:
''
,
// 当前项目名
wxEnterpriseRelatedId
:
localStorage
.
getItem
(
'userInfos'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'userInfos'
)).
wxEnterpriseId
:
''
,
myCustomData
:
{
guideReplyFlag
:
false
guideReplyFlag
:
0
,
allOrderFlag
:
0
},
activeId
:
'1'
,
loading
:
false
...
...
@@ -73,18 +79,18 @@ export default {
* 保存-API
*/
setData
(
type
)
{
const
that
=
this
;
const
{
allOrderFlag
,
guideReplyFlag
}
=
this
.
myCustomData
;
let
para
=
{
enterpriseId
:
th
at
.
brandId
,
// wxEnterpriseRelatedId: that.wxEnterpriseRelatedId
,
guideReplyFlag
:
that
.
myCustomData
.
guideReplyFlag
?
1
:
'0'
enterpriseId
:
th
is
.
brandId
,
guideReplyFlag
,
allOrderFlag
};
const
url
=
'/haoban-app-aggregation-web/order-evaluation-setting'
;
postRequest
(
url
,
para
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
th
at
.
loading
=
false
;
th
at
.
getCustomerSet
();
th
is
.
loading
=
false
;
th
is
.
getCustomerSet
();
if
(
resData
.
errorCode
==
1
)
{
showMsg
.
showmsg
(
'保存成功'
,
'success'
);
return
;
...
...
@@ -92,8 +98,8 @@ export default {
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
th
at
.
loading
=
false
;
th
at
.
$message
.
error
({
th
is
.
loading
=
false
;
th
is
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
});
...
...
@@ -109,12 +115,14 @@ export default {
enterpriseId
:
that
.
brandId
,
wxEnterpriseRelatedId
:
that
.
wxEnterpriseRelatedId
};
pos
tRequest
(
'/haoban-app-aggregation-web/order-evaluation-find'
,
para
)
ge
tRequest
(
'/haoban-app-aggregation-web/order-evaluation-find'
,
para
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
!!
resData
.
result
)
{
that
.
myCustomData
.
guideReplyFlag
=
resData
.
result
.
guideReplyFlag
==
1
?
true
:
false
;
const
{
guideReplyFlag
,
allOrderFlag
}
=
resData
.
result
;
that
.
myCustomData
.
guideReplyFlag
=
guideReplyFlag
;
that
.
myCustomData
.
allOrderFlag
=
allOrderFlag
;
}
return
;
}
...
...
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