diff --git a/pages/SecondPhase/slitting/CacheCut.vue b/pages/SecondPhase/slitting/CacheCut.vue index f17383c..62b62fb 100644 --- a/pages/SecondPhase/slitting/CacheCut.vue +++ b/pages/SecondPhase/slitting/CacheCut.vue @@ -24,8 +24,11 @@ - + + + + @@ -45,7 +48,6 @@ newoptions: [], options2: [], index2: '', - disabled: false, obj: {a_point: '-', b_point: '-', status: '-'} }; }, @@ -103,21 +105,24 @@ this.options = [...res] this.newoptions = [...res] }, - async _sendSubVolumeToNBJ () { - this.disabled = true + toSure () { if (!this.index) { - this.disabled = false return } + this.$refs.alertDialog.open() + }, + dialogConfirm () { + this._sendSubVolumeToNBJ() + }, + async _sendSubVolumeToNBJ () { try { let res = await sendSubVolumeToNBJ(this.index) uni.showToast({ title: res.message, icon: 'none' }) - this.disabled = false } catch (e) { - this.disabled = false + console.log(e) } }, clearUp () {