| | |
| | | //按下标打钩,并且存储选中项,取消打钩的去掉存储项 |
| | | if(this.areaArr[index].selected == 0){ |
| | | this.areaArr[index].selected = 1 |
| | | console.log(this.info,this.areaArr[index]) |
| | | this.info.tempRules.push(this.areaArr[index]) |
| | | }else{ |
| | | this.areaArr[index].selected = 0 |
| | | let num = this.info.tempRules.findIndex(item=>{ |
| | | return item.code == this.areaArr[index].code |
| | | }) |
| | | console.log('num:',num) |
| | | this.info.tempRules.splice(num,1) |
| | | } |
| | | // 有一个未打钩,取消全选,全部勾选则选中全选 |
| | |
| | | }else{ |
| | | this.allpr = true |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 选择渠道 |
| | | choseChan(index){ |
| | |
| | | let num = this.info.tempRules.findIndex(item => { |
| | | return item.code == this.chanArr[index].code |
| | | }) |
| | | console.log('num:',num) |
| | | this.info.tempRules.splice(num,1) |
| | | } |
| | | // 有一个未打钩,取消全选,全部勾选则选中全选 |
| | |
| | | }else{ |
| | | this.allchan = true |
| | | } |
| | | console.log(this.info) |
| | | console.log('this.chanArr:',this.chanArr) |
| | | }, |
| | | // 详情弹出层 |
| | | showDet(){ |
| | |
| | | }) |
| | | this.info.tempRules = [] |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 模板省份全选 |
| | | getAllpr(){ |
| | |
| | | }) |
| | | this.info.tempRules = [] |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 控制模板选择弹出层 |
| | | nextStep(item,index){ |
| | |
| | | } |
| | | }) |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 打开 模板弹窗 |
| | | openTempModal() { |
| | |
| | | return |
| | | } |
| | | if ((issItem.amt === null || issItem.amt === '') && issItem.status) { |
| | | console.log('000') |
| | | this.$notify(`请输入花呗间联${issItem.term}期商户固定收益!`) |
| | | return |
| | | } |