确认弹窗

This commit is contained in:
2024-04-22 18:06:27 +08:00
parent 3fc12c7dd1
commit 27715461db
22 changed files with 2124 additions and 5 deletions

View File

@@ -136,6 +136,9 @@
</view>
</view>
<view v-if="show" class="modal" @click.stop="show = false"></view>
<uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="info" cancelText="关闭" confirmText="确定" title="提示" :content="crType === 'IN'? '是否确认入库?':'是否确认出库?'" @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
</uni-popup>
</view>
</template>
@@ -182,7 +185,8 @@
disabled2: false,
show: false,
type: '',
kwCode: ''
kwCode: '',
checkArr3: []
};
},
onShow() {
@@ -368,15 +372,23 @@
this.disabled2 = false
return
} else if (this.type === '1') {
arr = this.dataList3
// arr = this.dataList3
this.checkArr3 = [...this.dataList3]
this.$refs.alertDialog.open()
this.disabled2 = false
return
} else if (this.type === '2') {
this.checkArr2.map(el => {
el.kwbm = this.kwCode
})
arr = this.checkArr2
arr = [...this.checkArr2]
}
this._easOutInBillDetailUpdate(arr)
},
dialogConfirm () {
this._easOutInBillDetailUpdate(this.checkArr3)
},
dialogClose () {},
async _easOutInBillDetailUpdate (arr) {
try {