|
@@ -3002,7 +3002,15 @@ export default {
|
|
|
if(this.$route.params.id) return this.$Message.error('商品类型不能切换!');
|
|
|
this.formValidate.product_type = item.id;
|
|
|
}
|
|
|
- if(this.formValidate.product_type && this.formValidate.product_type != 4){
|
|
|
+ if(this.formValidate.product_type == 5||this.formValidate.product_type == 6){
|
|
|
+ this.headTab = [
|
|
|
+ { title: "基础信息", name: "1" },
|
|
|
+ { title: "规格库存", name: "2" },
|
|
|
+ { title: "商品详情", name: "3" },
|
|
|
+ { title: "其他设置", name: "6" },
|
|
|
+ { title: "适用门店", name: "7" },
|
|
|
+ ]
|
|
|
+ }else if(this.formValidate.product_type && this.formValidate.product_type != 4){
|
|
|
this.headTab = [
|
|
|
{ title: "基础信息", name: "1" },
|
|
|
{ title: "规格库存", name: "2" },
|