Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
ybf
Project
Project
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
xulili
ybf
Commits
7b7f38ab
Commit
7b7f38ab
authored
Feb 03, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: store's see layout.
parent
3bf89b40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
164 additions
and
17 deletions
+164
-17
addStore.vue
ybf_admin/src/pages/in/contact/components/addStore.vue
+7
-3
store.vue
ybf_admin/src/pages/in/contact/store.vue
+156
-14
index.vue
ybf_admin/src/pages/task/bar/index.vue
+1
-0
No files found.
ybf_admin/src/pages/in/contact/components/addStore.vue
View file @
7b7f38ab
...
@@ -209,9 +209,13 @@ export default {
...
@@ -209,9 +209,13 @@ export default {
ApiStoreAddStore
(
postData
)
ApiStoreAddStore
(
postData
)
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'--->res'
)
if
(
res
.
result
==
"success"
)
{
this
.
$message
({
message
:
"添加成功"
,
type
:
"success"
});
this
.
addStoreDialog
=
false
;
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
...
ybf_admin/src/pages/in/contact/store.vue
View file @
7b7f38ab
...
@@ -60,6 +60,96 @@
...
@@ -60,6 +60,96 @@
<add-store
ref=
"addStore"
></add-store>
<add-store
ref=
"addStore"
></add-store>
<store-detail
ref=
"storeDetail"
></store-detail>
<store-detail
ref=
"storeDetail"
></store-detail>
<div
class=
"ztask-dialogs"
>
<el-dialog
title=
"门店详情"
:visible
.
sync=
"zcache.status.seeDialog"
width=
"50%"
:before-close=
"dialogSeeClose"
>
<div
class=
"dialogMain"
>
<el-form
:model=
"zdata.see"
label-width=
"120px"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"门店名称:"
>
<el-input
:disabled=
"true"
v-model=
"zdata.see.storeName"
autocomplete=
"off"
placeholder=
"门店名称缺失"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"门店类型:"
>
<el-input
:disabled=
"true"
v-model=
"zdata.see.storeType"
autocomplete=
"off"
placeholder=
"门店类型为空"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"所属柜组:"
>
<el-input
:disabled=
"true"
v-model=
"zdata.see.storeFromBar"
autocomplete=
"off"
placeholder=
"柜组信息未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"门店负责人:"
>
<el-input
:disabled=
"true"
v-model=
"zdata.see.storeBossName"
autocomplete=
"off"
placeholder=
"门店负责人未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"门牌号:"
>
<el-input
:disabled=
"true"
v-model=
"zdata.see.storeDoorId"
autocomplete=
"off"
placeholder=
"门牌号未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"位置:"
>
<el-input
:disabled=
"true"
v-model=
"zdata.see.storeAddress"
autocomplete=
"off"
placeholder=
"位置未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"dialogSeeClose"
>
关 闭
</el-button>
<!-- <el-button size="small" type="primary" @click="dialogSeeSubmitSend('seeForm')">任务下发</el-button> -->
</span>
</el-dialog>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -80,6 +170,31 @@ export default {
...
@@ -80,6 +170,31 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
zcache
:{
status
:{
seeDialog
:
false
,
}
},
zdata
:{
see
:
{
storeName
:
'storeAlice'
,
storeType
:
'普通'
,
storeFromBar
:
'柜组'
,
storeBossName
:
'manAlice'
,
storeDoorId
:
'0101'
,
storeAddress
:
'BeijingAlice'
,
storeManList
:
[
{
id
:
'0001'
,
name
:
'Alice'
,
},
{
id
:
'0002'
,
name
:
'Bob'
,
},
]
}
},
page
:
{
page
:
{
currentPage
:
1
,
currentPage
:
1
,
size
:
20
,
size
:
20
,
...
@@ -185,7 +300,14 @@ export default {
...
@@ -185,7 +300,14 @@ export default {
detailDialog
:
false
detailDialog
:
false
};
};
},
},
watch
:
{
// addStoreDialog() {
addStoreDialog
()
{
if
((
this
.
$refs
.
addStore
.
addStoreDialog
=
false
))
{
this
.
storeGetMainList
();
}
}
},
// created() {
// created() {
// this.storeGetMainList();
// this.storeGetMainList();
// zlog('--->Created!')
// zlog('--->Created!')
...
@@ -232,14 +354,19 @@ export default {
...
@@ -232,14 +354,19 @@ export default {
});
});
},
},
storeGetStoreDetail
(
inData
)
{
storeGetStoreDetail
(
inData
)
{
this
.
zcache
.
status
.
seeDialog
=
true
// let postData = {
// let postData = {
// isDetail: true,
// isDetail: true,
// stallId: inData
// stallId: inData
// };
// };
this
.
msgId
=
id
;
// this.msgId = id;
this
.
detailDialog
=
true
;
// this.detailDialog = true;
this
.
$refs
.
storeDetail
.
detailDialog
=
true
;
// this.$refs.storeDetail.detailDialog = true;
// ApiStoreGetStoreDetail(postData).then(res => {
// ApiStoreGetStoreDetail(postData).then(res => {
// });
// });
...
@@ -250,16 +377,27 @@ export default {
...
@@ -250,16 +377,27 @@ export default {
};
};
ApiStoreDelStore
(
inData
)
ApiStoreDelStore
(
inData
)
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'--->delRes ='
,
res
)
console
.
log
(
"--->delRes ="
,
res
);
if
(
res
.
result
==
'success'
){
if
(
res
.
result
==
"success"
)
{
this
.
$message
({
message
:
"删除成功"
,
type
:
"success"
});
this
.
storeGetMainList
();
}
else
{
this
.
$message
({
message
:
"删除失败!"
,
type
:
"error"
});
}
})
.
catch
(
err
=>
{
this
.
$message
({
this
.
$message
({
message
:
'删除成功'
,
message
:
"删除失败!"
,
type
:
'success'
type
:
"error"
})
});
this
.
storeGetMainList
();
});
}
});
},
},
listPick
()
{},
listPick
()
{},
...
@@ -281,7 +419,11 @@ export default {
...
@@ -281,7 +419,11 @@ export default {
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
console
.
log
(
`当前页:
${
val
}
`
);
}
},
dialogSeeClose
(){
this
.
zcache
.
status
.
seeDialog
=
false
},
}
}
};
};
</
script
>
</
script
>
...
...
ybf_admin/src/pages/task/bar/index.vue
View file @
7b7f38ab
...
@@ -222,6 +222,7 @@
...
@@ -222,6 +222,7 @@
<el-button
size=
"small"
type=
"primary"
@
click=
"dialogCreateSubmitSend('createForm')"
>
保存并发布
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"dialogCreateSubmitSend('createForm')"
>
保存并发布
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<el-dialog
<el-dialog
title=
"任务详情"
title=
"任务详情"
:visible
.
sync=
"cache.status.seeDialog"
:visible
.
sync=
"cache.status.seeDialog"
...
...
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