分切暂存下料弹窗
This commit is contained in:
@@ -24,8 +24,11 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" :disabled="disabled" @tap="_sendSubVolumeToNBJ">确认</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" @tap="toSure">确认</button>
|
||||
</view>
|
||||
<uni-popup ref="alertDialog" type="dialog">
|
||||
<uni-popup-dialog type="info" cancelText="关闭" confirmText="确定" title="提示" content="确认是否创建送到内包间AGV任务?" @confirm="dialogConfirm"></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user