Browse Source

1. 优化

MONSTER-ygh 4 months ago
parent
commit
bd1e6e053a

+ 9 - 0
src/views/tourism/marketingActivities/formBox/eventManagementForm.vue

@@ -338,6 +338,15 @@ export default {
           param['hotelGoodsIdList']= this.form.hotelVoList.map((item)=> item.id)
           param['cateringGoodsIdList']= this.form.cateringVoList.map((item)=> item.id)
           param['creativeGoodsIdList']= this.form.creativeVoList.map((item)=> item.id)
+          if( param.hotelGoodsIdList.length > 0) {
+            param['hotelGoodsType'] = 5
+          }
+          if(param.cateringGoodsIdList.length > 0) {
+            param['cateringGoodsType'] = 4
+          }
+          if(param.creativeGoodsIdList.length > 0) {
+            param['creativeGoodsType'] = 3
+          }
           delete param.eventTime
           delete param.couponVoList
           delete param.performVoList