| | |
| | | <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> |
| | |
| | | |
| | | <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 |
| | |
| | | id: "", |
| | | }, |
| | | roleList: [], |
| | | payRealName: "", // 支付方真实姓名 |
| | | page: { |
| | | total: 0, // 总页数 |
| | | currentPage: 1, // 当前页数 |
| | |
| | | }).then(({ data }) => { |
| | | if (data.code == 0) { |
| | | this.roleList = data.data; |
| | | // 回显支付方真实姓名 |
| | | this.payRealName = data.data.pay_real_name || ""; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | 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> |