|
@@ -85,7 +85,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-modal v-model="modalShow" :show-title="false" :content="modalCon" :show-cancel-button="true" @confirm="handleConfirm"></u-modal>
|
|
|
+ <!-- 一键刷新 删除 -->
|
|
|
+ <u-modal v-model="modalShow" :show-title="false" :content="modalCon" :show-cancel-button="true" @cancel="closeDelModal" @confirm="handleConfirm"></u-modal>
|
|
|
<!-- 确认收款弹窗 -->
|
|
|
<u-popup v-model="showPayment" mode="center" @close="closePopup" :border-radius="20" width="82%">
|
|
|
<view class="slot-content">
|
|
@@ -277,7 +278,7 @@ export default {
|
|
|
isShowEditBtn(){
|
|
|
// #ifdef APP-PLUS
|
|
|
let webview = this.$mp.page.$getAppWebview();
|
|
|
- if(this.billInfo.billStatus != 'UNSETTLE' || !this.billArr || this.showPayment){
|
|
|
+ if(this.billInfo.billStatus != 'UNSETTLE' || !this.billArr || this.showPayment || this.modalShow){
|
|
|
webview.setTitleNViewButtonStyle(0, {
|
|
|
width:'0px'
|
|
|
})
|
|
@@ -491,6 +492,13 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ closeDelModal(){
|
|
|
+ this.modalShow = false
|
|
|
+ let that=this
|
|
|
+ that.$nextTick(()=>{
|
|
|
+ that.isShowEditBtn()
|
|
|
+ })
|
|
|
+ },
|
|
|
handleEvents(type){
|
|
|
this.eventsType=type
|
|
|
if(type == 'del'){
|
|
@@ -514,10 +522,13 @@ export default {
|
|
|
let newNum=toThousands(num,2)
|
|
|
|
|
|
this.modalCon = '选中'+newChooseList.length+'项,待收金额¥'+newNum+',确认删除吗?'
|
|
|
+ }else{
|
|
|
+ this.modalCon='刷新后,将删除对账单中已收款的订单,更新待收款单据。确定刷新吗?'
|
|
|
}
|
|
|
let that=this
|
|
|
that.$nextTick(()=>{
|
|
|
that.modalShow = true
|
|
|
+ that.isShowEditBtn()
|
|
|
})
|
|
|
},
|
|
|
//确定提交删除、刷新
|