Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
b6cd4cd8
提交
b6cd4cd8
编写于
12月 09, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
编辑变成查看
关闭小店,状态为下线
上级
ebe33e3a
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
5 行删除
+16
-5
create-shop.vue
src/views/shop/create-shop.vue
+15
-4
shop-list.vue
src/views/shop/shop-list.vue
+1
-1
未找到文件。
src/views/shop/create-shop.vue
浏览文件 @
b6cd4cd8
...
...
@@ -7,7 +7,8 @@
<p
class=
"title"
>
新建店铺
</p>
</el-col>
<el-col
:span=
"4"
style=
"text-align: right"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"complete"
>
完成
</el-button>
<el-button
size=
"small"
type=
"primary"
:disabled=
"storeData && storeData.tradeStore.storeStatus == 0"
@
click=
"complete"
>
完成
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"back"
>
返回
</el-button>
</el-col>
</el-row>
<el-form
...
...
@@ -35,7 +36,7 @@
class=
"bg-img"
/>
<img
v-if=
"!formData.storeLogo"
class=
"bg-img"
src=
"../../assets/image/small.png"
/>
<div
<div
v-if=
"storeData && storeData.tradeStore.storeStatus == 0"
class=
"img-delete"
v-show=
"imgMouseOver1"
@
click
.
stop=
"deleteImg('storeLogo')"
...
...
@@ -55,6 +56,7 @@
<el-form-item
label=
"店铺名称"
prop=
"storeName"
>
<el-col
:span=
"10"
>
<el-input
:disabled=
"storeData && storeData.tradeStore.storeStatus == 0"
size=
"small"
v-model=
"formData.storeName"
placeholder=
"请输入店铺名称"
...
...
@@ -67,6 +69,7 @@
<el-form-item
label=
"店铺简介"
prop=
"storeDescription"
>
<el-col
:span=
"10"
>
<el-input
:disabled=
"storeData && storeData.tradeStore.storeStatus == 0"
type=
"textarea"
rows=
"4"
maxlength=
"400"
...
...
@@ -258,6 +261,7 @@
<el-col
:span=
"10"
>
<el-form-item
label=
"医生姓名"
prop=
"docName"
class=
"required-label"
>
<el-input
:disabled=
"storeData && storeData.tradeStore.storeStatus == 0"
type=
"text"
maxlength=
"50"
size=
"small"
...
...
@@ -443,7 +447,7 @@
curmbFirst: '云鹊店铺',
curmbSecond: '新建店铺',
isDisabled: false,
storeData:
{}
,
storeData:
null
,
typeList: [
{
label: '供货商',
...
...
@@ -597,7 +601,7 @@
created() {
vm = this;
this.formData.storeId = this.$route.query.storeId || null;
this.storeData = this.$route.query.storeData ||
{}
;
this.storeData = this.$route.query.storeData ||
null
;
if (this.formData.storeId) {
this.curmbSecond = '编辑店铺';
...
...
@@ -719,6 +723,13 @@
})
}
},
// 返回
back() {
this.$router.push({
path: '/shop-list'
})
},
checkPhone(val) {
if(!(/^1[3456789]
\
d{9}$/.test(val))) {
return false;
...
...
src/views/shop/shop-list.vue
浏览文件 @
b6cd4cd8
...
...
@@ -74,7 +74,7 @@
<el-table-column
label=
"操作"
min-width=
"230"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<div>
<el-button
@
click=
"editShop(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"editShop(scope.row)"
type=
"text"
size=
"small"
>
{{
scope
.
row
.
tradeStore
.
storeStatus
==
0
?
'查看'
:
'编辑'
}}
</el-button>
<el-button
@
click=
"shopManage(scope.row)"
type=
"text"
size=
"small"
>
商品管理
</el-button>
<el-button
@
click=
"orderManage(scope.row)"
type=
"text"
size=
"small"
>
订单管理
</el-button>
<el-button
v-if=
"scope.row.tradeStore.storeType == 3 && scope.row.tradeStore.storeStatus == 1"
@
click=
"closeShopAction(scope.row)"
type=
"text"
size=
"small"
>
关闭店铺
</el-button>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录