Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
1a32e714
提交
1a32e714
编写于
8月 24, 2020
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复
上级
6f4e8847
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
6 行删除
+12
-6
create-good.vue
src/views/goods/create-good.vue
+11
-5
goods-manage.vue
src/views/goods/goods-manage.vue
+1
-1
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
1a32e714
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
<el-form-item
label=
"是否是处方药"
prop=
"otc1"
>
<el-form-item
label=
"是否是处方药"
prop=
"otc1"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-radio
size=
"mini"
v-model=
"formData.otc1"
label=
"1"
>
处方药
</el-radio>
<el-radio
size=
"mini"
v-model=
"formData.otc1"
label=
"1"
>
处方药
</el-radio>
<el-radio
v-model=
"formData.otc"
label=
"0"
>
非处方药
</el-radio>
<el-radio
v-model=
"formData.otc
1
"
label=
"0"
>
非处方药
</el-radio>
</el-col>
</el-col>
</el-form-item>
</el-form-item>
<el-form-item
label=
"剂型"
prop=
"dosageId"
>
<el-form-item
label=
"剂型"
prop=
"dosageId"
>
...
@@ -382,7 +382,7 @@
...
@@ -382,7 +382,7 @@
<span
class=
"sp sp-c"
>
{{
formData
.
goodsStock
}}
</span>
<span
class=
"sp sp-c"
>
{{
formData
.
goodsStock
}}
</span>
<span
class=
"sp sp-r"
@
click=
"changeStock(2)"
><i
class=
"el-icon-plus"
></i></span>
<span
class=
"sp sp-r"
@
click=
"changeStock(2)"
><i
class=
"el-icon-plus"
></i></span>
</div>
</div>
<p
class=
"upload-message"
v-if=
"!isgoodStock"
>
请上传商品头图
</p
>
<!--
<p
class=
"upload-message"
v-if=
"!isgoodStock"
>
请上传商品头图
</p>
--
>
<!--
<el-input
<!--
<el-input
size=
"small"
size=
"small"
v-model=
"formData.name"
v-model=
"formData.name"
...
@@ -670,12 +670,18 @@
...
@@ -670,12 +670,18 @@
closeLoading(this);
closeLoading(this);
if(res.data == null){
if(res.data == null){
return this.$message({
return this.$message({
message: '
分页
数据加载失败',
message: '数据加载失败',
type: 'error'
type: 'error'
});
});
}
}
const {goodsList} = res.data
const {goodsList} = res.data
this.formData = {...goodsList[0]}
this.formData = {...goodsList[0]}
this.isMedic = this.formData.goodsType == 5 ? true : false
if(this.isMedic){
this.getLever(5,2)
}
console.log(this.formData)
//this.totalRows = res.data.totalCount
//this.totalRows = res.data.totalCount
})
})
},
},
...
@@ -694,7 +700,7 @@
...
@@ -694,7 +700,7 @@
if(res.data == null){
if(res.data == null){
return this.$message({
return this.$message({
message: '未查询到数据,请手动输入',
message: '未查询到数据,请手动输入',
type: '
error
'
type: '
warning
'
});
});
}
}
...
@@ -774,7 +780,7 @@
...
@@ -774,7 +780,7 @@
this.formData.stock = Number(this.stock.num) + Number(this.formData.stock)
this.formData.stock = Number(this.stock.num) + Number(this.formData.stock)
this.formData.incrStock = this.formData.stock
this.formData.incrStock = this.formData.stock
}
}
this.formData.goodsStock = this.formData.stock
this.stockDio = false
this.stockDio = false
},
},
...
...
src/views/goods/goods-manage.vue
浏览文件 @
1a32e714
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
</div>
</div>
<div
v-if=
"scope.row.goodsStatus == 2"
>
<div
v-if=
"scope.row.goodsStatus == 2"
>
<
!--
<el-button
@
click=
"edit(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
--
>
<
el-button
@
click=
"edit(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button
>
<el-button
@
click=
"shelfOpt(scope.row,2)"
type=
"text"
size=
"small"
>
上架销售
</el-button>
<el-button
@
click=
"shelfOpt(scope.row,2)"
type=
"text"
size=
"small"
>
上架销售
</el-button>
<!--
<el-button
@
click=
"shelfOpt(scope.row,3)"
type=
"text"
size=
"small"
>
删除
</el-button>
-->
<!--
<el-button
@
click=
"shelfOpt(scope.row,3)"
type=
"text"
size=
"small"
>
删除
</el-button>
-->
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录