Selaa lähdekoodia

推送账单新增确认

yanliming 5 vuotta sitten
vanhempi
commit
2d90a55adc
1 muutettua tiedostoa jossa 18 lisäystä ja 10 poistoa
  1. 18 10
      src/views/business/billPush-detail-list.vue

+ 18 - 10
src/views/business/billPush-detail-list.vue

@@ -360,20 +360,28 @@ export default {
         },
         handlePush(){
             var self = this;
+
+            self.$confirm("是否确认推送账单?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+            })
+            .then(() => {
             
-            var formData = new FormData();
-            formData.append("id", self.businessKey);
+                var formData = new FormData();
+                formData.append("id", self.businessKey);
 
-            billPushApi.pushBill(formData).then((response)=>{
-                var jsonData = response.data;
+                billPushApi.pushBill(formData).then((response)=>{
+                    var jsonData = response.data;
 
-                if (jsonData.result) {
-                    this.changePage(this.pageIndex);
-                    this.$message.success("账单消息推送成功!");
-                } else {
-                    this.$message.error(jsonData.message + "");
-                }
+                    if (jsonData.result) {
+                        this.changePage(this.pageIndex);
+                        this.$message.success("账单消息推送成功!");
+                    } else {
+                        this.$message.error(jsonData.message + "");
+                    }
 
+                });
             });
         },
     },