소스 검색

1. 优化

MONSTER-ygh 4 달 전
부모
커밋
bd1e6e053a
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/views/tourism/marketingActivities/formBox/eventManagementForm.vue

+ 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