|
@@ -142,7 +142,8 @@ var vm = new Vue({
|
|
|
attributeCategories: [],//属性类别
|
|
|
specifications: [],
|
|
|
brands: [],
|
|
|
- freights: []
|
|
|
+ freights: [],
|
|
|
+ showInput: true
|
|
|
},
|
|
|
methods: {
|
|
|
delSpeRow: function (index) {
|
|
@@ -201,6 +202,7 @@ var vm = new Vue({
|
|
|
vm.getFreights();
|
|
|
vm.getAttributeCategories();
|
|
|
vm.getAttributes();
|
|
|
+ vm.showInput = true;
|
|
|
},
|
|
|
update: function (event) {
|
|
|
var id = getSelectedRow();
|
|
@@ -217,6 +219,10 @@ var vm = new Vue({
|
|
|
vm.getAttributeCategories();
|
|
|
vm.getGoodsGallery(id);
|
|
|
vm.getAttributes();
|
|
|
+ vm.showInput = true;
|
|
|
+ if (vm.goods.goodsBizType == '10' || vm.goods.goodsBizType == '02') {
|
|
|
+ vm.showInput = false;
|
|
|
+ }
|
|
|
},
|
|
|
getAttributes: function () {
|
|
|
$.get("../attribute/queryAll", function (r) {
|
|
@@ -436,6 +442,12 @@ var vm = new Vue({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ changeGoodsBizType: function(opt) {
|
|
|
+ var goodsBizType = opt.value;
|
|
|
+ if (vm.goods.goodsBizType == '10' || vm.goods.goodsBizType == '02') {
|
|
|
+ vm.showInput = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
handleView(name) {
|
|
|
this.imgName = name;
|
|
|
this.visible = true;
|