二次确认

This commit is contained in:
2025-07-09 11:07:10 +08:00
parent 19359cf43a
commit 145807f859
9 changed files with 175 additions and 83 deletions

View File

@@ -57,7 +57,7 @@
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">{{$t('button.clear')}}</button>
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !arr1.length}" :disabled="disabled" @tap="_zjInBoundConfirm">装箱入库</button>
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !arr1.length}" :disabled="disabled" @tap="handleConfirm">装箱入库</button>
</view>
<up-top ref="UT" :scrollTop="top"></up-top>
</view>
@@ -67,6 +67,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
import { confirmAction } from '@/utils/utils.js'
import {zjInBound, zjInBoundConfirm} from '@/utils/getData3.js'
export default {
components: {
@@ -117,12 +118,17 @@
this.disabled = false
this.isV = '0'
},
async _zjInBoundConfirm () {
this.disabled = true
async handleConfirm() {
if (!this.arr1.length) {
this.disabled = false
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
if (isConfirmed) {
this._zjInBoundConfirm()
}
},
async _zjInBoundConfirm () {
this.disabled = true
try {
let res = await zjInBoundConfirm(this.arr1.join(','), this.isV)
uni.showToast({