Explorar el Código

feat 头部账户余额实时变动

Funny hace 3 años
padre
commit
1f2e117415

+ 1 - 0
src/components/accountCompoents/wallet.vue

@@ -129,6 +129,7 @@ export default {
   methods: {
     paySuccess() {
       this.showCode = false;
+      this.$store.dispatch("getUserInfo");
       this.getWallet();
     },
     getExplain() {

+ 0 - 18
src/components/orderComponents/orderList.vue

@@ -699,12 +699,6 @@ export default {
     },
     // 一键发单备注
     commitRemark(orderId, item) {
-      // if(!this.remark.trim()){
-      //   return this.$message({
-      //       message: '请输入发单备注再确认!',
-      //       type: "error",
-      //     });
-      // }
       let params = {
         orderId,
         remark: this.remark.trim(),
@@ -718,14 +712,6 @@ export default {
           });
           bus.$emit("refreshData");
           bus.$emit("refreshData2");
-          // this.$set(
-          //   this.list.find((v) => {
-          //     return item.id == v.id;
-          //   }),
-          //   "takeRemark",
-          //   this.remark
-          // );
-          // this.$forceUpdate();
         } else {
           this.$message({
             message: res.msg,
@@ -931,14 +917,10 @@ export default {
       if (item.deliveryStatus === -1) {
         return (name = "已取消");
       }
-      // if (item.deliveryStatus === -2) {
-      //   return this.showCancelType(item.cancelType);
-      // }
     },
   },
 };
 </script>
-<!-- Add "scoped" attribute to limit CSS to this component only -->
 <style lang="scss" scoped="scoped">
 .el-row {
   position: absolute !important;

+ 1 - 13
src/components/orderComponents/sendOrderPopup.vue

@@ -409,6 +409,7 @@ export default {
       this.showCode = false;
       this.dialogTableVisible = false;
       this.loading = false;
+      this.$store.dispatch("getUserInfo");
       if (this.tabNum === -1) {
         bus.$emit("refreshData2");
         return;
@@ -451,19 +452,6 @@ export default {
       sendOrder(params).then((res) => {
         if (res.code == 200) {
           if (this.payId == 4) {
-            // this.dialogTableVisible = false;
-            // this.loading = false;
-            // if (this.tabNum === -1) {
-            //   bus.$emit("refreshData2");
-            //   return;
-            // }
-            // bus.$emit("pullData", 2);
-            // if (this.$route.name === "manualCreate") {
-            //   this.$route.push({
-            //     name: "HomeIndex",
-            //     params:{tabNum:2}
-            //   });
-            // }
             this.paySuccess();
           } else if (
             (this.payId == 1 || this.payId == 2) &&