|  |  |  | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-drawer | 
|---|
|  |  |  | title="选择商城优惠券" | 
|---|
|  |  |  | :visible.sync="drawerCoupon" | 
|---|
|  |  |  | :direction="directionCoupon" | 
|---|
|  |  |  | size="90%"> | 
|---|
|  |  |  | <el-row style="margin-left: 50px;"> | 
|---|
|  |  |  | <el-col :span="24"> | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <el-form ref="formCoupon" :model="formCoupon" inline > | 
|---|
|  |  |  | <el-form-item prop="yhjmc"> | 
|---|
|  |  |  | <el-input v-model="formCoupon.yhjmc" placeholder="请输入优惠券名称"></el-input> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-button type="primary" @click="searchFormCoupon" >搜索</el-button> | 
|---|
|  |  |  | <el-button @click="resetFormCoupon('formCoupon')">重置</el-button> | 
|---|
|  |  |  | </el-form> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-row class="table-style" > | 
|---|
|  |  |  | <el-table ref="multipleTable" | 
|---|
|  |  |  | :data="couponList.rows" | 
|---|
|  |  |  | :height="tableHeightCoupon" | 
|---|
|  |  |  | stripe:true | 
|---|
|  |  |  | style="width: 100%"> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="cname" | 
|---|
|  |  |  | label="优惠券名称" | 
|---|
|  |  |  | show-overflow-tooltip> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="endTime" | 
|---|
|  |  |  | label="截止日期" | 
|---|
|  |  |  | show-overflow-tooltip> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="address" | 
|---|
|  |  |  | label="操作"> | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <el-button type="primary" | 
|---|
|  |  |  | size="mini" | 
|---|
|  |  |  | @click="chooseOneCoupon(scope.row)">选择 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row class="paginationStyle"  > | 
|---|
|  |  |  | <el-pagination background | 
|---|
|  |  |  | @size-change="changePageSizeCoupon" | 
|---|
|  |  |  | @current-change="changeCurrentPageCoupon" | 
|---|
|  |  |  | :current-page="couponList.currentPage" | 
|---|
|  |  |  | :page-sizes="[10, 20, 30, 50]" | 
|---|
|  |  |  | :page-size="couponList.pageSize" | 
|---|
|  |  |  | layout="total, sizes, prev, pager, next, jumper" | 
|---|
|  |  |  | :total="couponList.total"> | 
|---|
|  |  |  | </el-pagination> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | </el-drawer> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div v-show="item.content.awardType === 4"> | 
|---|
|  |  |  | <el-row style="display:flex;"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-drawer | 
|---|
|  |  |  | title="选择ERP产品" | 
|---|
|  |  |  | :visible.sync="drawerGoods" | 
|---|
|  |  |  | :direction="directionGoods" | 
|---|
|  |  |  | size="90%"> | 
|---|
|  |  |  | <el-row style="margin-left: 50px;"> | 
|---|
|  |  |  | <el-col :span="24"> | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <el-form ref="formGoods" :model="formGoods" inline > | 
|---|
|  |  |  | <el-form-item prop="cpmc"> | 
|---|
|  |  |  | <el-input v-model="formGoods.cpmc" placeholder="请输入产品名称"></el-input> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-button type="primary" @click="searchFormGoods" >搜索</el-button> | 
|---|
|  |  |  | <el-button @click="resetFormGoods('formGoods')">重置</el-button> | 
|---|
|  |  |  | </el-form> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-row class="table-style" > | 
|---|
|  |  |  | <el-table ref="multipleTable" | 
|---|
|  |  |  | :data="goodsList.rows" | 
|---|
|  |  |  | :height="tableHeightGoods" | 
|---|
|  |  |  | stripe:true | 
|---|
|  |  |  | style="width: 100%"> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="cname" | 
|---|
|  |  |  | label="优惠券名称" | 
|---|
|  |  |  | show-overflow-tooltip> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="endTime" | 
|---|
|  |  |  | label="截止日期" | 
|---|
|  |  |  | show-overflow-tooltip> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | prop="address" | 
|---|
|  |  |  | label="操作"> | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <el-button type="primary" | 
|---|
|  |  |  | size="mini" | 
|---|
|  |  |  | @click="chooseOneGoods(scope.row)">选择 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row class="paginationStyle"  > | 
|---|
|  |  |  | <el-pagination background | 
|---|
|  |  |  | @size-change="changePageSizeGoods" | 
|---|
|  |  |  | @current-change="changeCurrentPageGoods" | 
|---|
|  |  |  | :current-page="goodsList.currentPage" | 
|---|
|  |  |  | :page-sizes="[10, 20, 30, 50]" | 
|---|
|  |  |  | :page-size="goodsList.pageSize" | 
|---|
|  |  |  | layout="total, sizes, prev, pager, next, jumper" | 
|---|
|  |  |  | :total="goodsList.total"> | 
|---|
|  |  |  | </el-pagination> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | </el-drawer> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-tab-pane> | 
|---|
|  |  |  | </el-tabs> | 
|---|
|  |  |  | 
|---|
|  |  |  | imageUrlButton: '', | 
|---|
|  |  |  | imageUrlState: '', | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //优惠券搜索弹出 | 
|---|
|  |  |  | drawerCoupon: false, | 
|---|
|  |  |  | directionCoupon: 'rtl', | 
|---|
|  |  |  | tableHeightCoupon: 500, | 
|---|
|  |  |  | //--优惠券 | 
|---|
|  |  |  | formCoupon:{ | 
|---|
|  |  |  | yhjmc:'', | 
|---|
|  |  |  | order:'', | 
|---|
|  |  |  | sort:'' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | couponList:{ | 
|---|
|  |  |  | rows:[], | 
|---|
|  |  |  | total:0, | 
|---|
|  |  |  | pageSize:10, | 
|---|
|  |  |  | currentPage:1, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //品项搜索弹出 | 
|---|
|  |  |  | drawerGoods: false, | 
|---|
|  |  |  | directionGoods: 'rtl', | 
|---|
|  |  |  | tableHeightGoods: 500, | 
|---|
|  |  |  | //--品项 | 
|---|
|  |  |  | formGoods:{ | 
|---|
|  |  |  | cpmc:'', | 
|---|
|  |  |  | order:'', | 
|---|
|  |  |  | sort:'' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | goodsList:{ | 
|---|
|  |  |  | rows:[], | 
|---|
|  |  |  | total:0, | 
|---|
|  |  |  | pageSize:10, | 
|---|
|  |  |  | currentPage:1, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //字体颜色 | 
|---|
|  |  |  | typographyColor: '#409EFF', | 
|---|
|  |  |  | //背景颜色 | 
|---|
|  |  |  | 
|---|
|  |  |  | this.loadInfo(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | //选择优惠券 | 
|---|
|  |  |  | chooseCoupon(val){ | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | _this.drawerCoupon = true; | 
|---|
|  |  |  | _this.formCoupon.yhjmc = val; | 
|---|
|  |  |  | _this.loadCouponList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //--优惠券 | 
|---|
|  |  |  | loadCouponList() { | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | let data=_this.getRequestParamCoupon(); | 
|---|
|  |  |  | data.pageSize=_this.couponList.pageSize; | 
|---|
|  |  |  | data.pageNum=_this.couponList.currentPage; | 
|---|
|  |  |  | AjaxProxy.requst({ | 
|---|
|  |  |  | app: _this, | 
|---|
|  |  |  | data:data, | 
|---|
|  |  |  | url: basePath + '/admin/activitySignAwardSet/selectCouponList', | 
|---|
|  |  |  | callback: function (data) { | 
|---|
|  |  |  | _this.couponList.rows = data.rows; | 
|---|
|  |  |  | _this.couponList.total = data.total; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //查询参数 | 
|---|
|  |  |  | getRequestParamCoupon(){ | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | return   { | 
|---|
|  |  |  | yhjmc:_this.formCoupon.yhjmc, | 
|---|
|  |  |  | order:_this.formCoupon.order, | 
|---|
|  |  |  | sort:_this.formCoupon.sort, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //查询 | 
|---|
|  |  |  | searchFormCoupon:function(){ | 
|---|
|  |  |  | this.couponList.currentPage=1; | 
|---|
|  |  |  | this.loadCouponList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //重置 | 
|---|
|  |  |  | resetFormCoupon(formName) { | 
|---|
|  |  |  | // this.formCoupon.yhjmc = '' | 
|---|
|  |  |  | // console.log(this.$refs[formName].resetFields) | 
|---|
|  |  |  | (this.$refs[formName])[0].resetFields(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | changePageSizeCoupon(val) { | 
|---|
|  |  |  | this.couponList.pageSize = val; | 
|---|
|  |  |  | this.loadCouponList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | changeCurrentPageCoupon(val) { | 
|---|
|  |  |  | this.couponList.currentPage = val; | 
|---|
|  |  |  | this.loadCouponList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //选择 | 
|---|
|  |  |  | chooseOneCoupon(row) { | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | _this.editableTabs[_this.tabIndex-1].content.couponId = row.id; | 
|---|
|  |  |  | _this.editableTabs[_this.tabIndex-1].content.couponName = row.cname; | 
|---|
|  |  |  | _this.drawerCoupon = false; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //--品项 | 
|---|
|  |  |  | loadGoodsList() { | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | let data=_this.getRequestParamGoods(); | 
|---|
|  |  |  | data.pageSize=_this.goodsList.pageSize; | 
|---|
|  |  |  | data.pageNum=_this.goodsList.currentPage; | 
|---|
|  |  |  | AjaxProxy.requst({ | 
|---|
|  |  |  | app: _this, | 
|---|
|  |  |  | data:data, | 
|---|
|  |  |  | url: basePath + '/admin/activitySignAwardSet/selectGoodsList', | 
|---|
|  |  |  | callback: function (data) { | 
|---|
|  |  |  | _this.goodsList.rows = data.rows; | 
|---|
|  |  |  | _this.goodsList.total = data.total; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //查询参数 | 
|---|
|  |  |  | getRequestParamGoods(){ | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | return   { | 
|---|
|  |  |  | cpmc:_this.formCoupon.cpmc, | 
|---|
|  |  |  | order:_this.formCoupon.order, | 
|---|
|  |  |  | sort:_this.formCoupon.sort, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //查询 | 
|---|
|  |  |  | searchFormGoods:function(){ | 
|---|
|  |  |  | this.goodsList.currentPage=1; | 
|---|
|  |  |  | this.loadGoodsList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //重置 | 
|---|
|  |  |  | resetFormGoods(formName) { | 
|---|
|  |  |  | (this.$refs[formName])[0].resetFields(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | changePageSizeGoods(val) { | 
|---|
|  |  |  | this.goodsList.pageSize = val; | 
|---|
|  |  |  | this.loadGoodsList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | changeCurrentPageGoods(val) { | 
|---|
|  |  |  | this.goodsList.currentPage = val; | 
|---|
|  |  |  | this.loadGoodsList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //选择 | 
|---|
|  |  |  | chooseOneGoods(row) { | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | _this.editableTabs[_this.tabIndex-1].content.goodsId = row.id; | 
|---|
|  |  |  | _this.editableTabs[_this.tabIndex-1].content.goodsName = row.name; | 
|---|
|  |  |  | _this.drawerGoods = false; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //加载活动详情 | 
|---|
|  |  |  | loadInfo() { | 
|---|
|  |  |  | let _this = this; | 
|---|