|
@@ -3002,7 +3002,9 @@ export default {
|
|
|
if(this.$route.params.id) return this.$Message.error('商品类型不能切换!');
|
|
|
this.formValidate.product_type = item.id;
|
|
|
}
|
|
|
+ console.log(this.formValidate.product_type,'this.formValidate.product_type')
|
|
|
if(this.formValidate.product_type == 5||this.formValidate.product_type == 6){
|
|
|
+ console.log('jr')
|
|
|
this.headTab = [
|
|
|
{ title: "基础信息", name: "1" },
|
|
|
{ title: "规格库存", name: "2" },
|
|
@@ -3011,6 +3013,7 @@ export default {
|
|
|
{ title: "适用门店", name: "7" },
|
|
|
]
|
|
|
}else if(this.formValidate.product_type && this.formValidate.product_type != 4){
|
|
|
+ console.log('jr1')
|
|
|
this.headTab = [
|
|
|
{ title: "基础信息", name: "1" },
|
|
|
{ title: "规格库存", name: "2" },
|
|
@@ -3021,6 +3024,7 @@ export default {
|
|
|
this.formValidate.postage = 0;
|
|
|
// this.formValidate.supplier_id = 0;
|
|
|
}else if(this.formValidate.product_type == 4){
|
|
|
+ console.log('jr2')
|
|
|
this.headTab = [
|
|
|
{ title: "基础信息", name: "1" },
|
|
|
{ title: "规格库存", name: "2" },
|
|
@@ -3030,6 +3034,7 @@ export default {
|
|
|
{ title: "适用门店", name: "7" },
|
|
|
]
|
|
|
}else{
|
|
|
+ console.log('jr3')
|
|
|
this.headTab = [
|
|
|
{ title: "基础信息", name: "1" },
|
|
|
{ title: "规格库存", name: "2" },
|