提交 b489a0d2 authored 作者: zgy's avatar zgy

完成商品管理优化

上级 8b3336f4
......@@ -298,9 +298,9 @@
<!-- 选项 -->
<section class="form-wrapper">
<h4>选项</h4>
<section class="default-price">
<section class="default-price" >
<h4>设置默认价格与库存
<i-switch v-model="setDefaultValue">
<i-switch v-model="setDefaultValue" :disabled="disabled">
<Icon type="md-checkmark"></Icon>
<Icon type="md-close"></Icon>
</i-switch>
......@@ -345,7 +345,7 @@
style="margin-left:10px;margin-bottom:10px;margin-top:10px;"
type="success"
@click="addAttr"
>新增其它选项
>新增属性
</i-button>
<!-- 预览 -->
<section class="form-prev">
......
......@@ -58,7 +58,8 @@ let vm = new Vue({
default_count: '',
setDefaultValue: false,
tmdSkudata: null,
isDisabled: false
isDisabled: false,
disabled: false
},
methods: {
//获取二级分类
......@@ -73,7 +74,7 @@ let vm = new Vue({
successCallback: function (r) {
if (r.code === 0) {
that.Goodstype2 = r.list
if(r.list.length===0){
if (r.list.length === 0) {
that.tbCfStationItem.itemCategorytwo = null
}
}
......@@ -89,8 +90,8 @@ let vm = new Vue({
contentType: "application/json",
successCallback: function (r) {
if (r.code === 0) {
that.Goodstype3 = r.descripiton
if(r.descripiton.length===0){
that.Goodstype3 = r.descripiton
if (r.descripiton.length === 0) {
that.tbCfStationItem.itemDescritionId = null
}
}
......@@ -494,7 +495,7 @@ let vm = new Vue({
}
$.get('../tbcfgoodstype/queryAll', res => {
this.Goodstype = res.list;
console.log('一级分类',this.Goodstype)
console.log('一级分类', this.Goodstype)
})
}
});
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论