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

浙公网安备 33010602011771号