Commit a20dfbf7 authored by Facius's avatar Facius

improve:批量结算确认弹窗优化

parent 2310a6b7
Pipeline #3785 canceled with stages
......@@ -119,13 +119,17 @@ export default {
loadingShow: {
type: Boolean,
default: false
},
tipSelected: {
type: Boolean,
default: false
}
},
data() {
return {
show: false,
select: false,
loading:false
loading:false
}
},
watch: {
......@@ -133,7 +137,7 @@ export default {
this.show = val
this.loading = false
if (val) {
this.select = false
this.select = this.tipSelected
}
},
},
......
......@@ -51,8 +51,8 @@
<u-loading mode="flower"></u-loading>
</view>
<u-toast ref="uToast" />
<PopNormal :visible.sync="visible" :loadingShow="true" title="操作提醒" content="本次结清金额是否记录到日常记账中?"
cancelText="不记录" confirmText="记录" @confirm="handleClickConfirm" @cancel="handleClickCancel"/>
<PopNormal :visible.sync="visible" :loadingShow="true" title="操作提醒" content="确认结清所选账单?" :tipSelected="true"
bottomTip="将本次结清金额记录到日常记账中" cancelText="取消" confirmText="确认" @confirm="handleClickConfirm"/>
</view>
</template>
......@@ -299,11 +299,8 @@ export default {
handleClickSure () {
this.visible = true
},
handleClickConfirm() {
this.batchSettle(true)
},
handleClickCancel() {
this.batchSettle(false)
handleClickConfirm(select) {
this.batchSettle(select)
},
// 滚动底部
reachBottom (e) {
......
<template>
<view class="debit-detail" @click="toBill">
<view class="debit-detail" hover-class="u-hover-class" @click="toBill">
<view class="content">
<view class="content-item">
<!-- <text class="content-item-label">客户名称:</text> -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment