MONSTER-ygh 1 gadu atpakaļ
vecāks
revīzija
3d881e65e9
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      src/views/officesale/model/increaseViewers.vue

+ 8 - 1
src/views/officesale/model/increaseViewers.vue

@@ -375,7 +375,7 @@ import {
             // })
         },
         /**  获取票务信息  */
-        async selectRegionFun(params){
+        async selectRegionFun(params,seatTypeId){
             try {
                 this.loadingText = "获取票务信息中..."
                 let res = await selectRegion({
@@ -387,6 +387,13 @@ import {
                 })
                 if(res.code == 200) {
                     if(res.data.regionPriceList &&res.data.regionPriceList.length>0){
+                        let obj = {}
+                        res.data.regionPriceList.forEach((item,index)=>{
+                            console.log("item.seatTypeId===",item.seatTypeId,seatTypeId)
+                            if(seatTypeId == item.seatTypeId) {
+                                obj = item
+                            }
+                        }) 
                         if(JSON.stringify(obj) != '{}'){
                             this.ruleForm.performId = obj.performId
                             this.ruleForm.goodsList = [