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

完成商品管理优化

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