Commit a20dfbf7 authored by Facius's avatar Facius

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

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