this.$confirm弹出框

复制代码
 1 this.$confirm(`确认生成【${this.businessDate}】号的出库单?`, '提示', {
 2           confirmButtonText: '确定',
 3           cancelButtonText: '取消',
 4           type: 'warning'
 5         }).then(() => {
 6           let url = `${config.wmsServerURL}/wms/sortTasks/sortOutBound?sortDate=${this.businessDate}`
 7           this.$api.put(url, '').then(response => {
 8             if (Number(response.status) === 202) {
 9               this.$messageBox.success(`业务日期【${this.businessDate}】出库成功`)
10             } else {
11               this.$messageBox.error(`业务日期【${this.businessDate}】出库失败`)
12             }
13           }).catch((error) => {
14             this.$messageBox.error(error)
15           })
16         })
复制代码

两个按钮分别请求接口:https://blog.csdn.net/qq_42970173/article/details/109121226

posted @   //唉  阅读(758)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示