|
|
@@ -1294,16 +1294,29 @@ export default {
|
|
|
},
|
|
|
// 撤销二维码
|
|
|
revokeCode(id) {
|
|
|
- this.$api.letter.getRevokeQrCode(id).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: "success",
|
|
|
+ this.$confirm('确定撤销二维码?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.letter.getRevokeQrCode(id).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
|
|
|
+ this.findPage();
|
|
|
+ }
|
|
|
});
|
|
|
- this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
|
|
|
- this.findPage();
|
|
|
- }
|
|
|
- });
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消撤销二维码'
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
bjdpreview(companyId, userId) {
|
|
|
let params = {
|