Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
e45fda13
提交
e45fda13
编写于
8月 25, 2020
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
面包屑
上级
0fcae6d8
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
3 行删除
+17
-3
create-good.vue
src/views/goods/create-good.vue
+17
-3
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
e45fda13
<
template
>
<div
class=
"create-shop-wrapper"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
></bread-crumb>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:curmbThird=
"curmbThird"
:jumPathThird=
"jumPathThird"
></bread-crumb>
<div
class=
"create-shop-content screenSet"
id=
"screenSet"
>
<el-row
class=
"step-content"
>
<el-col
:span=
"20"
>
...
...
@@ -382,7 +382,7 @@
<span
class=
"sp sp-c"
>
{{
formData
.
goodsStock
}}
</span>
<span
class=
"sp sp-r"
@
click=
"changeStock(2)"
><i
class=
"el-icon-plus"
></i></span>
</div>
<
!--
<p
class=
"upload-message"
v-if=
"!isgoodStock"
>
请上传商品头图
</p>
--
>
<
p
class=
"error-message"
v-if=
"!isgoodStock"
>
库存不能为0
</p
>
<!--
<el-input
size=
"small"
v-model=
"formData.name"
...
...
@@ -485,6 +485,9 @@
}],
stockDio:false,
curmbFirst: '云鹊店铺',
curmbSecond: '商品管理',
curmbThird: '编辑商品',// /live-manage?id=
jumPathThird: '',
isgoodsImages:true,
isSpecification_url:true,
title:'',
...
...
@@ -634,7 +637,10 @@
vm = this;
const {id, storeId} = this.$route.query
this.jumPathThird = '/goods-manage?storeId='+storeId
//this.jumPathThird = '/create-good?id=add&storeId=46'
this.title = id == 'add' ? '新增商品' : '编辑商品'
this.curmbThird = this.title
this.formData.storeId = Number(storeId) || 0;
this.getLever(0,1)
dosageAll().then((res)=>{
...
...
@@ -682,6 +688,7 @@
this.fileGoodsList = this.getImges(goodsList[0].goodsImgList,1)
this.fileIntrList = this.getImges(goodsList[0].medicImgList,2)
this.isMedic = this.formData.goodsType == 5 ? true : false
this.formData.stock = this.formData.goodsStock
if(this.isMedic){
this.getLever(5,2)
}
...
...
@@ -847,6 +854,7 @@
this.formData.categoryId = this.formData.goodsType
this.formData.otc = this.formData.otc1 == 1 ? true : false
this.isgoodStock = this.formData.goodsStock > 0 ? true : false
console.log(this.isgoodStock)
if(this.isMedic){
if(!this.isgoodsImages){
return;
...
...
@@ -855,6 +863,9 @@
return;
}
}
if(!this.isgoodStock){
return;
}
this.$refs[formName].validate((valid) => {
if (valid) {
...
...
@@ -1102,7 +1113,10 @@
top
:
11px
;
color
:
#f56c6c
;
}
.error-message
{
font-size
:
12px
;
color
:
#f56c6c
;
}
.upload-message
{
position
:
absolute
;
left
:
0
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录