Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
web
soss
Commits
3fd9c90f
Commit
3fd9c90f
authored
May 26, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品
parent
97f09c13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
src/components/SelectSpecs/index.vue
+2
-2
src/views/shop/shop/components/addShop.vue
+8
-8
src/views/shop/shop/setShop.vue
+4
-2
No files found.
src/components/SelectSpecs/index.vue
View file @
3fd9c90f
...
...
@@ -74,8 +74,7 @@ export default {
}
else
{
this
.
ids
=
[];
this
.
specNames
=
""
}
}
},
},
},
...
...
@@ -94,6 +93,7 @@ export default {
},
/** 查询列表 */
getList
()
{
this
.
classList
=
[];
this
.
loading
=
true
;
listSpecs
(
this
.
queryParams
).
then
((
response
)
=>
{
const
{
rows
,
total
}
=
response
;
...
...
src/views/shop/shop/components/addShop.vue
View file @
3fd9c90f
...
...
@@ -28,13 +28,14 @@
<el-input
v-model=
"form.address"
placeholder=
"请输入详细地址"
/>
</el-form-item>
<el-form-item
label=
"营业时间"
prop=
"time"
>
<el-date-picker
<el-time-picker
is-range
v-model=
"form.time"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
format=
"yyyy-MM-dd HH:mm"
value-format=
"yyyy-MM-dd HH:mm"
>
</el-date-picker>
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
placeholder=
"选择时间范围"
format=
"HH:mm"
value-format=
"HH:mm"
>
</el-time-picker>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
placeholder=
"请输入备注"
/>
...
...
@@ -124,9 +125,8 @@ export default {
});
}
else
{
addShop
(
surplus
).
then
(({
data
})
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
$emit
(
'setShopId'
,
data
)
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
$emit
(
'setShopId'
,
data
)
});
}
}
...
...
src/views/shop/shop/setShop.vue
View file @
3fd9c90f
...
...
@@ -3,7 +3,7 @@
<el-dialog
title=
"店铺设置"
:visible
.
sync=
"open"
width=
"1200px"
append-to-body
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"店铺信息"
name=
"first"
>
<AddShop
:shopId=
"shopId"
@
closeDialog=
"closeHandle"
@
getList=
"getList"
/>
<AddShop
:shopId=
"shopId"
@
closeDialog=
"closeHandle"
@
getList=
"getList"
@
setShopId=
"setShopId"
/>
</el-tab-pane>
<el-tab-pane
:disabled=
"!shopId"
label=
"机器信息"
name=
"second"
>
<Machine
ref=
"Machine"
:shopId=
"shopId"
/>
...
...
@@ -55,7 +55,9 @@ export default {
}
},
methods
:
{
setShopId
(
id
)
{
this
.
shopId
=
id
},
setShopId
(
id
)
{
this
.
shopId
=
id
},
handleClick
(
tab
,
event
)
{
},
...
...
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