浏览代码

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