Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopFront
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
newshop
newShopFront
Commits
b428e407
Commit
b428e407
authored
Dec 03, 2019
by
邓学云
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店管理
parent
2f692c82
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1034 additions
and
91 deletions
+1034
-91
report.20191203.093919.22196.0.001.json
report.20191203.093919.22196.0.001.json
+613
-0
store.js
src/api/store.js
+24
-2
storeManage_details.vue
src/views/storedc/details/storeManage_details.vue
+350
-67
storeEvaluateManage.vue
src/views/storedc/storeEvaluateManage.vue
+17
-6
storeManage.vue
src/views/storedc/storeManage.vue
+12
-6
userGroup_edit.vue
src/views/userstaff/details/userGroup_edit.vue
+18
-10
No files found.
report.20191203.093919.22196.0.001.json
0 → 100644
View file @
b428e407
This diff is collapsed.
Click to expand it.
src/api/store.js
View file @
b428e407
...
@@ -45,7 +45,6 @@ export function modifyEvaluateDetails (parameter) {
...
@@ -45,7 +45,6 @@ export function modifyEvaluateDetails (parameter) {
}
}
// 新建门店评价
// 新建门店评价
export
function
addEvaluate
(
parameter
)
{
export
function
addEvaluate
(
parameter
)
{
console
.
log
(
'新建'
,
parameter
)
return
axios
({
return
axios
({
url
:
homeUrl
+
'branch/branch-scores/add-branch-score'
,
url
:
homeUrl
+
'branch/branch-scores/add-branch-score'
,
method
:
'post'
,
method
:
'post'
,
...
@@ -54,12 +53,19 @@ export function addEvaluate (parameter) {
...
@@ -54,12 +53,19 @@ export function addEvaluate (parameter) {
}
}
// 删除门店评价
// 删除门店评价
export
function
deleteEvaluate
(
id
)
{
export
function
deleteEvaluate
(
id
)
{
console
.
log
(
id
)
return
axios
({
return
axios
({
url
:
homeUrl
+
'branch/branch-scores/score-info-del?guid='
+
id
,
url
:
homeUrl
+
'branch/branch-scores/score-info-del?guid='
+
id
,
method
:
'delete'
method
:
'delete'
})
})
}
}
// 下载模板
export
function
downloadFile
(
parameter
)
{
return
axios
({
url
:
homeUrl
+
'common/down-templates/template-file'
,
method
:
'get'
,
params
:
parameter
})
}
// 门店管理
// 门店管理
// 获取门店列表
// 获取门店列表
export
function
getStoreList
(
parameter
)
{
export
function
getStoreList
(
parameter
)
{
...
@@ -111,6 +117,22 @@ export function uploadStorePicture (parameter) {
...
@@ -111,6 +117,22 @@ export function uploadStorePicture (parameter) {
data
:
parameter
data
:
parameter
})
})
}
}
// 门店管理新增
export
function
addStoreManage
(
parameter
)
{
return
axios
({
url
:
homeUrl
+
'branch/branches/add-branch'
,
method
:
'post'
,
data
:
parameter
})
}
// 门店管理编辑
export
function
modifyStoreManage
(
parameter
)
{
return
axios
({
url
:
homeUrl
+
'branch/branches/revise-branch'
,
method
:
'put'
,
data
:
parameter
})
}
// 获取门店服务类目管理
// 获取门店服务类目管理
export
function
getScategorymg
(
parameter
)
{
export
function
getScategorymg
(
parameter
)
{
console
.
log
(
parameter
)
console
.
log
(
parameter
)
...
...
src/views/storedc/details/storeManage_details.vue
View file @
b428e407
This diff is collapsed.
Click to expand it.
src/views/storedc/storeEvaluateManage.vue
View file @
b428e407
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<a-button-group>
<a-button-group>
<a-button
@
click=
"goEdit(1)"
type=
'primary'
icon=
'plus'
>
添加分值
</a-button>
<a-button
@
click=
"goEdit(1)"
type=
'primary'
icon=
'plus'
>
添加分值
</a-button>
<a-button
style=
"margin-left: 8px"
type=
'primary'
icon=
'file-add'
>
导入打分
</a-button>
<a-button
style=
"margin-left: 8px"
type=
'primary'
icon=
'file-add'
>
导入打分
</a-button>
<a-button
style=
"margin-left: 8px"
type=
'primary'
icon=
'download'
>
下载导入模板
</a-button>
<a-button
@
click=
"downloadFile"
style=
"margin-left: 8px"
type=
'primary'
icon=
'download'
>
下载导入模板
</a-button>
</a-button-group>
</a-button-group>
</div>
</div>
<s-table
<s-table
...
@@ -288,7 +288,7 @@
...
@@ -288,7 +288,7 @@
<
script
>
<
script
>
import
moment
from
'moment'
import
moment
from
'moment'
import
{
STable
}
from
'@/components'
import
{
STable
}
from
'@/components'
import
{
getEvaluateList
,
getEvaluateDetails
,
modifyEvaluateDetails
,
addEvaluate
,
deleteEvaluate
}
from
'@/api/store'
import
{
getEvaluateList
,
getEvaluateDetails
,
modifyEvaluateDetails
,
addEvaluate
,
deleteEvaluate
,
downloadFile
}
from
'@/api/store'
export
default
{
export
default
{
name
:
'TableList'
,
name
:
'TableList'
,
...
@@ -299,11 +299,11 @@ export default {
...
@@ -299,11 +299,11 @@ export default {
return
{
return
{
mdl
:
{},
mdl
:
{},
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
8
},
xs
:
{
span
:
24
},
sm
:
{
span
:
8
}
sm
:
{
span
:
7
}
},
},
wrapperCol
:
{
wrapperCol
:
{
xs
:
{
span
:
12
},
xs
:
{
span
:
24
},
sm
:
{
span
:
12
}
sm
:
{
span
:
12
}
},
},
destroyOnClose
:
true
,
destroyOnClose
:
true
,
...
@@ -370,6 +370,17 @@ export default {
...
@@ -370,6 +370,17 @@ export default {
// this.$refs.table.refresh();
// this.$refs.table.refresh();
},
},
methods
:
{
methods
:
{
// 下载模板门店服务评价打分模板(shop_branch_score_import.xls)
downloadFile
(){
let
downloadData
=
{
'ENG_NAME'
:
'shop_branch_score_import.xls'
,
'CN_NAME'
:
'门店服务评价打分模板'
}
downloadFile
(
downloadData
).
then
(
res
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
},
remove
(
key
)
{
remove
(
key
)
{
console
.
log
(
key
)
console
.
log
(
key
)
deleteEvaluate
(
key
).
then
(
res
=>
{
deleteEvaluate
(
key
).
then
(
res
=>
{
...
...
src/views/storedc/storeManage.vue
View file @
b428e407
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
</div>
</div>
<div
class=
"table-operator"
>
<div
class=
"table-operator"
>
<a-button-group>
<a-button-group>
<a-button
type=
'primary'
icon=
'plus'
@
click=
"handleEdit(1)"
>
新建门店
</a-button>
<a-button
type=
'primary'
icon=
'edit'
>
修改门店信息
</a-button>
<a-button
type=
'primary'
icon=
'edit'
>
修改门店信息
</a-button>
<a-button
style=
"margin-left: 8px"
type=
'primary'
icon=
'download'
>
导出门店
</a-button>
<a-button
style=
"margin-left: 8px"
type=
'primary'
icon=
'download'
>
导出门店
</a-button>
</a-button-group>
</a-button-group>
...
@@ -117,11 +118,11 @@ export default {
...
@@ -117,11 +118,11 @@ export default {
mdl
:
{},
mdl
:
{},
addressTest
:
null
,
addressTest
:
null
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
8
},
xs
:
{
span
:
24
},
sm
:
{
span
:
8
}
sm
:
{
span
:
7
}
},
},
wrapperCol
:
{
wrapperCol
:
{
xs
:
{
span
:
12
},
xs
:
{
span
:
24
},
sm
:
{
span
:
12
}
sm
:
{
span
:
12
}
},
},
allowClear
:
true
,
allowClear
:
true
,
...
@@ -191,6 +192,7 @@ export default {
...
@@ -191,6 +192,7 @@ export default {
},
},
mounted
(){
mounted
(){
this
.
loadProvince
()
this
.
loadProvince
()
this
.
$refs
.
table
.
refresh
();
},
},
methods
:
{
methods
:
{
// queryParame处理省市区传旨
// queryParame处理省市区传旨
...
@@ -269,8 +271,12 @@ export default {
...
@@ -269,8 +271,12 @@ export default {
},
},
handleOk
(
value
){
handleOk
(
value
){
},
},
handleEdit
(
record
)
{
handleEdit
(
value
)
{
this
.
$router
.
push
({
path
:
'/storedc/storeManage_details'
,
query
:{
GUID
:
record
.
GUID
}})
if
(
value
==
1
){
this
.
$router
.
push
({
path
:
'/storedc/storeManage_details'
,
query
:{
goid
:
1
}})
}
else
{
this
.
$router
.
push
({
path
:
'/storedc/storeManage_details'
,
query
:{
goid
:
0
,
GUID
:
value
.
GUID
}})
}
},
},
toggleAdvanced
()
{
toggleAdvanced
()
{
this
.
advanced
=
!
this
.
advanced
this
.
advanced
=
!
this
.
advanced
...
...
src/views/userstaff/details/userGroup_edit.vue
View file @
b428e407
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
<a-form-item
label=
"组名称"
label=
"组名称"
:labelCol=
"
{lg: {span: 7}, sm: {span: 7}}
"
:labelCol=
"
labelCol
"
:wrapperCol="
{lg: {span: 10}, sm: {span: 17} }
">
:wrapperCol=
"
wrapperCol
"
>
<a-input
<a-input
v-decorator=
"[
v-decorator=
"[
'NAME',
'NAME',
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
label=
"优惠百分比"
label=
"优惠百分比"
:labelCol=
"
{lg: {span: 7}, sm: {span: 7}}
"
:labelCol=
"
labelCol
"
:wrapperCol="
{lg: {span: 10}, sm: {span: 17} }
">
:wrapperCol=
"
wrapperCol
"
>
<a-input
<a-input
placeholder=
"请输入优惠百分比"
placeholder=
"请输入优惠百分比"
v-decorator=
"[
v-decorator=
"[
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
label=
"优惠范围"
label=
"优惠范围"
:labelCol=
"
{lg: {span: 7}, sm: {span: 7}}
"
:labelCol=
"
labelCol
"
:wrapperCol="
{lg: {span: 10}, sm: {span: 17} }
"
:wrapperCol=
"
wrapperCol
"
:required=
"false"
:required=
"false"
>
>
<a-radio-group
v-decorator=
"['IS_SETRANGE',
{initialValue:'0',normalize:checkRadio}]">
<a-radio-group
v-decorator=
"['IS_SETRANGE',
{initialValue:'0',normalize:checkRadio}]">
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
label=
"是否为默认组"
label=
"是否为默认组"
:labelCol=
"
{lg: {span: 7}, sm: {span: 7}}
"
:labelCol=
"
labelCol
"
:wrapperCol=
"
{lg: {span: 10}, sm: {span: 17} }
"
:wrapperCol=
"
wrapperCol
"
:required=
"false"
:required=
"false"
>
>
<a-radio-group
v-decorator=
"['IS_DEFAULT',{initialValue:'1',normalize:checkRadio}]"
>
<a-radio-group
v-decorator=
"['IS_DEFAULT',{initialValue:'1',normalize:checkRadio}]"
>
...
@@ -67,8 +67,8 @@
...
@@ -67,8 +67,8 @@
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
label=
"积分比率"
label=
"积分比率"
:labelCol=
"
{lg: {span: 7}, sm: {span: 7}}
"
:labelCol=
"
labelCol
"
:wrapperCol=
"
{lg: {span: 10}, sm: {span: 17} }
"
:wrapperCol=
"
wrapperCol
"
:required=
"false"
:required=
"false"
>
>
<a-input-number
v-decorator=
"['MONEY_POINT_SRATE']"
:min=
"0"
:max=
"100"
/>
<a-input-number
v-decorator=
"['MONEY_POINT_SRATE']"
:min=
"0"
:max=
"100"
/>
...
@@ -96,6 +96,14 @@ export default {
...
@@ -96,6 +96,14 @@ export default {
name
:
'BaseForm'
,
name
:
'BaseForm'
,
data
()
{
data
()
{
return
{
return
{
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
7
}
},
wrapperCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
12
}
},
dataSource
:
[
dataSource
:
[
{
{
key
:
'0'
,
key
:
'0'
,
...
...
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