|
@@ -27,7 +27,7 @@
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
|
- <view class="tui-flex-1"> <view class="tui-button" @click="hidePopup">确定</view> </view>
|
|
|
+ <view class="tui-flex-1"> <view class="tui-button" @click="confirmSeller">确定</view> </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</tui-bottom-popup>
|
|
@@ -83,7 +83,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- hidePopup() {
|
|
|
+ hidePopup(){
|
|
|
+ this.$parent.isSellerpopup = false
|
|
|
+ },
|
|
|
+ confirmSeller() {
|
|
|
let sellerData = null
|
|
|
let checkedData = false
|
|
|
this.dataList.forEach((el, index) => {
|
|
@@ -92,9 +95,11 @@ export default {
|
|
|
checkedData = true
|
|
|
}
|
|
|
})
|
|
|
- if (checkedData) {
|
|
|
- this.$emit('handleChoiceaSeller', sellerData)
|
|
|
+ if(!checkedData){
|
|
|
+ this.$util.msg('请选择一个协销进行分配~', 2000)
|
|
|
+ return
|
|
|
}
|
|
|
+ this.$emit('handleChoiceaSeller', sellerData)
|
|
|
this.$parent.isSellerpopup = false
|
|
|
}
|
|
|
}
|