新版交易所前段管理后台
1
admin
2026-02-01 d841e83acfd09a5c4f455a2cc74c615ac30c049d
src/views/modules/c2c/c2c-order-other-msg.vue
@@ -131,9 +131,18 @@
              <span class="textFigTwo" v-if="roleList.param_value15">{{ roleList.param_value15 }}</span>
            </div>
            <div class="miniTitle" style="margin-top: 20px">
              <span class="titLeft">支付二维码</span>
              <span class="titLeft">支付方真实姓名</span>
              <span class="titRight">支付二维码</span>
            </div>
            <div>
            <div style="display: flex;justify-content: space-between;width: 400px;">
              <el-input
                v-model="payRealName"
                placeholder="请输入支付方真实姓名"
                style="width: 200px;"
                size="small"
              ></el-input>
              <img :src="roleList.qrcode" alt="" width="150" height="150" />
            </div>
          </div>
@@ -239,7 +248,7 @@
    <span slot="footer" class="dialog-footer">
      <el-button @click="closeDiog()">取消</el-button>
      <el-button type="primary" @click="closeDiog()">确定</el-button>
      <el-button type="primary" @click="updatePayRealName()">确定</el-button>
    </span>
     <!-- 取消订单 -->
     <passtpn
@@ -279,6 +288,7 @@
        id: "",
      },
      roleList: [],
      payRealName: "", // 支付方真实姓名
      page: {
        total: 0, // 总页数
        currentPage: 1, // 当前页数
@@ -336,6 +346,8 @@
      }).then(({ data }) => {
        if (data.code == 0) {
          this.roleList = data.data;
          // 回显支付方真实姓名
          this.payRealName = data.data.pay_real_name || "";
        }
      });
    },
@@ -356,6 +368,41 @@
  this.visible = false
  this.$emit('refreshDataList', this.page)
},
    // 更新支付方真实姓名
    updatePayRealName() {
      this.$http({
        url: this.$http.adornUrl("/c2cOrder/update"),
        method: "post",
        data: this.$http.adornData({
          order_no: this.dataForm.order_no,
          pay_real_name: this.payRealName,
        }),
      }).then(({ data }) => {
        if (data.code == 0) {
          this.$message({
            message: "操作成功",
            type: "success",
            duration: 1500,
            onClose: () => {
              this.visible = false;
              this.$emit('refreshDataList', this.page);
            },
          });
        } else {
          this.$message({
            message: data.msg || "操作失败",
            type: "error",
            duration: 1500,
          });
        }
      }).catch(() => {
        this.$message({
          message: "操作失败",
          type: "error",
          duration: 1500,
        });
      });
    },
  },
};
</script>