Ver Fonte

2024-1-8

cmy há 1 ano atrás
pai
commit
459c96e6c1

+ 2 - 2
src/pages/marketing/serveItem/create.vue

@@ -75,7 +75,7 @@
 			</div>
 		</Card>
 		<!-- 选择商品-->
-		<Modal v-model="modals" title="商品列表" footerHide class="paymentFooter" scrollable width="900"
+		<Modal v-model="modals" title="商品列表" footerHide class="paymentFooter" scrollable width="1200"
 			@on-cancel="cancel">
 			<goods-list ref="goodslist" :goodsType="1" v-if="modals" @getProductId="getProductId"
 				:serviceProject="1"></goods-list>
@@ -145,7 +145,7 @@
 				this.modals = false;
 				this.formData.product_id = row.id
 				this.formData.store_name = row.store_name
-				this.formData.id = row.id
+				// this.formData.id = row.id
 				this.formData.slider_image = row.image
 				this.formData.price = row.price
 			},

+ 5 - 0
src/pages/product/productAdd/index.vue

@@ -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" },