提示框
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar_new">
|
<view class="zd-row submit-bar_new">
|
||||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled" @tap="_taskCarry">确认</button>
|
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled" @tap="toSure">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -114,12 +114,26 @@
|
|||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
this.index2 = ''
|
this.index2 = ''
|
||||||
},
|
},
|
||||||
async _taskCarry () {
|
toSure () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.index1 || !this.index2) {
|
if (!this.index1 || !this.index2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '确认终点无货状态',
|
||||||
|
confirmColor: '#ff6a00',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
this._taskCarry()
|
||||||
|
} else if (res.cancel) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async _taskCarry () {
|
||||||
try {
|
try {
|
||||||
let res = await taskCarry(this.index1, this.index2)
|
let res = await taskCarry(this.index1, this.index2)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
|||||||
Reference in New Issue
Block a user